multiline_start_regexp doesn't match if the line contains escaped character

Hello,
Problem
I'm not so familiar with the regexp of Ruby so please forgive me if this is a basic behaviour but it seems that the multiline_start_regexp pattern doesn't match if the defined field contains an escaped character. In my case an escaped double quote. Without the escaped characters it is working fine. I checked my pattern on rubular.com (regexp tester) and according to the page, the pattern partly matches to the given text.
Could you please help me?
Steps to replicate
Test line:
{"docker": {"container_id": "1"}, "log":"time=\"2018-07-19T10:29:24.645Z\" level=\"INFO\" msg=\"test msg\"","stream":"stdout","time":"2018-07-19T10:29:24.645950499Z"}

Config:
    <source>
      @id containers.log
      @type tail
      path /var/log/concat/*.log
      pos_file /var/log/concat/es-containers.log.pos
      time_format %Y-%m-%dT%H:%M:%S.%NZ
      tag raw.kubernetes.*
      format json
      read_from_head true
    </source>
    <filter **>
      @type concat
      key log
      separator ""
      stream_identity_key docker.container_id
      multiline_start_regexp /^time=/
      flush_interval 5
      timeout_label @NORMAL
    </filter>

Expected Behavior
The given pattern should match on the example line so the plugin should start to concatenate it with the next entries.
Your environment
fluentd 1.2.2
fluent-plugin-concat 2.3.0

First, stream_identity_key does not support nested key.
Could show me your actual logs and expected concatenated logs?
Because single line sample log makes no sense.

Thanks for your response!
Ok, I modified the value of the stream_indentity_key so now it is not nested.
Config:
    <source>
      @id containers.log
      @type tail
      path /var/log/concat/*.log
      pos_file /var/log/concat/es-containers.log.pos
      time_format %Y-%m-%dT%H:%M:%S.%NZ
      tag raw.kubernetes.*
      format json
      read_from_head true
    </source>
    <filter **>
      @type concat
      key log
      separator ""
      stream_identity_key container_id
      multiline_start_regexp /^time=/
      flush_interval 5
      timeout_label @NORMAL
    </filter>

Example lines:
{"container_id": "1", "log":"time=\"2018-07-19T10:29:24.645Z\" level=\"INFO\" msg=\"multiline log:\"\n","stream":"stdout","time":"2018-07-19T10:29:24.645950499Z"}
{"container_id": "1", "log":"status {\n","stream":"stdout","time":"2018-07-19T10:29:24.64596578Z"}
{"container_id": "1", "log":"  status_code: SUCCESS\n","stream":"stdout","time":"2018-07-19T10:29:24.64597079Z"}
{"container_id": "1", "log":"  status_description {\n","stream":"stdout","time":"2018-07-19T10:29:24.645975332Z"}
{"container_id": "1", "log":"    description_code: NOT_FOUND\n","stream":"stdout","time":"2018-07-19T10:29:24.645979575Z"}
{"container_id": "1", "log":"    description: \\\"No record found\\\"\n","stream":"stdout","time":"2018-07-19T10:29:24.645983864Z"}
{"container_id": "1", "log":"  }\n","stream":"stdout","time":"2018-07-19T10:29:24.64598817Z"}
{"container_id": "1", "log":"}\n","stream":"stdout","time":"2018-07-19T10:29:24.646010787Z"}
{"container_id": "1", "log":"\"\n","stream":"stdout","time":"2018-07-19T10:29:24.646014939Z"}
{"container_id": "1", "log":"time=\"2018-07-19T10:29:24.645Z\" level=\"INFO\" msg=\"single line log\"\n","stream":"stdout","time":"2018-07-19T10:29:24.646018924Z"}

And I would expect to have two records . One multiline and one single line:
{"container_id":"1","log":"time=2018-07-19T10:29:24.645Z level=INFO msg=single line log\n","stream":"stdout","@timestamp":"2018-07-24T06:11:46.477+00:00",}
{"container_id":"1","log":"time=2018-07-19T10:29:24.645Z level=INFO msg=multiline log:\nstatus {\n  status_code: SUCCESS\n  status_description {\n    description_code: NOT_FOUND\n    description: \\\"No record found\\\"\n  }\n}\n\"\n","stream":"stdout","@timestamp":"2018-07-19T10:29:24.646+00:00",}

And the intresting point is if I remove the escaped double quotes from the lines which begin with "time=" then it is working as expected.
So with this input it is fine:
{"container_id": "1", "log":"time=2018-07-19T10:29:24.645Z level=INFO msg=multiline log:\n","stream":"stdout","time":"2018-07-19T10:29:24.645950499Z"}
{"container_id": "1", "log":"status {\n","stream":"stdout","time":"2018-07-19T10:29:24.64596578Z"}
{"container_id": "1", "log":"  status_code: SUCCESS\n","stream":"stdout","time":"2018-07-19T10:29:24.64597079Z"}
{"container_id": "1", "log":"  status_description {\n","stream":"stdout","time":"2018-07-19T10:29:24.645975332Z"}
{"container_id": "1", "log":"    description_code: NOT_FOUND\n","stream":"stdout","time":"2018-07-19T10:29:24.645979575Z"}
{"container_id": "1", "log":"    description: \\\"No record found\\\"\n","stream":"stdout","time":"2018-07-19T10:29:24.645983864Z"}
{"container_id": "1", "log":"  }\n","stream":"stdout","time":"2018-07-19T10:29:24.64598817Z"}
{"container_id": "1", "log":"}\n","stream":"stdout","time":"2018-07-19T10:29:24.646010787Z"}
{"container_id": "1", "log":"\"\n","stream":"stdout","time":"2018-07-19T10:29:24.646014939Z"}
{"container_id": "1", "log":"time=2018-07-19T10:29:24.645Z level=INFO msg=single line log\n","stream":"stdout","time":"2018-07-19T10:29:24.646018924Z"}

Works for me.
My configuration based on yours:
<source>
  @id containers.log
  @type tail
  #path /var/log/concat/*.log
  #pos_file /var/log/concat/es-containers.log.pos
  path local/55.log
  #pos_file local/55.pos
  # path local/55-q.log
  # pos_file local/55-q.pos
  time_format %Y-%m-%dT%H:%M:%S.%NZ
  tag raw.kubernetes.*
  format json
  read_from_head true
</source>

<filter **>
  @type concat
  key log
  separator ""
  stream_identity_key container_id
  multiline_start_regexp /^time=/
  flush_interval 5
  timeout_label @NORMAL
</filter>

<match raw.kubernetes.**>
  @type stdout
</match>

<label @NORMAL>
  <match raw.kubernetes.**>
    @type stdout
  </match>
</label>

<label @ERROR>
  <match>
    @type stdout
  </match>
</label>

<match fluent.*>
  @type null
</match>

My output:
2018-07-19 10:29:24.646018924 +0900 raw.kubernetes.local.55.log: {"container_id":"1","log":"time=\"2018-07-19T10:29:24.645Z\" level=\"INFO\" msg=\"multiline log:\"\nstatus {\n  status_code: SUCCESS\n  status_description {\n    description_code: NOT_FOUND\n    description: \\\"No record found\\\"\n  }\n}\n\"\n","stream":"stdout"}
2018-07-19 10:29:24.645950499 +0900 raw.kubernetes.local.55.log: {"container_id":"1","log":"time=\"2018-07-19T10:29:24.645Z\" level=\"INFO\" msg=\"single line log\"\n","stream":"stdout"}

Could you try the above configuration?

You are right. It is fine with this config.
I figured out that the rewrite_tag_filter plugin (it was not part of the config that I posted) modifies the tag of the lines so the start line will have a different tag than the other lines.
That's why the concat plugin won't pair these lines.
Sorry for wasting your time and thanks for the help!


Emails not sending with Mailgun

Long delays (>10 minutes) not good for user experience
Solution: use Sendgrid

Done


fix: correctly align days in calendar

From Matrix:

niklas
01:21 AM
small Bug-Report regarding the Calendar on the website:
for the month of june the formatting is off by one day, june starts on saturday but the first of june is displayed in the sunday colum, this problem persits for the full month of june (e.g. sundays in the monday colum, ...)

It seems like there was a copy-paste error in the CSS classnames. I fixed this.

Deploying preview to https://xHain-hackspace-xhain-website-pr-74.surge.sh


accounts/changeusername.php

i'm new to github so i don't know if this is the appropriate place to ask. how would i send a change username request without using the account management website?

nvm figured it out

Just to answer this myself,
not.
The GD API sadly isn't an API which follows any standards thus most endpoints you would expect to exist simply don't.


Investigate xarray chunking

When loading multiple zarr files using xarray, I have noticed that it often changes the chunk sizes despite the zarrs having the same chunking when saved to disk. Often it will double the chunk size. This is wasteful since it means we are then doubling the data we load off of disk just to get access to a small piece of it. This then slows down our sampling significantly
We should investigate this further and see if there is a better way to load multiple zarr files with xarray
e.g. In the example below xarray makes the chunks 27 times larger!
Note that I haven't printed the time dimension here. Where we open the two files individually the time chunk sizes are 12. Where we open them together the chunk size becomes 36
import xarray as xr

# Load two zarr files independently
path1 = "/mnt/disks/nwp_rechunk/sat/2020_nonhrv.zarr"
path2 = "/mnt/disks/nwp_rechunk/sat/2021_nonhrv.zarr"

ds1 = xr.open_zarr(path1)
ds2 = xr.open_zarr(path2)

# Check all coords except time have same values
assert (ds1.variable==ds2.variable).all()
assert (ds1.x_geostationary==ds2.x_geostationary).all()
assert (ds1.y_geostationary==ds2.y_geostationary).all()

# Check the chunk sizes are the same and print them
for dim in ["variable", "x_geostationary",  "y_geostationary"]:
    assert ds1.chunks[dim] == ds2.chunks[dim]
    print(f"{dim}: {ds1.chunks[dim]}")

variable: (11,)
x_geostationary: (100, 100, 100, 100, 100, 100, 14)
y_geostationary: (100, 100, 100, 72)

# Open the two files with our default settings
ds = xr.open_mfdataset([path1, path2],
    engine="zarr",
    concat_dim="time",
    combine="nested",
    chunks="auto",
    join="override"
)

# Check the chunk sizes are the same and print them
for dim in ["variable", "x_geostationary",  "y_geostationary"]:
    print(f"{dim}: {ds.chunks[dim]}")

variable: (11,)
x_geostationary: (300, 300, 14)
y_geostationary: (300, 72)

This may have been the fault of some of the coordinates not being the same between different zarr files. I am now unable to recreate the issue. So closing until it pops up again

Absolute whirlwind. I have recreated the issue. Added example to the description above

Great catch! And thanks for the example, I looked at the xarray docs again which had some detail on what the different parameter values for chunks would do and I guess the chunked size with "auto" is at the whim of dask auto and what it deems ideal.
Not sure if this helpful but I recreated the example you made with smaller amount of fake data and when setting chunks=None in open_mfdataset it seemed to preserve what the original chunk sizes were. It would be good to double check that but in that case could a rule of thumb be if you have already rechunked the data you are working on to optimise for performance given your use case it would be best to avoid chunks="auto" and go with None instead and if you haven't rechunked for some reason then auto may still be a sensible choice?
Or if you were thinking of a different way altogether of opening/loading mulitple zarr files I would be interested to see what that could look like!


invalid_grant: PKCE verification failed

Exchange toke request failing with following response.
{"error":"invalid_grant","error_description":"PKCE verification failed"}
React Native: 0.68.5
expo-random: ~12.2.0
react-native-pkce-challenge: ^5.1.1

Re-open if the issue still persists on v5.3.0.


fix JPEG reference tests

We are currently skipping JPEG reference tests on Windows, since the Windows wheels of Pillow are built against libjpeg-turbo while we build torchvision against libjpeg
https://github.com/pytorch/vision/blob/bbeb32035c0df752a0fe0cd5921de537e7f68d72/test/test_image.py#L481
As of Pillow==9.0.0, all wheels are now built against libjpeg-turbo, which leads to the CI failures that are currently happening. Thus, these tests will now fail for every OS or at least only succeed by chance.
There are multiple ways out in descending order of preference by me:

Install Pillow from conda-forge rather from PyPI to enforce the same JPEG library for torchvision and Pillow.
Pin Pillow<9 for unittest CI. This basically preserves the behavior we had before.
Remove these tests completely.

The only downside of 1. that I see is that Pillow on conda-forge is released later than on PyPI. IIUC, the conda-forge package is community managed and they only start building when it is released on PyPI. If there are build failures it might take some time until the versions converge again. In the meantime, our tests would not pick up on any incompatibilities with Pillow in general not just for JPEG I/O. Thus, we would need to rely on user feedback that something is not working.
Given that this is an dependency issue, I would be fine with waiting for user reports in the time of Pillow version divergence between conda-forge and PyPI. If we don't want to accept that, we could also hide all JPEG compatibility tests behind a runtime flag and add another CI job that only runs these tests while enforcing 1. from above.
cc @pmeier @NicolasHug @datumbox

Thanks a lot for the summary and for opening this issue @pmeier
In #5169 I temporarily skipped the offending tests unconditionally, for the CI to go back to green.
Paraphrasing what you mentioned about option 1: there's the risk that PIL releases a new version, and that we also release torchvision shortly after, before the conda-forge PIL channel gets updated with PIL's latest. In this case, we might miss bugs (related to jpeg, or to other parts where torchvision interacts with PIL, like the transforms).
It's also possible that the conda-forge channel decides to build against libjpeg-turbo instead of libjpeg one day, in which case we would be back to our original problem again (although at least for PIL 9 they're sticking to libjpeg it seems https://github.com/conda-forge/pillow-feedstock/pull/104/files)
Another option that we discussed internally is

build torchvision against libjpeg-turbo instead of libjpeg.

which could come with the benefit of speeding up the jpeg decoding. But there might be implications w.r.t. the PIL binary compatibility so this is something we'd have to plan with the release engineers.
As a temporary solution, would it be hard to pin one CI job (e.g. linux 3.8) to use libjpeg instead of libjpeg-turbo? Either by making it rely on conda, or by pinning it to PIL 8? This way we would be able to run offending tests on this one CI job, while still relying on the latest PIL for all other tests.

hard to pin one CI job

Unfortunately, yes. All CI jobs use .circleci/unittest/{linux, windows}/environment.yml as base. It would be a lot easier to add a one-off job as explained in my top comment:

we could also hide all JPEG compatibility tests behind a runtime flag and add another CI job that only runs these tests while enforcing 1. from above.

Thanks for the feedback, ok then, I'm happy to try and see what a dedicated job would look like. Would you be interested in submitting a PR?


Remove isUsedForNesting function

This function is not general purpose (used in a single rule) so can be removed from the API.
Technically breaking change but this is very unlikely to be used in 3rd party rules.

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

  Generated by :no_entry_sign: dangerJS against 0bc1edf3968e831fa898bd9393937c746883982a


Feature Request: Public List

Just a suggestion... Can we make lists public and discuss them?

As the list is "stored" in the url, you may just copy it from the address bar of your browser to share the list. You can post and discuss this link/list wherever you want and it will be public available to anyone who got the link. E.g.: Quad Wookies
That said, I am not sure what you are asking for, but maybe this already helped you?


Request of camera parameters

Dear DBnet team：
I am using other tools to process the image data in the data set, but I need the internal and external parameters of the camera. Can you provide them? Thank you

@wangjksjtu hi,  would it be possible to provide the intrinsic and extrinsic paramenters of the camera and transformation matrix between camera and lidar, it would be really helpful and much appreciated!


Support Terraform Imports

What this PR does / why we need it:
Add support for Terraform imports to the Terraformer.
There are certain cases, primarily migration scenarios, which require to import existing resources into the Terraform state. See here for an example.
The imports can be defined in the *.infra.tf-config configmap via .data.imports.
This need to be look like this:
  imports: |
   resource_type.name1 abc
   resource_type.name2 xyz

The resources will be imported in the order as they are specified. Only if all imports succeed the state will be persisted. After that the *.infra.tf-config configmap will be patched to remove .data.imports as the imports are now part of the state.
Special notes for your reviewer:
Here is an example to test the import behaviour based on the mentioned issues above. You need the azurerm provider with version >= 2.12.0. You can use this image to test: dominickistner/terraformer:test-import-1 (test image contains a bash for debugging)

Apply this configmap with the Terraformer configuration (don't forget to replace the subscription id in the imports field):

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: some-name.infra.tf-config
  namespace: default
data:
  main.tf: |
    provider "azurerm" {
      subscription_id = var.subscription_id
      tenant_id       = var.tenant_id
      client_id       = var.client_id
      client_secret   = var.client_secret
      version         = "2.12.0"
      features {}
    }

    resource "azurerm_resource_group" "rg" {
      name     = "test-nat"
      location = "westeurope"
    }

    resource "azurerm_public_ip" "natip1" {
      name                = "nat-ip1"
      location            = "westeurope"
      resource_group_name = azurerm_resource_group.rg.name
      allocation_method   = "Static"
      sku                 = "Standard"
    }

    resource "azurerm_public_ip" "natip2" {
      name                = "nat-ip2"
      location            = "westeurope"
      resource_group_name = azurerm_resource_group.rg.name
      allocation_method   = "Static"
      sku                 = "Standard"
    }

    resource "azurerm_nat_gateway" "nat" {
      name                    = "nat-gateway"
      location                = "westeurope"
      resource_group_name     = azurerm_resource_group.rg.name
      sku_name                = "Standard"
      public_ip_address_ids   = [azurerm_public_ip.natip1.id, azurerm_public_ip.natip2.id] # Remove me later. Step 4.
    }

    # Enable those resources later. Step 4.
    # resource "azurerm_nat_gateway_public_ip_association" "nat-ip-association-1" {
    #   nat_gateway_id       = azurerm_nat_gateway.nat.id
    #   public_ip_address_id = azurerm_public_ip.natip1.id
    # }

    # resource "azurerm_nat_gateway_public_ip_association" "nat-ip-association-2" {
    #   nat_gateway_id       = azurerm_nat_gateway.nat.id
    #   public_ip_address_id = azurerm_public_ip.natip2.id
    # }

  imports: |
   azurerm_nat_gateway_public_ip_association.nat-ip-association-1 /subscriptions/<subscription-id>/resourceGroups/test-nat/providers/Microsoft.Network/natGateways/nat-gateway|/subscriptions/<subscription-id>/resourceGroups/test-nat/providers/Microsoft.Network/publicIPAddresses/nat-ip1
   azurerm_nat_gateway_public_ip_association.nat-ip-association-2 /subscriptions/<subscription-id>/resourceGroups/test-nat/providers/Microsoft.Network/natGateways/nat-gateway|/subscriptions/<subscription-id>/resourceGroups/test-nat/providers/Microsoft.Network/publicIPAddresses/nat-ip2

  variables.tf: |
    variable "subscription_id" {
      type = string
    }
    variable "tenant_id" {
      type = string
    }
    variable "client_id" {
      type = string
    }
    variable "client_secret" {
      type = string
    }

---
apiVersion: v1
kind: Secret
metadata:
  name: some-name.infra.tf-vars
  namespace: default
type: Opaque
data:
  terraform.tfvars: |
    b64(
      subscription_id = "my-subscription-id"
      tenant_id = "my-tenant-id"
      client_id = "my-spn-id"
      client_secret = "my-spn-secret"
    )

Add an empty state configmap:

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: some-name.infra.tf-state
  namespace: default
data:
  terraform.tfstate: ""

Run a terraform apply:

kubectl apply -f example/30-terraformer-apply-pod.yaml

Modify the configuration configmap with the following changes and apply the modified configmap.
You need to remove the public_ip_address_ids field from the azurerm_nat_gateway resource and enable the two azurerm_nat_gateway_public_ip_association resources.

Try to apply again. It should fail due to import error like that:

Error: A resource with the ID "/subscriptions/<subscription-id>/resourceGroups/test-nat/providers/Microsoft.Network/natGateways/nat-gateway|/subscriptions/<subscription-id>/resourceGroups/test-nat/providers/Microsoft.Network/publicIPAddresses/nat-ip1" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_nat_gateway_public_ip_association" for more information.

Now run the import job:

kubectl apply -f example/50-terraformer-import-pod.yaml

The azurerm_nat_gateway_public_ip_associationresources should be now part of the state. Run import once more. There should be no diff.

Apply once more. It should now succeed.

Finally destroy the created resources again.

kubectl apply -f example/40-terraformer-destroy-pod.yaml

Release note:

Terraformer support now also Terraform imports.

/assign @ialidzhikov

Any plans to go forward with this one @ialidzhikov or @dkistner ?

Any plans to go forward with this one @ialidzhikov or @dkistner ?

My proposal is https://github.com/gardener/gardener-extension-provider-azure/pull/54#issuecomment-664593585.

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

/rotten
/close


Some suggestions

A few suggestions:

Small detail but nice to make endDate optional for getHistoricalData. Default to new Date() (easy to do on the TypeScript side)
Rename getHistoricalDataIos to getHistoricalData. Provide a default implementation for other platforms that returns an empty array and also logs a warning that the function is not supported. Would be nice to indicate with JSDoc comments that the function is iOS only as well, this will make it easy to see at a glance in VSCode/Cursor.
Provide a fallback implementation for unsupported platforms. Currently importing the module results in errors on web for example where the native part doesn't exist. One good way of doing this would be to rename MotionActivityTracker.ts to MotionActivityTracker.native.ts, and create a new MotionActivityTracker.ts with just fallback functions.

I think the UnavailableFn in react-native-healthkit is a pretty nice way to implement fallback functions on unsupported platforms.

@robertherber thank you robert for the issue, i will work on it!

@robertherber
I'm happy to let you know that your suggestion has been implemented in version 1.0.0 of the library. Here's what has been updated:
Renamed getHistoricalDataIOS to getHistoricalData.
Made endDate optional for getHistoricalData (defaults to new Date()).
Added fallback implementations for unsupported platforms.


Redesign Form Builder - Figma

The current Form Builder interface creates some confusion, since the form components and save and validate buttons are grouped together. Create a new design where they are separated.

Create desktop and mobile design in Figma
Horizontal toolbar?
The component settings should be a popup/modal in mobile view

Here are some suggestions for the new design. What do you think?
Link to Figma board.
Desktop:

Mobile:

Mobile settings modal:

Nice work! It looks great!
Some thoughts:

In component settings: maybe not necessary with radiobuttons, but just a checkbox for required.
The components position:
two different approaches you may consider:
(1) In full width and mobile: keep the same position, but keep them in a dropdown menu.
(2) In full width and mobile: keep them in a row below the header. But in full width, the row should still stay side by side with the settings container.

Images for the second approach:
Full width:

Mobile:

Something like this?
Desktop:

Mobile alternative 1:

Mobile alternative 2:

Nice! I like it, I think I would have chosen mobile alternative 1 :) What do you think @JamalAlabdullah ?

What about mobile alternative 1, but where the save and publish button is not that dominant?

God job❤ @ErlingHauan @lassopicasso
just some thoughts;

Do we need Form Builder tilte to be shown?
What if we make somthing similer to AltinnStudio like a menu bar in the middle to show the content of our Form Factory.
Maybe e can add a sub header for save and publish
what if we put the draggable elements back to thier position (vertical ) because based on functionalty d&d it will be easer to drag and drop in horizintal way (in this case we avoid having an extra row ) (and we can find a way to make the lenght of vertical response with the length of the dropped area.

Thanks @JamalAlabdullah ❤
Here's a new sketch based on your comments:

Subheader added, with save and publish buttons, increasing separation of concerns.
Form Builder title has been shrinked and moved to the side, making it less dominant.
The draggable elements have been placed to the right, better utilizing the screen space. On mobile, we can perhaps move it back to the vertical position on top.

Another option:

I really like that subheader! Would be nice to it in mobile viewport also.
In desktop viewport perhaps we don't need to use the full width of the screen, but i.e. 1200px and lower the full width can be used.
Not sure how it will look like, but narrow the width of Form builder area, but the keep subheader in full width.


Drop support for SSL 1.0 and 1.1

Why?
TLS 1.0 and 1.1 are now officially deprecated due to known security flaws. They have largely disappeared from use across the top one million sites, although a small number of web servers, 0.4 percent, still select one of them during an HTTPS connection.
https://www.f5.com/labs/articles/threat-intelligence/the-2021-tls-telemetry-report
More stats:
https://webtribunal.net/blog/ssl-stats/
On ssl analyser https://www.ssllabs.com/ssltest we getting B instead of A because of support of SSL 1.0 and 1.1 because it simplifies Man in the middle attack.

Hello @gustawdaniel,
Thanks for your message.
This is a discussion for project nginx-proxy, which we use in this repo and script.


[1.32.5] sap.m.List busy indicator

I have an issue, where the list loading indicator is shown only half from the middle to the bottom. The rest seems to be clipped.
The issue is only happen on routing to a page for the first time, the loading items via binded model data. I think in this Situation, the noData will not be rendered and there is some issue width the auto height of the visible canvas for the loading indicator.
Trying to reproduce this in JSBIn i also notice, that using showNoData="false" leads to a missing (not shown) loading indicator. I think, this is a bug because even if i will not show no data text i will see a busy indicator on loading.
I did not know, how to easily reproduce a long loading model in JSBIN so i am not able to reproduce this easily.
After my binded loading and displaying the first noData text or the first result items, the loading indicator will be correctly shown, so this must be something in conjunction with binding and rendering order logic or just a css issue with the loading indicator.
Any chance to confirm the bug and fix it?
Regards Holger

I have contacted the responsible colleague.
The issue is tracked internally with the following ID:<PHONE_NUMBER>

I have added a screenshot where you can see the initial clipping of the busy indicator. As seen with the bad connection on TechEd Barcelona, i am able to simulate this bad speed with chrome network throttling.
The upper half of the list indicator is missing. While we are using a lot of list widgets on our dashboard, this looks quite ugle ;-(
Thanks for helping.
Regards,
Holger

Hi Holger,
It is not easy to work on this without reproducing it. Could you please provide a jsbin.
Are you sure you are not doing synchronous request which blocks the UI thread of the browser.
It would be great to see it in action. Can you continue from here
http://jsbin.com/covuviluca/1/edit?html,js,output and use Chrome throttling feature of output version http://jsbin.com/covuviluca
Regards,
Cahit

Hi Cahit,
we have just updated to 1.32.7 (especially for the mentioned busy indicator fixes).
Since we use batched oData, we have better performance on slow devices/connections and the busy indicator will not be seen too much ;-)
Currently it seems, that the issue is fixed with 1.32.7 (the loading indicator is also placed deeper as before in my list).
So i think you can close the ticket right now. If i will find the bug unfixed again during later tests, i will offer an example with a slow loading service to be able to reproduce, because we currently have our upcomming OpenUI5 online and would be able to offer some test services.
Regards,
Holger

Closing as recommended by the reporter.


Add UI indication if Route is Added to Queue

Right now you don't get and indication if you successfully added a route.
This can result in multiple adds of the same route from one person.
A notification Banner after clicking the (+) Icon would be helpful.
Or a check that one route can't be added twice into the queue (but this would prevent creating circuits) …

@gardaholm is this one closer now that #86 is done? Or is there more needed?

Is done in my opinion.


Helpers for 💥 Failed to compile script

Problem I faced was related to swift version which I'll troubleshoot - but rather than just a dead end - should spoon feed users on how to troubleshoot. Or ideally - just dish this verbose stuff up on errors.
(django) ➜  SyncForks marathon run helloWorld.swift --verbose
🏃  $ cd "/Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/" && readlink OriginalFile
/Users/johnpope/Documents/gitWorkspace/SyncForks/helloWorld.swift
$ cd "/Users/johnpope/Documents/gitWorkspace/SyncForks/" && /usr/bin/env xcrun --sdk macosx swift package --version
Apple Swift Package Manager - Swift 5.1.0 (swiftpm-14672.3)
$ cd "/Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/" && /usr/bin/env xcrun --sdk macosx swift build -C /Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/
[1/3] Compiling helloWorld main.swift
:0: error: invalid value '5.1' in '-swift-version 5.1'
:0: note: valid arguments to '-swift-version' are '4', '4.2', '5'
warning: '--chdir/-C' option is deprecated; use '--package-path' instead
💥  Failed to compile script

related - https://github.com/JohnSundell/Marathon/issues/206


Add "About Traccar" menu option

GPLv3 requires to display some license information:
(section 5)
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
This patch adds an initial version of displaying such interactive legal notices.
This patch is unfinished: some lint warnings are still unfixed and strings should be moved to en.json. I would like to hear Your comments though.
This work was funded by Partner Security: http://www.partnersecurity.pl

I will post a screenshot in a while.

You would need to clean up the code. It doesn't seem to be ready. A lot of commented out code, not translated strings, strings that shouldn't be translated in PR...
Also, all checks have to pass.

OK, but what about the general idea?
As I mentioned above, the code is still unfinished - I will finish it before issuing the final PR.

strings that shouldn't be translated in PR
You mean I should add new strings to en.json only and do not touch pl.json at all?

The screenshots are here:
http://<IP_ADDRESS>:82/share.cgi/Screenshot-2018-4-24 Traccar.png?ssid=0KYY5pg&fid=0KYY5pg&open=normal&ep=
http://<IP_ADDRESS>:82/share.cgi/Screenshot-2018-4-24 Traccar(1).png?ssid=0KYY5pg&fid=154cwwl&open=normal&ep=

I like general idea, but I think we should make something simpler. Maybe just an HTML file with links to appropriate projects and licenses?

I am working on a very long HTML file with all projects Traccar depends on and their license terms (just like "Open source licenses" in many Android programs, like Firefox's about:license, etc.), but it is not ready yet. There is going to be a button that says: "Show all libraries Traccar depends on and their license terms" and after clicking it a HTML file will be displayed inside an iframe (by ShowIframe.js).
The long list of all libraries will not be included on the main "About Traccar" page. The three projects are there because I am able to query their version from JavaScript.
I am trying to make the notice as understandable as possible, unlike those of many Android software.

Why can't we just have a simple list of licenses (just project and license name) linking to original license files?

Because links go stale and projects disappear.
I believe that GPL requires us to carry all such licenses together with the main program (as they contain conditions added under section 7 of the GPL) and not just links to them:

b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.

Additionally, the license terms may have changed at the time the user displays them. I have been reviewing libraries which ExtJS uses and had problems with old releases of programs that are difficult to find. After all, many Android programs display just "Open source licenses" and not links to them.
Anyway, the hard part is getting a list of all projects Traccar depends on, and not their license terms.
I have pushed my work in progress to a branch simpler_UI, the main part is in file LICENSE_LIBRARIES.html.

I do not know whether to put styles into web/app.css or leave them in place in About.js - existing code seems to use both approaches. Apart from that, the initial part of "About Traccar" menu option is done.

I still think it's overcomplicating something that should be extremely simple.  If you are worried that license links become inaccessible we can just copy them locally like you did with GPL, but I don't see any good reason to show it in a dialog. Just a link to open in a separate browser window would do. Much simpler implementation and easier to read for user.

OK, but what about the current pull request? It would be nice to show the "About Traccar" window as a dialog box for interface consistency and visual quality.
I could rewrite About.js and turn it into a webpage and display it in a separate window (or maybe even in a popup by ShowIframe.js), but I doubt that would be much simpler as the content would be very similar.
It is not possible to force a browser to open a new tab from JavaScript:
https://stackoverflow.com/questions/4907843/open-a-url-in-a-new-tab-and-not-a-new-window-using-javascript
There might also be problems with popup blocking - the browser might prevent opening new windows from JavaScript (but it may not be an issue if we are opening a window from an onClick() handler).
The GPL license is another story. It could be displayed in a new window. The ShowIframe class is quite simple, however. I may just make the window bigger to make it easier for the user to read.

but I don't see any good reason to show it in a dialog.

Just visual quality and interface consistency.

Concerning a future pull request:
I am going to open a future pull request to show a full list of libraries and their license terms in a new window, something like this:

If you are worried that license links become inaccessible we can just copy them locally like you did with GPL

So it's just a choice of

one big webpage containing all license terms

vs

a list of libraries with links pointing to their license terms which are in separate HTML pages.

Here is what I think we should do:

A small dialog box with simple HTML content with list of libraries links to licenses.
When you click on a license it will open a new browser window with full text of that license.

I don't think we need frames anywhere.

OK, but what about the current pull request - the "About Traccar" window?

I don't think we need anything except licenses.

But GPLv3 requires us to state the license of the program. The license says

d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.

An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

this is what the "About Traccar" menu currently does.
Also, the current approach enables us to translate the strings.
Besides, most programs have "About " menu item that displays a dialog box.

Please name any modern web-based apps that have about screen.

I don't know, I don't use many web-based apps.

There are few GPLv3 licensed web apps.

And GPLv3 requires us to do an "About" / "License" box, either as a dialog box or a separate webpage.
A dialog is AFAIK better for UX.

That's what I'm suggesting. A simple dialog box with links to licences.

OK, so the bulk of this pull request is OK? Just I need to remove ShowIframe.js and instead open GPLv3 in a new window?

No, I propose to simplify dialog to be just simple list and be in HTML, not a collection of extjs widgets that you have there now.

You mean to open the dialog in a new window / tab? But this way it could not be localised.

Yes, but the idea is to just have a list of project names and licenses. Those don't require any translation. Dialog title can be translatable.

OK, I may do this, but do not promise that I will do this soon.
When it comes to translation: after all, I may create a custom JavaScript in this HTML file and load language JSON files.

I don't see much need for translation there, but let's see.


Constraint Logic Programming (CLP) and Parser Combinator (PC) libraries

Adding libraries for Constraint Logic Programming (CLP)

Decider
Google OR-tools
Microsoft Solver Foundation
NSolver

Adding Parser Combinators

FParsec - F# specific Parser Combinator
GosuParser

Renaming Section "Mathematics" to "Mathematics and Physics" and adding Quantity System, which handles physical quantities rather than just units.

Quantity System Framework - Library for handling physical quantities and units

You can cherry-pick individual commits if required.

Could you please split it into separate pull requests? It's really hard to review and discuss when everything is in the same pile


feat: api endpoint documentation

Summary
This PR enhances the documentation for API endpoints using Scalar to provide clear, organized, and user-friendly information.
Key Changes
Scalar Integration: Introduced Scalar to display API endpoints with detailed descriptions, examples, method types, and parameters.
Benefits
Improved Usability: Easier for users to understand and implement API endpoints.
Increased Adoption: Facilitates library adoption by new users through clear, comprehensive endpoint documentation.

Hey, this is looking really great! A couple of things:

Let’s use Fuma Docs' built-in OpenAPI docs. You can see an example here: https://github.com/fuma-nama/fumadocs/tree/dev/examples/openapi This will integrate better with the docs.

What are your thoughts on how we should handle the plugin API docs?

thanks for taking the time, to do all these. But yeah we already went went with auto generated schema instead :))


generate NIPoST malfeasance proof

Description
if one of the k2 indices fails to verify, we should generate a malfeasance proof.
for atx/ballot/hare msgs, the malfeasance proof are two messages signed by the same miner but have different message hash.
for NiPost, it's just the (ATX, bad_index) pair. the idea is that if miner signs an ATX that contains an index that doesn't meet the difficulty threshold, this miner is considered malicious.
the malfeasance proof is verified by verifying the bad index indeed didn't meet the difficulty threshold.
@poszu please fill in more details as you see fit. thanks

can you share the reason for doing this change? simple syntactic validation is enough to prevent someone from sharing invalid proofs. it seems to me that it creeps in because of plans for "distributed" verification..
for example doing this change naively allows to spam network with malfeasance proofs, so you atleast shouldn't do it for initial atx

more from Iddo

The attacker can avoid getting his IP blacklisted by only broadcasting the malfeasance object (ATX, bad_index) in the first place. This way the attacker pretends to be an honest node that helps the network by propagating this dummy ATX that he created. But the difficulty of k2pow will be high, so the attacker will still need a valid k2pow for each dummy ATX that he propogates.If we later implement the network optimized variant, each node will first send to its direct neighbors the short malfeasance object that consists of just (hash_of_ATX, index_of_bad_label), and the neighbor will ask for the ATX if he doesn't have the preimage yet. So if the attacker created a dummy ATX and sends only (hash_of_ATX, index_of_bad_label), then the honest neighbor will ask the attacker for the preimage, and if the attacker doesn't reply quickly with the preimage (that contains the valid k2pow) then his IP will be blacklisted.Either way (with or without the network optimized implementation), if k2pow is difficult enough then DoS'ing our gossip network can be done in cheaper ways compared to exploiting this malfeasance object.As mentioned, the DoS damage using this dummy malfeasance object is "incomparable" (that is, worse in some respects and better in some other respects) to the DoS damage of just creating dummy ATXs that are demanding to verify (requiring dozens of scrypt invocations). It's incomparable hecause malfeasance object is easier to verify but needs to propagate during the epoch.

i understood that malfeasence should be created only if post proof passed k2pow, but one of the indexes was wrong. so if someone will want to spam network with invalid atxs, they will have to spend time computing k2pow.
@poszu how long k2pow takes?

@poszu how long k2pow takes?

It depends on:

difficulty (constant per network)
number of units - difficulty threshold scales down linearity with num units
luck (as it is random)

With the latest mainnet parame from the network it took me around 17ms on i7-12700 with a single core


MiqExpression: extract ruby_for_date_compare

Blocked on:

[x] #10247 first 4 commits reduce miq_expression and date normalization logic

This consolidates the generation of ruby for date comparisons in miq expression

LGTM 👍

@gtanzillo updated indentation. think we're all set


Piccap app won't Start the service automatically

Hi, when i turn off the Tv and turn it back on, the Piccap app won't Start the service automatically.
I always have to open piccap and start it manually.
By the way, thx for this amazing program and the effort you provide for us.
webOS TV 4.4.0 LGwebOSTV
/ # grep -h -E '"(hardware_id|core_os_release|product_id|webos_manufacturing_ver
sion|board_type)"' /var/run/nyx/*
"board_type": "M16P_DVB",
"hardware_id": "HE_DTV_W18H_AFADABAA",
"product_id": "OLED65B87LC",
"core_os_release": "4.4.0-9",
"webos_manufacturing_version": "05.40.09",
/ #

Hi, I have the same issue, I am using libvt.
During installation (repo) there was a note anywhere that autorun is not working for TVs build before 2018. Not sure if it was fixed meanwhile.

My problem solved with 0.2.2 version!


yiisoft/yii2 <IP_ADDRESS> requires bower-asset/inputmask ~3.2.2 | ~3.3.5

It seems that yii2 requires the bower-asset/inputmask package, which does not exist. I read about bower-asset/jquery.inputmask as a dependency of yii, so maybe there is something wrongly configured in the yii package?
However, I haven't used yii and composer very much so far, so the problem might be me and not Yii2 :)
What steps will reproduce the problem?
composer require yiisoft/yii2 <IP_ADDRESS>
results in
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for yiisoft/yii2 <IP_ADDRESS> -> satisfiable by yiisoft/yii2[<IP_ADDRESS>].
    - yiisoft/yii2 <IP_ADDRESS> requires bower-asset/inputmask ~3.2.2 | ~3.3.5 -> no matching package found.

Additional info

Q
A

Yii version
currently 2.0.12,

PHP version

Operating system
Ubuntu in Docker

My current composer.json
{
    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "framework", "advanced", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "~2.0.6",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0",
        "kartik-v/yii2-icons": "^1.4",
        "kartik-v/yii2-grid": "^3.1",
        "kartik-v/yii2-detail-view": "*",
        "kartik-v/yii2-widget-typeahead": "*",
        "fxp/composer-asset-plugin": "*",
        "himiklab/yii2-handsontable-widget": "*",
        "kartik-v/yii2-widget-select2": "^2.1",
        "2amigos/yii2-chartjs-widget": "~2.0",
        "guzzlehttp/guzzle": "~6.0",
        "yii2tech/spreadsheet": "~1.0.2"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.0.0",
        "yiisoft/yii2-gii": "~2.0.0",
        "yiisoft/yii2-faker": "~2.0.0",

        "codeception/base": "^2.2.3",
        "codeception/verify": "~0.3.1"
    },
    "config": {
        "process-timeout": 1800,
        "fxp-asset":{
            "installer-paths": {
                "npm-asset-library": "vendor/npm",
                "bower-asset-library": "vendor/bower"
            }
        }
    }
}

https://github.com/RobinHerbots/Inputmask

https://asset-packagist.org/package/bower-asset/inputmask

See how it should be configured: https://github.com/yiisoft/yii2-app-basic/blob/master/composer.json#L62

Awesome! That solved the issue I had. Thanks so much for the real quick response and helpful advise ✨ 👍

guys can you guide what solved the problem as i am unable to understand from the links provided by @samdark

@buttflattery
Swtich to asset-packagist repo:
First disable fxp, add to config: section:
        "fxp-asset": {
            "enabled": false
        }

Then add repo to asset-packagist:
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]

As in the example linked by samdark:

See how it should be configured: https://github.com/yiisoft/yii2-app-basic/blob/master/composer.json#L62

Thanks, @My6UoT9 that will help for sure.

@buttflattery Thanks!


Duplicate _id

Exception from sub company_metrics id ZRE5QKWMpdBLzxEBQ MinimongoError: Duplicate _id 'ZRE5QKWMpdBLzxEBQ'
 at MinimongoError (packages/minimongo/minimongo.js:44:1)
 at [object Object].LocalCollection.insert (packages/minimongo/minimongo.js:555:1)
 at [object Object].Mongo.Collection.(anonymous function) (packages/mongo/collection.js:590:1)
 at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core/lib/collection2.js:191:1)
 at [object Object].<anonymous> (packages/peerlibrary_subscription-data/packages/peerlibrary_subscription-data.js:145:1)
 at [object Object]._handler (packages/peerlibrary_reactive-publish/packages/peerlibrary_reactive-publish.js:342:1)
 at maybeAuditArgumentChecks (livedata_server.js:1698:12)
 at [object Object]._.extend._runHandler (livedata_server.js:1023:17)
 at [object Object].subscriptionProto._runHandler (packages/meteorhacks_kadira/lib/hijack/wrap_subscription.js:12:1)
 at [object Object]._.extend._startSubscription (livedata_server.js:842:9)

I'm seeing this quite a bit on production and I'm not sure how to proceed to figure out what is going wrong. Any suggestions?

I am not sure if this is a consequence of this package. It might be that it is something which happens inside reactive publish itself? Why do you think it is related to this package in particular?

I could not determine which package (out of subscription-data or reactive-publish) so I thought I would start with the one earliest in the trace.
I do suspect that this occurs when the user logs in multiple times (via web and mobile).

Is ZRE5QKWMpdBLzxEBQ an ID of a document in the database? Can you confirm this?

And how often does this happen to you? Regularly? Very occasionally?

That ID does not correspond to a document in the database.
I see this error regularly (6 times in the last hour).

Oh, you are right. This is coming from SubscriptionData.insert in this package. It seems publish._subscriptionId are not unique?

Can you show me company_metrics publish function? Or at least tell me if you are using autorun inside it?

I am using autorun

Is there any other exception which happens at the same time?

No.
I have just had the same error for two other subscriptions as well. One of them was the users subscription.
I'm not actually using the subscription-data package for these subscriptions.

Meteor.publish("units", function() {
    this.autorun(function(computation) {
        if (!this.userId) {
            // Must be logged in.
            this.ready();
            return
        }

        let user = Meteor.users.findOne({_id: this.userId})
        return Units.find({
            zId: {$in: user.profile.unitIds},
        })
    })
})

This is the subscription that also just had the same trace.

 Exception from sub units id u75e4rqWzTuXZnFCo MinimongoError: Duplicate _id 'u75e4rqWzTuXZnFCo'
 at MinimongoError (packages/minimongo/minimongo.js:44:1)
 at [object Object].LocalCollection.insert (packages/minimongo/minimongo.js:555:1)
 at [object Object].Mongo.Collection.(anonymous function) (packages/mongo/collection.js:590:1)
 at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core/lib/collection2.js:191:1)
 at [object Object].<anonymous> (packages/peerlibrary_subscription-data/packages/peerlibrary_subscription-data.js:145:1)
 at [object Object]._handler (packages/peerlibrary_reactive-publish/packages/peerlibrary_reactive-publish.js:342:1)
 at maybeAuditArgumentChecks (livedata_server.js:1698:12)
 at [object Object]._.extend._runHandler (livedata_server.js:1023:17)
 at [object Object].subscriptionProto._runHandler (packages/meteorhacks_kadira/lib/hijack/wrap_subscription.js:12:1)
 at [object Object]._.extend._startSubscription (livedata_server.js:842:9)

Thanks for reporting. I think I have enough information to at least start looking into this. I do not know when I will have time though.

I could not reproduce this or find a reason why would this be happening.

I made things a bit more robust, but I am not sure if it really helps. Please test.


Combine mostly duplicated logic in CFE_SB_BroadcastBufferToRoute

Is your feature request related to a problem? Please describe.
Duplicated logic:
https://github.com/nasa/cFE/blob/c8b5e00bb722d8f59787ae8f82634feba5d39f60/modules/sb/fsw/src/cfe_sb_api.c#L1650-L1667
Describe the solution you'd like
Factor out, make an else with shared logic and internal if for the unique logic
Describe alternatives you've considered
None
Additional context
Code review
Requester Info
Jacob Hageman - NASA/GSFC

You're thinking something like this Jake (@skliper)?
https://github.com/nasa/cFE/blob/3d8829ecb98343552c2bb66cf1d45e9b83420930/modules/sb/fsw/src/cfe_sb_api.c#L1661-L1678

Cheers Jake.


Some .svg icons are not shown

Hi, thanks for great tool, i have an issue with some svg files, i set them to ImageView but they are not shown...
Is possible that that svgs are broken? By the way in image viewer i can see them ))
Thanks

Could you post a sample SVG file that isn't rendering?
Also, by "see them" do you mean you can view the original SVG, or that you can view the PNG rasterization?

Sorry for late answer i forgot...
Here is an svg:
https://www.dropbox.com/s/xakbmaeb5mus69p/taxi (2).svg?dl=0
"Also, by "see them" do you mean you can view the original SVG, or that you can view the PNG rasterization?" - I mean that i can see that svg in "Image viewer" or Inkscape ...
Note: How i remember this svg i generated from png with an online tool. Maibe that generator broke the file ))

Your problem isn't that the image isn't rendering. It's that it's rendering very small.
Check your $projectdir/build/generated/res/debug/svg/ directory (or similar). You'll see your PNG there, but just very small.
Try using the svgDpi to fix it, or format your SVGs to a more friendly size: https://github.com/trello/victor#usage


Multi day meetings

Hi,
this is a great resource.  Just wondering if there is a way to get multi-day events?  Can the Time for a talk include a date as well as a time?

I've been using for website of http://2019.pythonsudeste.org/ and we're gonna have to tweak it a lot to add multi-day meetings (with multiple locations).
@jweslley do you think it's something we can try to add in this project or is it better to create a new conf boilerplate based on this one to add support for multiple days? I can open a PR as soon as we get it right.

@biancarosa All PRs are welcome! :D


[BUG] 1.20 branch, sometimes the login step will throw 502 bad gateway at first time.

workaround:
1.reset the nginx export port 8888->xxxx
2.reload nginx config

how to reproduce this scene？

Do not reply for a long time, temporarily close the issue


Use newlines in config/generated.lst to prevent git conflicts

Description of your changes
Currently, every pull request that adds a new resource kind modifies the one and only line of config/generated.lst, which means that git finds a conflict between any two such pull requests.
This change makes such PRs no longer be conflicting, by introducing newlines.
The only potential downside I can see here is that the conflict was serving as a sign that there were some additional changes that might impact the codegen, and you should rebase and rerun make generate. But they're a poor way to indicate that. If we really want to ensure that, we can enforce a linear history, but I think simply running CI on main is probably good enough.
This will also make it much easier to maintain that linear history, since you'll be able to git merge without having to rerun codegen, and the ci check-diff job will ensure you didn't miss anything.
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Thanks @turkenf. I rebased and resolved conflicts hopefully for the last time. I'll be AFK by the time the lint job finishes. Can you take care of clicking merge?


Error on Chrome

Hello there,
When I try to test the library with my own video, it doesnt work at all.
This is the error I'm getting on my Xiaomi mi5 with updated chrome:
WebGL: INVALID_VALUE: enableVertexAttribArray: index out of range
WebGL: INVALID_VALUE: vertexAttribPointer: index out of range

I'm not sure if it is something to do with my code. But it works perfectly on desktop.
Thanks

I'd like to add I'm getting the same error and was thinking I might add to the conversation. I've pretty much implemented the Equirectangular sample exactly in my Angular 1 app. It works perfectly fine in my Desktop testing but as soon as I try it out on mobile it breaks.  The warnings I'm getting are as follows:
https://gyazo.com/e5303303599ab3be75bf3d8224f85024

My implementation:

I'm running Chrome 58.0.3029.83 on Android 7.
Thanks for any help in advance!

@Richacinas, does the video play correctly if you put it in a page with a  tag? Browsers sometimes don't support certain formats and sizes.

Facing the same issue as @CBillings92 describes.
Any fix/workaround yet?

@manuelcabral I can't tell right now as I don't have that project anymore and don't remember de video that I was using... sorry

Closing due to lack of activity. Please reopen with more information if the issue persists.


[How-to]Use custom detector

Is possible to use custom classifier trained by me?

@xellDart Have you been able to use a custom detector? I'd like to know what steps to follow to simply run person.svm instead of the frontal_face_detector


enhancement: Make Photos Settings squares like the Attachment squares

Why don't we just use the Attachment components actually?
Way more concise then what we have now.

Closed a while ago. Not sure when but solved fosho 👍


UI for OPA gatekeeper - Deployment

old ticket: https://github.com/rancher/rancher/issues/25232
Main Epic: https://github.com/rancher/rancher/issues/#23753
UI Need:
UI to deploy/enable OPA similar to Monitoring

https://xd.adobe.com/view/70c6882e-eabe-4ef6-40d7-1d301bb75213-06f7/

@lvuch Will you be adding the mocks for enabling OPA+Gatekeeper?

@lvuch @maggieliu Talked to @tfiduccia offline and came to the conclusion we don't need a new mock for this page. If Gatekeeper is enabled we'll see the views you've already mocked, if not you'll see the following.

A button that does a simplified launch of gatekeeper, default options only.
A button that shows the yaml editor allowing the user to customize the gatekeeper spec as well as the tradition save/cancel buttons.

@westlywright Attaching for reference of summary at top

Fixed


Cross-Browser Compatibility Issue

Your website looks great in crome but it breaking or some features are not showing when we change the browser. It breaks on Firefox or Safari due to CSS incompatibilities.
For example in Asus fold as shown in the screenshot below. Both logo and stationary are not occuring properly.
Please assign this issue to me under gssoc'24 EXTENDED with label gssoc'24 and hacktoberfest.

Ok thankyou!


Process "risk factor" variants

Currently, "risk factor" variants aren't being processed due to a typo in acceptable clinical significance levels: it lists "risk_factor", while the correct value is "risk factor".

Also "affects"/"Affects"


”Obârșa”, ”Șteia”, ”Tiulești”, ”Valea Mare de Criș” are listed in the drop-down menu

Description:
When user writes ”Obârșa”, ”Șteia”, ”Tiulești”, ”Valea Mare de Criș” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Obârșa"

Expected results
The location appears in the drop-down menu as "Sat Obârșa, HUNEDOARA (Bucureșci)".

Step 3
Write in the search bar "Șteia"

Expected results
The location appears in the drop-down menu as "Sat Șteia, HUNEDOARA (Bucureșci)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Tiulești"

Expected results
The location appears in the drop-down menu as "Sat Tiulești, HUNEDOARA (Bucureșci)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Valea Mare de Criș"

Expected results
The location appears in the drop-down menu as "Sat Valea Mare de Criș, HUNEDOARA (Bucureșci)".


Sign out option and User Management options in user profile drop down are not working

Sign out option and User Management options in user profile drop down are not working
Details about hyperledger explorer set up

Deployment was done following the Quick start guide (using Docker)
Blockchain explorer Version : 1.1.8

Issue Video
https://user-images.githubusercontent.com/30879156/161236295-47519e08-079f-4d2d-9d5b-42b68ebb2785.mp4

Hi @anandhakumarpalanisamy
Please click on the icon instead of the text.  Please find the screenshot attached

Thanks!

Working fine when clicked on the icons and confirmed by the user. Hence closing this issue. Thank you


Modification to the above_the_fold endpoint. ListingID is not required.

Hi!
Thank you so much for creating the following library. One minor improvement. Listing_ID is not required for the above_the_fold endpoint. It doesn't affect output. Please take a look at my changes and let me know what you think

Seems similar to https://github.com/reteps/redfin/issues/11. I will merge this once I have time to create a new PyPi release as well.


image list site like pinterest

Preview UI
It seems like the Grid and GridItem components are not available in the provided UI components. I will adjust the code to use a different layout method that doesn't rely on these components. Let's use a combination of div elements with Tailwind CSS classes to create a responsive grid layout.
Here's the updated code:
In this updated code, I've replaced the Grid and GridItem components with a div that uses Tailwind CSS classes to create a responsive grid layout. The grid-cols-1, sm:grid-cols-2, and md:grid-cols-3 classes are used to adjust the number of columns based on the screen size.


Restructure integration tests

Description
This is only the first step. More things can be optimized when it comes to naming, structure and visibility, but we should handle this in separate PRs.
Changes proposed in this pull request:

Removed global variables state to make data flow better visible
Move different test sets to a new testsuites folder

Related issue(s)

https://github.com/kyma-project/api-gateway/issues/86

/retest


The link of download trained_checkpoints is invalided

Hi
The link of download trained_checkpoints is invalided, can you update it?
Thanks

Hi, it works well on my side.

The link https://docs.google.com/uc?export=download&id=1bQ9H-fyZplQoNt1qRwdIUX5_3_1pj6US doesn't work for me. Could you send the trained_checkpoints.zip for me through the gmail or google-drive?

Hi, sorry but your link is not the one I shared in this code repo. How about this one: https://drive.google.com/drive/folders/19ivHpaKm9dOrr12fzC8IDFczWRPFxho7

Thanks for your help.


chore: Update @ts-bridge/cli to 0.6.0

Explanation
Update @ts-bridge/cli from 0.5.1 to 0.6.0. This version can build project references in parallel, significantly improving build speed.
References
None
Changelog
No functional changes
Checklist

[x] I've updated the test suite for new or updated code as appropriate
[x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[x] I've highlighted breaking changes using the "BREAKING" category above as appropriate
[x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@metamaskbot publish-previews

Replaced by #5011


Open Frames support for AT Protocol

Open Frames are an extension of Open Graph that makes link previews interactive https://github.com/open-frames
Frames are implemented in the Farcaster protocol. Open Frames is an initiative to bring the Frames pattern to many different systems.
This allows content creators and publishers to have unique creative experiences and experiments. Things like WordPress plugins, or support by platforms like Substack or Shopify, should enable easy insertion of required tags and features -- click to subscribe, click to buy. As well, it's a very low barrier entry for people to have custom experiences in-feed, built on their own, existing content.
This is a tracking issue to create a branch of Ouranos that implements a proof-of-concept support for Open Frames in AT Protocol:

implement frames rendering in Ouranos using an existing frames library / codebase
if a link is pasted in and detected to be a Frames-enabled link, it will render in a preview for the person posting it
other people viewing it in Ouranos will see it rendered as a Frame
experiment with security, usability, and level of AT Protocol specific interaction that is possible -- e.g. "must follow poster to click a button"

This initial proof of concept will generate additional issues to research and experiment with.

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

@pdelfan can you make a PR with your code so we can test PR deploys please.


Proper error message when folder already exists

Currently, Ignite provides the wrong name ("Foo") on the overwrite error.

This fixes that.

:tada: This PR is included in version 7.0.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fixed bug in DisarmFailSafe

-- Fixed a cut-and-paste error in the Device Layer’s implementation of DisarmFailSafe that resulted in the fail-safe not being disarmed.

Codecov Report

Merging #243 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
+ Coverage   54.23%   54.23%   +<.01%
==========================================
  Files         332      332
  Lines       56404    56404
==========================================
+ Hits        30589    30590       +1
+ Misses      25815    25814       -1

Impacted Files
Coverage Δ

src/test-apps/TestCASE.cpp
96.1% <0%> (+0.22%)
:arrow_up:

Continue to review full report at Codecov.

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


Material Switch: BoxDecoration Background Image Fails to Render

Steps to Reproduce
Please tell us what you were doing and what went wrong.
I attempted to use a backgroundImage for the boxDecoration of a Material Switch.
`ImageResource image=DefaultAssetBundle.of(context).loadImage('assets/discover_active_icon.png');`

`Widget discoveryToggle = new Switch(
      inactiveThumbDecoration: new BoxDecoration(
        backgroundColor: Colors.indigo[400],
        shape: BoxShape.circle,
        boxShadow: kElevationToShadow[1],
        backgroundImage: new BackgroundImage(
          image: image,
          fit: ImageFit.contain)));`

The image successfully loaded (was specified in assets under flutter.yaml) , but failed to render on the switch.
Flutter Doctor
[✓] Flutter (on Mac OS, channel alpha)
• Flutter at /Users/dayang/Flutter
• Framework revision 5460e94488 (3 weeks ago), engine revision 76d5cf230a
[✓] Android toolchain - develop for Android devices (Android SDK 23.0.3)
• Android SDK at /Users/dayang/Library/Android/sdk
• Platform android-23, build-tools 23.0.3
• Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
[✓] iOS toolchain - develop for iOS devices (Xcode 7.3)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3, Build version 7D175
x ideviceinstaller not available; this is used to discover connected iOS devices.
Install via 'brew install ideviceinstaller'.
x ios-deploy not available; this is used to deploy to connected iOS devices.
Install via 'brew install ios-deploy'.
[✓] Atom - a lightweight development environment for Flutter
• Atom installed; Flutter plugin version 0.2.2

Thanks for the report.  I'll take a look.

I have a fix.  Writing test now.

How to set Background Image to Scaffold in Flutter


Feature idea @AndroidMenu: request for comments

Looking over the code gave me a new idea for an annotation, @AndroidMenu
if you slap @AndroidMenu(R.menu.the_greatest_menu_ever) on an Activity or Fragment,
it generates the inflation stuff and generates your MenuItem accessors.
Or... we can extend @AndroidActivity and @AndroidFragment to support this:
@AndroidActivity(layout=R.layout.l, menu=R.menu.m)
class MyActivity...

@AndroidFragment(layout=R.layout.l, menu=R.menu.m)
class MyFragment... // the fragment's onOptionsItemSelected must be passed to the activity's

If you slap @AndroidMenu(R.id.the_greatest_item) on a method,
then this will injected in the switch in the inflation method.
Comments?

I do like the idea of adding menu=R.menu...., however it feels like building fucntionality for the sake of building functionality. Inflating a menu and responding to items selected is like 4 lines of fairly straight-forward code (especially in a fragment, which is typically where this is handled).

Good point. :) I vote for minimalism.


how to enable @ import path

project:
- src
  - src/api/index.ts
  - src/components/SomeComponent/index.tsx
  - src/command.tsx

i want to import SomeComponent with code: import SomeComponent from '@/components/SomeComponent' not import SomeComponent from './components/SomeComponent'
how to enable this?

Can you guys help with this question?
/ cc @mathieudutour @sxn @dai-shi

Have you tried to update the tsconfig (https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping)? It should work

@chyroc this way


pip install does not install Cython as dependency

When trying to install from pip, I get the following error:
'ModuleNotFoundError: No module named 'Cython'
If I install cython manually, the pip installation for pyranges then works. Is there a reason cython is not included as a requirement for pip?

If cythonize is used in the setup.py, Cython needs to be installed before running setup.py. The way to avoid the Cython requirement is to add the C files to the package. I will need to learn a bit more about Python packaging before I do this.
Keeping this open since I intend to fix it sometime in the future. PRs welcome :)
Further reading: https://stackoverflow.com/a/4515279/992687

(Note to self) Seems like this one config might fix it: https://snarky.ca/what-the-heck-is-pyproject-toml/

https://github.com/pyranges/sorted_nearest/pull/4


fix: update required ibm provider version to < 1.7

/run pipeline

:tada: This PR is included in version 2.0.5 :tada:
The release is available on:

GitHub release
v2.0.5

Your semantic-release bot :package::rocket:


DONOTMERGE Penv 773 get state api test k3s check

- What I did
- How I did it
- How to verify it
- Description for the changelog

Codecov Report

Merging #195 into master will decrease coverage by 0.10%.
The diff coverage is 64.70%.

@@            Coverage Diff             @@
##           master     #195      +/-   ##
==========================================
- Coverage   70.64%   70.54%   -0.11%
==========================================
  Files          55       55
  Lines        3468     3476       +8
==========================================
+ Hits         2450     2452       +2
- Misses        852      858       +6
  Partials      166      166

Impacted Files
Coverage Δ

test/api/apiwrapper.go
100.00% <ø> (ø)

api/handlers.go
85.08% <14.28%> (-1.05%)
:arrow_down:

api/mappers.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Ai file of face shield frame please

Ai file of face shield frame please

Hi peter, you should easily be able to import the .dxf into Illustrator. Unit information will be in the readme
Thank you


How to keep my focused window after switching to another workspace then coming back?

I already set follow_mous=0, when I focus a window A in workspace 1,then I switch to workspace 2,do something,now if I switch back to workspace 1,  I do not focus on window A anymore.
How to reserve my focus after switching to other workspaces?

not supported as of right now, can add tho

Would be very cool to have it indeed, the current way it works requires too much window refocusing during workspace switching...

The most annoying version of that problem:
switching to the special workspace, if the mouse isn't atweeee a position that is occupied by one of the special workspace windows,
the whole special workspace doesn't gain focus.

done in dacaf72e02b8d1819135f6aef3911e8211e98630


v2.1.0 converts song.ogg to song.egg

Hi!
I noticed after converting my entire library that all .ogg files are renamed to .egg files.
It didn't matter if I converted one at a time or all in one go, I now have egg-songs :D
Luckily I backed up my library, but it might be worth checking into.
It also renames the "_songFilename" to ****.egg

This is intentional.


x64 Application crashes

I'm trying to search an very large collection of files:

60,000 files, 800GB, 450 folders.

With the following command:
ag.exe -i SearchQuery
A few files are scanned and then the application crashes, opening a debug in Visual studio shows the following:
Unhandled exception at 0x0000000000400074 in ag.exe: 0xC0000005: Access violation executing location 0x0000000000400074.
Not really sure where to go from here. Any help is welcome.
Thanks!

Okay. Quick and dirty fix, the issue seems to be with reading and writing the files as binary and non binary
If you check the Setup/Config.txt file and it says WinEnv=OK that means it's been set up and should be working correctly.
You've manually done the following check.
def wine_fastcheck():
    wine=False
    wineok = open("Setup/Config.txt","r")
    for line in wineok:
        if "WinEnv=OK" in line:
            wine=True
    return wine

So simply comment out the rest set the value wine as true

    #wine=False
    #wineok = open("Setup/Config.txt","r")
    #for line in wineok:
    #    if "WinEnv=OK" in line:
    #        wine=True
    wine=True
    return wine

Hope that helps someone else


Warn on invalid middlewares

Right now, if you pass in a value with properties that is not a valid React Router middleware, we just silently ignore it. This leads to really confusing things happening like https://github.com/relay-tools/react-router-relay/issues/189.
I don't think anybody's intentionally passing in empty objects to applyRouterMiddleware, so this should be a nice DX convenience.

@reactjs/routing How do we feel about the current middleware API? We're well overdue to add some sort of docs, assuming we like it.

Is this okay to merge?

I'm not a user of the middleware personally, so I don't feel confident to comment on the API's design.
As for the PR, LGTM!


Fix issue with exceptions on startup

Fixes this https://github.com/stratisproject/StratisBitcoinFullNode/issues/2846
@MithrilMan

So this is needed because the exception thrown in #2849 isn't stopping the node.

ACK


Feature request: provide "size up to array" for open ended layouts ending with arrays

Nice crate. Small feature request...
Consider the following:
define_layout!(page_node_leaf, LittleEndian, {
    header: page_node_header_common::NestedView,
    num_pairs: u64,
    start_value_offset: u32,
    key_data: [u8],
});

SIZE is inherently unknowable because of the [u8], so is None, understandable.  But binary_layout does in fact know the size of everything before the array. It would be nice to have an additional value representing the non-dynamic sized portion of the layout.
Right now the workaround I've come to is to break things up into nested layouts, with the dynamic layout added to a nested fixed-size layout. This works, but it gets awkward when you start to get more than a couple levels deep with nesting. Having a size which represented the knowable portion of the layout (not sure what to call the constant) would be much handier.

You should be able to use key_data::OFFSET for this.

Aha, sorry, I never saw that. Makes sense, thanks.


Copy text from embedded fonts to clipboard

First of all, thank you for your lib.
I would like to be able to copy the texts that are written in PDFs, via embed fonts. I thought I was doing something wrong, but I realized that there is also the issue with your example.
With this PDF file generated: https://github.com/Hopding/pdf-lib/blob/master/assets/pdfs/examples/embed_font_and_measure_text.pdf
If I copy/paste the text This is text in an embedded font!, the result is 9KNXĶNXĶWH]WĶNQĶFQĶHREHIIHIĶKTQWķ.
Do you know if it is possible to fix this issue? To include the font in another way maybe? Its encoding?

Hello @Dewep! It should be possible to copy text written to a PDF with drawText to your clipboard without issue (for standard and embedded fonts). I was under the impression that this was working correctly. But I just ran a quick test of the example you linked with several different PDF readers and discovered the following:

Reader
Original Text
Copied Text

Preview
This is text in an embedded font!
This is text in an embedded font!

Firefox
This is text in an embedded font!
This is text in an embedded font!

Foxit
This is text in an embedded font!
This is text in an embedded font!

Chrome
This is text in an embedded font!
9KNXĶNXĶWH]WĶNQĶFQĶHREHIIHIĶKTQWķ

Acrobat
This is text in an embedded font!
􀀷􀁋􀁌􀁖􀀃􀁌􀁖􀀃􀁗􀁈􀁛􀁗􀀃􀁌􀁑􀀃􀁄􀁑􀀃􀁈􀁐􀁅􀁈􀁇􀁇􀁈􀁇􀀃􀁉􀁒􀁑􀁗􀀄

So it would appear that Chrome and Acrobat have trouble copying text to clipboard (at least when the text is drawn with the embedded Ubuntu font). This is likely a bug in pdf-lib. It probably has to do with the unicode cmap that is generated for embedded fonts.

I reran the above test using the Helvetica standard (non-embedded) font. It copies correctly in all readers.

Reader
Original Text
Copied Text

Preview
This is text in an embedded font!
This is text in an embedded font!

Firefox
This is text in an embedded font!
This is text in an embedded font!

Foxit
This is text in an embedded font!
This is text in an embedded font!

Chrome
This is text in an embedded font!
This is text in an embedded font!

Acrobat
This is text in an embedded font!
This is text in an embedded font!

This is further evidence that the issue has to do with the embedded font unicode cmap.

Yes, I hadn't been clear enough in my message, but I had also noticed that it was just about embedded fonts.
I don't know much about how PDFs work, and even less about what cmap is.
Do you have any idea how to fix it? I doubt I can help, but I can try if you need it.

I need to investigate further to determine the exact cause of the issue and then I'll work on a fix. I don't have an ETA for this at the moment. I need to work through some other issues first, as I've fallen a bit behind on them.
One thing you can do is see if this particular bug existed in version 0.6.4 of pdf-lib. It's possible that the bug was introduced during the rewrite. This is likely to be the case if 0.6.4 does not have the same bug.

Indeed, just by taking your example created at v0.6.4, the problem is not there.
The second page of this document, written via an embedded font, copies well from Chrome: v0.6.4/examples/pdf_results/document_creation.pdf.
I will try to test/debug a little more the difference between these 2 versions, on their CMaps created.

Well, it's not that simple after all. The problem was already there on version 0.6.4, it just seems to depend on the font used.
If I'm using the font v1.3.0/assets/fonts/ubuntu/Ubuntu-C.ttf it works well (with the latest and the 0.6.4 versions). But if I'm using the font v1.3.0/assets/fonts/ubuntu/Ubuntu-L.ttf it doesn't works anymore (with the latest and the 0.6.4 versions).
I've been trying to figure out why, but it's clearly too complicated for me. If you have any other ideas on how I can help, let me know.
Ubuntu-L-1.3.0.pdf
Ubuntu-C-1.3.0.pdf
Ubuntu-C-0.6.4.pdf
Ubuntu-L-0.6.4.pdf

@Dewep Thanks for the updates on your findings. I'm almost caught up on all the other issues, so I'm hoping to take a look at this sometime this week.

It looks like the issue goes away if you subset the fonts when embedding them:
const font = await pdfDoc.embedFont(..., { subset: true });

So it must be an issue specifically with CMaps containing multiple bfrange sections. Because subsetting a font results in having only one bfrange.

@Dewep I made some changes in #298 to use a simpler cmap format. This appears to have resolved the issue. Text copies correctly for me in all readers with all embedded fonts I've tried. I've attached a build of pdf-lib with this fix. Please try using this build and let me know if you're still able to reproduce the issue or not.
pdf-lib-v1.3.1-rc1.zip

I would recommend that you test the new build the same way you've been testing for this issue. But for reference, here's the script I'm using to test it:
import fontkit from '@pdf-lib/fontkit';
import { PDFDocument } from 'pdf-lib';

(async () => {
  const ubuntuFontBytes = await fetch(
    'https://github.com/Hopding/pdf-lib/raw/master/assets/fonts/ubuntu/Ubuntu-R.ttf',
  ).then((res) => res.arrayBuffer());
  const jpFontBytes = await fetch(
    'https://github.com/Hopding/pdf-lib/raw/master/assets/fonts/source_hans_jp/SourceHanSerifJP-Regular.otf',
  ).then((res) => res.arrayBuffer());

  const pdfDoc = await PDFDocument.create();

  pdfDoc.registerFontkit(fontkit);
  const font1 = await pdfDoc.embedFont(ubuntuFontBytes, { subset: false });
  const font2 = await pdfDoc.embedFont(jpFontBytes, { subset: true });

  const page = pdfDoc.addPage([500, 500]);
  page.drawText('Hello World!\nДата и время встречи в офисе Президента', {
    font: font1,
    x: 5,
    y: 250,
  });
  page.drawText('Hello World!\n印刷者 印刷日時 社長室会日時', {
    font: font2,
    x: 5,
    y: 150,
  });

  const pdfBytes = await pdfDoc.save();
})();

Version 1.3.1 is now published. It contains the fix for this issue. The full release notes are available here.
You can install this new version with npm:
npm install<EMAIL_ADDRESS>
It's also available on unpkg:

<EMAIL_ADDRESS><EMAIL_ADDRESS>
As well as jsDelivr:

<EMAIL_ADDRESS><EMAIL_ADDRESS>

Hello @Hopding!
Thank you, I can confirm that it's working perfectly. Thank you for your time and your library.
Keep it up.


Removing a user from a team does not recursively remove the user from the team's sub-teams

The user then needs to be removed from each sub-team individually. Full credit to @ann-kilzer for finding this.

KeyBase version 2.5.1-20180830164425+a18ce51fa9
macOS 10.13.6

Why would you do this? This is totally non-intuitive, and would break our usage of subteams.
If this feature is implemented, it should be defaulted to off and someone must explicitly check some box to recursively remove from subteams.

The use case is someone leaving an organization, and wanting to remove them from the team plus all sub-teams at once. Is there another way to accomplish this?

I wrote up a bash function that should help.
Try out:
keybasefinduser
keybasefinduserteams
before trying the recursive delete one...
I am on Linux and I heard grep and sed act weird on macOS if you use that...
Please note that this needs to be run by an admin of myteam.
If you want to do recursively from a subteam (ie. myteam.dev and myteam.dev.* but NOT myteam and myteam.marketing etc.) then you must try keybasefinduser myteam\\.dev usertodelete
# usage:
# keybasefinduser myteam usertodelete
keybasefinduser (){
    keybase team list-members --all | grep -P "$1(\\.\S+)?\s{2,}(\S+\s?)+\s{2,}$2"
}

# usage:
# keybasefinduserteams myteam usertodelete
keybasefinduserteams (){
    keybase team list-members --all | grep -P "$1(\\.\S+)?\s{2,}(\S+\s?)+\s{2,}$2" | sed "s/\(\S*\).*/\1/"
}

