Repeating "gp" is not very consistent with repeating "gP"

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
Both "gp" and "gP" place the cursor one character after the end of the pasted text. IMO this makes repeating "gp" not very consistent with repeating "gP". For example, consider the following buffer content:
[]123456789
aaa
bbb

If I press 2gg0vjllygg2|gP.........., the buffer content becomes:
[aaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbbaaa
bbb]123456789
aaa
bbb

All the aaabbbs are inside the square brackets.
If I press 2gg0vjllygg0gp.........., the buffer content becomes:
[aaa
bbb]aaa
bbb1aaa
bbb2aaa
bbb3aaa
bbb4aaa
bbb5aaa
bbb6aaa
bbb7aaa
bbb8aaa
bbb9aaa
bbb
aaa
bbb

Only the first aaabbb is inside the square brackets.
IMO the behavior of "gP" looks more consistent. For example, repeating with 10. is the same as repeating with .......... for "gP", but not the same for "gp".
Also, the current cursor placement of "gp" is inconsistent when in the middle of a line and when at the end of the line with 'virtualedit' disabled, as the cursor cannot be moved past end of the line here. This makes it require extra calculation for a plugin to predict the cursor placement of "gp".
Describe the solution you'd like
Make "gp" place the cursor on the last character of the pasted text instead of one character after it. This can also make predicting the cursor placement of "gp" simpler. I'm not sure how much backward compatibility this will break.

We can't change this without breaking backwards compatibility.
Instead of repeating "gp" you can use one "gp" and then "gP" and repeat that.
That's not really different from some other put commands, depending on where the cursor ends up you can repeat the same command or need to use another one.
It should not be too difficult to get used to the current behavior.


does it support ref to local file?

something like
"$ref": "definitions.json#/definition/myformat"

it does support remote and local refs, but you must specifically load them and suply them to jjv, since it will not initiate file reads (remote or local) due to security concerns.


Copying scripts consistently (4-2-stable)

verified in CI on 4-2-stable and master

yes, please squash and # it


Changed the way tabbed content is rendered to be more mobile friendly

There vertical tabs used across the docs were anything but mobile friendly, so I updated them to scale better. Here's some screenshots:
Desktop

Mobile

When tabs are used, the usual practice seems to be that the background is coordinated with the tab color.  But given a black background, I'm not sure how this would be done.  I think what you've done is an improvement -- we lose less space on the left and the tab contents being highlighted show what is covered below them.
For what I mean about tabs, see this: https://www.nngroup.com/articles/tabs-used-right/


when enum is used as key in a map the json format is not an expected format

Description
I would expect map to be parsed as json objects eg.
{"aa":"completed","bb":"running"}
In fact this json format is dependent on the key type. When the key type is string, the json is created as expected.
When the key type is an enum, the map is parsed as json array eg.
[["stopped","aa"],["completed","bb"]]
Reproduction steps
#include <iostream>
#include <string>
#include <map>
#include "common/include/json/json.h"

using njson = nlohmann::json;

// example enum type declaration
enum TaskState {
    TS_STOPPED,
    TS_RUNNING,
    TS_COMPLETED,
    TS_INVALID=-1,
};

// map TaskState values to JSON as strings
NLOHMANN_JSON_SERIALIZE_ENUM( TaskState, {
    {TS_INVALID, nullptr},
    {TS_STOPPED, "stopped"},
    {TS_RUNNING, "running"},
    {TS_COMPLETED, "completed"},
})

int main(int argc, char ** argv) {

	std::map<TaskState, std::string> t1 = {{TS_STOPPED, "aa"}, {TS_COMPLETED, "bb"}};
	std::map<std::string, TaskState> t2 = {{"aa", TS_COMPLETED}, {"bb", TS_RUNNING}};

	printf("enum_in_key_nohlman: %s\n", njson(t1).dump().c_str());
	printf("enum_in_val_nohlman: %s\n", njson(t2).dump().c_str());

// when enum is in key the json format changes to unexpected json format.
// enum_in_key_nohlman: [["stopped","aa"],["completed","bb"]]
// enum_in_val_nohlman: {"aa":"completed","bb":"running"}
}

Expected vs. actual results
I would expect both cases to look in same format:
enum_in_key_nohlman: {"stopped","aa","completed","bb"}
enum_in_val_nohlman: {"aa":"completed","bb":"running"}
Minimal code example
#include <iostream>
#include <string>
#include <map>
#include "common/include/json/json.h"

using njson = nlohmann::json;

// example enum type declaration
enum TaskState {
    TS_STOPPED,
    TS_RUNNING,
    TS_COMPLETED,
    TS_INVALID=-1,
};

// map TaskState values to JSON as strings
NLOHMANN_JSON_SERIALIZE_ENUM( TaskState, {
    {TS_INVALID, nullptr},
    {TS_STOPPED, "stopped"},
    {TS_RUNNING, "running"},
    {TS_COMPLETED, "completed"},
})

int main(int argc, char ** argv) {

	std::map<TaskState, std::string> t1 = {{TS_STOPPED, "aa"}, {TS_COMPLETED, "bb"}};
	std::map<std::string, TaskState> t2 = {{"aa", TS_COMPLETED}, {"bb", TS_RUNNING}};

	printf("enum_in_key_nohlman: %s\n", njson(t1).dump().c_str());
	printf("enum_in_val_nohlman: %s\n", njson(t2).dump().c_str());

// when enum is in key the json format changes to unexpected json format.
// enum_in_key_nohlman: [["stopped","aa"],["completed","bb"]]
// enum_in_val_nohlman: {"aa":"completed","bb":"running"}
}

Error messages
unexpected format
enum_in_key_nohlman: [["stopped","aa"],["completed","bb"]]

Compiler and operating system
linux
Library version
3.6.1
Validation

[ ] The bug also occurs if the latest version from the develop branch is used.
[ ] I can successfully compile and run the unit tests.

If I wanted to work on this, would I just fork and then submit a PR? Do I need to be assigned to work on this?

If I wanted to work on this, would I just fork and then submit a PR?

Yes!

Do I need to be assigned to work on this?

Nope.

I'm planning to look into this issue.

@amirghaz
Call njson(t1) uses
inline void to_json(BasicJsonType& j, const CompatibleArrayType& arr)

and njson(t2) uses
inline void to_json(BasicJsonType& j, const CompatibleObjectType& obj)

It seems is_constructible_object_type_impl needs to be adjusted to detect TaskState has a conversion to string so it can be used as object key.

@nlohmann Sorry for the lack of update, some stuffs came up that prevent me from focusing on this issue. Thanks for the insight, I will look into it right away to see what can be done.

@nlohmann
I tried to modify is_compatible_object_type_impl to detect if there is any conversion to string, but there seems to be other error that arise after this modification.
The error messages that I get is:

Also, I notice that this issue only arise if we use a map object as an argument to njson. Using njson({ {TS_STOPPED, "aa"}, {TS_COMPLETED, "bb"} }).dump().c_str() directly will result in the expected conversion to a json object. Any idea why this is the case?

Passing an initializer list vs. passing a std::map use different basic_json constructors.


[29/01/2023] feat: combine documentation for CLIENT and API

Summary

Combine the documentation for both the CLIENT and API
List of changes proposed in this PR (pull-request)

Setup JSDOC
Setup templates
Combine documentation for both frontend and backend
*Improve documentation"

Pardon the many changes, i merged the recent updates from the frontend_dev and backend_dev

Pardon the many changes, i merged the recent updates from the frontend_dev and backend_dev

Welldone @RealRichi3 can you deploy the doc, let’s see what it looks like?

Alright @sandygudie, the doc isn't clean yet, i just laid down the structure and the themes, I'll merge this and raise a new PR to add the contents to the doc

@sandygudie, please raise a PR from the frontend_dev to dev, i'll need the updated data to work on the doc


Add AIX 7.2 platform

Signed-off-by: Jaymala Sinha<EMAIL_ADDRESS>
Description

Related Issue

Types of changes

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

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] All commits have been signed-off for the Developer Certificate of Origin.

build succeeded https://buildkite.com/chef/chef-chef-master-omnibus-adhoc/builds/99


When will you update the code of Segmentation on S3DIS / ScanNet？

您的工作非常出色，请问什么时候可以更新一下有关室内数据集s3dis和scannetv2的代码呢？

Sorry for the late reply.
We have uploaded the segmentation backbone in the "segmentation" folder as well as the pretrained models and the logs. Please feel free to check and use it! I will close the issue.
Thank you again for your interest in our work! 感谢你的关注，祝好！


added requirements.txt

To get the correct version numbers, please use poetry export -f requirements.txt --output requirements.txt.


Please let the auto crafting table can store recipe

I'm always frustrated when I found the auto crafting table cannot craft complex recipe automatic (like anvil). I hope the crafting table can store a recipe and take item from hopper according to it.

As I understand, it is not meant to do so. It is possible (but not easy) to autocraft complex recipes. Ilmango did explain that in this video https://www.youtube.com/watch?v=2_HL309IZ0M

As I understand, it is not meant to do so. It is possible (but not easy) to autocraft complex recipes. Ilmango did explain that in this video https://www.youtube.com/watch?v=2_HL309IZ0M (I am not skyrising, this is my personal opinion)

Well, maybe you're right. I found some video about how to deal with complex recipes.


Additional sample links fixed to point to microsoft instead of xpouyat

Just a small thing but I didn´t understand why the repo was suddenly marked closed 😅

Good catch. Thanks!


Send kill updates if an object moves outside of the view distance.

Bug 0002847: Ghost copies of sim-crossing objects
Bug 0002025: DD Culling confusing viewers
Send kill updates if an object moves outside of the view distance.

Both of these commits look good to me. Thanks Matt!

@MatthewBeardmore Is change 2506f5b for killing objects when an avatar moves far enough that they leave draw distance, or is it for killing avatars when they leave another avatar's view distance?  I'm afraid I can't tell from the code alone because I'm not familiar with it.
If it is the latter (killing avatars that leave draw distance), it should probably be investigated a bit more.  It could potentially mean that viewer radars would be broken, not showing distant avatars, which would make it more difficult for land owners to moderate their land or deal with abusive avatars.

