Fixes #1542 - Created a randomIndex member of ThriftTransportPool

for testing.   When the preferredCachedConnection was false the randomness of the selection of the server index caused inconsistent results in test.  The integrated test actually reveals something that needs to be corrected in the usage of ThriftTransportPool in general but I will let others decide that.  This change allows the TransportCachingIT to run 30 times consecutively without failure.  I haven't tried to go higher in count.

Thanks for looking at this test.  While this might help with the randomness of the ThriftTransportPool, I am usually against adding logic to change the behavior of a class specifically for a test.  I think the code here should be removed as I am not sure it is testing what it was intended to.   I will defer to @keith-turner since he worked on that change.
Also, I think this test should check to make sure the server list has both tservers in it before proceeding.  Currently it will just grab the first tserver it sees in ZK, breaking out of the servers.isEmpty() loop before seeing the second one.

I think the goal of the fix is good.  One way to achieve the goal without changing ThriftTransportPool is to pass a list of one server to it.  I tried this locally using the List.subList function and ran the test successfully a bunch of times.  Also looking at the code that gets the list of servers I see its incorrect (it never reads from zookeeper again) and way more complicated than needed.  I simplified it while experimenting.  Below are the diffs from my local testing.
--- a/test/src/main/java/org/apache/accumulo/test/TransportCachingIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/TransportCachingIT.java
@@ -18,15 +18,12 @@
  */
 package org.apache.accumulo.test;

-import static java.nio.charset.StandardCharsets.UTF_8;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNotSame;
 import static org.junit.Assert.assertSame;

-import java.util.ArrayList;
 import java.util.List;

-import org.apache.accumulo.core.Constants;
 import org.apache.accumulo.core.client.Accumulo;
 import org.apache.accumulo.core.client.AccumuloClient;
 import org.apache.accumulo.core.clientImpl.ClientContext;
@@ -34,9 +31,7 @@ import org.apache.accumulo.core.clientImpl.ThriftTransportKey;
 import org.apache.accumulo.core.clientImpl.ThriftTransportPool;
 import org.apache.accumulo.core.conf.ConfigurationTypeHelper;
 import org.apache.accumulo.core.conf.Property;
-import org.apache.accumulo.core.util.ServerServices;
-import org.apache.accumulo.core.util.ServerServices.Service;
-import org.apache.accumulo.fate.zookeeper.ZooCache;
+import org.apache.accumulo.core.util.HostAndPort;
 import org.apache.accumulo.harness.AccumuloClusterHarness;
 import org.apache.thrift.transport.TTransport;
 import org.apache.thrift.transport.TTransportException;
@@ -44,61 +39,32 @@ import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;