# usage:
# keybase_recursive_remove myteam usertodelete
# output:
#
# Removing usertodelete from myteam
# Success! usertodelete removed from team myteam.
# Removing usertodelete from myteam.dev
# Success! usertodelete removed from team myteam.dev.
# Removing usertodelete from myteam.marketing
# Success! usertodelete removed from team myteam.marketing.
# Done removing usertodelete from:
# myteam
# myteam.dev
# myteam.marketing
keybase_recursive_remove (){
    TEAMS=$(keybase team list-members --all | grep -P "$1(\\.\S+)?\s{2,}(\S+\s?)+\s{2,}$2" | sed "s/\(\S*\).*/\1/")
    for TEAM in $TEAMS
    do
        echo "Removing $2 from $TEAM"
        keybase team remove-member $TEAM -f --user=$2
    done
    echo -e "Done removing $2 from:\n$TEAMS"
}

Awesome, thanks @junderw! We'll give it a try. Per @ann-kilzer's comment, would be great to add this in to a future keybase-cli (and eventually UI) natively.

+1 for adding a recursive delete option. Running a script that loops through each team & deletes the user is a bit kludgy, but works.


Incorrect name on trRamAsyncFreq

Section 3.4 refers to "trRamSinkAsyncFreq" but the RISC-V Trace Control Interface Specification calls it "trRamAsyncFreq"