Definitely needs testing for the avatar case, but otherwise looks good.
I remember we weren't killing objects as the avatar moves because that would require a full culling check and we don't have octrees, but this case where the object moves itself out of draw distance seems safe. The SL simulator sends kills in the same fashion for objects so this should be ok.
Thanks for the commit, and sorry for the delay!


ID3 v2.4 support

I think this library must also support it, because it's necessary for some projects (for example, for mine)
Hopefully I will try to make it and contribute on this weekend

Made my own lib: https://github.com/bogem/id3v2


gce-image version bump and documentation update.

@stephenplusplus done.

Looks like some line is still over 80: https://travis-ci.org/GoogleCloudPlatform/gcloud-node/jobs/145946346#L917
You can npm run lint locally.

Ups. Will update in a hour.

Coverage remained the same at 100.0% when pulling 895b83f9a8de5588d0667dd63cc624a833f8c4f0 on Zen-CI:master into<PHONE_NUMBER>8caf4febf49911ae3ec68d0ee581e8 on GoogleCloudPlatform:master.

Coverage remained the same at 100.0% when pulling 895b83f9a8de5588d0667dd63cc624a833f8c4f0 on Zen-CI:master into<PHONE_NUMBER>8caf4febf49911ae3ec68d0ee581e8 on GoogleCloudPlatform:master.

Perfecto. Thanks again 🍻


Pulse is square on Android

The pulse is square on android instead of a circle. Tested on multiple android devices: S4 and S7 Edge

@watadarkstar is it ok in emulator? Which version of RN and Android do you use?

Same problem here. I tested on Android 7 Nougat on device Samsung J7 Sky Pro. Same problem for both RN version 0.53.3 and 0.54.0.  Same problem using emulator with Nexus 5X x86, API 23, Android 6, and Nexus 5X x86, API 27, Android 8.1.

@juliepwchen @anooj1483 do you use image? If so, seems that I know the reason - image should be wrapped in View with borderRadius set.

AltLayer Airdrop Season One Announcement

Exciting news! AltLayer token (ALT) is set to launch on Binance on January 25, 2024. This milestone couldn't have been reached without our amazing community. Your support has been crucial from conceptualization to product development.
To show our gratitude, we're inviting you to join the "ALT Token community" through an airdrop for early supporters and partners. Below is a summary:

Total Allocated ALT Tokens: 300,000,000 (3% of total supply)
Distribution Categories:

NFT Holders
Altitude Campaign Participants
EigenLayer Restakers
EigenLayer Ecosystem Partners
Celestia Stakers and others

For detailed criteria and information, check the full announcement here.
Claim opens from January 25 to February 25, 2024. Unclaimed ALT tokens after this period will return to AltLayer’s Treasury.
Thank you for being part of AltLayer's success! More to come in Season One, stay tuned.
Note: Certain regions are restricted from the airdrop. Please review the disclaimer before participating.
tonygaetani, @Detoo, @shawnhack, @online909999, @amq8, @willwarren89, @thanasik, @GlobalSocialChain, @tmcinerney4, @xiewenlong, @Platinumwrist, @MukundKal, @emresurmeli, @jefflau, @griffinmartin, @jason-bateman, @lunochkin, @laurengarcia, @philgee1981, @mirzap

AltLayer Airdrop Season One Announcement

Exciting news! AltLayer token (ALT) is set to launch on Binance on January 25, 2024. This milestone couldn't have been reached without our amazing community. Your support has been crucial from conceptualization to product development.
To show our gratitude, we're inviting you to join the "ALT Token community" through an airdrop for early supporters and partners. Below is a summary:

Total Allocated ALT Tokens: 300,000,000 (3% of total supply)
Distribution Categories:

NFT Holders
Altitude Campaign Participants
EigenLayer Restakers
EigenLayer Ecosystem Partners
Celestia Stakers and others

For detailed criteria and information, check the full announcement here.
Claim opens from January 25 to February 25, 2024. Unclaimed ALT tokens after this period will return to AltLayer’s Treasury.
Thank you for being part of AltLayer's success! More to come in Season One, stay tuned.
Note: Certain regions are restricted from the airdrop. Please review the disclaimer before participating.
witoff, @kumikoda, @cavanmflynn, @kenorb, @ICOAuditor, @Uncommon-Dev, @CodeMath, @priom, @esengulov, @vietbaoa4htk, @DavidLanz, @eddof13, @orlin, @LeeWarnock, @maxisacoder, @ldholmgren, @kimdj, @antonevane, @consensyx, @jgcmarins


Changing skyType breaking in aframe 0.8.2

I tried changing the environment's skyType from default atmosphere to color in two versions of aframe.
In Aframe 0.6.1

The skyType changes to color and the result is seen in the scene as well.

In Aframe 0.8.2

The sky becomes black and stops responding to any change in skyColor or horizonColor

I've seen unexpected behaviour in this sense using the inspector, but not on the actual experience. Do you have this problem while using inspector?

Yes i am experiencing this behaviour while i am changing the skyType using the inspector.


fix read/write race in journal.Queue

When reading HEAD, the journal can read the contents while
a writer has opened and truncated the contents but before the
writer has written the updated HEAD.  This happens only on
file systems, not cloud objects, as cloud writes are atomic.
The fix is to simply retry the read when the read is successful
but the content cannot be parsed.  This fix is preferred over
a more complicated locking model as the HEAD read is just advisory
and not required for correctness of the log abstraction.
Closes #2699

I just ran the torture test described at https://github.com/brimdata/zed/issues/2699#issue-885050213 against this branch (commit 338c420) for several minutes and no longer saw either of the error messages described in #2699, whereas in the past the errors would show up every few seconds. So, functionally, LGTM! :+1:


Compute Shader separate from renderer

Hi, I have a scenario where occasionally I need to generate a large mesh. I want to use a compute shader to run a noise function and marching cubes. The only compute shader example I see is directly tied to the renderer as a node on the graph. I need my compute shader to be dispatched entirely separate from rendering, since it only happens every so often as determined by external game logic.
I would propose a system where the shader can be created, buffers would be loaded, and it would be dispatched, which would return a handle. This handle can be a future which can be polled, or it can have some other non-rust-async design, but it should have a flag to check if the shader has finished running. The handle can be stored in a resource or in a component, and on another frame later on the handle can be checked to see if the shader is finished. If so, data can be copied back from the buffers and used.
This seems like a much more general use of compute shaders than the current system which is very specialized and imo doesn't address most use cases of compute shaders.
EDIT: I should note that Unity has this feature, which is what I based my proposal off of. Obviously I wouldn't expect a direct copy for bevy, but something along these lines would be huge for any game requiring a lot of computation. For furthur reading: https://docs.unity3d.com/Manual/class-ComputeShader.html

I just want to note - you technically can run compute shaders in the main App world right now, entirely separate from Rendering. You have access to RenderDevice and RenderQueue through resources, and you can use them for compute shader purposes without ever using the RenderGraph or putting it in a Node.
The problem of course is, right now if you wanted to do this you would have to manage everything yourself. CommandEncoders, setting up pipelines, calling submit to run the compute shaders, checking on the future yourself, etc. So I'm 100% on-board with having some ergonomic solution to this. Right now you would basically have to write raw wgpu code to make it work.

@Andrewp2 Is there any example of doing this? I can't find any in the repo examples.

Are there any updates on this?
Compute shaders are great for many complex effects and systems and I feel like bevy's support for them is really subpar compared to other games engine

I've made a plugin named bevy_app_compute which let you handle compute shaders from App World. It's still in an early stage but it works quite well. It might be helpful for algorithms like marching cubes until we find a way to handle compute shaders more ergonomically in Bevy

Also, how can the shaders be ram multiple times with different data?

No to the first and yes to the second ! It cannot be async due to wgpu's current limitations unfortunately

@Kjolnyr What changes would be necessary to not wait the next frame on the compute shader? I basically want to pipeline the generation of chunks with marching cubes, and they can take longer than the rest of the frame to finish rendering, resulting in freezes. I'm hoping it should be possible to entirely decouple this from rendering, and just dispatch a shader one frame and get it back several down the line, like how Unity does it.

It's impossible to decouple from the rendering unfortunately as wgpu is using a single queue where you put your GPU work in, so compute work as to squeeze in, aside render work. It would be possible if we used solely Vulkan as backend API for instance
see #8440 known limitation part:

The current implementation of wgpu only has one interal queue for submit() calls. Therefore, we still have to know where and when to put our compute submit() calls, as they will run sequentially with the render queue. I know that vulkan has a separate compute queue, and I'm hoping that one day, wgpu will too. I just don't know how feasible / mature this multi-queue system is for other backends wgpu implements.

If you need to do heavy compute, you can always break it up into small pieces and run a little bit every frame until it is done. AFAIK, Vulkan doesn't let you prioritize different queues so even with multiple queues your long running compute work could starve the rendering tasks needed to draw the next frame, and you'd need to throttle dispatches to the compute queue to avoid it.

@fintelia Yeah I'm going to have to. I'd imagine vulkan does that as well, but it does the chunking automatically, in time to render the next frame.
Will need to come up with a way to dynamically measure how much work can be done in between frames depending on the hardware capabilities.

I'd imagine vulkan does that as well, but it does the chunking automatically, in time to render the next frame.

I've never seen anything like that mentioned as being a feature of Vulkan.

Do you know how unity does it? I'm able to schedule a ton of compute shader jobs async and get back the results on later frames

I don't know what Unity does. I'd guess it is some combination of:

You are scheduling lots of jobs, but the total time is only a handful of milliseconds so it finishes within a single frame (but may take a few frames to send the results back to the CPU).
The compute work takes a few tens to hundreds of milliseconds, causing a minor frame stutter but it isn't that noticeable.
Unity itself has some mechanism to throttle the rate of async compute jobs being sent to the GPU. I haven't used Unity, so I don't have more insight here, but it seems kind of hard because you'd presumably have to estimate how long tasks will take.


Rasberry Pi

Hi,
Not sure if Raspberry Pi's are supported? Running Ubuntu 22.04.1 LTS on arm64.
I just get unable to locate package when trying to install package, the lists are installed along with the GPG key.