+import com.google.common.collect.Lists;
+
 /**
  * Test that {@link ThriftTransportPool} actually adheres to the cachedConnection argument
  */
 public class TransportCachingIT extends AccumuloClusterHarness {
   private static final Logger log = LoggerFactory.getLogger(TransportCachingIT.class);
-  private static int ATTEMPTS = 0;

   @Test
   public void testCachedTransport() throws InterruptedException {
     try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build()) {
-      while (client.instanceOperations().getTabletServers().isEmpty()) {
+
+      List<String> tservers;
+
+      while ((tservers = client.instanceOperations().getTabletServers()).isEmpty()) {
         // sleep until a tablet server is up
         Thread.sleep(50);
       }
+
       ClientContext context = (ClientContext) client;
       long rpcTimeout =
           ConfigurationTypeHelper.getTimeInMillis(Property.GENERAL_RPC_TIMEOUT.getDefaultValue());

-      ZooCache zc = context.getZooCache();
-      final String zkRoot = context.getZooKeeperRoot();
-
-      // wait until Zookeeper is populated
-      List<String> children = zc.getChildren(zkRoot + Constants.ZTSERVERS);
-      while (children.isEmpty()) {
-        Thread.sleep(100);
-        children = zc.getChildren(zkRoot + Constants.ZTSERVERS);
-      }
-
-      ArrayList<ThriftTransportKey> servers = new ArrayList<>();
-      while (servers.isEmpty()) {
-        for (String tserver : children) {
-          String path = zkRoot + Constants.ZTSERVERS + "/" + tserver;
-          byte[] data = zc.getLockData(path);
-          if (data != null) {
-            String strData = new String(data, UTF_8);
-            if (!strData.equals("master"))
-              servers.add(new ThriftTransportKey(
-                  new ServerServices(strData).getAddress(Service.TSERV_CLIENT), rpcTimeout,
-                  context));
-          }
-        }
-        ATTEMPTS++;
-        if (!servers.isEmpty())
-          break;
-        else {
-          if (ATTEMPTS < 100) {
-            log.warn("Making another attempt to add ThriftTransportKey servers");
-            Thread.sleep(100);
-          } else {
-            log.error("Failed to add ThriftTransportKey servers - Failing TransportCachingIT test");
-            org.junit.Assert
-                .fail("Failed to add ThriftTransportKey servers - Failing TransportCachingIT test");
-          }
-        }
-      }
+      List<ThriftTransportKey> servers = Lists.transform(tservers,
+          serverStr -> new ThriftTransportKey(HostAndPort.fromString(serverStr), rpcTimeout,
+              context));

       ThriftTransportPool pool = ThriftTransportPool.getInstance();
       TTransport first = null;
@@ -148,7 +114,7 @@ public class TransportCachingIT extends AccumuloClusterHarness {
       while (fourth == null) {
         try {
           // Get a non-cached transport
-          fourth = pool.getAnyTransport(servers, false).getSecond();
+          fourth = pool.getAnyTransport(servers.subList(0, 1), false).getSecond();
         } catch (TTransportException e) {
           log.warn("Failed obtain 4th transport to {}", servers);
         }
@@ -158,7 +124,7 @@ public class TransportCachingIT extends AccumuloClusterHarness {
       while (fifth == null) {
         try {
           // Get a cached transport
-          fifth = pool.getAnyTransport(servers, true).getSecond();
+          fifth = pool.getAnyTransport(servers.subList(0, 1), true).getSecond();
         } catch (TTransportException e) {
           log.warn("Failed obtain 5th transport to {}", servers);
         }

@keith-turner If you believe your fix is good, would you mind committing the change, or creating a PR to make it more easy to review?

@keith-turner If you believe your fix is good, would you mind committing the change, or creating a PR to make it more easy to review?

Sure I can do that tomorrow, the patch is a bit unwieldy.

@ctubbsii I opened #1552


Change celeborn-client-spark dep scope to provided

What changes were proposed in this pull request?
Change celeborn-client-spark-3_2.12 scope from compile to provided.
It's likely that the user put the Celeborn client jar into SPAKR_HOME/jars when he/she uses Celeborn as Remote Shuffle Service, and the Gluten jar should not include duplicate Celeborn classes. Further, it's likely that the user maintains internal versions of Celeborn/Gluten, separating should be good than bundling them into one.
BTW, it's not a good practice to include everything in a fat jar without proper class relocation.
How was this patch tested?
manual tests.

cc @kerwin-zk @waitinfuture


Generation of Duplicate Identifier

This was generated for me:
    @OneToMany(type=>product_detail, product_details=>product_details.fproduct_seq_id)
    product_details:product_detail[];

    @OneToMany(type=>product_detail, product_details=>product_details.fproduct_consist_seq_id)
    product_details:product_detail[];

which gave me the error: duplicate identifier 'product_details'
Due to more than one OneToMany Relations the names do not differ and Typescript gives an Error.
I found that the Error was in the MysqlDriver.ts:301, when the name is created:
col.name = ownerEntity.EntityName.toLowerCase() + 's'

This should be chosen different.
Thanks for any help.
More Infos:
TypeORM: 0.1.6
TypeORM-Model-Generator: 0.2.2
NPM Version: 5.5.1
Node Version: 9.2.0
Used Database: MySQL
Used Mysql-Package:  2.15.0

Fixed

actually, 10 references where not enough for me. i needed 14...
Maybe put 20 instead of 10 just to be sure ?
But thank you so much for fixing it.


Improved vcom regex parsing, added support for vlog linting

Added support for vlog compiler linting
Improved vcom regex parsing, to derive column position from double quoted text via 'near' field
Added UnitTests to verify vcom/vlog regex parsing
Updated readme

This looks like a great improvement, thanks!
Can you edit messages.json to add the message for the new version?
Do you think this plugin should be renamed to reflect the additional functionality?

Didn't know about the messages.json file. Updated it without increasing the version (moved tag).
Regarding renaming the plugin - totally agree with that (although I don't know, whether it can cause any incompatibility issues). Initially I was thinking about creating a separate plugin named something like SublimeLinter-modelsim (just to avoid this vcom naming confusion), but decided to pull changes into this project.

Sorry about the typos, fixed it (also slightly modified README.md). I am a complete newbie to sublimetext packages development. At least for the python code itself (which I don't really know) you can run it and see if it works. But I don't know, if there are any ways of validating/testing the entire package for any issues.

No problem, this is my first one of these packages as well. I'll go ahead and merge.


Contrast ratio seems wrong

It seems that Color.js, when calculating relative luminance, uses the Y coordinate of the XYZ color space, but that XYZ color space uses D50.
> let color = new Color("#343e58").contrast("#ca6c87");
3.095

This doesn't seem to match every other implementation. For instance, D3 has a whole page explaining contrast and goes through all the math: https://observablehq.com/@mbostock/wcag-contrast-ratio. They get 3.039602551762186.
This seems to align closer to an XYZ color space using D65. I made an adjustment to my local library to use D65, and get something that aligns much better with every other WCAG contrast ration implementation.
>>> Color("#343e58").contrast("#ca6c87")
3.039797627037577

Is this a mistake/bug in color.js?  Or is this a new direction that is purposefully being taken? It is very unclear as it states it calculates WCAG 2.1 color contrast, but it seems it actually does not. Or maybe I'm just confused?

I think it's a bug, thank you for spotting that! PR welcome!

Yes, WCAG 2.0 is sRGB only and thus (by inference) is adapted to D65.


Conflict between FILTERED_TABLES and refresh request

Situation
Users can specify that only selected tables are mapped by the Virtual Schema via the parameter FILTERED_TABLES.
In the refresh request of the VS API tables can also be selected. Currently the two mechanisms seem to clash in the BaseMetadataReader.
Acceptance Criteria

New Unit test proves that table filter via parameter and in refresh request work together.

This bug affects all dialects (I reproduced it with Exasol dialect).
It should be fixed in virtual-schema-common-jdbc module.
Created an issue: https://github.com/exasol/virtual-schema-common-jdbc/issues/13

Bug is fixed. The next release of this project will provide fixed functionality.


Remove caching for CapacityBaseRandomPolicy

What changes are proposed in this pull request?
This effectively reverts  #15423 (https://github.com/Alluxio/alluxio/commit/3b1bdb3b80e56d3528bc6f41a923da6e28e808ee)
For the problem that #15423 was trying to solve, a new policy is proposed in #16237.
Why are the changes needed?

local cache is useless because BlockLocationPolicy will be created every time, because it is not a singleton
local cache can only be useful to limit replica in each client, but useless for a cluster with many client (eg. presto workers ) because each client has different cache result.
additionally, in general, block location policies should not be concerned about block replication, as master will take care of that.

Does this PR introduce any user facing changes?
Two property keys are deprecated: alluxio.user.ufs.block.read.location.policy.cache.size and alluxio.user.ufs.block.read.location.policy.cache.expiration.time, as the cache is removed from the policy.

@dengweisysu @maobaolong as per our discussion offline, we want a separate CapacityBaseHashPolicy, and the CapacityBaseRandomPolicy will continue to be a random policy, but with the caching issue fixed.

I couldn't agree more. should I close the PR first?

@dengweisysu @maobaolong as per our discussion offline, we want a separate CapacityBaseHashPolicy, and the CapacityBaseRandomPolicy will continue to be a random policy, but with the caching issue fixed.

I couldn't agree more. should I close the PR first? @dbw9580

Can you please make this policy a truly random one, as opposed to #16237 ? i.e. make randomInCapacity pick a random worker instead of computing the hash of the block id and pick one based on that.

@dbw9580 @maobaolong is it necessary to keep the local cache logic ? I prefer to remove and rollback to the first version of CapacityBaseRandomPolicy to keep it simple. Local cache solution only solve little problem  and make the the logic much more complicated.

@dengweisysu Yes, I just reverted 3b1bdb3b

alluxio-bot, merge this please


simple script to promote to release

Done in https://github.com/newrelic/fluent-bit-package/pull/114


Improve calculation of Cookiecutter's reported coverage stats

The coverage stats from coveralls seem way off. For example, this is a readme change that incorrectly reports "Coverage decreased (-1.49%)": https://github.com/audreyr/cookiecutter/pull/70
Things to try:

Instead of coveralls (see requirements/base_test.txt), try python-coveralls
Hunt down the bug in coveralls or python-coveralls if switching doesn't solve the problem.

The coverage stats from make coverage are different from those reported by coveralls. They're only calculated with the current active Python version.
Try:

combine coverage reports from 2.6, 2.7, 3.3 into one with the coverage combine command

coveralls is providing broken images in GitHub. @michaeljoseph, why don't we just switch to codecov?

@pydanny :point_right: #369


Injection "Symbol(VBadge)" not found.

Environment

Operating System: Darwin
Node Version:     v20.8.1
Nuxt Version:     3.7.4
CLI Version:      3.9.0
Nitro Version:    2.6.3
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      modules, auth, typescript, gtag, morpheme, devtools, css, imports, colorMode, vite, experimental, tailwindcss, build
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://stackblitz.com/edit/gitsindonesia-ui-component-ac3exz?file=pages%2Findex.vue

Describe the bug
hi @gravitano ,
its a minor bug,
when tester check on CHROME Inspect.
it was print
[Vue warn]: injection "Symbol(VBadge)" not found.
  at <VBadge class="w-fit" color="primary" small="" >
  at <BaseTransition appear=false persisted=false mode=undefined  ... >
  at <Transition name="nav-drawer-right-transition" >

Additional context
No response
Logs
[Vue warn]: injection "Symbol(VBadge)" not found.
  at <VBadge class="w-fit" color="primary" small="" >
  at <BaseTransition appear=false persisted=false mode=undefined  ... >
  at <Transition name="nav-drawer-right-transition" >

You can ignore it is just warning. Re-open if this issue breaking your app.


SEO Solution

Whats your SEO Solution for Single-Page Architecture guys?

I think Google runs Javascript now. Aside from that we don't really have one.  I guess we could put some keywords into the base HTML?

Google still cannot compile JavaScript sources for your html source. But opendota.com's old indexes still in Google Store. And opendota still usin' same url's. But this cannot work for soon. Probably opendota's indexes will be erased.
u can check with "fetch as google"
google bots think like "oh all urls has same duplicate content!" (404 redirection trick page or your index.html whatever)
"oh that site has just a two different page :/"
u know. :(

7 on google for "dota 2 stats":
https://www.google.com/#q=dota+2+stats
2 on google for "dota 2 data":
https://www.google.com/#q=dota+2+data
I think this could be improved.  I've tended to avoid the term "stats" in favor of "data" since we are not statisticians, but maybe in the interest of SEO we can put some keywords in the meta tags/title?

In addition, searches for player profiles like "Arteezy opendota" should come back with the correct result.  This is a combination of rendering the official player name into the page, and putting it into the title: #422

u guys still manipulating dom with js.
google cannot handle for seo. :/
i think u guys need pre-render solution like prerender.io or example phantomjs seo server

Google does run the JS--we know this because the result contains strings such as "Login for replay parsing" that aren't present in the HTML template.

are you sure?
u must check with "fetch as google" and
i think "opendota" still have old indexes.

Yeah, some of the results are outdated.  Is there a method to force google to rebuild its index?

clean all indexes and wait google bots :( "very risky"
cause i didnt believe "google does run js" thing.
u must look with "fetch as google"

Looks like the JS runs fine, so the homepage is okay, but pages that aren't the home page may not be indexed properly.  Right we we utilize the GitHub pages 404 custom page to redirect the user to index.html, and store the path in local storage so we can put it back after the redirect.

if google can handle js changes 404 redirect trick not a problem.

We seem to have improved to number 2 for "dota 2 stats" and number 1 for "dota 2 data" so seems like Google indexing is working fine.
What doesn't work very well yet is trying to google search for particular players/tournaments/heroes/etc.
https://www.google.com/#q=dendi+opendota doesn't work very well, for example

While it would be nice to be able to direct link to a player page from google, the first result is already the opendota home page, which has a handy search box.  Dendi is only a few keystrokes away.  If there's interest or demand for this, we can look at it again.


Actions disabled after Github sync

Describe the bug
I'm pulling tokens from a repo and even though I can see the tokens structure I can't edit them. All actions are greyed out.
I've write permissions on the repo and can commit changes to it.
The access token credentials are set according to the docs.
What am I missing?
To Reproduce

Right click on a token
click + button

Expected behavior
I should be able to edit the tokens
Thanks for the help!

Do I need the Pro version to use the GitHub sync feature? The person owning the repo uses a Pro Plan. Could it be that using Pro features is blocking all the actions for me?

Do I need the Pro version to use the GitHub sync feature? The person owning the repo uses a Pro Plan. Could it be that using Pro features is blocking all the actions for me?

Sorry for getting back so late, but yes - you do need Pro if you want to sync to multiple file sync.
If you want to use Free you can use Single-file sync, by just adding .json to the end of filePath which syncs all tokens to a single file.

Thanks. Np. Got my license already
From: Jan Six @.>
Date: Tuesday, 4 October 2022 at 22:38
To: six7/figma-tokens @.>
Cc: Pablo Romero Jaren @.>, Author @.>
Subject: Re: [six7/figma-tokens] Actions disabled after Github sync (Issue #1260)
CAUTION - EXTERNAL EMAIL : Report suspicious emails using 'Report Phish' button ↑
Do I need the Pro version to use the GitHub sync feature? The person owning the repo uses a Pro Plan. Could it be that using Pro features is blocking all the actions for me?
Sorry for getting back so late, but yes - you do need Pro if you want to sync to multiple file sync.
If you want to use Free you can use Single-file sync, by just adding .json to the end of filePath which syncs all tokens to a single file.
—
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/six7/figma-tokens/issues/1260*issuecomment-1267550035__;Iw!!OJgLNWf5u1JzCMvA!UYrg9p5H-31Yc1RJ6m-VHEFHQeXFJvLXDAfpesuwRwEZLm66c7BRtTlsOxd_y5ZEOt2gHaaufB94uHdvbNiriybteBaw3FhdB8np$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A23ZPDF4BMCYTKJX4GWYUKLWBSIU3ANCNFSM6AAAAAAQGPV3XM__;!!OJgLNWf5u1JzCMvA!UYrg9p5H-31Yc1RJ6m-VHEFHQeXFJvLXDAfpesuwRwEZLm66c7BRtTlsOxd_y5ZEOt2gHaaufB94uHdvbNiriybteBaw3LtGwrck$.
You are receiving this because you authored the thread.Message ID: @.***>
This email and any attached files is for the attention of the intended recipient. The email and any attachments may contain material that is confidential, privileged and/or attorney work product. If you are not the intended recipient: (a) contact the sender immediately and delete from your system all copies of the email including any attachments. (b) do not read, print, retain, copy or disseminate this message or any part of it. Any such unauthorized use may be unlawful. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore cannot accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. The protection of your personal data matters to us. Please find relevant information relating to Art. 13 GDPR on https://www.electroluxgroup.com/privacy/en/. The Electrolux Group www.electrolux.com
Classified as Internal


Yolov5 sparseml Transfer learning

Installation on google collab is failing to install some libraries and Spars transfer learning is not working
Expected behavior
I followed the instructions from the following page
At first, I used the pip command recommended in the installation pip install sparseml[torchvision]
when that failed I tried out the following command
pip install sparseml[dev,torchvision,deepsparse,onnxruntime,transformers,yolov5]
I took the command from the following page
still didn't work
Environment
Include all relevant environmental information:
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal
Python 3.10.11
To Reproduce
Exact steps to reproduce the behavior:
create a new collab. install roboflow using the following command
!pip install roboflow
install sparaseml using the following command:
!pip install sparseml[dev,torchvision,deepsparse,onnxruntime,transformers,yolov5]
run the following commands
!sparseml.yolov5.train --help #this will download additional libraries
!sparseml.yolov5.train
--cfg /content/yolov5s.yaml
--weights zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned75_quant-none?recipe_type=transfer_learn
--recipe zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned75_quant-none?recipe_type=transfer_learn
--data /content/car_plate_numbers_take2-1/data.yaml
--patience 0
--hyp hyps/hyp.finetune.yaml
Errors
train: weights=zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned75_quant-none?recipe_type=transfer_learn, cfg=/content/yolov5s.yaml, teacher_weights=, data=/content/car_plate_numbers_take2-1/data.yaml, data_path=, hyp=hyps/hyp.finetune.yaml, epochs=300, batch_size=16, gradient_accum_steps=-1, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, bucket=, cache=None, image_weights=False, device=, multi_scale=False, single_cls=False, optimizer=SGD, sync_bn=False, workers=8, project=/content/yolov5_runs/train, name=exp, exist_ok=False, quad=False, cos_lr=False, label_smoothing=0.0, patience=0, freeze=[0], save_period=-1, seed=0, local_rank=-1, recipe=zoo:cv/detection/yolov5-s/pytorch/ultralytics/coco/pruned75_quant-none?recipe_type=transfer_learn, recipe_args=None, entity=None, upload_dataset=False, bbox_interval=-1, artifact_alias=latest
github: skipping check (not a git repository), for updates see https://github.com/ultralytics/yolov5
YOLOv5 🚀 2023-5-22 Python-3.10.11 torch-1.12.0+cu102 CUDA:0 (Tesla T4, 15102MiB)
hyperparameters: lr0=0.0032, lrf=0.12, momentum=0.843, weight_decay=0.00036, warmup_epochs=2.0, warmup_momentum=0.5, warmup_bias_lr=0.05, box=0.0296, cls=0.243, cls_pw=0.631, obj=0.301, obj_pw=0.911, iou_t=0.2, anchor_t=2.91, fl_gamma=0.0, hsv_h=0.0138, hsv_s=0.664, hsv_v=0.464, degrees=0.373, translate=0.245, scale=0.898, shear=0.602, perspective=0.0, flipud=0.00856, fliplr=0.5, mosaic=1.0, mixup=0.243, copy_paste=0.0
ClearML: run 'pip install clearml' to automatically track, visualize and remotely train YOLOv5 🚀 in ClearML
Comet: run 'pip install comet_ml' to automatically track and visualize YOLOv5 🚀 runs in Comet
TensorBoard: Start with 'tensorboard --logdir /content/yolov5_runs/train', view at http://localhost:6006/
2023-05-22 19:10:34.180583: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
ImportError: numpy.core._multiarray_umath failed to import
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
ImportError: numpy.core._multiarray_umath failed to import
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
ImportError: numpy.core._multiarray_umath failed to import
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
ImportError: numpy.core.umath failed to import
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 42, in tf
from tensorboard.compat import notf  # noqa: F401
ImportError: cannot import name 'notf' from 'tensorboard.compat' (/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/sparseml.yolov5.train", line 8, in
sys.exit(train())
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 345, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/sparseml/yolov5/scripts.py", line 41, in train
train_run(**vars(opt))
File "/usr/local/lib/python3.10/dist-packages/yolov5/train.py", line 730, in run
main(opt)
File "/usr/local/lib/python3.10/dist-packages/yolov5/train.py", line 630, in main
train(opt.hyp, opt, device, callbacks)
File "/usr/local/lib/python3.10/dist-packages/yolov5/train.py", line 96, in train
loggers = Loggers(save_dir, weights, opt, hyp, LOGGER)  # loggers instance
File "/usr/local/lib/python3.10/dist-packages/yolov5/utils/loggers/init.py", line 104, in init
self.tb = SummaryWriter(str(s))
File "/usr/local/lib/python3.10/dist-packages/torch/utils/tensorboard/writer.py", line 246, in init
self._get_file_writer()
File "/usr/local/lib/python3.10/dist-packages/torch/utils/tensorboard/writer.py", line 276, in _get_file_writer
self.file_writer = FileWriter(
File "/usr/local/lib/python3.10/dist-packages/torch/utils/tensorboard/writer.py", line 75, in init
self.event_writer = EventFileWriter(
File "/usr/local/lib/python3.10/dist-packages/tensorboard/summary/writer/event_file_writer.py", line 72, in init
tf.io.gfile.makedirs(logdir)
File "/usr/local/lib/python3.10/dist-packages/tensorboard/lazy.py", line 65, in getattr
return getattr(load_once(self), attr_name)
File "/usr/local/lib/python3.10/dist-packages/tensorboard/lazy.py", line 97, in wrapper
cache[arg] = f(arg)
File "/usr/local/lib/python3.10/dist-packages/tensorboard/lazy.py", line 50, in load_once
module = load_fn()
File "/usr/local/lib/python3.10/dist-packages/tensorboard/compat/init.py", line 45, in tf
import tensorflow
File "/usr/local/lib/python3.10/dist-packages/tensorflow/init.py", line 37, in
from tensorflow.python.tools import module_util as _module_util
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/init.py", line 42, in
from tensorflow.python import data
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/init.py", line 21, in
from tensorflow.python.data import experimental
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/experimental/init.py", line 97, in
from tensorflow.python.data.experimental import service
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/experimental/service/init.py", line 419, in
from tensorflow.python.data.experimental.ops.data_service_ops import distribute
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/experimental/ops/data_service_ops.py", line 22, in
from tensorflow.python.data.experimental.ops import compression_ops
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/experimental/ops/compression_ops.py", line 16, in
from tensorflow.python.data.util import structure
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/util/structure.py", line 22, in
from tensorflow.python.data.util import nest
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/data/util/nest.py", line 34, in
from tensorflow.python.framework import sparse_tensor as _sparse_tensor
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/sparse_tensor.py", line 25, in
from tensorflow.python.framework import constant_op
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/constant_op.py", line 25, in
from tensorflow.python.eager import execute
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/eager/execute.py", line 21, in
from tensorflow.python.framework import dtypes
File "/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/dtypes.py", line 37, in
_np_bfloat16 = _pywrap_bfloat16.TF_bfloat16_type()
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle
Additional context
I can attach the collab file and my dataset if needed. note that I tried first to work with yolov8 but so far I was not able to install it successfully and Im waiting a bit until you add a clear path for transfer learning procedure on custom data.

Can you try uninstalling tensorflow before you install sparseml
pip uninstall tensorflow -y

This worked like a charm. I will close the Issue now.
however, I still have some questions about yolov8 I will follow up with those questions shortly.

Thank you for letting us know @gonkilluaHxH!
Best wishes!
Jeannie / Neural Magic


editor: visual refinements to paragraph spacing and checkboxes

nit: love the new design of the checkbox, but i think  it would look even better if you add more padding between the check and container rect.


how to properly sync camera of two viewers?

hi,
Saying I have two viewers and I want to sync their cameras.
I am trying to use stage.viewerControls.signals.changed to detect the camera changed from one viewer and then update the camera for another. However, this introduced the ping-pong issue, the "another" will cause camera changed in the "source" viewer.
var m = this.stage.viewerControls.getOrientation();
another.stage.viewerControls.orient(m) # will trigger updating `this.stage` camera

thanks.

hmm, maybe we can add a 'silent: boolean' param to the methods?

Let me add a bit more in the context of nglview:
If I have two views
view = nv.demo()
view2 = nv.demo()

I can easily sync the camera by checking if the view is mouseovered or not. Something like
https://github.com/arose/nglview/blob/43846417e4acddf11c7e603f8cb2386a720ee6d1/nglview/sandbox/grid_view.py#L86-L96
def _sync_camera_pair(v0, v1):
    def on_change_camera(change):
        new = change['new']
        owner = change['owner']
        if owner == v0 and v0._ngl_focused:
            v1.control.orient(v0._camera_orientation)
        elif owner == v1 and v1._ngl_focused:
            v0.control.orient(v1._camera_orientation)

    v0.observe(on_change_camera, '_camera_orientation')
    v1.observe(on_change_camera, '_camera_orientation')

If I have only one view but display twice
view = nv.demo()
# cell 1
view

# cell 2
view

I don't know how to sync the camera properly (described in my 1st post).

ha, I resolved the issue. Here is the code example in nglview:
        this.stage.viewerControls.signals.changed.add(function() {
            var that = this;
            this.serialize_camera_orientation();
            var m = this.stage.viewerControls.getOrientation();
            if (that._synced_model_ids.length > 0 && that._ngl_focused == 1){
                that._synced_model_ids.forEach(function(mid){
                    that.model.widget_manager.get_model(mid).then(function(model){
                        for (var k in model.views){
                            var pview = model.views[k];
                            pview.then(function(view){
                                // not sync with itself
                                if (view != that){
                                    view.stage.viewerControls.orient(m);
                                }
                            })
                        }
                    })
                })
            }
        }.bind(this));

thanks.


[Quest] Execute PlanDefinition extraction to generate CarePlan & Tasks for each visit

Description of feature

$Lite currently uses the StructureMap to create the CarePlan and Task for different Visits
We would like to execute the extraction using the Plandefition and Patient/Group as the parameters. This will depend on the scheduling workflow config and the type of Patient/Group added

Describe the enhancement

[ ] Execute extraction based on the trigger points referenced on the scheduling workflow config.
[ ] The full extraction should also evaluate the condition triggers defined in the PlanDefinition.

Acceptance criteria

[ ] Trggier extractions based on the correct PlanDefinition and Patient/Group resources
[ ] The full extraction should take into account the condition triggers defined on the PlanDefinition.

Depends on

[ ] https://github.com/opensrp/fhircore/issues/1288

Does this still use the StructureMap to conduct the extraction? This is about when that is conducted?

Does this still use the StructureMap to conduct the extraction? This is about when that is conducted?

Yes, the StructureMap still conducts the extraction. Yes, this is about the when the extraction is triggered

resolved in #1305


Integrate Megadraft with draft-js-plugins

We would like to use plugins from draft-js-plugins on Megadraft Editor.
One of the ways to do this is to make Megadraft itself a draft-js-plugin with all of its behaviors. Also, we need to give Megadraft plugins a new name, we could call those atomicBlocks.
The following code illustrates that:
import Editor from 'draft-js-plugins-editor';

class MegadraftEditor extends Component {
  ...
  render() {
    return (
      <div>
        <Toolbar/>
        <Editor
          plugins={[MegadraftPlugin, ...this.props.plugins]}
          .../>
        <Sidebar/>
      </div>
    )
  }
}

We will continue exporting MegadraftEditor as a component. To do so, all the editor methods and utils need to be ported to plugins' format. Megadraft usage should be like that:
import {MegadraftEditor} from Megadraft;

class MyEditor extends Component {
  ...
  render() {
    return <MegadraftEditor
            plugins={[...]}
            atomicBlocks={[...]} />
  }
}

Hey @vierno I have done some work on this over in the following repo https://github.com/vacenz/megadraft-js-plugins
These new plugins are modified mainly from draft-js-plugins and aim to emulate the toolbar and sidebar from Megadraft as well as adding gif, embed, emoji picker and color plugins.
My thoughts are that this could be a basis for a new major version of Megadraft using Draft-js-plugins and including the plugins to be published in this repo.
Last Draft which was my experimental project could become obsolete, as there isn't much point in both of them being so similar.
Just a note, this repo is experimental at this stage and if you want to go in another direction, I can use them for a new major version of Last Draft and will rename the repo to last-draft-js-plugins
Thanks, let me know your thoughts and hopefully we can tweak this repo and get the plugins published and usable in a future version of Megadraft.

Hi @StevenIseki, thanks for giving a shot at this and sorry for the long delay...
I think we want to go in a different direction. We need to support the current Megadraft plugin system or at least make the transition smooth for our users.
Some work was done in the draftjs-plugins-integration branch but it's not complete, some features are broken and a lot of automated tests are failing.

Is there a roadmap available (even if sparse) for how integration with draft-js-plugins is progressing? Or a high level overview of how this integration will be handled, if at all?

Hey @StuartFeldt!
Even though this is a very desirable feature, there's no official schedule. I added a rough description of the required steps and the current status.
Please let us know if this helps!

what is the status of this?


Github action to bundle app and upload installer for Mac, Windows & Linux

Hi Russell, I've been tinkering with github actions to automatically build briefcase apps. I think it might be nice to include an example of this type of action in the traveltips repository to serve as a how-to guide for other people.

Note: The ubuntu build here fails for briefcase versions 0.3.2 and 0.3.3 - I'm not sure why. The bare-bones Toga hello world app doesn't fail in either of these conditions (see here). Presumably traveltips is doing something extra and fancy on top of that?

Ah - I worked out what is going on with the Linux build: pyproject.toml doesn't have any of the Linux system dependencies defined. I would have generated pyproject.toml before the move to Docker-based packaging.

Thanks!
Are you able to download, install, and run traveltips Mac artifact from here?

I ask because I'm getting inconsistent behaviour across platforms and methods of launching the app.
On Mac:

Working: briefcase dev from the source repo
Working: briefcase run from the source repo
Not working for me: downloading the Mac installer uploaded as a github actions artifact is ok, but then I can't unzip it to install. Is this happening for you too?

On Windows:

Working: briefcase dev from the source repo.
Not working: briefcase run from the source repo. It says [traveltips] Starting app... and then just returns you to the terminal. There's no error message, and no window launched.
Not working: downloading the Windows installer uploaded as a github actions artifact is ok, and it also seems to go through the installation wizard just fine too. But when you actually try to launch the app nothing happens (similar to what I saw with briefcase run earlier)

I don't have a linux machine handy to test this out on.

I ask because I'm getting inconsistent behaviour across platforms and methods of launching the app.
On Mac:

Working: briefcase dev from the source repo
Working: briefcase run from the source repo
Not working for me: downloading the Mac installer uploaded as a github actions artifact is ok, but then I can't unzip it to install. Is this happening for you too?

On Windows:

Working: briefcase dev from the source repo.
Not working: briefcase run from the source repo. It says [traveltips] Starting app... and then just returns you to the terminal. There's no error message, and no window launched.
Not working: downloading the Windows installer uploaded as a github actions artifact is ok, and it also seems to go through the installation wizard just fine too. But when you actually try to launch the app nothing happens (similar to what I saw with briefcase run earlier)

I don't have a linux machine handy to test this out on.


[BUG]: tests/test_dfp.py intermittently Segmentation faults

Version
23.07
Which installation method(s) does this occur on?
Source
Describe the bug.
============================================================================ test session starts ============================================================================
platform linux -- Python 3.10.10, pytest-7.3.1, pluggy-1.0.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/dagardner/work/morpheus
configfile: pyproject.toml
testpaths: tests
plugins: Faker-12.3.0, cov-4.0.0, anyio-3.6.2, benchmark-4.0.0, kafka-0.5.1
collected 1105 items

tests/test_abp.py ....                                                                                [  0%]
tests/test_abp_kafka.py ss                                                                                [  0%]
tests/test_add_classifications_stage.py ...                                                                                [  0%]
tests/test_add_classifications_stage_pipe.py ....                                                                                [  1%]
tests/test_add_scores_stage.py ...                                                                                [  1%]
tests/test_add_scores_stage_pipe.py ..........................................                                                                                [  5%]
tests/test_appshield_source_stage.py ................                                                                                [  7%]
tests/test_cli.py ..............                                                                                [  8%]
tests/test_column_info.py .........                                                                                [  9%]
tests/test_concat_df.py ...                                                                                [  9%]
tests/test_config.py .........                                                                                [ 10%]
tests/test_conftest.py ........................................................                                                                                [ 15%]
tests/test_deserialize_stage_pipe.py ..........                                                                                [ 16%]
tests/test_dfp.py Segmentation fault

Minimum reproducible example
pytest --run_slow

Relevant log output
No response
Full env printout
No response
Other/Misc.
No response
Code of Conduct

[X] I agree to follow Morpheus' Code of Conduct
[X] I have searched the open bugs and have found no duplicates for this bug report

Its failing in tests/test_dfp.py::test_dfp_roleg[use_python], but only when run as part of the larger tests. likely its a function of running after tests/test_deserialize_stage_pipe.py::test_deserialize_multi_segment_pipe

Appears to be a cupy deallocation error occurring in the thread for the TimeSeriesStage. Possibly due to this stage having both an on_complete and a flatten opperator

Error is happening in mrc::pymrc::PyFuncWrapper::~PyFuncWrapper.


Problem installing on Mac

Atom 1.0.19,
OS X 10.10.5 - XCode installed, command line tools installed
hopefully something easy for you to identify.  Thanks in advance.
nstalling<EMAIL_ADDRESS>failed.Hide output…

><EMAIL_ADDRESS>install /private/var/folders/ty/_876170j77s6vnym2hndcyc40000gn/T/apm-install-dir-11595-5134-1t1uu77/node_modules/iex/node_modules/child_pty
> node-gyp rebuild

  CXX(target) Release/obj.target/exechelper/src/exechelper.o
  LINK(target) Release/exechelper

><EMAIL_ADDRESS>install /private/var/folders/ty/_876170j77s6vnym2hndcyc40000gn/T/apm-install-dir-11595-5134-1t1uu77/node_modules/iex/node_modules/pty.js
> node-gyp rebuild

  CXX(target) Release/obj.target/pty/src/unix/pty.o
  SOLINK_MODULE(target) Release/pty.node

ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/exechelper] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/ty/_876170j77s6vnym2hndcyc40000gn/T/apm-install-dir-11595-5134-1t1uu77/node_modules/iex/node_modules/child_pty
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/pty.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/ty/_876170j77s6vnym2hndcyc40000gn/T/apm-install-dir-11595-5134-1t1uu77/node_modules/iex/node_modules/pty.js
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/lynn/.atom/.apm/.apmrc" "--userconfig" "/Users/lynn/.atom/.apmrc" "install" "/private/var/folders/ty/_876170j77s6vnym2hndcyc40000gn/T/d-11595-5134-1u98n7z/package.tgz" "--target=0.30.7" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the child_pty package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls child_pty
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/ty/_876170j77s6vnym2hndcyc40000gn/T/apm-install-dir-11595-5134-1t1uu77/npm-debug.log

Having the same issue. Is there a resolution for this?

Sorry, just saw this. child_pty causing problems again. I will take a look.

Hi!
I have this problem too, any posible solution?
Thanks!


Missing DeleteSite on Porcelain Netlify client

I'm using Netlify client from porcelain package for site operations (create, deploy..).
I want to implement site delete action (using site id), but I'm getting error type *porcelain.Netlify has no field or method DeleteSite.
I tried adding DeleteSite method to site.go in porcelain package (using GetSite from Netlify client as a pattern) just to see would it work, and it did, site got deleted.
Are you planning on adding this method to Netlify client?

I did manage to make it work by calling Operations.DeleteSite on Netlify client, but I also had to import plumbing operations package in order to get NewDeleteSiteParams. Site gets deleted, but this just doesn't look like a preferred way of doing it.
import(
    netlify "github.com/netlify/open-api/go/porcelain"
    netlifyOperations "github.com/netlify/open-api/go/plumbing/operations"
)

func deleteNetlifySite(siteID string) {

    ...

    client := netlify.New(transport, strfmt.Default)
    resp, err := client.Operations.DeleteSite(netlifyOperations.NewDeleteSiteParams().WithSiteID(siteID), authInfo)
}

@Lanchi, sorry for the late response!
I believe this should be fixed with the latest version of the Go client. Could you please confirm?


Generate print128 constants by compiler

I will take this std::showbase flag in mind. I am sorry, I forgot, to commit the fix of the old implementation of 128 print, which was quiet obvious.

There are a lot of corner cases to handle; for instance:
std::cout << std::setfill('0') << std::setw(24) << uint128{};

should print 24 zeroes, and so on. I think the improvements here may be almost infinite.

Regarding 0x vs. 0X - I guess there is a bug in Boost. I'll check whether they have it or not.

Reported: https://github.com/boostorg/multiprecision/issues/129


feat(vue):test

Before submitting a pull request, please make sure the following is done...

[ ] Ensure the pull request title and commit message follow the Commit Specific in English.
[ ] Fork the repo and create your branch from master or formily_next.
[ ] If you've added code that should be tested, add tests!
[ ] If you've changed APIs, update the documentation.
[ ] Ensure the test suite passes (npm test).
[ ] Make sure your code lints (npm run lint) - we've done our best to make sure these rules match our internal linting guidelines.

Please do not delete the above content

What have you changed?

Codecov Report

:exclamation: No coverage uploaded for pull request base (formily_next@c4cddc6). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             formily_next       #2   +/-   ##
===============================================
  Coverage                ?   91.77%
===============================================
  Files                   ?      135
  Lines                   ?     5995
  Branches                ?     1496
===============================================
  Hits                    ?     5502
  Misses                  ?      489
  Partials                ?        4

Continue to review full report at Codecov.

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


xxx pressed. Count: 1 // Unsuccessful status code

Getting subj after much trouble with node installation. Does it support https? Example of button config:

"name": "Camera",
"address": "84:D6:D0:53:7D:28",
"timeout": "60000",
"protocol": "udp",
"url": "https://domain:8123/api/services/script",
"method": "POST",
"headers": {"x-ha-access": "pw"},
"json": true,
"body": {"entity_id": "script.onvifer"}

Just an assumption: 8123 looks like Hass, if you have a self singed certificate you could get problems. You should see them in the logs though

It's been a while J
In the meantime I found out that  I can still do shell scripts with curl, proceeded that way, faced some sort of commotion with NPM and deleted it for good J

I am having a similar (perhaps the same) problem. I'm using Let's Encrypt certs; are those also going to cause problems so I can't use this?

If the Let's Encrypt certificate is valid and you are using the correct hostname there should be a problem
@vadimbz You could close the issue if it's solved

Well, I'm switching to a "real" certificate now so we'll see if that helps once I get everything set up.

did anybody figure out how to get this working? i just installed a lets encrypt ssl cert and i'm getting errors saying not authenticated

Also! For the original question-- to run a script, the config.json entry should look like this:
"name": "Camera",
"address": "84:D6:D0:53:7D:28",
"timeout": "60000",
"protocol": "udp",
"url": "https://domain:8123/api/services/script/onvifer",
"method": "POST",
"headers": {"x-ha-access": "pw"},

No need to send anything in the body unless you are passing info to your script. I now have several buttons configured this way, using and let's encrypt SSL certificate.


Updated to Xcode 12.5, to Swift 5.0 and minimum iOS to 11.3

Updated to Xcode 12.5.* project settings
Updated minimum Swift version to 5.0
Updated iOS deployment target to 11.3
This fixes all warnings related to project settings and recommendations

Not valid for now.


[v1.14 / v1.15] renovate: re-enable updates for complexity image

https://github.com/cilium/cilium/pull/36135/commits/375d0acce75e2b9bfcfec40ebe40facb696c8090 disabled the updates for the complexity-test LVH image on v1.14 and v1.15. Once https://github.com/cilium/little-vm-helper-images/issues/674 is resolved, we should re-enable the renovate updates.

Updates to LVH images are Currently blocked by https://github.com/cilium/little-vm-helper-images/issues/778, so working on that one first.

Of note - we recently bumped the LLVM version for Cilium v1.17. So I think now we need LVH images with

LLVM 10: Cilium v1.14, v1.15
LLVM 17: Cilium v1.16
LLVM 18: Cilium v1.17

The linked issue states:

Build Cilium minor-specific variants of complexity-test, which pull in the LLVM version of that minor release.

Given the LLVM<->Cilium list above, it seems to me that we could also have one complexity-test image per LLVM version not necessarily per Cilium version, i.e. 3 images instead of 4? Or better play it safe and always have one complexity-test image per Cilium version?

Given the LLVM<->Cilium list above, it seems to me that we could also have one complexity-test image per LLVM version not necessarily per Cilium version, i.e. 3 images instead of 4? Or better play it safe and always have one complexity-test image per Cilium version?

Ack that's the trade-off I had in my mind as well. I think either one is fair - the needed infrastructure work should roughly be the same? So we can probably start with the "one image per LLVM version" approach. And maintain some sort of mapping in the lvh repo which cilium image should be used to pull those LLVM versions from.
Also given that v1.14 is EOL fairly soon, I'd not invest too much into that distinction between v1.14 and v1.15.

Given the LLVM<->Cilium list above, it seems to me that we could also have one complexity-test image per LLVM version not necessarily per Cilium version, i.e. 3 images instead of 4? Or better play it safe and always have one complexity-test image per Cilium version?

Ack that's the trade-off I had in my mind as well. I think either one is fair - the needed infrastructure work should roughly be the same? So we can probably start with the "one image per LLVM version" approach. And maintain some sort of mapping in the lvh repo which cilium image should be used to pull those LLVM versions from.

Yeah, I think the infrastructure work would be roughly the same so it won't make a huge difference which approach we take from a image build perspective.

Also given that v1.14 is EOL fairly soon, I'd not invest too much into that distinction between v1.14 and v1.15.

👍

This might be relevant: https://github.com/cilium/cilium/blob/5c08f9593c3e1c6f2012087a67ff1e2f3e4b1e87/.github/workflows/tests-datapath-verifier.yaml#L151-L155
The workflow is overwriting the LLVM version shipped in the image by the one extracted from the cilium-builder image corresponding to the branch the PR was opened against.

So maybe the easier solution is to backport that snippet to v1.14 and v1.15 instead of having to build even more lvh images.

The workflow is overwriting the LLVM version shipped in the image by the one extracted from the cilium-builder image corresponding to the branch the PR was opened against.
For more details, see #31754 which added the above snippet.

uff that completely dropped from my memory - and I even commented on the PR whether the LVH part can go away now ...
yep let's give that a try!

Looks like it's straight forward to backport the commit that introduced the extraction of LLVM from cilium-builder:

v1.14: https://github.com/cilium/cilium/pull/36688
v1.15: https://github.com/cilium/cilium/pull/36689

These PRs also manually bump the complexity-test image to verify that newer images work again.


interactive list

This branch adds another function of deleting all checked todos

That's not how it's working from my end. I fixed all problems from the previous reviewer. On refresh, the checked lists are still checked. I just tried it again to confirm and everything is fine
Sent from Yahoo Mail on Android
On Mon, Jan 30, 2023 at 2:30 PM, Olaoluwa @.***> wrote:
@Olamarx requested changes on this pull request.
Hi @Divinity-dev,
Great work on making the changes requested by a previous reviewer 👏
You've done well implementing some of the requested changes, but there are still some which aren't addressed yet.
Highlights

No Linter errors ✔
Add & Remove works ✔
Clear all works ✔

Required Changes ♻
Check the comments under the review.
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding! 👏 👏 👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.
In src/index.js:

`;
 } else {
   document.getElementById('table').innerHTML += `

 <input type="checkbox" class='todo'>	${items.Description}

 <input type="checkbox" class='todo' data-index = "${z++}" >	${items.Description}

I will advise you to create a separate function for the index so that it can always be reset either upon adding or upon deleting.
At the moment, the index is still yet to be reset.

In src/index.js:

`;
 } else {
   document.getElementById('table').innerHTML += `

 <input type="checkbox" class='todo'>	${items.Description}

 <input type="checkbox" class='todo' data-index = "${z++}" >	${items.Description}

when I mark a task as completed, it does change to true, but when I refresh, even so, it's true, the check box is not displayed as checked, kindly fix that 🙏

This issue still persists as observed by the previous reviewer and I think if you create a function for the index, it can always be reset.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Thank you
Sent from Yahoo Mail on Android
On Mon, Jan 30, 2023 at 4:58 PM, Jos @.***> wrote:
@joskalenda approved this pull request.
| STATUS: APPROVED ✅ |
| Hi @Divinity-dev , 🥰 |
| Your project is complete! There is nothing else to say other than... it's time to merge it  Congratulations! 🎉 |
|  |
Highlights
✅ ... Great functionality
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding! 👏 👏 👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag @.***) in your question so I can receive the notification.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


Why was Anti-teaming removed?

It's a really useful feature, was something wrong with it?

to make mass calculations clean and fast with no kludges and hidden bugs

Anti teaming is really useless (in my opinion). We're better off without it.
Also, I think the food mass grow is unnecessary to have as a feature. Or at least, have it disabled by default. I can't remember the last time I've seen food grow in vanilla agar.io.

Influxx: the food is the main performance bottle-neck in MultiOgar. Actually you can spawn 1000 bots and it will works with no lags with small amount of food on the map.


Configuration of Listen Addresses for Gunicorn instances of API and Airflow

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1121
Originally created by @estrike on 2019-10-11 22:54:41

The meltano ui command has two flags, with associated env vars, to configure the bind host and port for the API service. Currently, they are not used by gunicorn, and gunicorn only listens on <IP_ADDRESS>:5000 for the api, and <IP_ADDRESS>:5010 for airflow. This means they are listening on all addresses, which makes it more difficult to put meltano behind a reverse proxy that could provide TLS or basic authentication services to limit access to the service.
Also, airflow currently does have a way to control it's listening port, but not the address.
I would like to propose that the command line/env variables be used to control this listening information for the api gunicorn, and propose that an env var be added for airflow.

View 1 previous comment from the original issue on GitLab

Closing as no longer relevant on account of the removal of the UI for Meltano 3.0


new generators / AST features

set up a few test projects with this starter to find out how we can optimize the dev workflow further.
How can we increase the productivity with new generators and AST features?

will wait for feature requests


Remove the symlink in the releases sources

On Windows, without activate the developer mode it cannot extract an archive that have symlink inside. So I propose to modify the release workflow to move the content of submodule in place of the symlink.

Discussed in the November 7th teleconference.  @MathiasMagnus will take a look.

I think what could be the reason for that is that we don't recursively clone submodules during the release process and the transitive submodules remain symlinks. We never see those warning, because most devs (I guess much like GitHub Actions) has Developer Mode enabled and thus symlink creation goes without hiccups.
We may patch up the released source tarballs retroactively, but definitely fix for future releases.

Recording a conversation from Slack:
I think the problematic symlinks are unrelated to submodules.  Here is what I see:
$ ls -lR . | grep '^l'
lrwxrwxrwx 1 bashbaug bashbaug 32 Dec 14 13:22 CL -> ../../external/OpenCL-Headers/CL
lrwxrwxrwx 1 bashbaug bashbaug 38 Dec 14 13:22 CL -> ../../external/OpenCL-CLHPP/include/CL
lrwxrwxrwx 1 bashbaug bashbaug 22 Dec 14 13:22 CL -> ../../utils/include/CL

These symlinks come specifically from:
./include/api:
total 0
lrwxrwxrwx 1 bashbaug bashbaug 32 Dec 14 13:22 CL -> ../../external/OpenCL-Headers/CL
./include/cpp:
total 0
lrwxrwxrwx 1 bashbaug bashbaug 38 Dec 14 13:22 CL -> ../../external/OpenCL-CLHPP/include/CL
./include/utils:
total 0
lrwxrwxrwx 1 bashbaug bashbaug 22 Dec 14 13:22 CL -> ../../utils/include/CL

I can't see anywhere that these symlinks are used, and the destination for the last one doesn't even exist, so I think they can just be removed.


Artisanal + Flow Control for Bob's Logistics causes mod loading error on today's release

I am using Angel's + Bob's, along with all the Artisanal reskins. As soon as I updated the Artisanal mods today in Factorio and restarted, it failed to load.
Please let me know if I can provide any better information. You can also ping me on Discord.

It also throws an error for Offshore P.U.M.P.S. and ground water, another mod by @oldskoolmatt

Oh, this is 'cause of an API change. I've passed it on to Matt.


Use a config to control the tokenizing of dot

Verified on CI https://github.com/oap-project/gluten/pull/1496.


False positive aws_security_group_rule

Description
Found missing aws_security_group_rule resource in an aws_default_security_group resource.
# output json
{
  "id": "sgrule-3983462422",
  "type": "aws_security_group_rule"
}

#output console
Scanned states (1)
Scanned resources (62)
Found missing resources:
  aws_security_group_rule:
    - Type: egress, SecurityGroup: sg-0054329bbba384f1a, Protocol: All, Ports: All, Destination: <IP_ADDRESS>/0

Environment

OS: macOS
driftctl version: 0.9.0

How to reproduce
resource "aws_default_security_group" "sg" {
  vpc_id = aws_vpc.vpc.id
  tags   = local.tags
}

resource "aws_security_group_rule" "i_ssh" {
  type              = "ingress"
  from_port         = 22
  to_port           = 22
  protocol          = "tcp"
  cidr_blocks       = ["<IP_ADDRESS>/0"]
  description       = "SSH"
  security_group_id = aws_default_security_group.sg.id
}

resource "aws_security_group_rule" "i_http" {
  type              = "ingress"
  from_port         = 80
  to_port           = 80
  protocol          = "tcp"
  cidr_blocks       = ["<IP_ADDRESS>/0"]
  description       = "HTTP"
  security_group_id = aws_default_security_group.sg.id
}

resource "aws_security_group_rule" "i_https" {
  type              = "ingress"
  from_port         = 443
  to_port           = 443
  protocol          = "tcp"
  cidr_blocks       = ["<IP_ADDRESS>/0"]
  description       = "HTTPS"
  security_group_id = aws_default_security_group.sg.id
}

resource "aws_security_group_rule" "e_all" {
  type              = "egress"
  from_port         = 0
  to_port           = 0
  protocol          = "-1"
  cidr_blocks       = ["<IP_ADDRESS>/0"]
  description       = "All protocols"
  security_group_id = aws_default_security_group.sg.id
}

In the listing of the security group rules, we remove from the list 2 types of rule:
func (s *VPCSecurityGroupRuleSupplier) isDefaultIngress(rule *securityGroupRule) bool {
	return rule.Type == sgRuleTypeIngress &&
		rule.FromPort == 0 &&
		rule.ToPort == 0 &&
		rule.Protocol == "-1" &&
		rule.CidrBlocks == nil &&
		rule.Ipv6CidrBlocks == nil &&
		rule.PrefixListIds == nil &&
		rule.SourceSecurityGroupId == "" &&
		rule.Self
}

func (s *VPCSecurityGroupRuleSupplier) isDefaultEgress(rule *securityGroupRule) bool {
	return rule.Type == sgRuleTypeEgress &&
		rule.FromPort == 0 &&
		rule.ToPort == 0 &&
		rule.Protocol == "-1" &&
		rule.Ipv6CidrBlocks == nil &&
		rule.PrefixListIds == nil &&
		rule.SourceSecurityGroupId == "" &&
		rule.CidrBlocks != nil &&
		len(rule.CidrBlocks) == 1 &&
		(rule.CidrBlocks)[0] == "<IP_ADDRESS>/0"
}

Which means we can't list these rules in the diff at the end.
Possible solution could be to recreate this in a middleware where we iterate through each remote resources and check before removing one default rule if it is managed or not.

LGTM!
❯  DCTL_TF_PROVIDER_VERSION=3.43.0 AWS_PROFILE=cloudskiff-demo driftctl scan
Scanned states (1)
Found missing resources:
  aws_security_group_rule:
    - sgrule-2888168757
        Destination: <IP_ADDRESS>/0, Ports: All, Protocol: All, SecurityGroup: sg-0850e7254f6aa08c1, Type: egress
Found 6 resource(s)
 - 83% coverage
 - 5 covered by IaC
 - 0 not covered by IaC
 - 1 missing on cloud provider
 - 0/5 changed outside of IaC
Scan duration: 15s
Provider version used to scan: 3.43.0. Use --tf-provider-version to use another version.

Hint: use gen-driftignore command to generate a .driftignore file based on your drifts

with 0.12-pre
Found 6 resource(s)
 - 100% coverage
Congrats! Your infrastructure is fully in sync.
Scan duration: 21s
Provider version used to scan: 3.43.0. Use --tf-provider-version to use another version.


Question on behavior

Hi all,
In order to ensure that Cats-Effect 1.0.0 supports ZIO and Monix's Task auto-cancelable behavior, I may have discovered a problem with an assumption about start (fork) that I need to verify with you.
In this piece of code, is the specified release guaranteed to run?
val task = IO(1).bracket(release)(use)

task.fork.flatMap(f => f.cancel *> f.join)

The answer is probably no, but want to double check with you.
Thanks,

Never mind, found out the answer, closing.

@alexandru The release is only guaranteed to run if IO(1) completes successfully. However, it may not complete at all (due to error or defect), or it may not be started (due to interruption).

Thanks @jdegoes, yes, that’s what I thought, wanted to double check.

@alexandru Happy to help, let me know if you need a review or any help on the cats-effect changes.


Implement GrandProductOps for SIMD backend

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#640  👈
#630
#629
#623
#620
#621
#581
#617
#616
#615
#614
#613
#612
#611
#610
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @andrewmilson and the rest of your teammates on  Graphite

Codecov Report
Attention: Patch coverage is 75.00000% with 28 lines in your changes are missing coverage. Please review.

Project coverage is 92.97%. Comparing base (f7837b1) to head (e17f7b8).

Files
Patch %
Lines

...over/src/core/backend/simd/lookups/grandproduct.rs
70.88%
22 Missing and 1 partial :warning:

crates/prover/src/core/lookups/gkr.rs
50.00%
4 Missing :warning:

crates/prover/src/core/lookups/grandproduct.rs
96.00%
1 Missing :warning:

Additional details and impacted files
@@                             Coverage Diff                             @@
##           05-15-Implement_GkrOps_for_SIMD_backend     #640      +/-   ##
===========================================================================
- Coverage                                    93.06%   92.97%   -0.09%
===========================================================================
  Files                                           77       78       +1
  Lines                                        10074    10183     +109
  Branches                                     10074    10183     +109
===========================================================================
+ Hits                                          9375     9468      +93
- Misses                                         619      634      +15
- Partials                                        80       81       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


feat: add support for path with brackets ()

Add support for path with brackets ()

Description

Linked Issues
https://github.com/antfu/unplugin-auto-import/issues/416
Additional context

@antfu Please help to merge , thank you~ thank you~ thank you~
It's a upgrade about fast-glob.
Also, unplugin-vue-components needs upgrade too.

It would be better to implement within resolveGlobsExclude with a comment explaining what it this doing.

It would be better to implement within resolveGlobsExclude with a comment explaining what it this doing.

Sorry, I'm not very familiar with the source code. Count you add this feature to the main version where appropriate？And this merger is inessential.
And, What I Want is a released version of NPM. I hope you will consider to release a version with this feather.
Thank you so much!


[OpenCVEBridge] Add bridge

This adds a bridge for OpenCVE, a free-and-open-source service that keeps track of the CVE database.
There's already a bridge for CVE Details, but the advantage of this one is that it allows searching CVEs by text in addition to vendor and product, because sometimes vendors and products are filled after the CVE is published.
And it can target a self-hosted instance of the service, not just one provided by the developers.
Edit: hmm, but it requires login and password to work, right... The registration is free but I'm not sure I should give my credentials as defaults.

maybe you can add bridge specific config? e.g. see https://rss-bridge.github.io/rss-bridge/Bridge_Specific/FurAffinityBridge.html

Hmm. I could, but that would render the bridge on the public instance unusable, right? I wanted to send that link to my colleagues :slightly_smiling_face:
Also, that's how SpotifyBridge currently works.
I'll change that if you think that's how new bridges should be implemented, but I don't quite see the point.

I think you are misunderstanding. Please read up on bridge specific configuration.

As I understand, you propose moving login and password from parameters to configuration, like this:
    const CONFIGURATION = [
        'login' => [
            'required' => true
        ],
        'password' => [
            'required' => true,
        ],
    ];

So that the parameters are set in the instance config rather than in bridge parameters:
[OpenCVEBridge]
login = "sqrtminusone"
password = "xxx"

Which means an unconfigured instance (or any public instance), such as https://rss-bridge.org/bridge01/ won't be able to use the bridge - it doesn't make much sense to share one's account, because (a) the sign-up is free and (b) the service does rate limiting by account, not by IP.
It won't affect me because I'm the only user of my instance, I just don't see the reasoning behind your proposal.

yes i see your point but why not make it a serverside configuration anyway? then you dont have to input your password each time you want to make a feed.
also, it might potentially be useful for a public instance with sufficiently high caching.

okay can merge this. you keep an eye on this and see how it works out

Ah, okay. I wanted to change this over the weekend :slightly_smiling_face: Thanks.
Will see how it works.

how is it working out. is it good

Yeah, works fine for me.
It starts working slower for larger queries, but it's acceptable with caching. Maybe I'll add caching to the API requests as well.


UserManager.CheckPasswordAsync ==> DbUpdateConcurrencyException

SaveChangesAsync that follows UserManager.CheckPasswordAsync fails with DbUpdateConcurrencyException.  Same SaveChangesAsync without preceeding UserManager.CheckPasswordAsync succeeds.
Failing Example (test password followed by table update that involves user being tested):
bool bCorrectPassword = await UserManager.CheckPasswordAsync(user, model.New_Player_Detail.TSIC_Password);
if (bCorrectPassword)
{
    Family_Members record = new Family_Members()
    {
        Family_UserId = model.Family_Details.Family_UserId,
        Family_Member_UserId = user.Id,
        modified = DateTime.Now,
        lebUserID = model.Family_Details.Family_UserId
    };

    db.Family_Members.Add(record);
    await db.SaveChangesAsync();
    return RedirectToAction("EditFamilyAccount", new { StatusMessage = String.Format("Player: {0} has been added to your family account.", model.New_Player_Detail.TSIC_Username) });
}

Successful Example:
//bool bCorrectPassword = await UserManager.CheckPasswordAsync(user, //model.New_Player_Detail.TSIC_Password);
//if (bCorrectPassword)
//{
    Family_Members record = new Family_Members()
    {
        Family_UserId = model.Family_Details.Family_UserId,
        Family_Member_UserId = user.Id,
        modified = DateTime.Now,
        lebUserID = model.Family_Details.Family_UserId
    };

    db.Family_Members.Add(record);
    await db.SaveChangesAsync();
    return RedirectToAction("EditFamilyAccount", new { StatusMessage = String.Format("Player: {0} has been added to your family account.", model.New_Player_Detail.TSIC_Username) });
//}

Failure is at dbSaveChangesAsync:
A database operation failed while processing the request. DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded.
Running sql trace across that step shows:
UPDATE [AspNetUsers]
SET [AccessFailedCount] = @p0, [ConcurrencyStamp] = @p1, [Email] = @p3, [EmailConfirmed] = @p4, [FirstName] = @p5, [LastName] = @p7, [LockoutEnabled] = @p8, [LockoutEnd] = @p9, [LockoutEndDateUtc] = @p10, [NormalizedEmail] = @p11, [NormalizedUserName] = @p12, [PasswordHash] = @p13, [PhoneNumber] = @p14, [PhoneNumberConfirmed] = @p15, [SecurityStamp] = @p16, [TwoFactorEnabled] = @p17, [UserName] = @p18, [cellphone] = @p19, [cellphoneProvider] = @p20, [city] = @p21, [country] = @p22, [dob] = @p23, [fax] = @p24, [gender] = @p25, [imageFile] = @p26, [imageFileMimeType] = @p27, [phone] = @p28, [postalCode] = @p29, [state] = @p30, [streetAddress] = @p31, [workphone] = @p32
WHERE [ConcurrencyStamp] = @p2 AND [Id] = @p6;
SELECT @@ROWCOUNT;

This same query run in sql management studio SUCCEEDS (even when run while the debugger is on the line "db.SaveChangesAsync".  (If you don't run the command in sql management studio but step the debugger, the above DbUpdateConcurrencyException occurs.

I just tried a different approach to validating the password and it works (code below).  The VerifyHashedPassword is returning PasswordVerificationResult.SuccessRehashNeeded.  Can I ignore, or should I deal with that?
Code showing replacement of UserManager.CheckPasswordAsync with PasswordHasher.VerifyHashedPassword:
Family_Members record = new Family_Members()
{
    Family_UserId = model.Family_Details.Family_UserId,
    Family_Member_UserId = thisUserId,
    modified = DateTime.Now,
    lebUserID = model.Family_Details.Family_UserId
};

PasswordHasher<ApplicationUser> pHasher = new PasswordHasher<ApplicationUser>();
PasswordVerificationResult pvResult = pHasher.VerifyHashedPassword(user, user.PasswordHash, model.New_Player_Detail.TSIC_Password);

switch (pvResult)
{
    case PasswordVerificationResult.Success:
        db.Family_Members.Add(record);
        await db.SaveChangesAsync();
        return RedirectToAction("EditFamilyAccount", new { StatusMessage = String.Format("Player: {0} has been added to your family account.", model.New_Player_Detail.TSIC_Username) });
    case PasswordVerificationResult.SuccessRehashNeeded:
        db.Family_Members.Add(record);
        await db.SaveChangesAsync();
        return RedirectToAction("EditFamilyAccount", new { StatusMessage = String.Format("Player: {0} has been added to your family account.", model.New_Player_Detail.TSIC_Username) });
    case PasswordVerificationResult.Failed:
        return RedirectToAction("EditFamilyAccount", new { StatusMessage = "Credentials for new player were not valid." });
}

Duplicate of https://github.com/aspnet/Identity/issues/498 and https://github.com/aspnet/Mvc/issues/2713

i'm getting the same error when i call await _context.SaveChangesAsync();
if (ModelState.IsValid)  {
                try
                {
                   var` result = _context.Update(applicationUser);
                    await _context.SaveChangesAsync();

                    var result = _context.Update(applicationUser);
                    await _context.SaveChangesAsync();
                }

This is scaffolded code generated on the edit view from the default applicationuser.  Im not sure whats going on.

@conterio - Can you file a separate issue? The exception may be the same but the cause could be totally different. While filing new issue, please provide more information about your model classes for us to repro the issue.


Add uwp tilelogic

Add UWP Tile Layer Logic

Please resolve conflicts.

These changes are already merged

Should I close this pull request if these changes have been merged?

Yes


adding EDA-report for analysis done with Python in an ipynb notebook

PR for EDA analysis done with Python in a Jupyter notebook.

Also attaching the pandas profile report.
Please note, I'm getting an error in the final summary table for Canada, getting NaN values for mean, std and var.
I'll check on what is causing the error, but let me know if anyone can spot it right-away.
Also I tried making the ridge plot unsuccessfully, will get back to it again.

Updated the code to remove three dates with 0 new-cases for CAN. Other than the ridge plot, all other discussed items should be complete. Please review and let me know of any required edits. Thank you.

Under 4.7 Make a plot. I don't see the plot output. Do anyone else see it?

Under 4.7 Make a plot. I don't see the plot output. Do anyone else see it?

Yeah, I don't see the plot either.

Updated the code to remove three dates with 0 new-cases for CAN. Other than the ridge plot, all other discussed items should be complete. Please review and let me know of any required edits. Thank you.

Sounds good @tanmaysharma19. I managed to make the ridgeline plot work for our data set. Maybe we can add it after we merge your branch?

LGTM!

Merging this to the main branch.


Enable hourly database maintenance configuration via appliance_console

Purpose or Intent
This PR adds functionality to the appliance_console to support the configuration of
hourly database maintenance.
Links

https://www.pivotaltracker.com/n/projects/1608513/stories/128645799

https://www.pivotaltracker.com/n/projects/1608513/stories/128645799

@carbonin and @kbrock Please review.

@carbonin and @kbrock please hold off on the review. I'm going to update the code to generate the .cron file to avoid having to deliver an extra file.

@carbonin and @kbrock Removing WIP (for real this time)   Please review.

:+1: LGTM

@kbrock and @carbonin Thank you for the help/input. I think I've address all of it.

Looks good @jvlcek :+1:

Looks good 👍


ci: remove validate release ci step

Summary

This CI job is using all the available space for the runner when building the windows binary (and all the others). I tried couple of configuration changes.  I even attempted to build a binary for a single platform but the rest of our release scripts are configured to build all the platforms which will require changes to all the script if we just want to release a single binary (instead of all). Even if I set an env variable PLATFORM=linux, this is conflicting with any GOOS or GOARCH set with goreleaser to only build a single target.
So I suggest to remove it to run on every single PR.
closes https://github.com/sigstore/cosign/issues/3149
Release Note

Documentation

TODO: Remove validate-ci-job from the list of required ci jobs.

/hold I don't think this would be sufficient, as it'll likely still fail when it runs against main. Let's discuss more in the issue.

I found a better solution in https://github.com/sigstore/cosign/pull/3169. Closing this PR now!


CatalogSource creation fails because of PSA

Bug Description
During operators check "DeployableByOLM" a namespace is created to deploy a catalog Source. Starting 4.12, the catalog source pods cannot be deployed because the NS is not properly labeled to comply with the new Pod Security Admission.
Version and Command Invocation
podman run --rm --privileged --security-opt=label=disable -e PFLT_JUNIT=true -e PFLT_ARTIFACTS=/artifacts -e PFLT_LOGFILE=/artifacts/preflight.log -e PFLT_LOGLEVEL=trace -e DOCKER_CONFIG=/opt -e PFLT_DOCKERCONFIG=/opt/config.json -e KUBECONFIG=/kubeconfig -e PFLT_INDEXIMAGE=my-registry:4443/disconnected-catalog@sha256:72ea908e6244691c23aaed1ac59316bd933d35a8451c7579ddadeca935f885a2 -e PFLT_NAMESPACE=preflight-testing -e PFLT_SERVICEACCOUNT=default -e PFLT_SCORECARD_IMAGE=quay.io/operator-framework/scorecard-test@sha256:b939bdf25de65d0c4256ac799b02a58335b705e24cbdd66d61e344982eb6156d -v /tmp/kubeconfig:/kubeconfig -v /tmp/:/artifacts -v /tmp/config.json:/opt/config.json  quay.io/opdev/preflight:1.4.2 check operator my-registry/simple-demo-operator-bundle@sha256:6cfbca9b14a51143cfc5d0d56494e7f26ad1cd3e662eedd2bcbebf207af59c86
$ oc get catalogsource simple-demo-operator -o yaml|tail  status:   message: 'couldn''t ensure registry server - error ensuring pod: : error creating     new pod: simple-demo-operator-: pods "simple-demo-operator-4gsd4" is forbidden:     violates PodSecurity "restricted:v1.24": allowPrivilegeEscalation != false (container     "registry-server" must set securityContext.allowPrivilegeEscalation=false), unrestricted     capabilities (container "registry-server" must set securityContext.capabilities.drop=["ALL"]),     runAsNonRoot != true (pod or container "registry-server" must set securityContext.runAsNonRoot=true),     seccompProfile (pod or container "registry-server" must set securityContext.seccompProfile.type     to "RuntimeDefault" or "Localhost")'   reason: RegistryServerError
(The output of preflight --version)
1.4.2
Steps to Reproduce:
(How can we reproduce this?)

Run a check operator on top of  an OCP 4.12 (or newer) cluster
Review the catalogsource status

Expected Result
The catalog source pods should be created and the packages provided listed properly

The behavior could be avoided if the catalog source is created in the openshift-marketplace namespace or labeling properly the operator's namespace.

Actual Result
(What actually happened)
container "registry-server" must set securityContext.capabilities.drop=["ALL"]),     runAsNonRoot != true (pod or container "registry-server" must set securityContext.runAsNonRoot=true
Additional Context
Understanding and managing pod security admission

@betoredhat This seems to happen when using sqlite-based index images because those require writing to the filesystem, and I believe the default Dockerfile generated by tools like opm set the working directory to be /.
Can you try using a File-Based Catalog?
We'll look at implementing the workaround as you describe it until sqlite-based catalogs are fully deprecated.

Hello @komish, thanks for checking this.
The disconnected catalog image that we are using is built using FBC. The issue is more with the OLM registry-server pods that required privileged permission. Here we are defining a custom namespace for its deployment, that NS should be tagged accordingly.
The ideal situation should be that the registry-server image does not require PrivilegeEscalation permissions. But I think that at this moment that needs to be fixed by the OLM operator project.
As a workaround in our environment, we are creating in advance the namespace for the operator to be checked. That allows the preflight tasks to complete successfully.
- name: "Create a namespace for {{ operator.name }}"
  community. kubernetes.k8s:
    definition:
      apiVersion: v1
      kind: Namespace
      metadata:
        name: "{{ operator.name }}"
        labels:
          security.openshift.io/scc.podSecurityLabelSync: "false"
          pod-security.kubernetes.io/enforce: privileged
          pod-security.kubernetes.io/enforce-version: latest
    wait: yes

Cheers

@betoredhat Can you let us know what version of OCP you're testing against? Specifically, what z-patch version of 4.12. We've tested in two so far (4.12.0 and 4.12.0-ec.5) and saw drastically different behaviors.

Actually, the failure was in 4.13. It was supposed that PSA was going to be enforced in 4.12 that seems to be delayed. I incorrectly assumed 4.12 was also affected.
Thanks

@komish Great writeup, I'd just like to add one other thing I noticed.
If tekton operator is in the cluster, it updates all namespaces to be pod-security.kubernetes.io/enforce: baseline and with this Preflight and untimely the SQLite or File-Based Catalog catalog spin up properly. This is really strange to me on two accounts:

That tekton is updating permissions across the cluster
That Preflight works fine in a namespace with baseline (I'd expect only `privileged to work for the reason's mentioned in @komish post above.)

Nothing actionable on this for now, but things to consider when we know that the new PSA is going into an OpenShift version.

I went ahead and pushed some of the code I was hacking through for the time being. Not to be used, but just as a reference point. https://github.com/komish/openshift-preflight/commit/a9d0b88b9d09c4e580ab2c5859a28124da533b9c

I feel like this has been addressed, since we are on 4.17/4.18 testing and preflight works correctly there. If this is still an issue, feel free to re-open.


[aes] Add support for key sideload

This PR adds key sideload support in AES. It follows the example of KMAC: to enable sideload, a new SIDELOAD bit in the main control register needs to be set and the key coming in from keymgr needs to be marked as valid. Otherwise AES won't start in normal/automatic mode.

FYI @rasmus-madsen , this adds a new bit in the main control register, meaning yet another shadowed bit that can lock up the module and therefore needs testing.

Hey @tjaychen and @cdgori , should we move merge this? WDYT?

o my, i'm sorry, i forgot to approve again.
Let me just read through this quickly again today.

Thanks @tjaychen ! I've rebased the PR and will merge it once CI passes.


implemented batch inverse in secure field eval

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#520  👈
#519
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ohad-starkware and the rest of your teammates on  Graphite

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.16%. Comparing base (7d70108) to head (b4601e2).

Additional details and impacted files
@@                           Coverage Diff                           @@
##           ohad/batch_inverse/fix_non_pow_2_sizes     #520   +/-   ##
=======================================================================
  Coverage                                   94.16%   94.16%
=======================================================================
  Files                                          60       60
  Lines                                        9238     9242    +4
  Branches                                     9238     9242    +4
=======================================================================
+ Hits                                         8699     8703    +4
  Misses                                        485      485
  Partials                                       54       54

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


source validation: emit multiple errors

Stacked on https://github.com/MystenLabs/sui/pull/7756.
Fixes https://github.com/MystenLabs/sui/issues/7474
We now continue collecting errors for errors resulting from:

a module exists locally but not on-chain
a module exists on-chain but not locally
the bytes on-chain are different from the local bytes

and emit them all at the end. Note that only these three errors qualify for being combined since they were called out in the issue description, not all of the possible validation errors. I.e., we will still fail fast on, say, ObjectFoundWhenPackageExpected. It should be straightforward to combine all of those errors if we want to, but I got the sense that some of them like ObjectFoundWhenPackageExpected are more severe/blocking and should not be collected.
See inline thoughts on how I approached this, your thoughts welcome.

treat all errors uniformly

works for me!


Does it work on the web?

Hello, in the development of a web/ios/android application with expo SDK 36, I am looking to achieve a google mail application swipe like list view in Android, iOS and web.
I haven't seen any issue tagged with react-native-web, is this library also supporting web?
Thanks a lot for sharing!

It doesn't. But, if you want to submit a PR, start by extending _handleMoveShouldSetPanResponder with:
 _handleMoveShouldSetPanResponder = (event, gestureState) => {
    return Platform.OS === 'web'
      ? gestureState.numberActiveTouches > 0
      : Math.abs(gestureState.dx) > this.props.swipeStartMinDistance
  }


Counter for all pages for query

When you use LIMIT, table shows you limited number of pages.
It'll be good to have some feature to show number of all pages from query with LIMIT in use, for example, in parentheses just after the limited number.
If it can be done with LIST, it'll be great =D

Speaking from a query language perspective, when a limit is used we tend to not scan the whole table. The idea of limit is to prevent such full table scans, hence optimising it. So ideally this requirement is counter intuitive. Just my 2 cents based on the query language experience.


Update mic.py

A small fix for the language setting.  If you don't specify the language in the transcribe method, you get an exception because it cannot use a language specific model to detect the language.

Good upgrade, I've tested on my side and works good.
Would you see possible to save the wav files into memory and then use from there instead of saving files to disk?
This might save some milliseconds in reaction time, plus easier for arduinos where one uses microsd cards.

@nn81 Writing to memory was my first approach to the problem.  It should be possible as the input can be either a file path or a WAV array.
However, I was running into issues, and writing to a temp folder worked well enough.  Would definitely approve a PR that fixed that.
You are able to run these models on an Arduino? I would think even the smallest would be too large for its tiny memory.  A pi would work though I would think.


Search Results on products that contain variants

Receiving the following error on products that contain a variant in the search results page
translation missing: en.products.general.from_text_html
{% if item.price_varies %}
{% assign price = item.price | money %}
{{ 'products.general.from_text_html' | t: price: price }}
{% else %}
{{ item.price | money }}
{% endif %}
Lines 101 - 107
I believe this situation also exists for on sale items and is repeated in the grid search results.
I've changed the line in question from:
{{ 'products.general.from_text_html' | t: price: price }}
to:
{{ 'products.general.from' | t }} {{ item.price | money }}
which resolves the issue so not sure if this is a bug or a setting that may be off on my side.

Do you see from_text_html in locales/en.default.json? It should be nested under "products" and "general". Here's the source

Ah gotcha, that explains it. Yeah I need to make sure I've got the latest version of this file as my copy only has three items under general. Thank you for your help.