Fixed in commit c75acb9e70166ee83bf97bd8c0ac713f9c53748f


Continuing to see a lot of files show up in project search after I've renamed or deleted them. Makes

Continuing to see a lot of files show up in project search after I've renamed or deleted them. Makes search pretty hard to use for manual refactoring.
Atom Version: 0.48.0
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.48.0 Atom-Shell/0.8.5 Safari/537.36

@jbarnette please reopen if you still have this issue.


Main websocket's exponential backoff time is not reset IMMEDIATELY after a connection is successfully established

The main websocket uses a 2^n backoff when trying to reestablish connection to Discord. Each failed attempt increments n up to a max value of 900 or 15 minutes. When a JDA successfully reconnects to Discord it resets the backoff time back to 2 after all re-initialization has completed. This is the problem. If JDA loses connection again during a reconnect, the backoff value hasn't been reset yet, so it starts already significantly backoff'd.
To fix: Make the backoff time be reset immediately after reconnect. Don't wait for reconnect to finish.

Fixed as of a97afac


Uncaught TypeError: videojs.getComponent is not a function

When I add Youtube.min.js (v2.0.3) it's raise "Uncaught TypeError: videojs.getComponent is not a function"..
The error was in this line: var Tech = videojs.getComponent('Tech');
Did I miss something..?
Additional information: VideoJS (v4.12.15)..