@RyanMesser, this is not a product support channel.
(I don't see ARM arch packages as being released, though I can be totally wrong here.)


Status dot colour configuration

Currently the status dots in the summary are red & green for failure & success, respectively.
It would be nice to allow the colour to be configured to some degree. This would be especially helpful for those users who cannot easily distinguish red & green.
I'm not sure if it is possible to automatically mirror GitHub's theme, and e.g. use the same colours that would be used in the UI for adding and deleting code? That would be quite neat.

v3.1 includes this as a config


Cant get Annotations to work

Template
`<div class="widget-body" *ngIf="isLoaded()">
  <canvas baseChart class="chart-canvas"
          [datasets]="barChartData"
          [labels]="barChartLabels"
          [options]="barChartOptions"
          [legend]="barChartLegend"
          [chartType]="barChartType">
  </canvas>
</div>`

TS
import * as ChartAnnotation from 'chartjs-plugin-annotation';
public barChartOptions: ChartOptions = {
    maintainAspectRatio: false,
    aspectRatio: 1,
    responsive: true,
    legend: {
      display: false,
    },
    scales: {
      yAxes: [
        {
          scaleLabel: {
            display: true,
          },
          ticks: {
            beginAtZero: true,
            // Include a dollar sign in the ticks
            callback: COUtils.tickFun(this.globalVariableService.weight.value),
          },
        },
      ],
      xAxes: [
        {
          scaleLabel: {
            display: true,
          },
          ticks: {},
        },
      ],
    },
    tooltips: {
      callbacks: {
        label: COUtils.tooltipFun(
          'xAxes',
          this.globalVariableService.weight.value,
        ),
      },
    },
    plugins: {
      datalabels: {
        formatter: (value, ctx) => {
          return this.setDataLabels(ctx);
        },
        anchor: 'end',
        align: 'end',
        font: {
          size: 12,
        },
      },
      annotation: {
        annotations: [
          {
            type: 'line',
            mode: 'vertical',
            scaleID: 'x-axis-0',
            value: 20,
            borderColor: 'red',
            borderWidth: 2,
          }
        ]
      },
    },
  };

Have tried everything, what am i doing wrong ?
All help wil lbe gratefull

@guasc0 did you resolve the issue?

@kurkle Yes, i had to import it with import * as ChartAnnotation from 'chartjs-plugin-annotation'; and then add it to my plugin array.
But that might be a fix that works for me only i dont know

ok, it was a registration issue then. Looks like the readme is not up to date.
The other option is to do:
import * as AnnotationPlugin from 'chartjs-plugin-annotation';
Chart.register(AnnotationPlugin);

@kurkle Yes, and the annotation should not be in the plugin in the chartOptions i think the documentation says that.


Support viewing h5 files that are written with Pandas

Is your feature request related to a problem?
I'm writing h5 files via pandas (version 2.1.0). Something simple like this:
df.to_hdf(key=key, path_or_buf=path, append=True)
When I go do view the data I get the following:

Requested solution or feature
Would be great to be able to visualize the data. I'm not sure if this is a bug or a feature request.
Alternatives you've considered
Don't see any alternative VScode pluggins to view h5 files.

Hi @dflatow, thanks for the report.
The Matrix visualisation is capable of displaying datasets with a Compound dtype, as long as every field has a "printable" dtype, which H5Web defines as the following: integer, unsigned integer, float, string, boolean, complex. For an demonstration, take a look at dataset /nD_datasets/oneD_compound on H5Web's demo site.
If any of the fields is not printable (which seems to be the case here), H5Web falls back to the "Raw" visualisation, which attempts to serialize the dataset to JSON. Since the dataset seems to contain big integers, JSON.stringify() throws an error:

Could you please share the raw type of the dataset (click on "Inspect" on the row labelled "Raw")? Or even better,  could you share an example file?

I found the same issue. It generally fails if format='table' is passed to pandas.HDFStore.put()

@axelboc The issue derives from https://github.com/silx-kit/vscode-h5web/issues/15: some part of the compound dataset value has BigInt that are not serializable.
We solved #15 by converting BigInt to regular integers when encountering datasets with integer dtypes but forgot that these BigInt can show up in Compound datasets, such as the ones generated by pandas.
It can be reproduced with a file holding a single compound dataset with a field with int64 (in this case age):
with h5py.File(...) as h5file:
      # From https://numpy.org/doc/stable/user/basics.rec.html
      h5file.create_dataset(
          "dogs",
          data=np.array(
              [("Rex", 9, 81.0), ("Fido", 3, 27.0)],
              dtype=[("name", "S10"), ("age", "i8"), ("weight", "f4")],
          ),
      )

In the meantime, it is possible to circumvent the issue when saving with pandas: removing append=True from the call to to_hdf saves the columns as separate datasets rather than in a single compound dataset.
H5Web should not have issues viewing these separate datasets.

Should be fixed in the next release. I'll try to get it out asap.


Create bug

When creating a new Zet the commander cannot find the correct repo.
The following error appears:
z ❮ zet c 'Cheatsheet: psql and pg_dump'
Commit? y/N y
2022/05/07 23:38:55 exit status 128
2022/05/07 23:38:55 no git remote found

Running zet edit last and re-committing then works. As does any other
command which commits the file after the initial create.

resolved by #25


changes for leading/trailing whitespace stripping and malformed json

I did a long pass through the tests, and found lots of whitespace padding around names, which is now defined as stripped
Also several files with invalid json in the rel-urls that was masking some other failures in my test harness.

Hi Kevin
Thanks for putting in so much effort. I am going to add some code to my testrunner to find broken JSON files, as I keep missing some of these issues.
My parser now throws lots of errors against the updated tests. There are few changes I need to make to my parser, but also a couple of places I think your changes may not be correct. Rather than me overwriting your changes before merging, I want to create an issue for any changes to tests I think don't match the parsing rules so they can be discussed.
I need to get these tests and wiki parsing rules to a fixed point soon for some work I am doing for Mozilla.
Cheer Glenn


Docker Tag vX.X not working

Component
other
Describe the bug
The docker tag vX.X (v2.1) (details: https://woodpecker-ci.org/docs/administration/deployment/docker-compose#docker-images) does not work.
Additional context
docker pull woodpeckerci/woodpecker-server:v2.1-alpne
Error response from daemon: manifest for woodpeckerci/woodpecker-server:v2.1-alpne not found: manifest unknown: manifest unknown

Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
[X] Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.

I don't think that's a good idea. If there is a release 3.0 later, I'll get this version straight away without a warning!

@qwerty287 Using auto_tag of the buildx plugin should take care of this automatically - or a slight modification of the manifest template. It doesn't cost anything and the usefulness by @dR3b is well described.

Is there any status update?

Not yet, somebody would need to add the auto_tag to all docker release builds. PR welcome :)


support for event table list in plotting page

@DanielJMaher , @Bobfrat
Bob, may need to go over with you to make sure that the event overlay on the plot working right.

DO NOT MERGE YET

OK TO MEREGE!!!

@FBRTMaka Will this effect Bob's plot at all?

@DanielJMaher Yes.

@Bobfrat Do you have some time to assess and fix?

@DanielJMaher , this is the fix...

:+1:  Looks good

@FBRTMaka I'm confused... Wasn't it working before?
Let me step back.. If I merge this, does it break Bob's stuff?

Whatever.  I trust.

big mistake!

lol - So yeah, this effects the plot but only to fix the update that was done to the way the events are being delivered.  So, it really effects it positively and not negatively.

@DanielJMaher it won't break it.


LodView on SSL

Hi,
I run an instance of LodView on an SSL secured website. The browser warns about mixed content when loading a resource page. Warnings are about fetching content from OpenStreetMap such as http://b.tile.osm.org/8/131/83.png, which connection is insecure.
Is there a solution for this? I tried to change http://b.tile.osm.org/8/131/83.png into https://b.tile.osm.org/8/131/83.png but that didn't work.
Thanks,
Roland

hello,
I made this change https://github.com/dvcama/LodView/commit/5e02268213a7da75f81a9c4edfc701b47440e976#diff-a8f8ccf8aead2f6e994cef7efbc01a51
I didn't try it, please let me know if it works


update(examples/k8s_audit_config): Use stable apiVersion audit.k8s.io/v1 for Policy

Update the ApiVersion of Policy to audit.k8s.io/v1 because audit.k8s.io/v1beta in newer Kubernetes versions no longer available.
Signed-off-by: Frank Jogeleit<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: fjogeleit
Once this PR has been reviewed and has the lgtm label, please assign jasondellaluce for approval by writing /assign @jasondellaluce in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fjogeleit: There is not a label identifying the kind of this PR.
Please specify it either using /kind <group> or manually from the side menu.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/kind bug

cc @alacuku @leogr

LGTM label has been added.  Git tree hash: b15c7467597a02535014814775eb0a767414697b

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: alacuku, fjogeleit
Once this PR has been reviewed and has the lgtm label, please assign jasondellaluce for approval by writing /assign @jasondellaluce in a comment. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: alacuku, fjogeleit, jasondellaluce
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Getting vector 3 position of each marker individually in Unity !

hello , i would like to thank you for your amazing work ! and i would like to know if it possible to get, in unity , the position a spheres returned by the sensors ? if yes , is there any modification i need to make on the c++ library and make a new function that returns those raw values ?

Hi!
Could you clarify: do you want to
A) Get the position of spheres attached to a tool?
B) Or just individual infrared reflective spheres in the scene, even if they're not attached to a tool?
If it's the first one, then it should be completely possible, but you'll need to write some extra code on the DLL side.

In DINO-DLL, each TrackedTool or tool is defined with the following struct:
    struct TrackedTool
    {
        uint8_t                         ID = 255;                   /*!< 8-bit tool ID, should be uniquely assigned */
        bool                            VisibleToHoloLens = false;  /*!< Flag whether tool visible in last seen frame */
        std::vector<Eigen::Vector3d>    GeometryPoints;             /*!< Known coordinates of tool - right-handed marker positions (from CAD/config files) */
        std::vector<Eigen::Vector3d>    ObservedPoints_World;       /*!< Marker positions defined in world-frame (defined as startup pose)*/
        std::vector<Eigen::Vector3d>    ObservedPoints_Depth;       /*!< Observed tool marker points in depth - sensor frame (should be the same order as GeometryPoints) */
        Eigen::Matrix4d                 PoseMatrix_HoloWorld;       /*!< 4x4 transform matrix of tool pose in world frame */
        Eigen::Matrix4d                 PoseMatrix_DepthCamera;     /*!< 4x4 transform matrix of tool pose w.r.t depth sensor frame*/
        std::vector<cv::Point2i>        ObservedImgKeypoints;       /*!< Image coordinates for marker-centres for labelling (same order as GeometryPoints) */
    };

