Fix user image display error and icon display error

Description

1.Exploration> Data Creator User thumbnail not shown
2. The Exploration> Data Creator> Detail data list's sorting default is Created Time (descending), which is indicated by the Sort Name in the grid header.
3. Delete icon is overlaid when hovering over Management> Metadata Database, StagingDB
Related Issue :

How Has This Been Tested?

1.Explore Exploration> Data Creator User Image Thumbnail
2. Verify that the sort defaults in the Exploration> Data Creator> Detail data list are displayed in descending order at Created Time.
3. Check if the delete icon is displayed normally when hovering over Management> Metadata Database, StagingDB.
Need additional checks?
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

Additional Context

deploy to 3

@eltriny
2. Please remove space in parameter
createdTime, desc (X)
createdTime,desc (O)

not fixed.

@ufoscw
Please check

deploy to 3


Feature request for easier terminals switching

VSCode Version: 1.14.2
OS Version: Windows 10

It is very difficult to open the next terminal with the select box. It is very good if we have a next level of tab to open different terminals as shown below. Now i am finding very difficult to switch between terminals.
Steps to Reproduce:

Open multiple terminals

Current screen -

Suggestion for some more easily usable multi terminals view

Reproduces without extensions: Yes/No

Duplicate https://github.com/Microsoft/vscode/issues/29879 https://github.com/Microsoft/vscode/issues/10546


Sign Up/Sign In with an Email OTP

Is your feature request related to a problem? Please describe.
It is very inconvenient to sign up/ sign in using a magic link, because for example:

Safari will open the link in an isolated window that does not have access to the application
The link cannot be opened on the TV

Describe the solution you'd like
It is much more convenient to send a one-time code that the user can read from any device and enter into any device.
Describe alternatives you've considered
It would be possible to use the magic link plugin without url and I see a pull request with the ability to create custom code, but a callback/error redirect prevents it.

Need that too. It was already mentioned in #93.

I'm gonna close this since it's a duplicate, hopefully we'll have this by Friday 🚀


Add Variant and genotype call bdg to ga4gh converters

I'm going to check this over a bit more for formatting and add tests with more combinations of genotypes, but wanted to share now.
Works so far, tests pass.
If you have any comments now they are welcome!

hi @jpdna ! This looks good. Are we still waiting on more tests for this?

@jpdna ping when ready to review

If you don't mind, please go ahead and review it @heuermh , and if you have comments on where you think more tests would are needed or desirable please point out. Thanks!

...if you have comments on where you think more tests would are needed or desirable please point out.

We don't have CI on this repo yet, meanwhile you can run
$ mvn cobertura:cobertura

to generate unit test coverage reports, found in e.g. convert-ga4gh/target/site/cobertura/index.html.

@heuermh - please see if you are happy with the new GenotypeAlleleToString converter in addressing your earlier comment, or let me know if you meant something else.  Thanks!

I was thinking List<GenotypeAllele> to ListValue maybe, but it doesn't matter too much.  One last missing header and then I'll squash and merge this in.

One last missing header and then I'll squash and merge this in.

done and squashed.

+1

Thank you, @jpdna!


Request: Connect to Live API

Can you please add an example where we connect to an actual working API? Would be great to see how to manage APIs keys, constants, etc.

Working with actual working API is not different in React than in other frameworks/libraries. Please refer to this - https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch for more information on how to use fetch API. Since this is not specific to React, this is outside the scope of this tutorial.


Enable TS strict mode

Just a stub to come back and ensure we're meeting ts strict mode

Closed in favor of https://github.com/developmentseed/lonboard/pull/271


[CDS-1576] resource type filter & AP3 region - PR again

Description

Added resource type filtering
Added AP3 region

How Has This Been Tested?

Checklist:

[X] I have updated the versions in the changed module in the template index.js and package.json files.
[X] I have updated the relevant component changelog(s)
[ ] This change does not affect module (e.g. it's readme file change)

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


[SPARK-40051][PYTHON][SQL][DOCS] Make pyspark.sql.catalog examples self-contained

What changes were proposed in this pull request?
This PR proposes to improve the examples in pyspark.sql.streaming.catalog by making each example self-contained with a brief explanation and a bit more realistic example.
Why are the changes needed?
To make the documentation more readable and able to copy and paste directly in PySpark shell.
Does this PR introduce any user-facing change?
Yes, it changes the documentation
How was this patch tested?
Manually ran each doctests. CI also runs this.

cc @cloud-fan @zhengruifeng @amaliujia @viirya mind taking a look when you find some time please?

thanks for working on these!  A lot of good examples! I will have a pass on this PR.

Thanks @amaliujia. Let me address the comments soon.

Will merge this in few days.

This PR proposes to improve the examples in pyspark.sql.streaming.catalog by making each example self-contained with a brief explanation and a bit more realistic example.

pyspark.sql.streaming.catalog or pyspark.sql.catalog?

Thank you @viirya !!

Merged to master.


add Sentry crash reporting

closes #10
I have created a new Sentry organization and project https://sentry.io/organizations/ten-minute-heros using 350 GitHub account
added GitHub Sentry application so issues are integrated with GH, will figure out releases later

I have applied to Sentry to give us free open source plan (that's why the MIT License file)

Sentry has approved our open source project and gave us free plan


Values.byteBuffer returns an empty buffer

In Values:
  public static ByteBuffer byteBuffer(Value value) {
    checkInnerCase(value, InnerCase.BYTES);

    ByteBuffer bytes = ByteBuffer.allocate(value.getBytes().size());
    value.getBytes().copyTo(bytes);
    return bytes;
  }

This does not reset the position after copying, resulting in an empty buffer.
Fix:
  public static ByteBuffer byteBuffer(Value value) {
    checkInnerCase(value, InnerCase.BYTES);

    return value.getBytes().asReadOnlyByteBuffer();
  }

Related: Values.of(ByteBuffer) "consumes" its argument (i.e. modifies the position marker).
This seems counter-intuitive to me, maybe it would be better to duplicate to leave the makers unchanged. Either way this should be documented.

Agreed that Values.of(ByteBuffer) returning seemingly empty buffer seems wrong to me as well.
With this change it might make sense to also see if some callers were already working around this issue? (I vaguely recall there being an older REST API issue that sounds similar). And if so, work-around(s) could be removed.


Sending query plan between peloton nodes

This PR mainly provide the function of sending query plan between peloton nodes. The serialization/deserialization for Postgres's nested structure takes a lot of time. The details include:
1.AbstractPlan and SeqScanPlan serialization/deserialization
2.Expression serialization/deserialization
3.Value serialization/deserialization
4.Postgres TupleDesc serialization/deserialization
5.TupleResult serialization/deserialization
6.Refacor protobuf related code
7.Unit test

Can you resolve the merge conflicts ?

Sure. I am going to merge it again. For the problem of "malloc" for postgres structure （TupleDesc, TupleConstr ConstrCheck AttrDefault）, I figure out a solution.  We could add constructor and deconstructor for TupleDesc. In constructor, we use "new" for  TupleConstr ConstrCheck AttrDefault, and in deconstructor， we use "delete".
But we will change Posgres's code. How do you think? Or anyone else have ideas about that?

From the looks of it, I think we can handle the subquery logic during plan transformation (i.e., when transforming Postgres plans to Peloton plans).  If so, we won't need to bring in Postgres stuctures in to Peloton plans, which should solve the whole malloc/palloc issue.

@pmenon the malloc/palloc issue is not related to "transforming plan". This is the execution code of peloton: PlanExecutor::ExecutePlan(mapped_plan.get(), param_values, tuple_desc);
When we execute a plan, we need three stuff: mapped_plan, param_values, and tuple_desc. Mapped_plan is already transformed through peloton PlanTransform. But tuple_desc is the original postgres structure, and peloton also uses postgres's functions to parse tuple_desc inside ExecutePlan.

Micheal and I discussed the issue. The solution is to have a separate plan executor method outside the bridge that accepts a Peloton query plan and the parameter list, and returns a list of logical tiles (even better, an iterator over the result tiles). The existing plan executor method should invoke the new method to iterate over the output tuples, and convert them into Postgres tuples.  Two benefits here:

The networking code doesn't need to worry about serializing Postgres structures.
We only exchange Peloton tuples over the network, isolating us from Postgres. This allows clients to manipulate the results of a remote call without conversion to/from Peloton/Postgres all the time.

Cool
<EMAIL_ADDRESS>From: Prashanth Menon
Date: 2016-04-11 15:25
To: cmu-db/peloton
CC: Michael
Subject: Re: [cmu-db/peloton] Sending query plan between peloton nodes (#130)
Micheal and I discussed the issue. The solution is to have a separate plan executor method outside the bridge that accepts a Peloton query plan and the parameter list, and returns a list of logical tiles (even better, an iterator over the result tiles). The existing plan executor method should invoke the new method to iterate over the output tuples, and convert them into Postgres tuples. Two benefits here:
The networking code doesn't need to worry about serializing Postgres structures.
We only exchange Peloton tuples over the network, isolating us from Postgres. This allows clients to manipulate the results of a remote call without conversion to/from Peloton/Postgres all the time.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@pmenon's suggestions LGTM.

@Michael-Tieying-Zhang  can you remove the code you have added to support subqueries from this PR and fix the merge conflicts ? Then, we can merge just the networking stuff.

All the tests pass on my local machine. Why one of them fails?

Done.

For the execution results, I didn't send LogicalTile. Because LogicalTile doesn't contain the real tuple, when the client recvs LogicalTile, the only stuff the client can do is to send it back which means "I want the tuples in this LogicalTile".
So I materialize the LogicalTile into a physical tile and serializes the physical tile and send it back. There might be several LogicalTile, the server may keep a handler, and the client can requests the next LogicalTile. The current code doesn't include the handler，and we may implement that in the next step. I also checked the current execution method, it also gets all the tuples/tiles and sends them back (https://github.com/cmu-db/peloton/blob/master/src/backend/bridge/dml/executor/plan_executor.cpp#L92), which may need to be refatored later.

Ok, sounds good. Can you another merge ?

Done


Default Content text box no longer available when using Grafana v11.2.1

Hello,
Recently made an upgrade to grafana v11.2.1, and it seems the Default Content text box is no longer available. Specifically this one:

I was using v4.2.0 of Business Text plugin. Upgraded to v5.4.0 thinking it could resolve the issue. It does not seem to be the case. This could be an issue with the new grafana version. Or is there a new way to provide default content when query doesn't return results?
I now see this text instead of the default HTML that was declared in lower grafana versions.

Any advice? Kind regards

@dgarcia-collegeboard Do you have it enabled in the Editors to display?

This resolved the issue. Appreciate the advice! I looked through the releases to see if there was any breaking changes listed related to this. Couldn't find any. I appreciate the quick response. Closing the issue!

@dgarcia-collegeboard Great to hear!
We introduced this option when added pre/post JS and CSS editors to simplify interface.


Theme's rework

Remove theme from player (so loading save file won't change theme's)
Partial proper HTML validation (remove useless 'alt' and non existing 'label', from some places)
Make import of save file possible for a screen reader (Absolute position prevent it from interacting with HTML and clip-path to make it invisible (I think it works for all browsers, if not then there are other methods))
Fix vertical align of hepteract bar text (line-heigh has to be same size as it's container or just initial)
I noticed some unused blocks in CSS (#togglecrystalbuy, #toggleofferingbuy), I didn't touched them though
And finally, yes, themeBox must be absolute positioned or everything will move everywhere

If you are going to merge 'Image Redo' PR, then merge that one first. I will solve conflict's here later

I removed unused CSS, added new custom color for black buttons and inputs

Didn't bug tested last confilct merge, because lazy

Don't feel like workin on it, but
It can be optimized by removing object theme:
Instead of doing: c.style.color = theme.green
Better to do: c.style.color = 'var(--green-text-color)'

With last conflict had to remove trailing  and some other stuff
Didn't tested

Will be reopened after clean up


Using pytorch-lightning to train PixelCL on multi-gpu

Hello everyone,
I'm trying to use pytorch-lightning to train PixelCL on 2 gpus using ddp2 accelerator.
I followed this example :
class SelfSupervisedLearner(pl.LightningModule):
    def __init__(self, net, n_epochs, steps_per_epoch, **kwargs):
        super().__init__()
        self.learner = PixelCL(net, **kwargs)
        self.n_epochs = n_epochs
        self.steps_per_epoch = steps_per_epoch

    def forward(self, images):
        return self.learner(images)

    def training_step(self, batch, _):
        images,_ = batch
        loss, _ = self.forward(images)
        self.log('loss',loss, on_step=True, on_epoch=True, prog_bar=True, logger=True)
        return {'loss': loss}

    def configure_optimizers(self):
        opt = LARS(self.parameters(), lr=1e-3, weight_decay = 1e-3)#torch.optim.Adam(self.parameters(), lr=1e-3)
        scheduler = scheduler = OneCycleLR(opt, max_lr = get_lr(opt), epochs = self.n_epochs, steps_per_epoch = self.steps_per_epoch)        return [opt], [scheduler]

    def on_before_zero_grad(self, _):
        self.learner.update_moving_average()`

    learner = SelfSupervisedLearner(
        resnet,
        n_epochs = 200,
        steps_per_epoch = len(train_loader),
        image_size = 244,
        hidden_layer = 'layer4',        # leads to output of 8x8 feature map
        projection_size = 256,          # size of projection output, 256 was used in the paper
        projection_hidden_size = 2048,  # size of projection hidden dimension, paper used 2048
        moving_average_decay = 0.99,    # exponential moving average decay of target encoder
        ppm_num_layers = 1,             # number of layers for transform function in the pixel propagation module, 1 was optimal
        ppm_gamma = 2,                  # sharpness of the similarity in the pixel propagation module, already at optimal value of 2
        distance_thres = 0.7,           # ideal value is 0.7, as indicated in the paper, which makes the assumption of each feature map's pixel diagonal distance to be $
        similarity_temperature = 0.3,   # temperature for the cosine similarity for the pixel contrastive loss
        alpha = 1.                      # weight of the pixel propagation loss (pixpro) vs pixel CL loss
    ).cuda()

    trainer = pl.Trainer(
        gpus = 2,
        max_epochs = 200,
        accumulate_grad_batches = 1,
        sync_batchnorm = False,
        callbacks = [ckpt_callback],
        accelerator = 'ddp2'
    )

    trainer.fit(learner, train_loader)

When I try to run this I got the following error :
0: Traceback (most recent call last):
0:   File "../swav_src/light_seg_byol.py", line 166, in <module>
0:     trainer.fit(learner, train_loader)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 510, in fit
0:     results = self.accelerator_backend.train()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 64, in train
0:     return self.ddp_train(process_idx=self.task_idx, mp_queue=None, model=model)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 202, in ddp_train
0:     results = self.train_or_test()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 74, in train_or_test
0:     results = self.trainer.train()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 561, in train
0:     self.train_loop.run_training_epoch()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 549, in run_training_epoch
0:     batch_output = self.run_training_batch(batch, batch_idx, dataloader_idx)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 704, in run_training_batch
0:     self.optimizer_step(optimizer, opt_idx, batch_idx, train_step_and_backward_closure)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 490, in optimizer_step
0:     using_lbfgs=is_lbfgs,
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/core/lightning.py", line 1296, in optimizer_step
0:     optimizer.step(closure=optimizer_closure)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/core/optimizer.py", line 286, in step
0:     self.__optimizer_step(*args, closure=closure, profiler_name=profiler_name, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/core/optimizer.py", line 144, in __optimizer_step
0:     optimizer.step(closure=closure, *args, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/optim/lr_scheduler.py", line 67, in wrapper
0:     return wrapped(*args, **kwargs)
0:   File "/gpfs/users/bensaad/namr/swav_src/lars.py", line 83, in step
0:     loss = closure()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 699, in train_step_and_backward_closure
0:     self.trainer.hiddens
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 792, in training_step_and_backward
0:     result = self.training_step(split_batch, batch_idx, opt_idx, hiddens)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 316, in training_step
0:     training_step_output = self.trainer.accelerator_backend.training_step(args)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 67, in training_step
0:     return self._step(args)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 81, in _step
0:     output = self.trainer.model(*args)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 188, in forward
0:     outputs = self.parallel_apply(self._module_copies[:len(inputs)], inputs, kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 161, in parallel_apply
0:     return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 321, in parallel_apply
0:     raise output
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 274, in _worker
0:     output = module.training_step(*input, **kwargs)
0:   File "../swav_src/light_seg_byol.py", line 66, in training_step
0:     loss, _ = self.forward(images)
0:   File "../swav_src/light_seg_byol.py", line 62, in forward
0:     return self.learner(images)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pixel_level_contrastive_learning/pixel_level_contrastive_learning.py", line 294, in forward
0:     proj_one = self.online_encoder(image_one_cutout)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pixel_level_contrastive_learning/pixel_level_contrastive_learning.py", line 201, in forward
0:     projection = projector(representation)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pixel_level_contrastive_learning/pixel_level_contrastive_learning.py", line 107, in forward
0:     return self.net(x)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/container.py", line 100, in forward
0:     input = module(input)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 353, in forward
0:     return self._conv_forward(input, self.weight)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/conv.py", line 350, in _conv_forward
0:     self.padding, self.dilation, self.groups)
0: RuntimeError: Expected tensor for argument #1 'input' to have the same device as tensor for argument #2 'weight'; but device 1 does not equal 0 (while checking arguments for cudnn_convolution)
0: Traceback (most recent call last):
0:   File "../swav_src/light_seg_byol.py", line 166, in <module>
0:     trainer.fit(learner, train_loader)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 510, in fit
0:     results = self.accelerator_backend.train()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 64, in train
0:     return self.ddp_train(process_idx=self.task_idx, mp_queue=None, model=model)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 202, in ddp_train
0:     results = self.train_or_test()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 74, in train_or_test
0:     results = self.trainer.train()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 561, in train
0:     self.train_loop.run_training_epoch()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 549, in run_training_epoch
0:     batch_output = self.run_training_batch(batch, batch_idx, dataloader_idx)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 704, in run_training_batch
0:     self.optimizer_step(optimizer, opt_idx, batch_idx, train_step_and_backward_closure)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 490, in optimizer_step
0:     using_lbfgs=is_lbfgs,
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/core/lightning.py", line 1296, in optimizer_step
0:     optimizer.step(closure=optimizer_closure)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/core/optimizer.py", line 286, in step
0:     self.__optimizer_step(*args, closure=closure, profiler_name=profiler_name, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/core/optimizer.py", line 144, in __optimizer_step
0:     optimizer.step(closure=closure, *args, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/optim/lr_scheduler.py", line 67, in wrapper
0:     return wrapped(*args, **kwargs)
0:   File "/gpfs/users/bensaad/namr/swav_src/lars.py", line 83, in step
0:     loss = closure()
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 699, in train_step_and_backward_closure
0:     self.trainer.hiddens
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 792, in training_step_and_backward
0:     result = self.training_step(split_batch, batch_idx, opt_idx, hiddens)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/trainer/training_loop.py", line 316, in training_step
0:     training_step_output = self.trainer.accelerator_backend.training_step(args)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 67, in training_step
0:     return self._step(args)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/accelerators/ddp2_accelerator.py", line 81, in _step
0:     output = self.trainer.model(*args)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 188, in forward
0:     outputs = self.parallel_apply(self._module_copies[:len(inputs)], inputs, kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 161, in parallel_apply
0:     return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 321, in parallel_apply
0:     raise output
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pytorch_lightning/overrides/data_parallel.py", line 274, in _worker
0:     output = module.training_step(*input, **kwargs)
0:   File "../swav_src/light_seg_byol.py", line 66, in training_step
0:     loss, _ = self.forward(images)
0:   File "../swav_src/light_seg_byol.py", line 62, in forward
0:     return self.learner(images)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pixel_level_contrastive_learning/pixel_level_contrastive_learning.py", line 294, in forward
0:     proj_one = self.online_encoder(image_one_cutout)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in __call__
0:     result = self.forward(*input, **kwargs)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pixel_level_contrastive_learning/pixel_level_contrastive_learning.py", line 199, in forward
0:     representation = self.get_representation(x)
0:   File "/gpfs/users/bensaad/.local/lib/python3.7/site-packages/pixel_level_contrastive_learning/pixel_level_contrastive_learning.py", line 195, in get_representation
0:     assert hidden is not None, f'hidden layer {self.layer} never emitted an output'
0: AssertionError: hidden layer layer4 never emitted an output

According to this issue Something needs to be done to register the forward hook. But I cannot understand what is it.
Could someone help me please?
Thanks

Hi Ahmed! You should use this script! https://github.com/lucidrains/byol-pytorch/blob/master/examples/lightning/train.py

I'll add it to this repo soon

@ahmed-bensaad should be fixed in 0.1.0! https://github.com/lucidrains/pixel-level-contrastive-learning/commit/eda34f78f5c30e4bd146c10a8cb5af79428f901f

@ahmed-bensaad you should also have sync batchnorm turned on, as brought to light by this paper https://arxiv.org/abs/2101.07525

@lucidrains Thank you for your response. Indeed his error has been fixed but now I have a new one
0: RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by (1) passing the keyword argument `find_unused_parameters=True` to `torch.nn.parallel.DistributedDataParallel`; (2) making sure all `forward` function outputs participate in calculating loss. If you already have done the above two steps, then the distributed data parallel module wasn't able to locate the output tensors in the return value of your module's `forward` function. Please include the loss function and the structure of the return value of `forward` of your module when reporting this issue (e.g. list, dict, iterable).

for (1) : According to this issue, It is not yet possible to set find_unused_parameters=False when using pytorch lightning
for (2) : I think this can be dealt with in the forward function of the model :
    def forward(self, x):
        shape, device, prob_flip = x.shape, x.device, self.prob_rand_hflip

        rand_flip_fn = lambda t: torch.flip(t, dims = (-1,))
        . . .
        return loss, positive_pixel_pairs

@ahmed-bensaad you should also have sync batchnorm turned on, as brought to light by this paper https://arxiv.org/abs/2101.07525

sync batchnorm doesn't seem to work with ddp2 accelerator
0: ValueError: SyncBatchNorm is only supported for DDP with single GPU per process

Sure! I can add that! Why did you close the PR lol

I closed the issue because the workaround proposed here works fine ofr me. It is mainly a pytorch lightning issue not related to this repository

@ahmed-bensaad ahh, thanks for that, but I want to make this work for everyone lol
https://github.com/lucidrains/pixel-level-contrastive-learning/releases/tag/0.1.1 should be good now!

@ahmed-bensaad would you be willing to share your script with a pull request after it works? :D

Of course I will. With another (very) minor change to the package.

did you ever get this to work?

Hello,
I think it is working on my side. But I just need to finish some training epochs in order to be sure that it works 100%.
I will push my code example shortly after
----- Mail original -----
De: "Phil Wang"<EMAIL_ADDRESS>À: "lucidrains/pixel-level-contrastive-learning"<EMAIL_ADDRESS>Cc: "Ahmed Ben Saad"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Envoyé: Vendredi 5 Février 2021 07:26:54
Objet: Re: [lucidrains/pixel-level-contrastive-learning] Using pytorch-lightning to train PixelCL on multi-gpu  (#11)
did you ever get this to work?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/lucidrains/pixel-level-contrastive-learning/issues/11#issuecomment-773822649

woohoo!

Hello,
I came back to show you some results after few training epochs.
As you can see in the joint figure. The training loss seems to globally decrease but sometimes it takes some negative values. Do you think this is normal?
I cannot share with you the dataset I use because it is not public :/ but it is a custom dataset of aerial images of building roofs. I don't think this has to do with my problem.
Thank you in advance.
Ahmed
----- Mail original -----
De: "Phil Wang"<EMAIL_ADDRESS>À: "lucidrains"<EMAIL_ADDRESS>Cc: "Ahmed Ben Saad"<EMAIL_ADDRESS>"Mention"<EMAIL_ADDRESS>Envoyé: Vendredi 5 Février 2021 14:47:30
Objet: Re: [lucidrains/pixel-level-contrastive-learning] Using pytorch-lightning to train PixelCL on multi-gpu  (#11)
woohoo!
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/lucidrains/pixel-level-contrastive-learning/issues/11#issuecomment-774042737


Allow blacklisting of header values

Would be nice to be able to specify a list of blacklisted header values to prevent them from being logged out.

You're right, that could certainly be helpful. I think adding nested key support to the whitelist/blacklist arrays (a la https://github.com/bithavoc/express-winston/issues/66) would make that a lot easier.

Do you have any idea if this will be implemented?


[feature-request] Populate "Studies" tab from server (Firestore) data.

Describe the solution you'd like
Fetch the solution from Issue #2 and populate the project's activity rows from Firestore.
Update our CardinalKit documentation to instruct on how-to create entries on Firestore that each app can read.
Provide a data source that CardinalKit teams can automatically import to Firebase.
NOTE: interest on features is gaged using reactions on this first post: e.g.  👍

Completed in v2.


Does dlib.train_simple_object_detector() generate an image pyramid?

I am trying to train a real-time (fast) sliding window object detector with dlib, in Python. I am using the function train_simple_object_detector() to train a structural SVM for the detection. I am somewhat confused how the function works behind the curtain. The common HOG+SVM sliding window detector of Dalal and Triggs usually generates an image pyramid, like (WxH, W/2xH/2, W/4xH/4, ...) etc. Provided a sliding window size of (w x h), then this gets convolved on the whole image pyramid to detect objects of different scales. So, currently the object I want to detect has square bounding boxes, so the aspect ratio is not an issue (I want to detect cat faces, btw). However, I am getting pretty awful detection scores (like an AP of %40) for a relatively simplistic object like cat faces. I am now worrying about if I am using the function correctly, so I have a couple of questions.

Assuming that I provide images of the size (WxH), with a sliding window of the size (w x h) and set "upsample_limit" to 0, would the function "train_simple_object_detector()" generate the down-sampled versions of the original image (WxH sized) automatically? Or it just runs the sliding window on the provided image, as it is provided?

If it is the case that the function "train_simple_object_detector()" only works on the original image size and sliding window size; what would be the correct way to implement the image pyramid effect with the Python API, since the scale of the object changes in my training images. (I think in the C++ library, we have  the "scan_fhog_pyramid<pyramid_down<6>>" object but I am not sure this is the same in Python).

Thanks everyone.

Yes, it uses an image pyramid and scans the detector over the pyramid to find objects.  It always uses a pyramid.  And if you set upsample_limit to 0 it just means it won't upsample your images, so you won't be able to detect things smaller than your sliding window size.
If it's not working it's because there is something wrong with your training data.  Like the labeling is inconsistent in some way.

Thank you for the quick answer!


feat: istio compatibility

Pull request description
Checklist (choose whats happened)

[ ] breaking change! (describe)
[ ] tested locally
[ ] tested on cluster
[ ] added new dependencies
[ ] updated the docs
[ ] added a test

Breaking changes

Changes

Fixes

We are no longer pursuing this.


HomeAssistant Log Warnings

Describe the bug

Configuration

Diagnostics
Working on it

Thanks for your report - I'm a little puzzled how Bermuda has got to that point to log those warnings, so I'd be very interested to see the diagnostics if you are able to upload them. If you're having trouble getting them to download, the best bet is to "Reload integration" on Bermuda, then after about 30 seconds try the "Download Diagnostics" - it should be pretty quick after a recent reload.
This performance issue with the diagnostics will be fixed in the next version.

I can get diagnostics that way but maybe the warnings didnt log in the first 30s after reload integration.
is it important to log the warnings?

I think i catched the warnings in this log...
config_entry-bermuda-01JDQPQ9HNB179M8TKB28WSM1Y.json

more logs
config_entry-bermuda-01JDQPQ9HNB179M8TKB28WSM1Y (1).json


_device is never initialized in PreprocessorPyTorch

Describe the bug
The _device parameter is never initialized in a PreprocessorPyTorch object. It is referenced in the PreprocessorPyTorch.device property, which in turn is used in the PreprocessorPyTorch.__call__ method.
To Reproduce
# test.py

from art.defences.preprocessor.preprocessor import PreprocessorPyTorch

class TestPreprocessorPyTorch(PreprocessorPyTorch):
    def forward(self, x, y):
        return x, y

if __name__ == "__main__":
    preprocessor = TestPreprocessorPyTorch()
    preprocessor(None, None) # doesn't matter what we pass here

$ python test.py
Traceback (most recent call last):
  File "test.py", line 11, in <module>
    preprocessor(None, None)
  File ".../art/defences/preprocessor/preprocessor.py", line 186, in __call__
    x = torch.tensor(x, device=self.device)
  File ".../art/defences/preprocessor/preprocessor.py", line 174, in device
    return self._device
AttributeError: 'TestPreprocessorPyTorch' object has no attribute '_device'

Expected behavior
PreprocessorPyTorch._device should be initialized to a value that is compatible with torch.tensor(..., device=self.device).
System information (please complete the following information):

OS: Ubuntu 18.04.6 LTS
Python version: Python 3.7.5
ART version or commit number: 6d8aacf
PyTorch: 1.7.0

Hi @nilakshdas Thank you very much for using ART and for the detailed description!
Currently, all implementations of PreprocessorPyTorch in ART (e.g. Mp3CompressionPyTorch) define the attribute self._device in their own __init__ methods. In your example it would require
class TestPreprocessorPyTorch(PreprocessorPyTorch):

    def __init__(..., device_type: str = "gpu"):

        [...]

        # Set device
        if device_type == "cpu" or not torch.cuda.is_available():
            self._device = torch.device("cpu")
        else:  # pragma: no cover
            cuda_idx = torch.cuda.current_device()
            self._device = torch.device("cuda:{}".format(cuda_idx))

    def forward(self, x, y):
        return x, y

But, I agree with you, it would be much better if device_type would be passed to super().__init__ to define the attribute self._device in PreprocessorPyTorch.__init__.
Would you be interested to push a solution in a pull request? I'd be happy to provide support!


add support to storage read process to pouchdb for sync between different devices

start a pouchDB server
add url to gulpfile.js
then u can enjoy syncing read process between your different devices

Even though this is nice work, I don't think it should be in the library since it introduces a dependency that most people will not need/use and the functionality is also only interesting for a limited number of use cases. However, if you want to host a modified version of PDF.js with these changes, we'd be happy to mention it on https://github.com/mozilla/pdf.js/wiki/Gallery-of-user-projects-and-modifications. Thanks.


code for plus minus in cpp

i have added code for "plus minus" in cpp

Hey @Animesh-Kumar-6515 thanks for your contribution ❗. Keep up the good job and leave a star if you liked the repo .
Happy hacking 😉


Rswift does not generate font files.

I get an Xcode error while building my project saying:
R does not have no member 'file'.
I use that member file in this func:
public static func loadCustomFonts() {
let fontUrls: [URL?] = [
R.file.sfuiDisplayBoldSFUIDisplayBoldOtf.url(),
R.file.sfuiDisplaySemiboldSFUIDisplaySemiboldOtf.url(),
R.file.sfuiDisplayHeavySFUIDisplayHeavyOtf.url(),
R.file.sfuiDisplayLightSFUIDisplayLightOtf.url(),
R.file.sfuiDisplayRegularSFUIDisplayRegularOtf.url(),
]
fontUrls
.compactMap { $0 }
.forEach { CTFontManagerRegisterFontsForURL($0 as CFURL, .process, nil) }
}
The problem is after updating Rswift does not generate file struct which used to be generated fun when using Rswift version ~> 4.0 and used to look like this:
struct file {
/// Resource file (SFUIDisplay-Bold)SF-UI-Display-Bold.otf.
static let sfuiDisplayBoldSFUIDisplayBoldOtf = Rswift.FileResource(bundle: R.hostingBundle, name: "(SFUIDisplay-Bold)SF-UI-Display-Bold", pathExtension: "otf")
}
I used to have Rswift version: github "mac-cain13/R.swift.Library" ~> 4.0
however after updating it to github "mac-cain13/R.swift.Library" ~> 5.0
So now in order to project build fine I copy paste that pice of code "file". However Rswift does not generate it for me. Please help how it can be figured out to fix this issue of non generating font files for my application. Thanks.

Few question to check your setup is correct:

Have you adjusted the Build phase that runs R.swift? See https://github.com/mac-cain13/R.swift/blob/master/Documentation/Migration.md#upgrading-to-50
Could you please check if the R.swift.Library and R.swift itself are both at the latest 5.0 version?
I understand the fonts are missing under R.file, but are the fonts available under R.font? (If so you might be running into https://github.com/mac-cain13/R.swift/issues/498)

@mac-cain13 thanks for responce,

yes, rswift is totally adjusted
yes
3)yes, R.font is available.

Okay, so this is indeed issue #498 that needs to be fixed.


Modular model structure

This issue is a roadmap for how to create a model structure.

Related to https://github.com/weecology/DeepForest/issues/446, should models be in in deepforest.main or deepforest.main.model


Correctly handle config with empty debug flags

Confluent throws an error if the debug flags array is empty. This PR updates Config.debug to ignore debug flags if the list is empty.

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


Improve GoTestSubCase

Currently, the GoTestSubCase command has two small problems:

It only supports table-drivent test pattern and does not support normal subtest pattern.
We must put the cursor in the name of the testcase to run the testcase.

We should resolve these two problems to increase productivity when writing tests.

For 1 an alterative is snippets included in go.nvim
for 2, it is by design, as the plugin need to know the name of testcase to run a specific test. But you do not need to put the cursor on the name, anywhere inside the testcase should be fine. For table driven test you need to put cursor on the table entry to run a specific test case.

Could you give more detail about the snippets?
I tried to run GoTestSubCase where I put the cursor outside of the testcase name, but it does not run the 1 + 2 = 3 testcase, instead, it run the whole Test_add function.

package add

import "testing"

func Test_add(t *testing.T) {
	type args struct {
		a int
		b int
	}
	tests := []struct {
		name string
		args args
		want int
	}{
		{
			name: "1 + 2 = 3",
			args: args{1, 2},
			want: 3,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := add(tt.args.a, tt.args.b); got != tt.want {
				t.Errorf("add() = %v, want %v", got, tt.want)
			}
		})
	}
}

Yes, I know it is a bit painful. I will need to update the AST parser to handle TestSubCase.

GoTestSubCase is working fine for one level sub test. It covers something like this:
$ go test -v -run 'TestTopLevel/SubCase'

Would it be too hard to make it cover deeper levels of sub cases?
Something like:
func TestTopLevel(t *testing.T) {
  t.Run("SubCase", func(t *testing.T) {
    t.Run("SubSubCase1", func(t *testing.T) {
      // Assert something.
    })

    t.Run("SubSubCase2", func(t *testing.T) {
      // Assert some other thing.
    })
  })
}

We can, from the command line, run specific nested sub sub tests:
$ go test -v -run 'TestTopLevel/SubCase/SubSubCase1'
$ go test -v -run 'TestTopLevel/SubCase/SubSubCase2'

At least currently, GoTestSubCase doesn't seem to cover cases like that.


Ccd final wip

The CCD works fine within its domain. The issues that appear in it are purely fps based depending on each scene. I have attached few examples how fps affect the performance of avatar.
1-On 60 or more fps, everything works perfectly fine without any kind of issues/jitter. Just as fps drop, The issues such as jitter while walking/running appear.
-On 60 fps(no jitter issues.)
https://user-images.githubusercontent.com/35926530/143900719-2b82bbec-8bb6-464c-9c49-57947a055e03.mp4
-FPS drop in the same scene causing jitter
https://user-images.githubusercontent.com/35926530/143900827-c290043b-c9d2-48c2-bad3-c1c040f6cb7d.mp4
-No issue in scenes like prototype, grid where fps remain stable at above 60.
https://user-images.githubusercontent.com/35926530/143900981-deea7495-c0ad-43d7-8c56-fa0e0ba9a469.mp4
-Jitter drop in high requirement scenes causes issues.
https://user-images.githubusercontent.com/35926530/143901896-1fcd3a92-490b-439d-8874-d79e889cc9aa.mp4
IMO the issues related to this PR are resolved, The FPS related issues should be fixed separately. The CCD can be pushed to production.

FPS has improved for me..
Wall jitter doesnt occur at high fps..

@avaer The CCD related issue are fixed. What is left is FPS related issues. Kindly review it for final verdict.

on collision function is still in use for the grounded check, haven't really gotten it to work without it.
It still works, but if it's necessary to change it I'll need to get help from the team.


Gitter for sqlectron ?

Gitter for sqlectron ?

Sure a channel would be great. I already use Slack daily at my job. Could be Slack? Not sure which one is better.

:+1: for slack!

Done https://sqlectron.herokuapp.com


User profile tweets not captured

Hello,
Thank you for the tool. I am a research student working with Twitter data. For my research, I am trying to scrape data from user profiles. Unfortunately due to Scweet pulling data from the search tab instead of the actual user profile, I am only able to capture 1/10th of the tweets. Is there some way to make it scrape data from the user profile itself?
Thank you in advance!

Hello, I'm sorry for the late response. It is possible but I need to change the code for it. I think that the reason behind the 1/10th is the display_type argument which should be 'latest' instead of 'top'


Color Histogram Detector

As discussed in #53 by @r1b, I have taken inspiration from his notebook as well as this paper (pdf) and implemented a color histogram based detector. Command syntax is as follows:
    Command:
        detect-hist

    Arguments:
        --threshold, -t
            Threshold (float) that must be exceeded to trigger a cut.

        --bits, -b
            The number of most significant bits to keep when quantizing the color
            channels of each frame.

        --min-scene-len, -m
            Same as other detectors

For some detail on the detection algorithm, it works in a couple steps:

The frame of the video is separated by color channel and each color channel is quantized. The quantization is done by only retaining the --bits/-b most significant bits of each pixel. The purpose of this step is to reduce the size of the histogram we will be generating in a future step to make it a bit more tractable.
After quantizing each color channel, we want to combine the bits for each pixel of each color channel into one array. For example, with --bits 2, the resulting array would have elements with bit values of 0bRRGGBB where RR are the two most significant bits from the red channel, GG from the green channel, and BB from the blue channel. With --bits 4 this becomes 0bRRRRGGGGBBBB and so on. This is done by performing bitwise shift operations on the different color channels before joining them using bitwise or operations.
With this one array, a histogram is calculated. The number of bins is given by the possible number of colors after all the quantization. So, for --bits 4 that would be 212 (12 comes from the 4 bits for each of the three color channels). Using --bits 2 would be 26 bins.
This histogram is subtracted element-wise from the previous frame's histogram, and the resulting array has all its elements' absolute values summed to find the total difference. This is the value that is checked to trigger cuts and is what is recorded in the stats file as hist_diff.

There are a couple things that I should mention with the current implementation. First and foremost is that the input frames need to be an 8-bit color image. This means that grayscale images that don't have the three color channels will not work. Also, inputs that have a bit-depth greater than 8 bits such as image sequences of 16-bit images will not work. I have included some checks to make sure the input is of the right shape and dtype.
The threshold is very sensitive to changes in the analysis parameters.  Just something to note as the other detectors are not as sensitive to these kind of changes. For defaults, I have chosen values that work well on the goldeneye clip with default downscaling.
Computationally, this detector is not as efficient as others. I have done some testing on my machine and included below the average fps of the detection for different detection algorithms with both default downscaling and -d 1.

detector
fps with -d default
fps with -d 1
Other Notes

detect-hist
637.78
49.31
-b 4

detect-hist
1450.72
53.43
-b 2

detect-content
1422.79
300.61

detect-adaptive
1480.52
293.96

detect-threshold
1425.77
1228.24

If this is something worth cleaning up/improving, I can work on tests and docs.

Sorry for the commit spam, I was trying to use the web editor to get this back up to date on the latest changes in develop.  There's still a few failing tests, but this has been merged into develop to continue work on it.  I'll fix the failing tests up as soon as possible and we can continue figuring out the remainder on #53 .

Would it be possible to have a mode that only detects hardcuts ignoring gradual transitions?
It would be useful for video frame interpolation, where the goal is to stop interpolation over cuts but not overdetect continuous motion.

@elexor See #100 for an open issue regarding fade detection.  Right now PySceneDetect only has the ability to detect fast cuts (detectors can only output hard cuts).
When using the threshold detector, a cut is placed between the fade in/fade out point.  API support for non-hard cuts is planned in the future, which would allow for better handling of cases like this.


Shortcode attributes are not always passed as an array

Callbacks to add_shortcode() are passed an empty string as a first argument,
rather than an array. We need to account for this in Shortcode::register() and
fallback to an empty array if $atts is empty.

This oughtta do it:
diff --git a/wp-content/plugins/conifer/lib/Conifer/Shortcode/AbstractBase.php b/wp-content/plugins/conifer/lib/Conifer/Shortcode/AbstractBase.php
index baeb1291..01bc0112 100644
--- a/wp-content/plugins/conifer/lib/Conifer/Shortcode/AbstractBase.php
+++ b/wp-content/plugins/conifer/lib/Conifer/Shortcode/AbstractBase.php
@@ -19,7 +19,11 @@ abstract class AbstractBase {
    * @param  string $tag The tag to be used to write the actual shortcode
    */
   public static function register( $tag ) {
-    add_shortcode( $tag, [new static(), 'render'] );
+    add_shortcode( $tag, function($atts = [], string $html = '') {
+      $shortcode = new static();
+      // always pass an array of attrs
+      return $shortcode->render($atts ?: [], $html);
+    });
   }

   /**


helper functions for granting a thread permission to a list of objects

These patches solve two problems:

For static threads, they do not inherit any permissions and if started as K_USER, can do very little because of this. K_THREAD_GRANT_ACCESS() populates some data structures in ROM that are used to grant thread permission to objects at boot, so they start up with the permissions they need.

For runtime threads, it's very common to want to grant a thread access a whole list of objects. k_thread_grant_access() does this, calling k_object_grant_access() for each object passed in. This function can run in user mode.

Changed some documentation "should" to "must".
Added attribute((sentinel)) to k_thread_access_grant() to warn users if they forget the terminating NULL argument.


Issue with Framework 7 Multiple Swipers

Hello @nolimits4web i am using the 3 SLIDES PER VIEW, 10PX BETWEEN as demostrated on http://framework7.io/docs/swiper.html .
Once the page loads up i get this
 and it doesn't slide .
When i resize the browser i get this
 and it works ..
How can i make this work without resizing
Here is my HTML

2 Slides Per View, 20px Between

Slide 1

Slide 2

Slide 2

Slide 10

Here is my JavaScript
  var mySwiper3 = MyApp.fw7.app.swiper('.swiper-3', {
    pagination:'.swiper-3 .swiper-pagination',
    spaceBetween: 10,
    slidesPerView: 3,
    paginationHide: false,
  paginationClickable: true
  });

@josieboy i've updated you issue so that we can actually see you samples. I suggest you make use of the 'Preview' tab in future
Is this still an issue? @nolimits4web is this correct usage?

When do you initialize swiper in javascript? You should wait for DOMContentLoaded. If you init to early it will look like in your 1st screenshot. When resized, Swiper will recalculate and then it looks fixed.

I'm currently facing the same issue! This is because I'm initially hiding the slider and then showing it according to some condition. Is there anyway to update the slider manually after showing it ?

Try to trigger a resize event manually
$(window).trigger('resize');

I was able to solve my issue by setting observer: true in the swiper settings. This is based on this issue related to dynamic content that is fetched via ajax and then appended to the swiper. I don't think it is related to the OP's issue,  but the appearance of the swiper is similar to that descriped in the original issue.


Keeping having an issue with no backend available

Sorry for the poor formatting im using my phone
Hello, i connected my TSP100III therm printer by usb and im running a simple script to see if my python program can find the printer.
The error im getting points back to:
usb.core.find(idVendor=vendorID, idProduct=productID)
In which the error says:
usb.core.NoBackendError: No backend available
im using the sample code provided and i just trimmed it to just test if it finds my printer. i confirmed the Ids in your sample are the same with my printer.
My question is: Can you figure out why im getting this error? How can i resolve this? I could not find a single answer for this after searching for hours
Import usb.core
VendorID = 0x0519
ProductID = 0x0003
dev =  usb.core.find(idVendor=vendorID, idProduct=productID)
if dev:
print("FOUND")
else:
print("NOT FOUND")

I think you will be missing libusb from your system. Should be able to install with brew install libusb if on macOS

I think you will be missing libusb from your system. Should be able to install with brew install libusb if on macOS

Maybe that could be the reason but now that ive installed it, did i need to to add anything else to the existing code? Ive added "import libusb"
I still get the same problem but im pretty sure i might need to do something to make use of the import

You only need to import usb.core
You should check the push faq as your issue lies there rather than with this project I’m afraid…
https://github.com/pyusb/pyusb/blob/master/docs/faq.rst
you can also bypass the need for usb.core by sending to /dev/usb/lp0 (first example in the readme)

Thats understandable thank you for you help!


EDU-816 Create MusicXML plugin

Closes https://educandu.atlassian.net/browse/EDU-816

When I try to add a music-xml-viewer section in a document I get the following error:

Is it possible that you have some temporary local changes in this external package so that it works for you?

When I try to add a music-xml-viewer section in a document I get the following error:  Is it possible that you have some temporary local changes in this external package so that it works for you?

clear seems to throw when there was no rendering before (and I already had test sections, so it never came to my attention). Unfortunately the whole library is not very nicely documented. I will re-write his a little bit.

Sorry for the many copy/paste errors, I was very sloppy :roll_eyes:

Sorry for the many copy/paste errors, I was very sloppy 🙄

It's the project season for such things from both of us, all good!

When I try to add a music-xml-viewer section in a document I get the following error:  Is it possible that you have some temporary local changes in this external package so that it works for you?

clear seems to throw when there was no rendering before (and I already had test sections, so it never came to my attention). Unfortunately the whole library is not very nicely documented. I will re-write this a little bit.

I've extracted the component that renders the XML document (similar to how we've done it with PDF documents) and added some conditional logic to only clear when there was at least one render call before. Now the error is gone. Thanks for pointing it out.

When I try to add a music-xml-viewer section in a document I get the following error:  Is it possible that you have some temporary local changes in this external package so that it works for you?

clear seems to throw when there was no rendering before (and I already had test sections, so it never came to my attention). Unfortunately the whole library is not very nicely documented. I will re-write this a little bit.

I've extracted the component that renders the XML document (similar to how we've done it with PDF documents) and added some conditional logic to only clear when there was at least one render call before. Now the error is gone. Thanks for pointing it out.

Wonderful, looks great!! 🎉


Add Winmd support

Currently only managed plugins are referenced in MSBuildForUnity project generation. In some instances, we also need to include winmd references. This change introduces the concept of winmds and adds winmd references to MSBuildForUnity generated projects.
https://github.com/microsoft/MSBuildForUnity/pull/93 is currently open and addresses all changes before 137fd4d "add winmd support"

This is an awesome change.
I would like to understand a couple of things in terms of Unity behavior regarding WinMD:

What happens when we say WinMD supports Android, and build for Android?
What happens when we say WinMD references a placeholder DLL, that DLL is set to support Android player, and try to build it for Android player?
What happens when we say WinMD references a placeholder DLL, both the DLL and WinMD support WSA player, we export the WSA solution and try building it?

We should mimick the Unity behaviour here with our setup.

So to start off, you can hit editor crashes if you have both the placeholder dll and winmd enabled for the editor and switch from the standalone player to the WSA player. It looks like this is a Unity exception compared to a MSBuildForUnity exception.

What happens when we say WinMD supports Android, and build for Android?

This generates an error when exporting/building stating that the "dll is not allowed to be included or could not be found"

What happens when we say WinMD references a placeholder DLL, that DLL is set to support Android player, and try to build it for Android player?
What happens when we say WinMD references a placeholder DLL, both the DLL and WinMD support WSA player, we export the WSA solution and try building it?

This may have just been quick/strange wording, but WinMD's don't reference placeholder dll's. WinMDs and placeholder dlls define the same types for the WSA vs other players.
If you include both a winmd reference and a placeholder reference for the WSA player an error is generated based on the colliding types.
If you include just a placeholder dll reference for Android, things successfully build. This should be fine because the placeholder dll is callable no-op .NET dll. Folks may get unexpected behavior at runtime but they have fundamentally setup their code in a strange manner to use WSA types for non-WSA unity players.
If you include a winmd and placeholder dll reference for Android you get the same error for including a winmd reference.

Thanks for looking into this. About specifying placeholder dlls, see this image:

I've added more robust error logging and winmd reference exclusion when things are configured incorrectly.


PP-5266: Pact test for getting gateway accounts from directdebit conn…

…ector
I created a new direct_debit_connector_client2.js as I spent a day trying to set a pact server port on direct_debit_connector_client.js with no success.

depends on https://github.com/alphagov/pay-direct-debit-connector/pull/497


Manual rebase of upstream as on 27th November

Followed the procedure of https://github.com/openshift/cloud-provider-ibm/pull/41
Carry commits
UPSTREAM: <carry>: Add OWNERS
UPSTREAM: <carry>: Add vendor
UPSTREAM: <carry>: Fetch internal IPs of vms from dhcp server
UPSTREAM: <carry>: Add a Dockerfile that compatible with OpenShift
UPSTREAM: <carry>: snyk code scan exclude vendor directory
UPSTREAM: <carry>: Updating ose-powervs-cloud-controller-manager images to be consistent with ART Reconciling with https://github.com/openshift/ocp-build-data/tree/da6a5af1fa96762cc8410f09fc28c0457280f59a/images/ose-powervs-cloud-controller-manager.yml
UPSTREAM: <drop>: Updating and vendoring go modules after an upstream rebase

Squashed commit
UPSTREAM: <carry>: Added Support for PowerVS metadata service
UPSTREAM: <carry>: Add check for valid Power VS instance id
UPSTREAM: <carry>: Support to use service instance name in config

Dropped commit as its already available in upstream
 OCPBUGS-XXX: CVE-2023-39325 - Update net dependencies - 4.15

/hold for verifying

/close
Used wrong upstream relase


refactor: separate CdcScan from Scan in logical and core

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Part of https://github.com/risingwavelabs/risingwave/issues/13146.
Later we can also rename Scan to RwTableScan to make the distinction clearer.

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Let @StrikeW take a look first.


HTTP / HTTPS errors reported incorrectly

I had a http:// at my SHAKENFIST_API_URL instead of a https:// and I got an unauthorized error instead of a message about not talking HTTPS correctly.

Specifically:
$ sf-client instance list
ERROR: Not authorized


Celery or Dramatiq style Compute Backend

User celery or dramatiq with redis, as workers for a compute backend.
Redis can be used to hold state and communicate results etc.

Taskiq is a perfect fit as it's fully async
https://taskiq-python.github.io/


add accessToken and scopes

this has essentially the same purpose as https://github.com/react-native-community/react-native-google-signin/pull/457 which now has a bunch of conflicts after we merged the PR for api changes. I figured that I would just implement it right away so we can release a new RC asap.

accessTokenExpirationDate is null on Android. Everything else looks good! 🎉


Optional notes with question answer

When completing a question, allow the users to add an optional note with their answer. This allows the user and beneficiary to capture any additional detail which comes up whilst discussing the question or the beneficiary's answer.
There should be a text box input available when completing an answer. This should, by default, be hidden behind an accordion. The accordion text should say "Notes", when clicked, the text box input should be shown.
The input can be arbitrarily large, so the text box should be possible to be resized by the user, I think this typically uses the textarea element type.
On submitting the answer, the answer and notes should be saved.

 Assessment notes

Blocked by impactasaurus/server#31


Doc: text()/binary() option concerns writing

Make clear text()/binary() option is different from got_text()/got_binary().

This will go into 172

This got merged, thanks!


Read from a configuration file

To start, we can read JIRA_USER_EMAIL from the configuration file instead of an environment variable.  The config file should exist in the .config directory.

This is completed


Fixed the old and deprecated Reader function by using 'tostring'

Fixed the old and deprecated Reader function by using 'tostring' in fountain.lua file.

thanks!


Feature/dynamic hostname

made hostame+port dynamic in order to user the app from a tablet or smartphone connected to the same wireless network

made hostame+port dynamic in order to user the app from a tablet or smartphone connected to the same wireless network


Why are we using .flat()?

Why do we need to flatten children? I'm sure this question will come up again and again, so it would be nice if there was an explanation we could refer to when we need to refresh our memory.

For context, this is currently only something that needs to be handled by the function in babel-plugin-hyperlit/html.js, because when we are directly parsing hyperlit, the flattening occurs as part of the parsing process, but that is not possible in the context of a babel-plugin (this is part of the transformation we still need to shunt to the runtime context).
As for why it is needed, it is because we want to support injecting dynamic content into other content. Content is represented as arrays of vnodes. So we need to support arrays (=content) which can contain a mix of of vnodes and injected content (arrays).
As to how far deep we need to go, I'm not sure. Currently I'm using .flat(2) but it may be that simply .flat() would suffice. I found setting up tests for babel-plugins difficult, so I haven't been able to verify. But I surely will, eventually. Leaving this issue open until that question is resolved.

Tried .flat() in<EMAIL_ADDRESS>and it seems to work. So I'm going with that for now


Added Abaddon badge

I just realized the file is kind of big.  If it should be smaller let me know.

Here's a new one with the appropriate size and in a square box.

I'm going to close this as the PR was recreated as hubot-scripts/hubot-ingress#45


WIP #8942 - Refactor DbFunctions public api

Update DBFunctions public api based on #8942

Everything should be done except

Investigate adding HasDbFunction that takes an expression instead of a MethodInfo

Looking good. I turned #8942 into a checklist and ticked what I think we have so far.

I can't make these changes until tonight - working today.

Updates are done.  DbFunctionParameter is gone.  :yum:

I have added an overload for HasDbFunction which accepts a Func<T>.  This will allow you to define a method without needing a MethodInfo.  You will need to provide a full method call with filler parameters like this.
modelBuilder.HasDbFunction(() => TestMethods.MethodA(null, default(int)));

Merged thanks!


yielding api

something i'm experimenting with in https://github.com/devsnek/jsont/pull/1

Are you still working on this or did you hit a roadblock? I'd be interested in exploring a high-level variant of this using Rust's async functions.

Are you still working on this or did you hit a roadblock? I'd be interested in exploring a high-level variant of this using Rust's async functions.

I no longer work at the company where I was working on this. Async functions would be cool and I experimented with it a bit. The main issue is that it's difficult to provide an Env to async functions correctly. I tried some hacks like a fake env that implements deref to get the real env but I'm fairly sure it's not actually possible in safe rust to prevent the reference from being held across await points. It is doable in generators though, and I at one point had something working where env references are passed in via yield. the only annoyance with this is that you still can't hold any values across suspend points, you need to somehow interface with rust and put all the values it captures into the reschedule arguments and that's not possible. So I ended up with the much simpler model you see here.

The only safe way is to copy all terms to a process-independent environment and use the terms from that one. But that should actually work across awaits, right?


Using custom DeviceName in nearbyService.init only returns "Unkown" devices

Hello there:) Is it possible to define the device name so that other devices see this name when I am discovered?
I've tried a string within nearbyService.init(DeviceName: "..."   but the name of the discovered device has only been "Unknown".

Android or IOS?

Android or IOS?

I've only tested it on android using xiaomi mi 9t connecting to xiaomi redmi note 9 pro. I'll try a different device soon.

I've only tested it on android using xiaomi mi 9t connecting to xiaomi redmi note 9 pro. I'll try a different device soon.


Support Composite SLOs

Composite SLOs were added into the spec in OpenSLO/OpenSLO#182, however they never made it into the Go struct code.
Essentially, with the new spec, Indicators can be added in the Objective field, as a inline, or ref. A new field is also added for the weight.
By allowing this for Composite SLOs we need to remove the required validation for Indicator within the main SLO Spec.

looks good!
As I commented on https://github.com/OpenSLO/oslo/pull/325, I've also spotted the composites absence when moving/refactoring oslo definitions, so we should be good there ;)


[Integration-Test]  Add plugin test for Http

Hi community
Plugin integration testing is very important. But now there is still a part missing, can you do me a small favor.
So I have listed the following tasks：

[ ] add cryptor plugin  @4zd
[ ] add hystrix plugin  @rockpig
[ ] add modify-response plugin @lw1243925457
[ ] add param-mapping plugin
[ ] add request plugin @rom1c77
[ ] add resilience4j plugin @rockpig
[ ] add sentinel plugin @rom1c77

Don't worry, they are not very difficult, you can refer to：
waf plugin
Please read the Contribution Guideline before submitting the PR
If you would like to participate, Please leave a message under this issue.

@yu199195 Hi, I have done param-mapping plugin test in #1966 .

@4zd @rockpig Hi, how is the progress? Or do you need my help?

Sorry for missing this message, I did get stuck on something and try to fix it by myself. I find the cryptor plugin integration test has been finished and commited by Kunshuai Zhu on last weekends. Thanks for the favor, and I applogize for the delay from me.

@4zd @rockpig Hi, how is the progress? Or do you need my help?

Sorry for missing this message, I did get stuck on something and try to fix it by myself. I find the cryptor plugin integration test has been finished and committed by you on last weekends. Thanks for the favor, and I applogize for the delay from me.

That's alright~


Fix infinite recursion on resize

In Chromium 108.0.5359.124 I saw infinite recursion in maybeResize/resize/onBeforeFrame. So I added a recursion guard to maybeResize.

Thanks for the contributions! In the case of this one, I'm reluctant to merge this without understanding first why there's infinite recursion. I generally bias heavily towards fixing causes rather than symptoms, and this sounds like a symptom of a logic error to me (probably one I wrote).

I can reproduce it by just going to https://www.speedscope.app/ and loading the example profile.

@tstarling Interesting! Can you say more about exactly what you're doing? When I load up https://www.speedscope.app/ and loading the example profile and try zooming around and resizing the window, I'm not able to create a crash

No interaction, it fails to even show the profile. Actually, it's logging an exception when the page loads, before I even try to load the profile. Here's the console log after opening the page:
speedscope.tsx:5 speedscope v1.15.0
canvas-context.ts:34 WebGL initialized. renderer: ANGLE (NVIDIA Corporation, NVIDIA GeForce GTX 1650 with Max-Q Design/PCIe/SSE2, OpenGL 4.5.0), vendor: Google Inc. (NVIDIA Corporation), version: WebGL 1.0 (OpenGL ES 2.0 Chromium)
canvas-context.ts:57 Uncaught RangeError: Maximum call stack size exceeded
    at onBeforeFrame (canvas-context.ts:57:10)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
    at onBeforeFrame (canvas-context.ts:63:7)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
canvas-context.ts:57 Uncaught RangeError: Maximum call stack size exceeded
    at onBeforeFrame (canvas-context.ts:57:10)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
    at onBeforeFrame (canvas-context.ts:63:7)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
canvas-context.ts:57 Uncaught RangeError: Maximum call stack size exceeded
    at onBeforeFrame (canvas-context.ts:57:10)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
    at onBeforeFrame (canvas-context.ts:63:7)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
canvas-context.ts:57 Uncaught RangeError: Maximum call stack size exceeded
    at onBeforeFrame (canvas-context.ts:57:10)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)
    at onBeforeFrame (canvas-context.ts:63:7)
    at graphics.ts:497:46
    at Set.forEach (<anonymous>)
    at a.resize (graphics.ts:497:32)
    at maybeResize (application.tsx:101:33)


Synthesis include mol block

Would be good to have a moles column in the synthesis information section to make stoichiometry clearer. This could connect with molar mass information down the line too.

I think we want both the mass and the moles: the mass is what we actually measure and the moles are what we impute.
A product box would be nice too: I guess it needs to be clear what goes in it rather than the box.
If there were a box where we can put in chemical formulae and then the moles could be directly calculated.
Some of this depends on the design of this section of course!


window OS doesn't work with getuid

C:\Users\XiaoJ>synbols-datasets
Synbols (1.0.0) found at c:\users\xiaoj\anaconda3\lib\site-packages\synbols
Traceback (most recent call last):
File "c:\users\xiaoj\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\xiaoj\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\XiaoJ\Anaconda3\Scripts\synbols.exe_main.py", line 7, in
File "c:\users\xiaoj\anaconda3\lib\site-packages\synbols\entrypoints\run_docker.py", line 165, in main
ports=args.docker_port, args=script_args)
File "c:\users\xiaoj\anaconda3\lib\site-packages\synbols\entrypoints\run_docker.py", line 84, in run_in_docker
arg_list = f"docker run --rm --user {os.getuid()} -it".split()
AttributeError: module 'os' has no attribute 'getuid'

Hi @Ann-shell!
Thanks for reporting this. Until now, we have only tested Synbols on MacOS and Linux, but there is no reason why it couldn't work on Windows too.
I was able to reproduce your issue in a CircleCI Windows environment. I'll work on a fix and update you with progress.

In the meantime, I would recommend that you simply setup synbols in a Linux virtual machine (e.g., using Ubuntu with Virtual box). This may be the easiest way to go.
The main issue for running Synbols on Windows is that we rely on mounting paths from your system into the Docker container. This means that:

The paths must match on your system vs the Docker container (non-trivial on Windows due to Unix vs Windows-style paths)
We need to make sure that the user inside the Docker container has sufficient permissions to write to your system directories (hence the --user {os.getuid(0)} part) in the command that fails on Windows).

So if you're looking for a quick resolution, I'd definitely go for the virtual machine solution.

Hello again,
We've decided not to support Windows for now due to the extra complications mentioned above and the complexity of maintaining a Windows development environment for the team. If there is enough demand, we will reopen the issue and look into this more seriously.
In the meantime, please use the virtual machine solution mentioned above to run the Synbols generator from a Windows host.
Cheers,
Alex

Hello again,
We've decided not to support Windows for now due to the extra complications mentioned above and the complexity of maintaining a Windows development environment for the team. If there is enough demand, we will reopen the issue and look into this more seriously.
In the meantime, please use the virtual machine solution mentioned above to run the Synbols generator from a Windows host.
Cheers,
Alex

Hi Alex,
Thank you so much! We would try to use a virtual box, or do you think we could process the docker on Mac?
Best,
Jingyi

Mac or Linux with Docker installed will definitely work.


[GLUTEN-1299][CH]NativeColumnToRow is used when disable native scan

What changes were proposed in this pull request?
Fixes: #1299
How was this patch tested?
Test by adding a UT

Can one of the admins verify this patch?

It is inconvenient to run velox backend's test cases in my local environment for now.So just trigger CI to see what will happen.

Is the patch now only for CH backend?

please rebase, and review later again.


Shouldn't bulit-ins get completed?

Everything works okay in most cases, e.g.:
<?php
class Foo {}
$x = new F # Padawan suggests `Foo`

But shouldn't the built-in functions (like below) get completed as well?
<?php
func_g # Padawan doesn't return suggestions
func_get_args(); # same
imagecreatetruecolor(); # same
foreach(); # same

All I get is:
Padawan.php error: Could not define empty line context

Maybe there's something wrong with my installation process?

Installed NVIM-0.1.6-dev and vundle,
installed deoplete, deoplete-padawan and padawan,
installed composer global require mkusher/padawan,
installed PHP <IP_ADDRESS> via sudo apt-get install php,
created file foo.php, opened it with nvim and started typing.

As far as I understand, the purpose of the set omnifunc provider is to provide language syntax completion? At least phpcomplete-extended was doing that... So what am I doing wrong?
[EDITED] If I install UltiSnips and a snippets pack I get templates suggestions, so it doesn't seem to be the problem with deoplete.

it looks more like problem with deoplete-padawan, it doesn't send prefix.
Cc @pbogut

@mkusher, your right, prefix is not sent by the deoplete-padawan. The column is always set at the beginning of the word. I wIll take a look at this later.
@cprn, which version of padawan you are using? As far as I can tell the error is displayed on stable 0.2.1 but this version doesn't support build in functions anyway.
If you want to use omnifunc with deoplete it will take async benefits away.
It will work as expected with padawan from the master branch when I fix the issue @mkusher has addressed.

which version of padawan you are using?

Whatever gets installed with vim-plug:
git log --pretty=oneline
d74aad4dcfe0ce9e5f89b79f23ad92fa6b86d0d5 Update README.md

It will work as expected with padawan from the master branch when I fix the issue @mkusher has addressed.

Sounds legit.
Do we close this issue and move to your github? (it says 0 open issues)

@cprn yeah, it's better to continue there https://github.com/pbogut/deoplete-padawan


api-management policies: base element either has a misleading description or incorrectly inherits from parent scope

If I have three scopes: global, product, and API, I cannot inherit the product scope from the API scope, only the global scope from within the API scope. This is contrary to the documentation here https://learn.microsoft.com/en-us/azure/api-management/set-edit-policies?tabs=form#use-base-element-to-set-policy-evaluation-order

In API Management, determine the policy evaluation order by placement of the base element in each section in the policy definition at each scope. The base element inherits the policies configured in that section at the next broader (parent) scope. The base element is included by default in each policy section.

To reproduce:

Go to the Azure API Management portal
Create a global scope policy e.g. in the outbound section
Create a product scope policy (with base attribute)
Create an API scope policy for an API within the product (with base attribute)
Go to API scope policy, click 'Calculate effective policy'

Actual: only global-level policy appears
Expected: product level policy appears (or global + product level policies appears)
I can provide a code example of a test output where only the global policy is picked up, if needed.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 250924d9-418b-9a24-90fe-5b3835c3b2a7
Version Independent ID: cfd91d85-ffff-d2b0-fc7f-61bcae6ed615
Content: Policies in Azure API Management
Content Source: articles/api-management/api-management-howto-policies.md
Service: api-management
GitHub Login: @dlepow
Microsoft Alias: danlep

@redashimself
Thanks for your feedback! We will investigate and update as appropriate.

@redashimself Could you post the specific example you've used? In order for the policies defined in the Product scope to take effect in the calculation, there needs to be a valid Subscription key in the Request that points to Products -- which may be something needs to be captured in this doc.

@redashimself Could you post the specific example you've used? In order for the policies defined in the Product scope to take effect in the calculation, there needs to be a valid Subscription key in the Request that points to Products -- which may be something needs to be captured in this doc.

I see what you mean. I have now tested with two types of subscriptions: Product scope and API scope. If I use an API-scoped subscription, the Product scope policies don't get picked up (despite having the base  attribute). If I use the product-scoped subscription, the Product scope policies work fine. Am I to understand this is the intended behavior? If so, I agree this needs to be captured in the doc.
The example I used is just a simple one from the example repo:
<outbound>
      <return-response>
           <set-status code="404" reason="Test" />
           <set-header name="Test" exists-action="override">
               <value />
           </set-header>
           <set-body />
       </return-response>
</outbound>

Thanks @redashimself for contacting us about this issue. The behavior you note is captured currently in this article about subscriptions:
"Note: If you're using an API-scoped subscription or the all-access subscription, any policies configured at the product scope aren't applied to requests from that subscription."
However, I see that it is worth adding in other content such as this article about policy behavior. I'll prepare an update to that article soon to add that information. Thanks again!


is memray support profiling c version of python package like pillow?

is memray support profiling c version of python package like pillow?

Yes, see https://bloomberg.github.io/memray/run.html#native-tracking - you'll need to use the --native option to memray run, and you'll need to generate the reports on the same machine the capture file was generated on.

Yes, see https://bloomberg.github.io/memray/run.html#native-tracking - you'll need to use the --native option to memray run, and you'll need to generate the reports on the same machine the capture file was generated on.

memray-flamegraph-benchmakr.py.13823.html.zip
here is my memory profiling.
i read a lot of image:
import os
import PIL
from PIL import Image

dir = "/home/centos/pillow-bench/Images_0/0"
onlyfiles = []

filedir = dir
files = [f for f in os.listdir(filedir) if os.path.isfile(os.path.join(filedir, f))]
filepaths = map( lambda x: os.path.join(filedir, x), files )
onlyfiles += list(filepaths)

s = 0
for i in range(len(onlyfiles)):
    fname = onlyfiles[i]
    image = PIL.Image.open(fname)
    # Do something
    image.tobytes("xbm", "rgb")
    if i % 10000 == 0:
        print('iteration ', i)

input("Press Enter to continue...")

i expect there have lots of memory allocation by pillow package, but there is not.


0.9.4-prerelease2

This pr tracks the progress to 0.9.4-prerelease2

Testing is blocked, due to my being unable to find the k3os usb stick :(

Checks:

[X] Installs without errors
[X] All default services start
[ ] Enabling barcode reader works
[X] Enabling datainput works
[X] Enabling barcodereader works
[X] Enabling cameraconnect works

@JeremyTheocharis requires manual merge, kafka dev private keys kill gitguardian


conf files are not copied

Error description:
I'm facing the problem, that my conf.d/*.conf files are not being copied to data/conf.d/.

.env variable is set: USE_NGINX_CONF_FILES=true and NGINX_FILES_PATH=./data/
script starts with sudo ./start.sh
running start.sh as root has no positive effect
conf.d/ is not empty
it's the only problem I have, all other thing are running as expected

I'm testing my nginx config with: sudo docker exec nginx-web nginx -T.
I had to copy all custom configs manually to the data folder. After that everything works fine. I've seen that the start.sh throws error messages, if the copy process fails, but I'm not getting these errors. Maybe someone can help me with this...

@evertramos I found my mistake! 🙌
Problem was my DOS line ending. I just had to change vom CLRF to LF and everything worked as expected! Maybe this helps someone...

@DaniSchenk
Thank you very much for sharing! Sure someone will need it.


Port support

Can you connect using network or just using a socket? I run my application inside a docker container so it would be nice to be able to setup a port for connection.

Hi there!
Right now I don't think you can... I'm not a big docker user and nobody asked for it yet.
However, looking at the vscode extension counterpart, I think it should be possible:

We just have to implement the TCP/IP connection method. Are you willing to give me a hand testing this? I would prefer to avoid installing a whole docker setup on my system.
Let me know. If you are available I can give it a shot in the next days

I am happy to test, for now I am using this one that has TCP support: https://github.com/SergeyBurtsev/nova-ruby-debugger


It seams the queue is not ready so fast. So i work with a workarround: every 3 sec i call group.get.queue an if the payload.length is > 0 i start play.queue again. This works for me but it is a workaround ;-)
In case of a bug: Are you able to reproduce the error
yes
Versions and Infrastructure
what system: Raspberry Pi
node-red-contrib-sonos-plus version:  5.0.4
Node-RED version: 1.2.9

How to you send it? Can you export the flow?
To play all songs in a NAS you could try to create a playlist and queue that playlist. But there is also a limit for the internal SONOS queue.

Here the Flow (a part of the "Bad")... the "list" has >= 500 entries. But with my workaround (s.o.) it works.
[{"id":"e31acdf1.a459d","type":"sonos-universal","z":"35d6d5d8.ffae7a","confignode":"ef902a25.0c8678","command":"group.clear.queue","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"","x":490,"y":480,"wires":[["1e0c90cb.e1782f"]]},{"id":"91bd72fd.587ab","type":"link in","z":"35d6d5d8.ffae7a","name":"Sonos Play Bad","links":["5d2f9ea9.013ab","b46834ca.989a28"],"x":275,"y":480,"wires":[["6f35200.93750e","e31acdf1.a459d"]]},{"id":"1e0c90cb.e1782f","type":"switch","z":"35d6d5d8.ffae7a","name":"Stream/Queue(+)","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"stream","vt":"str"},{"t":"eq","v":"queue","vt":"str"},{"t":"eq","v":"queue+","vt":"str"}],"checkall":"false","repair":false,"outputs":3,"x":810,"y":480,"wires":[["7f6a21ae.13b85"],["bd382a3a.89ff48","53999329.0cb54c"],[]]},{"id":"6f35200.93750e","type":"debug","z":"35d6d5d8.ffae7a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":330,"y":540,"wires":[]},{"id":"7f6a21ae.13b85","type":"sonos-manage-mysonos","z":"35d6d5d8.ffae7a","confignode":"ef902a25.0c8678","command":"mysonos.stream.item","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"","x":1200,"y":480,"wires":[[]]},{"id":"bd382a3a.89ff48","type":"sonos-manage-mysonos","z":"35d6d5d8.ffae7a","confignode":"ef902a25.0c8678","command":"mysonos.queue.item","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"","x":1200,"y":540,"wires":[["24176eee.247702"]]},{"id":"53999329.0cb54c","type":"sonos-universal","z":"35d6d5d8.ffae7a","confignode":"ef902a25.0c8678","command":"group.get.queue","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"","x":1180,"y":600,"wires":[["a9a805c5.8cdfb8"]]},{"id":"24176eee.247702","type":"debug","z":"35d6d5d8.ffae7a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1430,"y":540,"wires":[]},{"id":"a9a805c5.8cdfb8","type":"function","z":"35d6d5d8.ffae7a","name":"Queue ready","func":"msg.play = (msg.payload.length != 0)\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1450,"y":600,"wires":[["a50f400b.12f1"]]},{"id":"55816370.65cfbc","type":"delay","z":"35d6d5d8.ffae7a","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1460,"y":660,"wires":[["53999329.0cb54c"]]},{"id":"a50f400b.12f1","type":"switch","z":"35d6d5d8.ffae7a","name":"Play True/False","property":"play","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1660,"y":600,"wires":[["d4011584.e4e778"],["55816370.65cfbc"]]},{"id":"d4011584.e4e778","type":"sonos-universal","z":"35d6d5d8.ffae7a","confignode":"ef902a25.0c8678","command":"group.play.queue","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"","x":1890,"y":600,"wires":[[]]},{"id":"ef902a25.0c8678","type":"sonos-config","name":"Bad","serialnum":"B8-E9-37-52-9D-06:B","ipaddress":"<IP_ADDRESS>"}]

So you have a list of about 500 songs. You want to add these songs to the SONOS queue and then play them in shuffle or normal order - right.
Is this list "static" - always the same? You could add in once to the SONOS queue and then use group.save.queue  (lets say with name "mybigqueue" to save it. It is then available in My Sonos playlists. And you can "restore" the whole queue with mysonos.export.item payload mybigqueue and playit with group.play.export

on the NAS are all songs from all my CD's and musik downloads - the list is so not static. it contains today over 7.000 items. i will test it with your option or use my workaround. Thank you. BR Hubertus

Reading this: maximum tracks in SONOS queue you could add all your tracks to the SONOS queue.
Some weeks a ago I accidentally added about 3000 tracks to the queue - it works but took some seconds.

You can use clementine. It has "smart playlist" (autogenerated) and one of them is all tracks. Save it as wpl/m3u playlist. This you can insert in SONOS.

Ok - thank you. i will try the queue - do you have a sample flow how to do this?

Then you can save the queue and it should be available in My Sonos.

Ok - thank you for all.


Sentinel Fusion creates alerts automatically

This article does not cover the fact that Azure Sentinel Fusion automatically creates incidents when it says that "Alerts triggered in Microsoft security solutions that are connected to Azure Sentinel, such as Microsoft Cloud App Security and Azure Advanced Threat Protection, do not automatically create incidents in Azure Sentinel."
[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ec99d016-9c67-29b6-c5a9-f0743106ad22
Version Independent ID: 9503625c-cff7-4e08-3167-e5211dfeada6
Content: Create incidents from alerts in Azure Sentinel
Content Source: articles/sentinel/create-incidents-from-alerts.md
Service: azure-sentinel
Sub-service: azure-sentinel
GitHub Login: @yelevin
Microsoft Alias: yelevin

That's right, because this article isn't talking about that. This article is talking about the creation of standalone incidents from alerts generated by these external solutions (MCAS, MDI, etc). Fusion creates incidents by correlating between alerts from these different solutions. It doesn't create incidents from, say, MCAS alerts alone, or from MDI alerts alone.
If you think this is still confusing, I can add a note to that effect if it helps.

Thanks for your response. Yes, it is confusion for if the incidents created by correlating between alerts is not mentioned, and will be good to mention it with a link about it Thanks,Yogesh. From: Yechiel LevinSent: Sunday, August 8, 2021 4:28 AMTo: MicrosoftDocs/azure-docsCc: yogeshkantroy; AuthorSubject: Re: [MicrosoftDocs/azure-docs] Sentinel Fusion creates alerts automatically (#79438) That's right, because this article isn't talking about that. This article is talking about the creation of standalone incidents from alerts generated by these external solutions (MCAS, MDI, etc). Fusion creates incidents by correlating between alerts from these different solutions. It doesn't create incidents from, say, MCAS alerts alone, or from MDI alerts alone.If you think this is still confusing, I can add a note to that effect if it helps.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

Hi @yogeshkantroy
We've added your suggestion into our backlog and will update the page in a coming publish.
I'm going to close this issue for now, but feel free to continue commenting if you have additional feedback.
Thanks for your contribution to docs!
#please-close