You should use the VJS4 branch if you are on the old 4.X

Hello,
Sorry, I know this thread is closed, but I'm getting the same error even though I'm using version 5.x of video.js. These are the versions I'm using:
"video.js": "5.4.4",
"videojs-youtube": "2.0.7"

Can you please provide some help on how to fix this? Thanks!

Hi @tausiffarooqi,
I haven't tried VideoJS v5.x with VideoJS YouTube v2.x yet, but can you make sure the VideoJS YouTube is loaded after VideoJS? And also check (via view page source) if the VideoJS file you use is v5.x,

@irfanfadilah - Thanks for the reply! Yes, I do have it in the right order. After going through the comments in issue https://github.com/eXon/videojs-youtube/issues/343 I seem to have got it working. I'm now importing the plugins like this:
import videojs from 'video.js';
import 'imports?define=>false!videojs-youtube';

Previously I had it like this (which wasn't working):
import videojs from 'video.js';
import 'videojs-youtube';


Tarbela is deprecated

Tarbela is deprecated and was just removed from public Github (it still is in Github Enterprise, but we won't link that here).

This section seems to be a bit outdated, but I'm not a specialist here.
I guess waiting until the Github cleanup is done might be useful before adding more clients (or other related libraries).

:+1:

👍

👍

Thank you for your contribution, @ePaul . The section is a bit outdated indeed, and we should revise it after the github cleanup is complete.


YARN-9709: Support show applications when we submit to capacity scheduler with full queue path

Support show applications when we submit to capacity scheduler with full queue path.
Currently the capacityscheduler has not support this pattern

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
39
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
1077
trunk passed

+1
compile
47
trunk passed

+1
checkstyle
39
trunk passed

+1
mvnsite
50
trunk passed

+1
shadedclient
828
branch has no errors when building and testing our client artifacts.

+1
javadoc
36
trunk passed

0
spotbugs
97
Used deprecated FindBugs config; considering switching to SpotBugs.

+1
findbugs
94
trunk passed

_ Patch Compile Tests _

+1
mvninstall
46
the patch passed

+1
compile
39
the patch passed

+1
javac
39
the patch passed

-0
checkstyle
32
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 1 new + 33 unchanged - 0 fixed = 34 total (was 33)

+1
mvnsite
43
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
805
patch has no errors when building and testing our client artifacts.

+1
javadoc
32
the patch passed

+1
findbugs
97
the patch passed

_ Other Tests _

+1
unit
5036
hadoop-yarn-server-resourcemanager in the patch passed.

+1
asflicense
46
The patch does not generate ASF License warnings.

8459

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1720/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1720

JIRA Issue
YARN-9709

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 68abc3ea2a55 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 73a386a

Default Java
1.8.0_222

checkstyle
https://builds.apache.org/job/hadoop-multibranch/job/PR-1720/1/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-1720/1/testReport/

Max. process+thread count
881 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-1720/1/console

versions
git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 32s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s
The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
20m 52s
trunk passed

+1 :green_heart:
compile
1m  2s
trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
compile
0m 49s
trunk passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09

+1 :green_heart:
checkstyle
0m 35s
trunk passed

+1 :green_heart:
mvnsite
0m 53s
trunk passed

+1 :green_heart:
shadedclient
15m 36s
branch has no errors when building and testing our client artifacts.

-1 :x:
javadoc
0m 26s
hadoop-yarn-server-resourcemanager in trunk failed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1.

+1 :green_heart:
javadoc
0m 38s
trunk passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09

+0 :ok:
spotbugs
1m 48s
Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
1m 46s
trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 51s
the patch passed

+1 :green_heart:
compile
0m 52s
the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javac
0m 52s
the patch passed

+1 :green_heart:
compile
0m 41s
the patch passed with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09

+1 :green_heart:
javac
0m 41s
the patch passed

-0 :warning:
checkstyle
0m 30s
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 1 new + 34 unchanged - 0 fixed = 35 total (was 34)

+1 :green_heart:
mvnsite
0m 49s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
shadedclient
13m 40s
patch has no errors when building and testing our client artifacts.

-1 :x:
javadoc
0m 24s
hadoop-yarn-server-resourcemanager in the patch failed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1.

-1 :x:
javadoc
0m 30s
hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-jdkPrivateBuild-1.8.0_252-8u252-b09-1~18.04-b09 with JDK Private Build-1.8.0_252-8u252-b09-1~18.04-b09 generated 35 new + 69 unchanged - 0 fixed = 104 total (was 69)

-1 :x:
findbugs
0m 27s
hadoop-yarn-server-resourcemanager in the patch failed.

_ Other Tests _

-1 :x:
unit
0m 31s
hadoop-yarn-server-resourcemanager in the patch failed.

+1 :green_heart:
asflicense
0m 31s
The patch does not generate ASF License warnings.

64m 19s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/1720

JIRA Issue
YARN-9709

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 711d2d277677 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / e756fe35909

Default Java
Private Build-1.8.0_252-8u252-b09-1~18.04-b09

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_252-8u252-b09-1~18.04-b09

javadoc
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/branch-javadoc-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-jdkUbuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1.txt

checkstyle
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt

javadoc
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/patch-javadoc-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-jdkUbuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1.txt

javadoc
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/diff-javadoc-javadoc-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-jdkPrivateBuild-1.8.0_252-8u252-b09-1~18.04-b09.txt

findbugs
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt

unit
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/testReport/

Max. process+thread count
415 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-1720/3/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.0.6

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.