The field you're probably interested in is ObservedPoints_World.
At the moment, a double array is passed from DINO-DLL to DINO-Unity to describe the pose/visibility of individual tools, the functions that are relevant for this are as follows:

GetTrackedToolsPoseMatrices() in HL2ResearchModeController.cpp
GetSerializedToolDict in Holo2IRTracker.cpp
SerializeToolDictionary in Holo2IRTracker.cpp

What I'd suggest you do is review the functions above, and then create your own version of these functions to expose the ObservedPoints_World field of each tool.
GetTrackedToolsPoseMatrices() is the function that will make the data accessible to Unity, and the other two functions prepare the data.
So in your new versions of SerializeToolDictionary, you would want to dump the marker locations of each tool into a double array INSTEAD of the PoseMatrix_HoloWorld field as is currently done.

Here is a reformulated version of your message:
Hello,
Thank you for your help! I managed to access the data using collectedPoints within the TryUpdatingToolDictionary function.
I'm currently focusing on a specific tool and encountering an issue: at certain ang
les, the tool's transform becomes noisy and inaccurate. My idea is to process each point individually and construct a plane from them. I would then use the normal of this plane to simulate the orientation of the needle, as shown in this picture.
Do you think this would be a good approach, or do you have any other suggestions?

@Metacadx Are you 3-D printing the tool your spherical markers are attached to?
My guess is that the inter-marker distances might be a bit too similar and also as they are quite close together, it would make sense that at certain angles the readings become quite noisy.
I'm definitely not an expert on tool design for these applications but would potentially suggest creating a slightly larger tool and ensuring that if you create a distance matrix of the inter-marker distances, each entry should be unique and not too similar to any other entries.
Unfortunately I can't think of a simple software-only solution, as I'm guessing most of your challenges will be related to noisy data at particular angles, so if re-designing your tool is an option, that's certainly what I'd suggest. Hope that helps!
P.S. as you're using spheres, hopefully you've come across how to configure your setup for spherical marker tracking, if not check the issue link

Yes, I am 3D printing the tool, and I can create a larger version with a greater distance between each marker. It might sound strange, but I'm getting better results without using the spherical marker configuration. With the experimental setup, I'm facing a significant position offset. However, without the spherical configuration, the model aligns perfectly, but the orientation is still an issue.
Anyway, thank you for your help! One last thing before I go — Microsoft warns that using research mode can cause performance issues. I've noticed that holograms are not stable and tend to shift slightly if I move, even though the application is running at 60 FPS. Have you encountered any problems like this?

Actually i am no talking about the hologram of tracked tool but any other hologram in the scene that was supposed to be static

For accuracy problem is there any calibration for the camera that we need to make ?

Actually i am no talking about the hologram of tracked tool but any other hologram in the scene that was supposed to be static

I hadn't seen this behaviour before sorry, so this would be any other GameObject in Unity which is not related to anything to do with UnityToolManager.cs I'm guessing. Out of interest, could you confirm what version of Unity you're using?

For accuracy problem is there any calibration for the camera that we need to make ?

On the DLL-side, at the moment, we're using the Research Mode API to convert from pixel coordinates to a 3D location on a unit plane. You can see the relevant sections of code:

In this section of code, you can see how we define a lambda function to interact with the Research Mode API.

In this link we call the lambda.

If you were to do a calibration of the camera, (I'm guessing a camera calibration to estimate intrinsic parameters from your phrasing?) you'd replace this, so you'd use your calibration parameters instead of the call to MapImagePointToCameraUnitPlane. It'll depend on the quality of your calibration as to whether this will actually introduce some improvements to the accuracy.

Thank you for your response! I've been testing with newly printed models since yesterday, and the tracking has improved. However, I'm still encountering the same issue when the object moves further away from the camera. Is there a quick way in C++ to set a distance limit to stop tracking the object and invalidate the blob once it exceeds a certain distance from the camera?

I am using unity 2021.3.18f1

Thank you for your response! I've been testing with newly printed models since yesterday, and the tracking has improved. However, I'm still encountering the same issue when the object moves further away from the camera. Is there a quick way in C++ to set a distance limit to stop tracking the object and invalidate the blob once it exceeds a certain distance from the camera?

Nothing quick I can think of, but you should be able to write in that logic yourself certainly once you compute the pose of a tool? Or perhaps in the loop where you convert from pixel locations to 3D vectors

Closing the issue for now as I'm guessing it's been resolved, feel free to re-open a new one if needed


PSC.Blazor.Components.MarkdownEditor resources errors

There is an error in embedding markdown editor

Related to #129


Basic NSURLSession implementation

I'm creating this pull request to get feedback on my implementation so far.
There are still many TODOs in the code, but it’s far along enough to evaluate the architecture and design I have chosen for this task. I’ve tried to outline quite a bit in the code itself in form of comments. Please let me know:

which parts need more explanation
which parts should be redesigned
which parts need more testing

The NSURLSession.swift file has a NSURLSession API implementation overview.
As for testing, I'm hoping to spend quite a bit of time on building an in-process HTTP server to better test some of the desired behaviour. Particularly when testing things such as different payloads, headers, and POST / PUT requests that's the only way to get good testing.
I'd like to split the NSURLSession+libcurl.swift file into multiple smaller files, but that'd break with the existing style. Any thoughts?
The CFURLSessionInterface.{c,h} files are very verbose in order to not expose libcurl directly. This was suggested by @phausler and @rothomp3 — but I'm not sure if this is what they were hoping for.
All unimplemented code should still be marked with NSUnimplemented() where applicable.
This does not at all try to implement so-called background session which would have
to rely on a system daemon to perform HTTP requests white the app is not running (either
suspended or terminated). Such code would have to rely on IPC and the launchd equivalent
on the platform it is running on.

I should note that this relies on https://github.com/apple/swift-corelibs-libdispatch — and it has an extremely rudimentary version of NSOperationQueue to support the delegate queue on NSURLSession.

per the NSOQ stub (and other dispatch usage) we are still waiting on libdispatch to completely land; hopefully before then I will have some more things for NSOQ that will give a decent implementation for something more complete than what you have so far.

Question: What changes should be done on this before it can be merged back into master?
One thing I'm aware of: this needs libdispatch, and that's not there, yet, on Linux. What’s a reasonable workaround? Or should we wait?
Also, I'd like feedback on the fact that NSURLSession.swift and NSURLSession+libcurl.swift are now 2090 and 1741 lines respectively, and that it may make sense to break these into multiple smaller files. Any thoughts?

We're still working on dispatch; it's certainly the plan for it to be available. We should proceed as if it'll be there in the end.
I'm ok with splitting implementation into multiple files as well.
Thanks for your work on this @danieleggert.

I’ve split it into these files
NSURLSession.swift
NSURLSessionConfiguration.swift
NSURLSessionDelegate.swift
NSURLSessionTask.swift
Configuration.swift
EasyHandle.swift
HTTPBodySource.swift
HTTPMessage.swift
MultiHandle.swift
TaskRegistry.swift
TransferState.swift
libcurlHelpers.swift

I'd like to double check a few things:

Is this disabled by default on Linux, since dispatch is not yet integrated?
I'm unsure about enabling by default on Darwin. I suppose that's fine, since it's for our own purposes.
The tests should only run if it's enabled (obviously).
Can we remove some of the scheme settings?

Once we're set, we'll squash merge this in so we can work on it iteratively after that (including enabling on Linux).

@parkera This all assumes that libdispatch is available on Linux — we’ll have to hold off until then. I’ll do a few more tweaks to this tomorrow and the day after and then squash everything into a single commit.

It’s all squash into a single commit now, but I might keep working on this.

Note that this includes #306 and #287

@danieleggert Conflicts :(

I’ll make sure conflicts get resolved once libdispatch is working.

@danieleggert Is this pull request ready to merge?

any updates on this PR?

@danieleggert Thanks for your work on this. I believe it's been merged as part of the later work.

It's in Swift 3 actually. Give it a shot and let us know on the mailing lists if you have any problems.

@sgharms The main content went into Swift 3, and there's been some addition bug fixes in the 3.0.1 previews. There's still some missing function - particularly things like task cancellation. Having people "kick the tires" and provide tests for anything that doesn't work would be really useful.

@seabaylea
My apologies for slow reply here. I went on vacation 😎 .
Let me admit that there's a great chance I'm exposing my profound ignorance here, so I hope I'll not embarrass myself too much.
My Environment
➜  octopress git:(master) ✗ swift --version
Swift version 3.0 (swift-3.0-RELEASE)
Target: x86_64-unknown-linux-gnu
➜  octopress git:(master) ✗ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"

Code
        import Foundation
        let config = URLSessionConfiguration.default // Session Configuration
        let session = URLSession(configuration: config) // Load configuration into Session
        let url = URL(string: "http://apple.com")!

        let task = session.dataTask(with: url, completionHandler: {
            (data, response, error) in
            print("Callback ran")

        })
        task.resume()

        print("End of line")

Error
I never see "Callback ran"
Conclusion
Based on the stack trace it would seem to me that using Swift to accomplish basic HTTP operations is not supported on my platform.

As supplement, I asked someone with 3.0 Mac to run the same code and got the following:

@sgharms I am assuming you are running this in the CLI in linux. well, the request doesn't get fired because the program has already exited. You need to maintain the program running until (at least) the request has had a chance to run to see the results. Look into NSRunLoop or dispatch_main(). At least one of them should be available in Linux's Swift environment

Ah! OK. I had wrongly assumed that there was a default run loop that would make sure all the spawned tasks closed. Thanks.


please synchronise grpc with Docker

Notary and Docker use different snapshots of google.golang.org/grpc:
https://github.com/docker/notary/blob/master/Godeps/Godeps.json#L759
https://github.com/docker/docker/blob/master/hack/vendor.sh#L100
Please consider using the same revision of grpc as Docker. Thanks.

No part of notary that depends on GRPC is vendored into docker so there appears to be no benefit to synchronizing our GRPC versions. Is there something I'm missing?

grpc is shipped as re-usable package in Debian. We've updated grpc to snapshot that Docker-1.11.1 needs but that broke Notary which FTBFS now because it depends on older snapshot of grpc... Consistency is important. ;)

From what you're describing here and in #782, are you saying every single package in debian needs to use the same version of a dependency?
The Notary repository contains 3 applications. Notary CLI, Notary Server, and Notary Signer. Docker only depends on Notary CLI. Notary CLI has no dependencies on GRPC. As such I see no need to synchronize GRPC versions between the Notary and Docker repositories. This only adds unnecessary overhead for both projects.

are you saying every single package in debian needs to use the same version of a dependency?

Correct. Reusable libraries is the only way to maintain coherent interdependent software repository. Vendored mess quickly gets out of control or decay. Think of security support: a problem can be fixed in one place in case of reusable library or one would have to backport fix to all versions of vendored library... The latter is not viable.
All notary applications are built from single (tagged) source. If you maintain Notary components separately then you need to version them separately... Does that make sense?
For standalone Notary updating GRPC is important to fix FTBFS with newer GRPC that Docker depends upon. Sooner or later one would have to move GRPC forward otherwise Debian will stuck with outdated Notary...

I understand what you're saying and I've heard it many times before. I think it would really help us to get a full overview of what you're trying to do, including all the components you're trying to build packages for. It's very difficult for us to understand your use case through a handful of highly specific requests. It sounds like you're not only trying to build the Notary CLI, but the server and signer as well.
p.s. we're not going to have any more time to respond until after DockerCon so if you don't heard anything through next week, we're not ignoring you.
p.p.s how do all the other open source projects get brought into line? Or is this why debian lags so far behind on so many versions?

how do all the other open source projects get brought into line?

Through tagging semantically, vendoring by tags and reusing libraries. Of course some projects do not tag so we have to mock-up date-based versions...

Or is this why debian lags so far behind on so many versions?

What do you mean? Docker was just recently uploaded and as for Notary it is in such a mess that inevitably we could not bring it up to date because of all build failures and inconsistencies that I tried to address.
It would really help if you could version/tag semantically and use only tagged releases for vendoring.
I don't see how this request is "highly specific". It is all about building software from reusable components...

It sounds like you're not only trying to build the Notary CLI, but the server and signer as well.

Yes, one source package produces different Notary components -- -dev package with library sources and binary packages with daemon and CLI. If you maintain those components separately shouldn't they be split into their own repositories?

So we weren't planning to support server and signer in any form other than docker images. That's why we don't release binaries for them on the releases page.
I'm sorry, I probably seemed like I was having a dig at Debian before. That wasn't my intent. I've used Ubuntu (which I realize isn't the same but it's the closest thing I've touched to Debian) and Arch for a littler over a decade, and the Ubuntu packages are always way, waaaay, behind. Even today it appears 16.04 is still back on docker 1.5. Debian does indeed appear to be more up to date in many cases (and not so far behind in others).

Through tagging semantically, vendoring by tags and reusing libraries. Of course some projects do not tag so we have to mock-up date-based versions...

I guess I'm finding it difficult to suspend my disbelief that every package in the debian repos at a given point in time depend on the same semantic version of, to stick with the context, grpc.
By "highly specific" I was trying to say you came to us and said "do X" and we had no context on why X was necessary. Consistency for us doesn't mean "consistency with the debian ecosystem" so we didn't have any of that context from your initial request.

Of course not every golang package is versioned but I was not making such claim. :)
"grpc" is one of those that refuses to version and it is not the only project that does not tag releases properly. Fortunately many do, notably CoreOS packages and many others.
Thanks.


React Editor will not install with React v17

Describe the bug
NPM gives an 'unable to resolve dependency tree' error when attempting to install the react-editor in a project that is using React v17.
To Reproduce
Steps to reproduce the behavior:

Make new React app with npx create-react-app.
Try to install TUI React Editor with: npm install --save @toast-ui/react-editor
See the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@toast-ui/react-editor
npm ERR!   @toast-ui/react-editor@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Expected behavior
The react-editor should install unless there is something specific to React v17 that makes that not possible until fixed.

@live951 I'll check this soon and see if the wrapper can update the peer-dependent version to React 17.

@seonim-ryu any update on this? React 17 is compatible with React 16 so a simple version bump will do the job.

ping, any update in this. Highly appreciate if this will be looked at soon , as it basically block the upgrade to React 17 for the whole app.

Hi, I'm running into the same problem. Any news about this?

Now React Editor V3.0 will not install with React v16.

Maybe React Editor V3.0 Support React 16. Please.

I created a workaround for me. I created a fork and a branch only containing the react-editor: https://github.com/bruegmann/tui.editor/tree/lgk--react-editor-only. In the package.json I changed the peer dependencies to this to support React 16 and 17:
  "peerDependencies": {
    "react": "^16.0.0 || ^17.0.0"
  },

That's how I use this solution:
npm i github:bruegmann/tui.editor#lgk--react-editor-only

It would be awesome if this change could come to the official package.


Remove unneeded CMake flags

Not necessary since https://github.com/NixOS/nixpkgs/pull/52856

Comparing the before and after trees, there are no changes.
I noticed that shaderc has wrong paths in .pc files but that can be fixed separately.


Controls not fading correctly on mobile

Have you read the Tutorials?
yes
Have you read the FAQ and checked for duplicate open issues?
yes
What version of Shaka Player are you using?
3.0.4 and 2.5.10
Please ask your question
Is there a way to fade away the controls after some time in shaka player?
Currently, if we hover on seek bar or any other controls on the bottom menu the controls does not fade away after some time.
It only hides if we move the mouse somewhere out. While in mobile view it only fades when we touch somewhere outside.
Can you suggest a way to do so?

For a mouse, the behavior should be:

When the mouse enters the video element, show the controls.
If the video is paused or ended, the controls stay visible.
If the mouse is over any specific control, the controls stay visible.
If a menu is open, and another part of the page is clicked, the menu should close.
If the mouse is idle for some time, but not over a specific control, and the video is not paused or ended, the controls fade.
If the mouse leaves the video element, the controls fade.

For touch screens, the behavior should be:

When the video frame is tapped, show the controls.
If the video is paused or ended, the controls stay visible.
If a menu is open, the controls stay visible.
If a menu is open, and another part of the video is tapped, the menu should close.
If nothing is touched for some time, but no menus are open, and the video is not paused or ended, the controls fade.

However, there seems to be a small bug on mobile.  In my manual testing, I found:

If I tap the overflow menu, then tap outside the video element, the menu closes and the controls fade.
If I tap the overflow menu, then tap inside the video element, the menu closes (as it should), but the controls do not fade.  This is a bug.

Does this help explain how things should work?
I will label this "bug" for now and try to fix the issue I just mentioned.  Would this resolve your problem?

Thanks for the explanation for all the scenarios.
But does the bug you reported will fix the case when we click on any other item in the controls like seek bar or volume or any other custom controls (other than overflow menu). As in mobile view if we click on the above-mentioned controls, then they do not fade away until clicked somewhere else.
This is a concern for me.

I can reproduce that, yes.  Something odd is happening, and I don't understand it yet.  For some reason, on mobile, using touch events, the controls panel winds up in a "hover" state according to the browser.
I found a fix for this in the overflow menus, but it is still happening for other controls.  I didn't notice the effect on, say, mute when I initially tested it.

Found another solution that works for everything.  Once I get the changed through code review, they will be published to GitHub.  Thanks!

Thanks for the help. Can you reply on the this once its pushed?

The fix has already been pushed to the v3.0.x branch, and we are working to push out v3.0.5 very soon.

Just a request we are using 2.5.10 majorly on our application. Is it possible to give a patch release for that version?

The fix has been cherry-picked for both v2.5.17 and v3.0.5.

Both releases are live on GitHub and NPM already.  There is an issue with our deployment to Google Hosted Libraries, which has delayed the release announcement email.


Cannot modify an alert

If the alert tag is changed, or the defaults are changed, then new alerts are created.  But the current alerts that are meant to be replaced are left as is.
There is a scan function, possibly a refresh that will delete alerts and re add them.
Possibly allow args and the function to run with parameters.  So as a lambda lambda handler is called.  From main another function.  I've had  code used as lambda and called from CLI.

Hi @mpechner-akasa, thanks for opening this issue and feature request.   You are correct, if you change the tag it is additive and doesn't eliminate the previous alarm tag.  I will work on the solution for this so that it will do a true "rescan" of tags and also remove alarms that are present for which no corresponding tag now exists.


grammar: GrammarSugar.separatedEnd

Like separated but allows for the trailing separator (think Python tuples).
This is sepEndBy from parsec.

Kirill, do you have plans to fix the naming and merge it into this repository or can I just close it?

I’d be glad to! Have we agreed on the naming?
Just let me know how you’d prefer all the new combinators to be called and I’ll update the pull requests.

I would call the case a1; a2; a3; terminatedBy and
a1; a2; a3 separatedBy
What do you think?

Sounds good.
What will we do with the versions that need at least one item (those that end with 1 now)?

May be we should have a signature which allows to specify whether at least one item is required?

I thought about that. That’s reasonable.
I’d like to point out that, since all the combinators are vararg, this boolean flag has to be the first argument, thus it’s, practically, the same as a suffix in a function name.
But this saves us the trouble of coming up with a good naming scheme, so that’s probably what we should do.

So, please do it, and I will merge it in.

Since there was already a combinator called separated, and it was used elsewhere in the codebase, I decided not to rename it.
So now there are:

separated with a boolean flag, specifying whether at least one item is requires.
terminated with a boolean flag, specifying whether the trailing separator is optional.


How to pan / zoom to specific point ?

Hi !
Sorry to bother, but I have a question : I can't find how to pan and zoom to a specific point in my image / container (not a svg). I want it to zoom at coordinates x:1730, y:1210 but I can't seem to make it work.
I tried the following :

panzoom.pan(1730, 1210, {relative: true});
panzoom.pan(1730, 1210);
panzoom.zoomToPoint(2, { clientX: 1730, clientY: 1210}, { animate: true });

The last one seems to work for scaling, but not for coordinates.
Or with startX / startY :

const elem = document.getElementById('myDiv')
const panzoom = Panzoom(elem, {
maxScale: 2,
contain: 'outside',
animate: true,
startX: 1730,
startY: 1210
})

It just doesn't do anything or send any error in the console. I'm not sure what to do.
Thank you for your time !

I have the same question. I've really no idea what the numbers in the coordinates actually mean.

Thanks for opening an issue. It looks like you have contain: 'outside' set, which could prevent you from panning the image to your desired point if it would violate the contain constraint. It's hard to say exactly what is going on without a test case, though. It would be helpful if you could create a minimal test case. Here's a template to get started. Will reopen if there's a bug.

Hi,
I finally added the JS on this page.
The code I try to fiddle with is this part :
// PANZOOM      --------------------------------------

const buttonIn = document.querySelector('#zoomIn'),
      buttonOut = document.querySelector('#zoomOut');
const elem = document.getElementById('map-container')
const panzoom = Panzoom(elem, {
    maxScale: 2,
    contain: 'outside',
    animate: true,
    startScale: 1.20,
    startX: 176.09,
    startY: -916.96
})

What I want is that, for all formats of window, it always is centered on this :

But I just can't do it. I tried many things but it just doesn't work.
Thank you!

Sorry, since I'm not sure you saw that, I'm just tagging you if that's okay ? I don't know if you get updates once the issue is closed. Sorry if you did ! @timmywil

Sorry I didn't get a chance to look at it. I've taken a look now and I have a couple notes:

Turn off contain and any start values and first get the zoom-to-point to work without that. contain: outside will override any pan set to ensure that the image does not pan in a way that would violate the containment. Turning that off, even temporarily, can help with understanding the limitations that come with it when trying to pan to a specific point.
Sorry this is confusing, but when you use zoomToPoint, you're not setting the x/y position relative to the image's dimensions. The x/y values are relative to the viewport. You can get an idea of what the values might look like by adding a mousemove handler to the parent element and logging the clientX and clientY ($parent.addEventListener('mousemove', (e) => console.log(e.clientX, e.clientY))). Use those values in zoomToPoint.

Hope that helps.


pvc was deleted when mysqlCluster cr deleted

when i use  kubectl tool to delete mysqlcluster resoure ,it make the pvc resource was deleted soon,
so how  to prevent   the pvc resoure to be deleted when i just want to shutdown mysqlcluster
or recreate mysqlcluster but do not want to destory data in mysqlcluster.

It seems no workaround, maybe we can add option to control it.


macOS support

Do you plan to support macOS?
Right now you are targeting OpenGL 4.6 which is not supported on macOS , and the latest supported version is 4.1

MacOS is a black hole to me, so it's kinda hard for me to explicitly support it. Does it currently work if you "downgrade" to 4.1 ?
That is, change conanfile.txt to use 4.1.

I tried downgrading to 4.1 and changing couple of lines of code and it works

I created this PR you can check the code https://github.com/markaren/threepp/pull/13, also I didn't test it on other platforms after my change


fix: support nested operators

If there are nested operators defined (i.e. two operators share the same prefix), for example, when using nvim-surround, the operators could be:
config.operators = {
  y = "Yank",
  yz = "Add surrounding",
}

Currently, which-key.keys.get_operator() loops through all defined operators and selects the first one that is a prefix of prefix_i. However, the order of iteration is random, which means if prefix_i = "yz", it could return either y or yz. If y is returned, prefix_i is split into y and a subsequent z, thus yz won't be shown as an operator.
This PR changes the get_operator() implementation to return the longest defined operator.

Thanks!


Llvm 12

Description

Related Issue

How This Has Been Tested

Option<Breaking Changes>

Checklist

[ ] I have read the Contributing Guide

let's wait a bit to see if https://github.com/TheDan64/inkwell/pull/253 gets merged without further changes


How to create an Android Wear OS app

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[ ] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #2919

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Greetings @Antonymuriuki,
Welcome to Section's Eng-Ed program. We're excited to have you here. Thank you for submitting your first article for review.
I'll be reviewing it to check and help you fix any errors before being published! :rocket:

@Antonymuriuki
How to create an Android Wear OS app #3687.pdf
👋 Good afternoon - and welcome to the EngEd program.
I'll be running a final review on your PR when ready.
Upon running your article through our 3rd party plagiarism checker it seemed to raise a few flags and the % was higher than we typically accept.
Please see attached PDF - and revisit the article to ensure we are contributing wholly unique and original content.
Be sure to see our resources page to see more info on plagiarism and what is considered as such.

@Ericgacoki, I have made the requested changes.
@hectorkambow, I have fixed the code that raised plagiarism although most of it is auto-generated by Android Studio and can not be edited.

@hectorkambow, Kindly run a second plagiarism check on this article. Thank you!

plagiarism check done ✅

Hey @Antonymuriuki, go through the suggestions attached below and let me know when you're done.

Hey @Ericgacoki, the changes have been made.

@Antonymuriuki - Great article, seems to be of great value to the community. Just one note, could you please add images related to the different steps. This will give the reader a visual representation of what is going on and or what has been accomplished.
Ping me when you are done.
cc @Ericgacoki

@Kayere, done.
cc: @Ericgacoki

@Antonymuriuki - Your article is ready for publishing. However, the avatar image you have provided is not acceptable. Please upload a picture of yourself instead.

@Kayere, done.
cc: @Ericgacoki.

Congratulations for publishing your first article @Antonymuriuki.


Demo request fails with 403

2017-08-14 22:49:39.685 Example[24014:314501] I restkit:RKLog.m:49 RestKit logging initialized...
2017-08-14 22:49:39.961 Example[24014:314501] I restkit.network:RKObjectRequestOperation.m:150 GET 'http://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports'
2017-08-14 22:49:41.894 Example[24014:314607] E restkit.network:RKObjectRequestOperation.m:551 Object request failed: Underlying HTTP request operation failed with error: Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200-299), got 403" UserInfo={NSLocalizedRecoverySuggestion={"errors":[{"code":40307,"message":"Client is required - visit \"https:\/\/seatgeek.com\/account\/develop\""}],"message":"Client is required - visit \"https:\/\/seatgeek.com\/account\/develop\"","status":403,"meta":{"status":403}}, NSErrorFailingURLKey=http://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports, AFNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x60800001e4b0> { URL: http://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports }, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x60800003ee80> { URL: https://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports } { status code: 403, headers {
    "Access-Control-Allow-Origin" = "*";
    Connection = "keep-alive";
    "Content-Length" = 230;
    "Content-Type" = "application/json";
    Date = "Mon, 14 Aug 2017 14:49:41 GMT";
    Server = openresty;
} }, NSLocalizedDescription=Expected status code in (200-299), got 403}
2017-08-14 22:49:41.895 Example[24014:314607] E restkit.network:RKObjectRequestOperation.m:215 GET 'http://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports' (403 Forbidden / 0 objects) [request=1.9306s mapping=0.0000s total=1.9664s]: Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200-299), got 403" UserInfo={NSLocalizedRecoverySuggestion={"errors":[{"code":40307,"message":"Client is required - visit \"https:\/\/seatgeek.com\/account\/develop\""}],"message":"Client is required - visit \"https:\/\/seatgeek.com\/account\/develop\"","status":403,"meta":{"status":403}}, NSErrorFailingURLKey=http://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports, AFNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x60800001e4b0> { URL: http://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports }, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x60800003ee80> { URL: https://api.seatgeek.com/2/events?lat=39.75&lon=-104.984&per_page=500&range=10mi&taxonomies.name=sports } { status code: 403, headers {
    "Access-Control-Allow-Origin" = "*";
    Connection = "keep-alive";
    "Content-Length" = 230;
    "Content-Type" = "application/json";
    Date = "Mon, 14 Aug 2017 14:49:41 GMT";
    Server = openresty;
} }, NSLocalizedDescription=Expected status code in (200-299), got 403}

Same on my side

yeah, It's better if you can configure some data in the demo. It takes time to get familiar with it

Now you need a clientId and a clientSecret to fetch information from Seatgeek.
You can get one at https://seatgeek.com/account/develop

Yes. I see that. But it seems a bit over the top to register at seatgeek just to check out a UI component that is in no way related to that service.

Agree. I ended up using another library that fits more to my project (includes All Day events) and I found it easier to customize. Here's the repo if you want to check it out.
https://github.com/Quivr/iOS-Week-View

@aelam Register a Seatgeek acount, register your app,  and you will get your client_id. Use the client_id as parameter in the url.
You can do it by add one line code in MSCalendarViewController:
#pragma mark - MSCalendarViewController

- (void)loadData
{
    [[RKObjectManager sharedManager] getObjectsAtPath:@"events" parameters:@{
        @"client_id" : @"OTUwMDgwM3wxNTA5NzE5NDM2LjUy", // client_id of your app
        @"lat" : @(39.750),             // Denver latitude
        @"lon" : @(-104.984),           // Denver longitude
         ...

Thanks everybody!


Malformed JSON of Arrays with empty elements

When parsing a String array with empty elements the resulting JSON includes trailing commas for each empty element.
String[] cats = new String[10];
cats[0] = "Felix";
will serialise to ["Felix",,,,,,,,,]
this is malformed and should not contain these trailing commas

you are right. I will ignore nulls in array I guess.
Any thoughts on how to handle a sparsely populate array?
On Thu, Mar 19, 2015 at 9:04 AM, Alex Theedom<EMAIL_ADDRESS>wrote:

When parsing a String array with empty elements the resulting JSON
includes trailing commas for each empty element.
String[] cats = new String[10];
cats[0] = "Felix";
will serialise to ["Felix",,,,,,,,,]
this is malformed and should not contain these trailing commas
—
Reply to this email directly or view it on GitHub
https://github.com/boonproject/boon/issues/309.

--
Rick Hightower
(415) 968-9037
Profile http://www.google.com/profiles/RichardHightower

I thought of doing the same. I forked the code this afternoon and starting working on a solution. Looks as simple as just ignoring nulls. I will write some tests and if all pass do a pull request.

Sounds good. Thanks.
On Thursday, March 19, 2015, Alex Theedom<EMAIL_ADDRESS>wrote:

I thought of doing the same. I forked the code this afternoon and starting
working on a solution. Looks as simple as just ignoring nulls. I will write
some tests and if all pass do a pull request.
—
Reply to this email directly or view it on GitHub
https://github.com/boonproject/boon/issues/309#issuecomment-83788278.

--
Rick Hightower
(415) 968-9037
Profile http://www.google.com/profiles/RichardHightower

The only issue I found with this approach is that array position is not preserved.
String[] cats = new String[10];
cats[0] = "Felix";
cats[5] = "Tom";
will serialise to ["Felix","Tom"], while it should be something like ["Felix","","","","","Tom","","","","",""]
Although valid JSON it does not represent the original Array form which ideally it should be.
I'll look into it further.

I think we should null fill it instead of empty strings to preserve order.
like ["Felix", null, null, null, null,"Tom", null, ...
On Friday, March 20, 2015, Alex Theedom<EMAIL_ADDRESS>wrote:

The only issue I found with this approach is that array position is not
preserved.
String[] cats = new String[10];
cats[0] = "Felix";
cats[5] = "Tom";
will serialise to ["Felix","Tom"], while it should be something like
["Felix","","","","","Tom","","","","",""]
Although valid JSON it does not represent the original Array form which
ideally it should be.
I'll look into it further.
—
Reply to this email directly or view it on GitHub
https://github.com/boonproject/boon/issues/309#issuecomment-83977753.

--
Rick Hightower
(415) 968-9037
Profile http://www.google.com/profiles/RichardHightower

Thank you for working on this.


Support for Dynamic Template Grammars with Expressions

A syntax proposal is available at https://github.com/accordproject/cicero/issues/392
It would be quite nice to provide finer grained control of the contract text by embedding logic in the template.
To illustrate some of the possible benefits/usecases, here are a few examples:
Handling Text Dependencies:
Template:
This is a fixed interest loan to the amount of [{loanAmount}]
at the yearly interest rate of [{rate}]%
with a loan term of [{loanDuration}],
and montly payments of {{monthlyPaymentFormula(loanAmount,rate,loanDuration)}}

For the contract data:
{
  "$class": "org.accordproject.loan.Contract",
  "loanAmount": 100000,
  "rate": 2.5,
  "loanDuration": {
    "amount": 15,
    "unit": "years"
  }
}

The text of the contract will be:
This is a fixed interest loan to the amount of 100000
at the yearly interest rate of 2.5%
with a loan term of 10 years,
and montly payments of {{667}}

Such dependencies can be found in legal documents such as loans or in more complex forms in e.g., interest swaps: https://www.sec.gov/Archives/edgar/data/1508478/000119312511077213/dex1021.htm
Constructing Lists (https://github.com/accordproject/cicero/issues/20):
Template:
Exhibit B
Authorized Licensed Products and Territory
Products:
{{ foreach p in products return {{- {{ p.productDescription }}\n}} }}
Territory:
{{ foreach c in countries return {{- {{ c }}\n}} }}

For the contract data:
{
  "$class": "org.accordproject.trademark",
  "products": [
    "Men’s footwear", "Men’s hosiery", "Men’s belts",
    "Men’s wallets", "Men’s documents cases and Men’s business card cases",
    "Men’s shave kits", "Men’s key fobs", "Men’s money clips"
  ],
  "countries": [
    "United States of America including its territories and possessions",
    "Canada",
    "UAE"
  ]
}

The text of the contract will be:
Exhibit B
Authorized Licensed Products and Territory
Products:
- Men’s footwear
- Men’s hosiery
- Men’s belts
- Men’s wallets
- Men’s documents cases and Men’s business card cases
- Men’s shave kits
- Men’s key fobs
- Men’s money clips

Territory:
- United States of America including its territories and possessions
- Canada
- UAE

Constructing Tables (https://github.com/accordproject/cicero/issues/20):
Template:
Volume-Based Card Acceptance Agreement [Abbreviated]

This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.
Discount means an amount that we charge you for accepting the Card, which amount is: ...

| Annual Dollar Volume      | Discount             |
{{ foreach dr in discountRates
   return
     let lessThan = dr.volumeUpTo ?? 0;
     let greaterThan = dr.volumeUpTp ?? infinity;
     {{| ${{ lessThan }} to ${{ greaterThan }} | {{ dr.rate }} |}} }}

_______________________					_____________________
 Card, Inc.

For the contract data:
{
  "discountRates" : [
  { "volumeAbove" : null,
    "volumeUpTo" : 1000,
    "rate" : 3.00 },
  { "volumeAbove" : 1000,
    "volumeUpTo" : 10000,
    "rate" : 2.90 },
  { "volumeAbove" : 10000,
    "volumeUpTo" : null,
    "rate" : 2.80 }
  ]
}

The text of the contract will be:
Volume-Based Card Acceptance Agreement [Abbreviated]

This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.
Discount means an amount that we charge you for accepting the Card, which amount is: ...

| Annual Dollar Volume      | Discount             |
| $0 than $1000             | 3.00%                |
| $1000 to $10000           | 2.90%                |
| $10000 to $infinity       | 2.80%                |

Handling Optional Text:
Template:
Late Delivery and Penalty. In case of delayed delivery{{ if forceMajeure then {{ except for Force Majeure cases,}} else ""}} [{seller}] (the Seller) shall pay to [{buyer}] (the Buyer) for every [{penaltyDuration}] of delay penalty amounting to [{penaltyPercentage}]% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a [{fractionalPart}] is to be considered a full [{fractionalPart}]. The total amount of penalty shall not however, exceed [{capPercentage}]% of the total value of the Equipment involved in late delivery. If the delay is more than [{termination}], the Buyer is entitled to terminate this Contract.

For the contract data:
{
  "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
  "contractId": "c0f8c55b-a8de-4cb1-9991-632b92308920",
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Steve"
  },
  "seller": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Dan"
  },
  "forceMajeure": true,
  "penaltyDuration": {
    "$class": "org.accordproject.time.Duration",
    "amount": 2,
    "unit": "days"
  },
  "penaltyPercentage": 10.5,
  "capPercentage": 55,
  "termination": {
    "$class": "org.accordproject.time.Duration",
    "amount": 15,
    "unit": "days"
  },
  "fractionalPart": "days"
}

The text of the contract will be:
Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases, "Dan" (the Seller) shall pay to "Steve" (the Buyer) for every 2 days of delay penalty amounting to 10.5% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.

Handling Optional Text with Parameters (https://github.com/accordproject/cicero/issues/17):
Template:
Late Delivery and Penalty. In case of delayed delivery{{ if forceMajeure then {{ except for Force Majeure cases in the {{forceMajeureWindow}} before the delivery date,}} else ""}} [{seller}] (the Seller) shall pay to [{buyer}] (the Buyer) for every [{penaltyDuration}] of delay penalty amounting to [{penaltyPercentage}]% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a [{fractionalPart}] is to be considered a full [{fractionalPart}]. The total amount of penalty shall not however, exceed [{capPercentage}]% of the total value of the Equipment involved in late delivery. If the delay is more than [{termination}], the Buyer is entitled to terminate this Contract.

For the contract data:
{
  "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
  "contractId": "c0f8c55b-a8de-4cb1-9991-632b92308920",
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Steve"
  },
  "seller": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Dan"
  },
  "forceMajeure": true,
  "forceMajeureWindow": {
    "$class": "org.accordproject.time.Duration",
    "amount": 7,
    "unit": "days"
  },
  "penaltyDuration": {
    "$class": "org.accordproject.time.Duration",
    "amount": 2,
    "unit": "days"
  },
  "penaltyPercentage": 10.5,
  "capPercentage": 55,
  "termination": {
    "$class": "org.accordproject.time.Duration",
    "amount": 15,
    "unit": "days"
  },
  "fractionalPart": "days"
}

The text of the contract will be:
Late Delivery and Penalty. In case of delayed delivery except for Force Majeure cases in the 7 DAYS before the delivery date, "Dan" (the Seller) shall pay to "Steve" (the Buyer) for every 2 days of delay penalty amounting to 10.5% of the total value of the Equipment whose delivery has been delayed. Any fractional part of a days is to be considered a full days. The total amount of penalty shall not however, exceed 55% of the total value of the Equipment involved in late delivery. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.

Handling Complex Data:
Template:
Delivery shall be sent to:
{{
  enforce buyerAddress.streetAddress != none
  and buyerAddress.addressCountry = some("USA")
  and buyerAddress.postalCode != none
  and buyerAddress.addressRegion != none;
  and buyerAddress.addressLocality != none;
  {{{{ buyer }}
{{ buyerAddress.streetAddress }}{{ match buyerAddress.postOfficeBoxNumber with let? po then " (PO Box: " ++ po ++ ")" else "" }}
{{ buyerAddress.addressLocality }}, {{ buyerAddress.addressRegion }} {{ buyerAddress.postalCode }}}}
}}

For the contract data:
{
  "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
  "contractId": "c0f8c55b-a8de-4cb1-9991-632b92308920",
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Steve"
  },
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Dan"
  },
  "buyerAddress": {
    "streetAddress": "555 Main Street",
    "postalCode": "10001",
    "postOfficeBoxNumber": null,
    "addressRegion": "NY",
    "addressLocality": "New York",
    "addressCountry": "USA"
  }
}

The text of the contract will be:
Delivery shall be sent to:
Dan
555 Main Street
New York, NY 10001

For the contract data:
{
  "$class": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
  "contractId": "c0f8c55b-a8de-4cb1-9991-632b92308920",
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Steve"
  },
  "buyer": {
    "$class": "org.accordproject.cicero.contract.AccordParty",
    "partyId": "Dan"
  },
  "buyerAddress": {
    "streetAddress": "555 Main Street",
    "postalCode": "55WI555",
    "postOfficeBoxNumber": null,
    "addressRegion": null,
    "addressLocality": "London",
    "addressCountry": "UK"
  }
}

Attempting to generate the text of the contract will result in an enforce error.

Note that an approach based on expressions within templates may also cover https://github.com/accordproject/cicero/issues/296

Implemented syntax uses: {{% expression %}} and is part of the 0.20 release. I'm closing this issue as done. Any other question or problems specific to dynamic templates support can be open as new issues.


filter large knetworks for network view

Due to cyJS limits of rendering our knetworks in knetmaps, we have decided for /network mode (nested) JSON response that returns a blob with a graphJSON and a metadata JSON as JS vars, if the total knetwork has over 3000 nodes, then we will filter it automatically and regenerate new knetwork_json with only visible and flagged nodes/edges shown.
The newly regenerated JSON (with new graphJSON and new metadata JSON) will be used to render the new, smaller knetwork in knetmaps (Network View).

newly implemented in https://github.com/Rothamsted/knetminer/commit/b3865434dab381252710fd48b56eee2b2b68d84a

needs to be implemented for genepage api as well (pending)

to maybe be done genepage, for a future knetminer 5.* release not the current r5.0

is finished for r5.0 already as needed for UI client not genepage yet


Metadata for Quicklisp

Please consider adding :description, :author and :license information to your ASDF system(s). This will greatly help Quicklisp users and make it easier for them to report bugs.
More information:
http://blog.quicklisp.org/2015/05/looking-for-more-metadata.html
https://www.quicklisp.org

Thank you for the helpful report.
I added ':description' information.
https://github.com/tkych/cl-spark/blob/master/cl-spark-test.asd#L17


gulp.watch ignore/exclude specific folder (node_modules)

Hi,
I am using gulp.watch and i would like to ignore a folder (node_modules for instance). I would like to use:
gulp.watch(['../**/*.php', '!./node_modules/**'], reload);
My gulp file is based on Web Starter Kit from Google and this is my serve task with the bloated manual gulp.watch:
// Watch files for changes & reload
gulp.task('serve', ['scripts', 'styles'], () => {
  browserSync.init({
    notify: false,
    // Customize the Browsersync console logging prefix
    logPrefix: 'WSK',
    scrollElementMapping: ['#page'],
    proxy: project,
    port: 3000
  });

  gulp.watch(['../inc/**/*.php', '../*.php', '../layouts/**/*.php', '../plugins/**/*.php', '../template-parts/**/*.php'], reload);
  gulp.watch(['styles/**/*.{scss,css}'], ['styles', reload]);
  gulp.watch(['scripts/**/*.js'], ['scripts', reload]);
  gulp.watch(['images/**/*'], ['images', reload]);
});

Support questions should be directed to StackOverflow.

Hi, there
I'm experiencing the same problem that gulp.watch() is not handling 'excludes'.
In my example below,
const watched = ['docs/**/*', '!docs/gulpfile.js' ];

gulp.src(watched).pipe(require('gulp-debug')());

gulp.watch(watched, (done)=>{
  console.log('watch triggered'); done();
});

gulp.src() show correct list which is not including 'docs/gulpfile.js', but gulp.watch() triggers when I make changes on 'docs/gulpfile.js'
I spent many hours on this, and it seems to be a kind of bug. Please advise if I missed anything.
Thanks,


Code cleanup

This is a little cleanup. I learned that NPM puts binaries from dev dependencies on the path automaticall when running scripts. Therefore, the explicit call to npx is not necessary in the scripts in package.json. Apologies for the churn!

Ah true, npx makes sense when invoking the packages from the terminal directly :)


Search does not return all attrs

hey @jeremycx
Thank you for the package.  It is awesome.
I am currently running into this issue, after a successful search.  The result only return [objectClass, uid, loginShell, sn, uidNumber, gidNumber, homeDirectory, givenName, cn, dn] fields.  Other fields such as mail are missing.
here is my search func:
    var options = {base: 'dc=com', attrs: '*', filter: '(uid=someID)'};
    client.search(options, function (err, res) {
       console.log(err, res);
    });

We're pretty much returning everything the LDAP server returns -- are you sure the missing fields are not ones that require authentication to retrieve?

Hey @jeremycx
Thanks for the quick reply.
That was my initial reaction as well.  I use the same authentication info search same obj in jxexplore(a ldap gui for mac) to test and compare. It returns more fields than my method call.
That is why I messaged you

It may be that there's a LDAP packet coming back that I'm ignoring or not handling properly with the "missing" attributes in it, but if that's the case it's going to be a heck of a job finding it.
More likely, there's a bug in the auth code so you're not authenticated when you think you are.
Let's try an experiment: let's see if you can get jxexplorer (or ldapsearch on the command line) to return only the partial attributes you are seeing above. Once we find a way to get the same output from a different tool, we will have found the problem.

If you can't get any success with the above, please provide a runnable code sample that will exhibit the problem...

great  thanks.
I will try the jxexplore with search

It seems like they are returning different result.
jxexplorer are returning the result, while the method is returning empty array.
I will try to make something runnable code for you

Closing due to inactivity.

@jeremycx. Yeah. I can't really product runnable code without leaking configs. Sorry.


chore(github): upgrade neofinancial/ticket-check-action

https://github.com/apache/incubator-pegasus/issues/1551

While trying to upgrade 1.3.0 to higher versions, such as 1.3.1, 1.3.2, ..., 2.0.0, all of the higher versions failed as following error:
[Error: .github#L1](https://github.com/apache/incubator-pegasus/commit/58aad0ec1237f92ac1376db0d07ac1972330064c#annotation_12245497118)
<EMAIL_ADDRESS>is not allowed to be used in apache/incubator-pegasus. Actions in this workflow must be: within a repository owned by apache, created by GitHub, verified in the GitHub Marketplace, or matching the following: */*@[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]+, AdoptOpenJDK/install-jdk@*, JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92, TobKed/label-when-approved-action@*, actions-cool/issues-helper@*, actions-rs/*, al-cheb/configure-pagefile-action@*, amannn/action-semantic-pull-request@*, apache/*, burrunan/gradle-cache-action@*, bytedeco/javacpp-presets/.github/actions/*, chromaui/action@*, codecov/codecov-action@*, conda-incubator/setup-miniconda@*, container-tools/kind-action@*, container-tools/microshift-action@*, dawidd6/action-download-artifact@*, delaguardo/setup-graalvm@*, docker://jekyll/jekyll:*, docker://pandoc/core:2.9, eps1lon/actions-label-merge-conflict@*, gaurav-nelson/github-action-mark...


[tensorboard] make projector plugin request data path relative

this PR solves #8342
As in version 1.1rc0, the changes are made:

TensorBoard uses a relative data directory, for easier embedding.

but the request of project plugin data in Embeddings panel, e.g. /data/plugin/projector/runs still requests in a absolute path.  the code
<vz-projector-dashboard
            id="projector"
            route-prefix="/data/plugin/projector">

with the leading slash leads the  absolutely path request.
this PR remove the leading slash.

Can one of the admins verify this patch?

Thanks for the PR @lspvic. @dandelionmane could you take a look?

@dandelionmane how does that look?

@tensorflow-jenkins Test this please


"Northstar Launcher has crashed!"

After playing for 9+ hours, i got this

@WingsOfCoronia after restarting Origin, can you still reproduce this issue? Also you might want to close this and instead do a ticket on Northstar Discord #help so we can do active trouble shooting if you experience this.
If that was a one time issue it probably means your Origin lost connection or similar.

@WingsOfCoronia after restarting Origin, can you still reproduce this issue? Also you might want to close this and instead do a ticket on Northstar Discord #help so we can do active trouble shooting if you experience this.
If that was a one time issue it probably means your Origin lost connection or similar.

yes i can reproduce the issue, and yes i do re-login Origin but still the same,

@WingsOfCoronia how can you reproduce it? can you document the steps for us?

@WingsOfCoronia how can you reproduce it? can you document the steps for us?

it's very simple, i just re-launch the Northstar Launcher with or without re-login the Origin, still got the same issue

https://r2northstar.gitbook.io/r2northstar-wiki/installing-northstar/troubleshooting#lsx
or restart your PC

thanks it's the LSX error one, it's work, thanks for the replies

Closing as solved then ^^


Release 22-10-28

Release 22-10-28
NB: this PR must be merged only by 'Create a merge commit'!
Checklist when preparing for release

[ ] Read or refresh the release flow guide
[ ] Ask in the cloud Slack channel that you are going to rollout the release. Any blockers?
[ ] Does this release contain any db migrations? Destructive ones? What is the rollback plan?

Checklist after release

[ ] Based on the merged commits write release notes and open a PR into website repo (example)
[ ] Check #dev-production-stream Slack channel
[ ] Check stuck projects page
[ ] Check recent operation failures
[ ] Check cloud SLO dashboard
[ ] Check compute startup metrics dashboard

I can't connect to cluster on staging now

I suspected wrong conflict merging in test_prepare_snapshot failure (first CI run), but now I see original bug in the test, will address that separately -- merge is fine.

https://github.com/neondatabase/neon/pull/2719


Add lock file

Vulnerability scanning tooling is using the lock file to look for issues. Without this, the tooling will not be able to produce reliable report.

You’ll need to update the changelog. Minor release.

Added a requirements lock file that is automatically generated with tox and pre-commit

Added.


PlanetCrypto.app initial icon commits

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

Any issue with our images we need to look at? Thanks.

@dAppBridge yes, you need to lowercase names as specified in the requirements


playground: inconsistent formatting of errors depending on whether gofmt, goimports, go build is being used

What did you do?
Visit https://play.golang.org/p/kpQt2DJxEEp.

Keep "Imports" checkbox unchecked, press the Format button.
Check the "Imports" checkbox, try pressing the Format button again.
Press the Run button.

What did you expect to see?
Consistent formatting of errors, and coloring the gutter of the problematic line in red in all 3 cases.
What did you see instead?

With gofmt:
3:1: expected declaration, found 'IDENT' problem

And line 3 gutter is not red:

With goimports:
prog.go:3:1: expected declaration, found 'IDENT' problem

Line 3 gutter is red, which helps spot where the issue is (more so in a larger file):

After pressing Run button:
tmp/sandbox892599086/main.go:3:1: syntax error: non-declaration statement outside function body

And line 3 gutter is not red:

Notice how the filename is not consistent, and the red gutter only works in the goimports situation (but it's likely trivial to make it work in all 3 cases).
With gofmt, there's no filename at all. With goimports, it's "prog.go". But with go build, it's "main.go" and includes "tmp/sandbox892599086" prefix. (I would imagine ideal solution is using "main.go" as the filename in all 3 cases.)

All yours, @andybons.

I have a CL prepared, but will submit it after playground tests.