Make calls to smart_open.open() for GCS 1000x faster by avoiding unnecessary GCS API call

Motivation
Bucket.get_blob requires a roundtrip to GCS, but Bucket.blob doesn't, so let's use that instead. In my benchmarking, this change reduces the time taken to call smart_open.open() from milliseconds to microseconds. This is especially nice when you're repeatedly calling smart_open.open for a large list of files.
Tests
To run the new benchmark test:
pytest integration-tests/test_gcs.py::test_gcs_performance_open

pytest-benchmark comparison for old code vs. new code:

Reasonable suggestion, the performance increase in the benchmark conditions is indeed significant!  However I would question if the accuracy of the benchmark compared to real life usage (as noted by your comment in the tests "we don't need to use a uri that actually exists in order to call GCS's open()")  - to make it more accurate you should read/write a byte or two so that the same work happens in both scenarios.
Ignoring the benchmark for a second, when making this change there was 2 relevant considerations:

The use of the Bucket.get_blob interface allows this to adhere to the existing smart_open interface api inc exceptions.
As I understand it, the gcs blob.open() interface is unsafe if the underlying blob in GCS is updated/replaced  https://cloud.google.com/python/docs/reference/storage/latest/google.cloud.storage.blob.Blob#google_cloud_storage_blob_Blob_open.

This means to ensure there is no unexpected behaviour with this change you would need to get the generation id for the blob. As I understand it, this is typically done using the blob.reload() function which is the overhead you're noticing in the Bucket.get_blob() call  - https://github.com/googleapis/python-storage/blob/main/google/cloud/storage/bucket.py#L756-L800 vs https://github.com/googleapis/python-storage/blob/main/google/cloud/storage/bucket.py#L1176-L1281
Please correct me If you think my understanding is wrong!
If you already know the generation number for an object you can set It using the gcs://bucket/blob#generation and skip the network call.

@SimonBiggs what do you get instead?

I would tend to agree with @cadnce:

I guess my point is, based on the docs, I don't believe that the GCS api call is unnessecary.

In retrospect, merging this may have been premature. Here is the trade-off we're dealing with:
Pro: calling smart_open.open on a GCS URL is 1000x faster (*)
Con: breaking API change, as opening a non-existing file no longer raises an error (like the built-in open function does)
I think the benefit of the open function being 1000x faster is questionable, too.  Presumably, the user is calling open because they want to do something with the returned file-like object, like reading or writing. These subsequent operations will require network access and thus consume time. So really, this isn't speeding things up; it postponing the cost of the network transfer from open-time to write-time.
I think the con is greater than the pro here. Yes, in general, faster is better, but being correct is far more important (if you take the behavior of the built-in open as the definition of "correct").
What do you think @piskvorky? Should we keep this behavior or roll it back?

Consistency with open is smart_open's "selling point". Our documentation explicitly claims:

smart_open is a drop-in replacement for Python's built-in open(): it can do anything open can (100% compatible, falls back to native open wherever possible), plus lots of nifty extra stuff on top.

So, to me the answer is clear :)

OK, reverted.

Thank you @SimonBiggs for pointing out the issue. I've made a bugfix release 7.0.3 that reverts to the original behavior.


Get-Command doesn't fail when you specify a nonexistent parameter

Steps to reproduce
Get-Command -foo

Expected behavior
Get-Command : A parameter cannot be found that matches parameter name 'foo'.

Actual behavior
You get an output like you've specified just `Get-Command`.

Environment data

The bug exists in the latest, but also previous versions of PowerShell Core and Windows PowerShell.

This is an unfortunate side effect of how ValueFromRemainingArguments works, related issue: #4624
Get-Command uses the parameter -ArgumentList as a way of finding the dynamic parameters for a command, e.g.:
PS> Get-Command Get-Item -Syntax

Get-Item [-Path] <string[]> [-Filter <string>] [-Include <string[]>] [-Exclude <string[]>]
[-Force] [-Credential <pscredential>] [-UseTransaction] [-Stream <string[]>]
[<CommonParameters>]

Get-Item -LiteralPath <string[]> [-Filter <string>] [-Include <string[]>] [-Exclude <string[]>]
[-Force] [-Credential <pscredential>] [-UseTransaction] [-Stream <string[]>]
[<CommonParameters>]

#53 PS> Get-Command Get-Item -Syntax -Path cert:

Get-Item [-Path] <string[]> [-Filter <string>] [-Include <string[]>] [-Exclude <string[]>]
[-Force] [-Credential <pscredential>] [-UseTransaction] [-CodeSigningCert]
[-DocumentEncryptionCert] [-SSLServerAuthentication] [-DnsName <DnsNameRepresentation>]
[-Eku <string[]>] [-ExpiringInDays <int>] [<CommonParameters>]

Get-Item -LiteralPath <string[]> [-Filter <string>] [-Include <string[]>] [-Exclude <string[]>]
[-Force] [-Credential <pscredential>] [-UseTransaction] [-CodeSigningCert]
[-DocumentEncryptionCert] [-SSLServerAuthentication] [-DnsName <DnsNameRepresentation>]
[-Eku <string[]>] [-ExpiringInDays <int>] [<CommonParameters>]


Boolean/Complex Operations on Shapes

🚀 Feature
Would like to include a way to perform boolean operations on shapes such as combining or subtracting
Motivation
Currently using the shapes layer to display shapes of a design overlaid on an existing image. This is good for shapes like rectangles, circles and polygons. However, adding a shape such as an annulus is not possible as it is not possible currently to make holes or subtract one shape from another.
Pitch
Would like to see a method or function where I can take 2 or more shapes, operate on them such as making a cut out/ intersecting them to make a complex shape and then return that as a final new shape type which I can then use as a new shape
Alternatives
Current method involves creating an image of the desired shape by using an image matrix and then overlaying it on another image layer and adding it to the viewer with additive blending, this is a reasonable workaround, however it means using multiple different code blocks to execute other shapes as shapes and complex shapes as image layers
Additional context
Screenclip of example shapes done currently, clover pattern is simply shapes being overlayed, annulus (donut) shape is a seperate image layer

Super interesting stuff!
Note that shapes with holes are also being actively discussed here: https://github.com/napari/napari/issues/5673
I wonder if we can lean into Shapely more for this? I only see union (https://shapely.readthedocs.io/en/stable/manual.html#shapely.ops.unary_union), so some of the other logical operations like subtracting shapes would need to be implemented (maybe collect a list of shape operations from Inkscape and/or Photoshop).


Add Search Companies command to the hubspot extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Thanks for your contribution @yuanminglee 🔥
@harisvsulaiman do you want to check this?

Did you check it yet, @harisvsulaiman, I'm unsure what the 👍 means 🙂

It's been awhile, any way to move this forward?

@pernielsentikaer Looks good to me. Please merge

Thank you for the contribution @yuanminglee


pin go-openapi/spec version

Was using go-swagger 0.13.0 as a library until I noticed a compilation error between go-swagger and go-openapi/spec. I fixed it by specifying a commit for the go-openapi/spec dependency.
This commit is supposed to be for the 0.13.0 tag (commit b015bd). I couldn't open a PR unless I made the commit against master (I'm not that experienced with GitHub).
If this isn't merged, the workaround is for my client project to have
[[override]]
  name = "github.com/go-openapi/spec"
  revision = "a4fa9574c7aa73b2fc54e251eb9524d0482bb592"

in addition to its
[[constraint]]
  name = "github.com/go-swagger/go-swagger"
  version = "0.13.0"

in its Gopkg.toml. I'd much rather not need that [[override]] block (I'd much rather merge this PR).

Just want to be clear, I understand there are conflicts here. I'd like to create a 0.13.1 branch from the 0.13.0 tag, merge this PR into that new branch, and then release a new 0.13.1.
But perhaps you all have other ideas.

How come you are depending on go-swagger/go-swagger ?

@casualjim I'm working with APIs defined in JSON Hyper Schema. Wish I was using Swagger 😢.
I'd still like to use go-swagger's code generation. So I've wrapped go-swagger with another program that converts JSON Hyper Schema into Swagger, then uses go-swagger to generate code from that.
Also, it looks like I need to specify revisions for the other go-openapi projects used by Swagger. More commits on the way.

Where are we with this PR? This seems like a good idea overall.

I think it needs an approving review? I don't use go-swagger anymore so idc.

I think it would be wiser to tag the goopenapi repos as releases


Enable no_alternative_syntax rule

Description
$ vendor/bin/php-cs-fixer describe no_alternative_syntax
Description of no_alternative_syntax rule.
Replace control structure alternative syntax to use braces.

Fixer is configurable using following option:
* fix_non_monolithic_code (bool): whether to also fix code with inline HTML; defaults to true

Fixing examples:
 * Example #1. Fixing with the default configuration.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,2 +1,2 @@
    <?php
   -if(true):echo 't';else:echo 'f';endif;
   +if(true) { echo 't';} else { echo 'f';}

   ----------- end diff -----------

 * Example #2. Fixing with configuration: ['fix_non_monolithic_code' => true].
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,3 +1,3 @@
   -<?php if ($condition): ?>
   +<?php if ($condition) { ?>
    Lorem ipsum.
   -<?php endif; ?>
   +<?php } ?>

   ----------- end diff -----------

Checklist:

[x] Securely signed commits
[x] Conforms to style guide

Yes, I'm aware of that. That's why fix_non_monolithic_code option is set to false.

@paulbalandan What is fix_non_monolithic_code?

Heredoc/nowdoc are already supported throughout. It is just that there is no rule yet that autoconverts strings to heredoc/nowdoc, if that's what you mean.

In essence, this rule as configured will convert alternative syntax uses in pure PHP code only.


IndexError at Step 8 of install process: Generate some initial data for your dashboard

Steps 1-7 work fine. When calling command for Step 8, the following results follow
$ admin@raspberrypi:~/lndg $ .venv/bin/python jobs.py
Traceback (most recent call last):
  File "jobs.py", line 220, in <module>
    main()
  File "jobs.py", line 215, in main
    update_invoices(stub)
  File "jobs.py", line 91, in update_invoices
    alias = Channels.objects.filter(chan_id=invoice.htlcs[0].chan_id)[0].alias
  File "/home/admin/lndg/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 318, in __getitem__
    return qs._result_cache[0]
IndexError: list index out of range

This appears to happen because of a channel lndg does not know about (likely opened and closed already) and was used to fulfill the invoice it's trying to import. Not a problem for new nodes but is for existing nodes with closed channels.
Should have a solution for this soon.

Thanks again for your report, I have addressed this issue in the most recent commit. Please follow the instructions on the README page to update.
I have also included a change that will require another setting variable in the lndg/settings.py fle in order to help facilitate using lndg on other networks. You can add it to the file directly using LND_NETWORK = 'mainnet' or alternatively you can generate a new settings.py file by running the .venv/bin/python initialize.py command again.


Update severityMapping

The latest bugsnag client only allows error, warning and info. See https://github.com/bugsnag/bugsnag-php/blob/master/src/Bugsnag/Error.php#L5-L9
Trying to set "fatal" results in
Bugsnag Warning: Tried to set error severity to fatal which is not allowed.

@mtibben Thanks for this. It looks like fatal got removed in version 2.2.5 of bugsnag: https://github.com/bugsnag/bugsnag-php/commit/b35116acf3a5d760afafe11ec3214ec3983dedfa
I'll merge you change in to master. Though I'm currently not sure whether this constitutes a breaking change or not to MonoSnag.

No it's not a breaking change. If you're following semver rules, this should only require a patch number increment to the version - it's a backwards compatible bugfix (the bug being caused by upstream breaking change)

@mtibben I'm inclined to agree with you. However the other option I'm weighing up is:
Release a patch version that won't allow installation of 2.2.5 of bugsnag. Then include your changes in a new major version.
My concern is that this will collate two levels of errors together without any users of MonoSnag being made aware of this. But as bugsnag have already dropped the fatal maybe it's not much of an issue.

:+1: Fair enough. Either way sounds good


Release Google.Apps.Meet.V2 version 1.0.0-beta01

Changes in this release:
Initial release.

Created release for Google.Apps.Meet.V2-1.0.0-beta01


sitl_gazebo: build with SEND_VISION_ESTIMATION_DATA set

This follows the change in https://github.com/PX4/sitl_gazebo/pull/236.

@dagar thanks for merging!


calc max.pl

@ganeshraghav  thnx for contributing, try this year, and make sure you follow me and star this repo for updates about special swags I will be giving.
Contribute in October for Hacktoberfest 2020


[Bug]: Incorrect handling of reserved keyword in Ballerina data mapping generation.

Description
When generating data mappings in Ballerina, the version field is incorrectly treated as a reserved keyword. Instead of generating the mapping as version: patient.version, the system produces an incorrect mapping like 'version: patient.'version, which is syntactically invalid. This causes the code to fail during execution or compilation.
Steps to Reproduce
1. Define Ballerina code
public function mapPatientToUsCore(Patient patient) returns Patient => {

};

public type Patient record {
    string patientType;
    string patientId;
    string version;
};

2. Generate data mappings using the defined structure.
3. Observe that the generated mapping incorrectly escapes the version field as 'version: patient.'version instead of the correct format version: patient.version.
public function mapPatientToUsCore(Patient patient) returns Patient => {
    patientType: patient.patientType,
    patientId: patient.patientId,
    'version: patient.'version
};

Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

version used to be a keyword, adding the quote may be related to that.
But, it shouldn't fail and doesn't seem to fail for me either. Where/how does it fail?

Thanks Ack.
This is AI data mapper bug. We will fix it.

Reason/Other


Question: is there documentation of the reasoning for the cff names fields?

I was wondering about the decision to have a family-names and given-names instead of a single name field in the cff format?
While it is tongue in cheek, I think that that the article Falsehoods programmers believe about names contains some truth.
But my argument for a single name field would essentially be: you are putting searching a database easily above and before the mental effort that everyone who doesn't have a first-name last-name will need to exert. Searching databases is a much easier problem to solve because it's within the developer's control.

Hi @datakid, thanks for this question!
There is some documentation here: https://github.com/citation-file-format/citation-file-format#person-objects.
Also, name also exists and you can use it for people instead of course. The use case for having this name split was based on compatibility with other formats and not so much about search.

Wow, absolutely my bad for not reading further - I had no idea the README was so long. Apols - thanks for the cff!

No worries! It is a long README. Perhaps we can find a more digestible form of presenting the format at some point without losing the details along the way...


for custom_jvp/vjp nondiff_argnums, call stop_gradient

fixes #2784

Travis didn't seem interested in running tests, but internal tests pass!

Do we maybe want to expose this stop_gradient (with pytree support etc.) as jax.stop_gradient or even lax.stop_gradient?

I think jax.lax.stop_gradient handles pytrees.

The different logic here is "apply stop_gradient to all leaves that are Tracers, leave others untouched."


Setting withdrawn state breaks the dashboard

Bug Report
Description
If you set a work version to withdrawn it breaks the dashboard because we don't have a label for that state.
To Reproduce
Steps to reproduce the behavior:

Set a work version to withdrawn
Visit the dashboard as an admin

Questions

What happens to the work if there is only one published version? Does it remain indexed? It probably ought to be removed since draft versions do not have their parent work indexed. See https://github.com/psu-stewardship/scholarsphere/blob/develop/app/indexers/work_indexer.rb#L7

WDLL

fully implement the withdrawn state, with proper test coverage
include a service that handles the indexing (?)
display message on resource page indicating withdrawn state (make it look like embargoed message)
ensure metadata is accessible but files are not

In answer to question 1: No, the Solr record for both the work and work version will remain. The work is still publicly visible, just like an embargoed work is, but its files cannot be downloaded. The work version record remains as well, and is searchable in the user's dashboard.


tf.sysconfig.get_link_flags() issue

Env:
tensorflow 1.14.0
macos
tf.sysconfig.get_link_flags() returns
['-L/Users/kimmyzhang/anaconda2/lib/python2.7/site-packages/tensorflow',
 '-l:libtensorflow_framework.1.dylib']

"-l:libtensorflow_framework.1.dylib" will cause a custom op compilation failure:
ld: library not found for -l:libtensorflow_framework.1.dylib
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It should be -ltensorflow_framework.

Think the ld should be -ltensorflow_framework.1. Created a PR #30633 for the fix.

The issue has been fixed through PR #30656

-ltensorflow_framework is OK.

furthermore, on linux, there is the same issue.


Remove duplicate file load

Fixes #1

Ah didn't see fixed it before I looked at the github but tnx anyways.


Dataset: Refactor logic into dataset_files

Description
This is a real refactor. No public interface and no functionality has changed.
I have moved all the file related logic (saving, loading, scanning dataset files) into a separate file using simple static functions.

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (ce552d4) 100.00% compared to head (0220a93) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #308   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           39        40    +1
  Lines         1539      1561   +22
  Branches       347       346    -1
=========================================
+ Hits          1539      1561   +22

Impacted Files
Coverage Δ

src/pymovements/dataset/dataset.py
100.00% <100.00%> (ø)

src/pymovements/dataset/dataset_files.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Dynamic form creation

I want to build a quiz-maker app in which users create dynamic forms instead of developers.
Is this feasible using formio?

Yes. We have both a form builder and a form renderer. Both are fully customizable.


Re-register events

I am using -> player.recorder.destroy();  and then rebuilding my player on a page.  However, when I do this my player events:
player.on('deviceError',
player.on('deviceReady'
player.on('startRecord',
no longer fire.  Is there a way to re-register those events on the page?

That would be a bug, can you create an example that reproduces this?

@jjones3535a closing because of missing feedback.


cephfs csi : Invalid argument: "invalid value specified for ceph.dir.subvolume"

Describe the bug
New PVCs are stuck in "Pending" state, and we can see many lines like this in the provisioner:
invalid value specified for ceph.dir.subvolume

Example PVC:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: testpvc
  namespace: test
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 5Gi
  storageClassName: csi-cephfs-sc
  volumeMode: Filesystem

A clear and concise description of what the bug is.
New PVs & PVCs are not created anymore
Environment details

Helm chart version : Just upgraded to the latest version, but it did not fix the problem. The problem originally came in while using 3.9.0 for more than 6 months without any problem.

$helm list
NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
ceph-csi-cephfs ceph-csi-cephfs 2               2024-12-22 22:10:08.088066185 +0000 UTC deployed        ceph-csi-cephfs-3.13.0  3.13.0

$kgoyaml sc csi-cephfs-sc
allowVolumeExpansion: true
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    meta.helm.sh/release-name: ceph-csi-cephfs
    meta.helm.sh/release-namespace: ceph-csi-cephfs
    storageclass.kubernetes.io/is-default-class: "true"
  creationTimestamp: "2023-10-09T02:15:09Z"
  labels:
    app: ceph-csi-cephfs
    app.kubernetes.io/managed-by: Helm
    chart: ceph-csi-cephfs-3.13.0
    heritage: Helm
    release: ceph-csi-cephfs
  name: csi-cephfs-sc
  resourceVersion: "338433307"
  uid: 9026a977-bc57-49bc-9d12-a69b98fc254c
parameters:
  clusterID: e7628d51-32b5-4f5c-8eec-1cafb41ead74
  csi.storage.k8s.io/controller-expand-secret-name: csi-cephfs-secret
  csi.storage.k8s.io/controller-expand-secret-namespace: ceph-csi-cephfs
  csi.storage.k8s.io/node-stage-secret-name: csi-cephfs-secret
  csi.storage.k8s.io/node-stage-secret-namespace: ceph-csi-cephfs
  csi.storage.k8s.io/provisioner-secret-name: csi-cephfs-secret
  csi.storage.k8s.io/provisioner-secret-namespace: ceph-csi-cephfs
  fsName: cephfs
  volumeNamePrefix: rke
provisioner: cephfs.csi.ceph.com
reclaimPolicy: Delete
volumeBindingMode: Immediate

Kernel version :

Server: Linux pve1 6.8.12-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-4 (2024-11-06T15:04Z) x86_64 GNU/Linux
Client (Worker): Linux worker1 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC

Mounter used for mounting PVC: kernel
Kubernetes cluster version : 1.31 (but had the problem with 1.30 already)
Ceph cluster version : 18.2.4 - But it was working before with that same ceph version.

Steps to reproduce

Configure Ceph + ceph-csi on cephfs with kernel 5.x
Upgrade your cluster to kernel 6.x (especially your workers/clients)
The PV won't be created anymore, and the error "invalid value specified for ceph.dir.subvolume" will appear in the logs.

Actual results
"invalid value specified for ceph.dir.subvolume"
Describe what happened
The most probable change that triggered the problem, is the upgrade of the worker from Ubuntu LTS 22.04 to 24.04, also upgrading the kernel from 5.x to 6.x.
Expected behavior
PV to create and PVC to bind
A clear and concise description of what you expected to happen.
Logs
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:06.727521       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Normal" reason="Provisioning" message="External provisioner is provisioning volume for claim \"test/testpvc\""
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:06.795100       1 controller.go:951] "Retrying syncing claim" key="1c28ee51-2abd-4453-a3aa-0966aab528fe" failures=0
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner E1222 22:25:06.795126       1 controller.go:974] error syncing claim "1c28ee51-2abd-4453-a3aa-0966aab528fe": failed to provision volume with StorageClass "csi-cephfs-sc": rpc error: code = Internal desc = rados: ret=-22, Invalid argument: "invalid value specified for ceph.dir.subvolume"
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:06.795217       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Warning" reason="ProvisioningFailed" message="failed to provision volume with StorageClass \"csi-cephfs-sc\": rpc error: code = Internal desc = rados: ret=-22, Invalid argument: \"invalid value specified for ceph.dir.subvolume\""
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:07.295695       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Normal" reason="Provisioning" message="External provisioner is provisioning volume for claim \"test/testpvc\""
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:07.359538       1 controller.go:951] "Retrying syncing claim" key="1c28ee51-2abd-4453-a3aa-0966aab528fe" failures=1
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner E1222 22:25:07.359591       1 controller.go:974] error syncing claim "1c28ee51-2abd-4453-a3aa-0966aab528fe": failed to provision volume with StorageClass "csi-cephfs-sc": rpc error: code = Internal desc = rados: ret=-22, Invalid argument: "invalid value specified for ceph.dir.subvolume"
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:07.359620       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Warning" reason="ProvisioningFailed" message="failed to provision volume with StorageClass \"csi-cephfs-sc\": rpc error: code = Internal desc = rados: ret=-22, Invalid argument: \"invalid value specified for ceph.dir.subvolume\""
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:08.359928       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Normal" reason="Provisioning" message="External provisioner is provisioning volume for claim \"test/testpvc\""
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:08.422300       1 controller.go:951] "Retrying syncing claim" key="1c28ee51-2abd-4453-a3aa-0966aab528fe" failures=2
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner E1222 22:25:08.422328       1 controller.go:974] error syncing claim "1c28ee51-2abd-4453-a3aa-0966aab528fe": failed to provision volume with StorageClass "csi-cephfs-sc": rpc error: code = Internal desc = rados: ret=-22, Invalid argument: "invalid value specified for ceph.dir.subvolume"
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:08.422428       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Warning" reason="ProvisioningFailed" message="failed to provision volume with StorageClass \"csi-cephfs-sc\": rpc error: code = Internal desc = rados: ret=-22, Invalid argument: \"invalid value specified for ceph.dir.subvolume\""
ceph-csi-cephfs-provisioner-d555f5858-6dkkr csi-provisioner I1222 22:25:10.423574       1 event.go:389] "Event occurred" object="test/testpvc" fieldPath="" kind="PersistentVolumeClaim" apiVersion="v1" type="Normal" reason="Provisioning" message="External provisioner is provisioning volume for claim \"test/testpvc\""

Didn't find anything relevant in dmesg.

hey @Pivert ,
Can you provide complete logs as specified in issue template https://github.com/ceph/ceph-csi/issues/new?template=bug_report.md
# Logs #

If the issue is in PVC creation, deletion, cloning please attach complete logs
of below containers.

- csi-provisioner and csi-rbdplugin/csi-cephfsplugin container logs from the
  provisioner pod.

ceph-csi-cephfs_2024-12-23.log.xz.gz
Hi, please find a full log gathered with:
k stern -l app=ceph-csi-cephfs --no-follow |xz > ceph-csi-cephfs_$(date -I).log.xz
The log starts from the upgrade 3.9->3.13 - but problem is the same.
I just had to gzip it, because it seems xz attachment is not supported in this forum.
Regards,

ceph-csi-cephfs_2024-12-23.log.xz.gz
Hi, please find a full log gathered with: k stern -l app=ceph-csi-cephfs --no-follow |xz > ceph-csi-cephfs_$(date -I).log.xz The log starts from the upgrade 3.9->3.13 - but problem is the same.
I just had to gzip it, because it seems xz attachment is not supported in this forum.
Regards,

This is the nodeplugin logs.
I need logs from the provisioner

That's a stern, just grep on provisioner, you'll have all the logs (there are 3 provisioners). After restoring the xz with gunzip:
xz -dc ceph-csi-cephfs_2024-12-23.log.xz |rg provisioner

That's a stern, just grep on provisioner, you'll have all the logs (there are 3 provisioners). After restoring the xz with gunzip:
xz -dc ceph-csi-cephfs_2024-12-23.log.xz |rg provisioner

@Pivert
Found this with a quick search
https://www.spinics.net/lists/ceph-users/msg78143.html
maybe try this workaround and try asking on ceph cephfs slack ?
I don't think this is an issue with cephcsi driver.

Thanks @Rakshith-R
It did it, in my case I use the subvolumes in /volumes/rke2 (so not CSI).
From the first Proxmox node, the cephfs is mounted on /mnt/pve/cephfs, so I had to use the command:
setfattr -n ceph.dir.subvolume -v 0 /mnt/pve/cephfs/volumes/rke2

Then, immediately we can see:
$kd pvc testpvc
...
  Normal   ProvisioningSucceeded  2s                       cephfs.csi.ceph.com_ceph-csi-cephfs-provisioner-d555f5858-wh4xd_7ff4823a-8147-4c62-8c5a-5c3a4e3c9ac5  Successfully provisioned volume pvc-70a4a525-305b-4069-81f2-d190659fbf0d
$kg pvc
NAME      STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS    VOLUMEATTRIBUTESCLASS   AGE
testpvc   Bound    pvc-70a4a525-305b-4069-81f2-d190659fbf0d   1Gi        RWX            csi-cephfs-sc   <unset>                 43h

Thanks @Rakshith-R ,
You made my day !!
The remaining question is why does this triggers when we upgrade the RKE2 cluster (masters & workers) from Ubuntu 22.04 to 24.04.


[Flowbroker] Node validatition - usability

Actually, the node configuration on flowbroker does not block the use if there is any missing configuration, it can lead to some error scenario as occured on dojot/flowbroker#99 . We need to find a way to help the user to avoid it.

We don't have plans to address this, so this issue will be closed.


[Release-1.31] - K3s fails to start after running k3s certificate rotate-ca

Backport fix for K3s fails to start after running k3s certificate rotate-ca

#11014

Validated on master using commit 46cfd2c | version v1.31
Environment Details:
Node(s) CPU architecture, OS, and Version:

Linux ip-172-31-10-157 5.14.21-150500.55.44-default #1 SMP PREEMPT_DYNAMIC Mon Jan 15 10:03:40 UTC 2024 (cc7d8b6) x86_64 x86_64 x86_64 GNU/Linux
NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp5"
DOCUMENTATION_URL="https://documentation.suse.com/"

Cluster Configuration:
1 server (configuration does not matter)

Files:

config.yaml

cluster-init: true
write-kubeconfig-mode: 644

rotate-default-ca-certs.sh
https://github.com/k3s-io/k3s/blob/release-1.28/contrib/util/rotate-default-ca-certs.sh

Steps:

Install K3s
Update Certificates using script
Rotate ca-certs k3s certificate rotate-ca
Restart k3s sudo systemctl restart k3s
Check status of k3s sudo systemctl status k3s

Reproduction of the Issue:
https://github.com/k3s-io/k3s/issues/11014#issuecomment-2412527015
Validation of the Issue:
- Observations:
k3s -v
k3s version v1.31.1+k3s-46cfd2cf (46cfd2cf)
go version go1.22.6

$ ./rotate-default-ca-certs.sh
To update certificates, you may now run:
    k3s certificate rotate-ca --path=/var/lib/rancher/k3s/server/rotate-ca

$ k3s certificate rotate-ca --path=/var/lib/rancher/k3s/server/rotate-ca
certificates saved to datastore

$ sudo systemctl restart k3s
$ sudo systemctl status k3s
● k3s.service - Lightweight Kubernetes
     Loaded: loaded (/etc/systemd/system/k3s.service; enabled; vendor preset: disabled)
     Active: active (running) since Mon 2024-10-14 21:11:50 UTC; 34s ago
       Docs: https://k3s.io
    Process: 29485 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service 2>/dev/null (code=exited, status=0/SUCCESS)
    Process: 29487 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
    Process: 29488 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
   Main PID: 29489 (k3s-server)

$ kubectl get nodes,pods -A -o wide
NAME                                               STATUS   ROLES                       AGE    VERSION                INTERNAL-IP     EXTERNAL-IP     OS-IMAGE                              KERNEL-VERSION                 CONTAINER-RUNTIME
node/ip-172-31-10-157.us-east-2.compute.internal   Ready    control-plane,etcd,master   140m   v1.31.1+k3s-46cfd2cf   <IP_ADDRESS>   [REDACTED]      SUSE Linux Enterprise Server 15 SP5   5.14.21-150500.55.44-default   containerd://1.7.22-k3s1

NAMESPACE           NAME                                              READY   STATUS      RESTARTS   AGE    IP           NODE                                          NOMINATED NODE   READINESS GATES
kube-system         pod/coredns-56f6fc8fd7-cvm7h                      1/1     Running     0          140m   <IP_ADDRESS>    ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/helm-install-traefik-7zf6d                    0/1     Completed   1          140m   <none>       ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/helm-install-traefik-crd-8vslp                0/1     Completed   0          140m   <none>       ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/local-path-provisioner-5cf85fd84d-kbp6z       1/1     Running     0          140m   <IP_ADDRESS>    ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/metrics-server-5985cbc9d7-sj2s8               1/1     Running     0          140m   <IP_ADDRESS>    ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/svclb-nginx-loadbalancer-svc-e424a0da-scv2d   1/1     Running     0          135m   <IP_ADDRESS>   ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/svclb-traefik-2a4636bb-8tvdj                  2/2     Running     0          139m   <IP_ADDRESS>    ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
kube-system         pod/traefik-57b79cf995-fwb5z                      1/1     Running     0          139m   <IP_ADDRESS>    ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
test-ingressroute   pod/whoami-86c8d79cf4-97s4j                       1/1     Running     0          134m   <IP_ADDRESS>   ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
test-ingressroute   pod/whoami-86c8d79cf4-czldv                       1/1     Running     0          134m   <IP_ADDRESS>   ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
test-loadbalancer   pod/test-loadbalancer-6c774b8bb9-62s5b            1/1     Running     0          135m   <IP_ADDRESS>   ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>
test-loadbalancer   pod/test-loadbalancer-6c774b8bb9-9xvxq            1/1     Running     0          135m   <IP_ADDRESS>   ip-172-31-10-157.us-east-2.compute.internal   <none>           <none>


OrientDB Workbench not picking up settings from hazelcast.xml

Hi, I'm testing the Workbench 2.1.6 from the OrientDB Enterprise 2.1.12. And I have a difficulty adding a cluster to be monitored. I'm using multicast for discovering the nodes in the cluster.
The problem is I have multiple multicast capable network interfaces and the workbench always picks up the wrong interface (and hence the wrong IP for my nodes).
For OrientDB server, I can configure which interfaces Hazelcast should listen to by adding
<interfaces enabled="true">
  <interface>10.120.30.*</interface>
</interfaces>

So for eg, I have 2 interfaces (<IP_ADDRESS> and <IP_ADDRESS>), by adding the config above, Hazelcast will pick up <IP_ADDRESS>
For the workbench, however, even after adding the setting for interfaces at hazelcast.xml, Hazelcast still pick up the wrong interface <IP_ADDRESS>. As a result, I cannot add the cluster to the workbench.
Using TCP/IP, or disabling the other multicast interface solves the problem. But I would prefer being able to use the default multicast setting and adding <interfaces enabled="true"><interface> ... to choose the interface Hazelcast should use in workbench.

hi @davidheryanto
Workbench does not read the hazelcast.xml. It is configured at runtime. We could add the interface configuration in the WB ui.

Hi Risa. Yes, I think it would be great to be able to configure it from the UI (or at least add the option to use default hazelacast.xml or specify our own xml). Thanks

Hi,
Workbench has been replaced by the tool Studio in v 2.2.
2.1 is expected to enter EOL in February 2017. If you are still using 2.1, please do consider upgrading to 2.2
I'm adding label Studio so that Product Management can have a chance to review this issue and see if this is still current in 2.2 and in case take action
Many Thanks,

Workbench is not part of OrientDB Enterprise distribution anymore.


Refactor/fade show

Minor tweak to .fade:not(.show) to enhance voiceover ability to capture changes as well as remove pointer events from hidden items.
Inspiration taken from https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/
You can see an example working here (i've made some other tweaks to the modal i'd like to test out before raising a PR)
https://safari-voiceover-modal.netlify.app/examples/single-modal

Seems moot since closed models have display: none. Also, visibility will prevent opacity animations from triggering.


Update to Python 3, fix API scanning, various improvements.

I've made a series of large changes to this tool for my own personal use, but figured I should offer to merge these in. Understandably a very large pull request but these changes might be useful.

Missed final commit, will reopen


Doc changerequest: Fedora 33+ offers PolyBar in it's repo

Since Fedora 30 Polybar is available in Fedora stable repos:
https://koji.fedoraproject.org/koji/packageinfo?packageID=30438
Please change your docs section about installing polybar and add:
Fedora: install with "sudo dnf -y install polybar"

It's already there: https://github.com/polybar/polybar#installation

This page is meant:
https://polybar.github.io/

Ah, I see. Added it to the webpage.


Mousemove glitter effect by js

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes:  #546

Type of change
It uses beautiful vanilla javascript codes to make small colorful circles to follow the movement of mouse

[x ] New feature (non-breaking change which adds functionality)
[x ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ x] I have made this from my own
[ x] I have taken help from some online resourses
[x ] My code follows the style guidelines of this project
[x ] I have performed a self-review of my own code

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

https://deploy-preview-549--amazing-js-projects.netlify.app/mousemove effect/i

@VidhiBhatt01  maam deleted the extra files

maam actually I made upgradation in your background  color changer  project 1 month back  but in different  branch and that was already merged into master  but now in this branch also same 1 month older change is reflecting and if i delete those changes it is saying that i am conflicting with master branch.  but i trust me, i haven't even touched those files. what we should do now?

I am also unable to fix the merge conflicts. Just delete this branch, close this PR and make a new one


Incompatibility with custom chest models

Describe the Bug
Create (and or Flywheel, can't easily test since they're bundled together) forces the vanilla chest model to be rendered alongside any custom one.
I've tested this with both Nostalgic Tweaks and FastChest.
Reproduction Steps

Click on chest
Observe intersecting models

Expected Result
Only the custom model should be rendered (as seen in the attached video, Create disabled)
https://user-images.githubusercontent.com/29976879/206413024-5f34a3f3-c952-4324-8717-26bddb25dd38.mp4
Screenshots and Videos
https://user-images.githubusercontent.com/29976879/206411453-760fbd4a-1690-438d-8193-e42191a43181.mp4
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.5.0g
Minecraft Version
1.18.2
Other Mods
The following mods were present for both demonstrational videos (with no other changes besides Create being disabled in one of them)

Architectury
Cloth Config
Cull Less Leaves
Enhanced Block Entities
Fabric API
Fabric Language Kotlin
Fabrication
Hunger Remover
Indium
Iris
Mod Menu
Nostalgic Tweaks
Reese's Sodium Options
Roughly Enough Items
Sodium
Sodium Extra

Additional Context
No response

This is technically the same as https://github.com/Fabricators-of-Create/Create/issues/316. Create already optimizes block entity rendering, you don't need to add any extra mods for that.
If you absolutely insist on using FastChest, then type /flywheel backend off in chat and hit enter.

This is technically the same as #316. Create already optimizes block entity rendering, you don't need to add any extra mods for that.
If you absolutely insist on using FastChest, then type /flywheel backend off in chat and hit enter.

Well, perhaps, but optimisation wasn't the point, hence me mentioning this being a feature of Nostalgic Tweaks as well.
I'm putting together a collection of mods and resource packs that bring back the look and feel of Beta 1.7.3 and I really wanted to add Create to it as well, because it's one of my favourite mods and I was looking forward to making beta-style textures for it.

duplicate of #316


when a line wraps, the second half of the link is unclickable and unable to move cursor. Change page zoom so that the line doesn't have to wrap fixes the problem

Challenge Add Alt Text to an Image for Accessibility has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
 Happy coding!


Detail push in README

The push (and pull) are IMO the most important commands and they could use a bit more documentation:

States it only affects directory of the same name on Drive (can it be customized to have another name?)
Does it delete files on Drive in the directory if they've been removed locally since last push?
Does it follow symbolic links?
States that it doesn't keep ACLs

Not sure what you mean by this.
Delete Files - This is how the program works. You make changes either remotely or locally and you push/pull those changes from one to another. You should read the README. It has a lot of info in there.
Sym Links - https://github.com/odeke-em/drive/issues/80
I'm not sure if this is a question or just a general statement.

Open the README and just search for some keywords and you can probably find all your answers.

I mean that given it delete files removed locally, it should state which folders it'll affect remotely, and I guess if I do drive push foo it'll will mirror local directory foo with Drive directory named foo without affecting other directories on drive, or?

Push isn't clearly stating in README that it does delete files that don't exist locally but do exist on Drive. I'm not sure if that's the behavior as nothing is said about it clearly for the push operation.

Yes, pretty neat. Worse mentioning in push section especially most Drive sync tools don't support it (yet).

Statement that could be a notice in README (optional)


Digestwriter and sha generator improvements

Make sha_generator also update account table if necessary with an insert on conflict do nothing statement
Use where + firstOrCreate in Form insert operations for more robustness
Add more logging in debug mode

Secure Coding Practices Checklist GitHub Link

https://github.com/RedHatInsights/secure-coding-checklist

Secure Coding Checklist

[x] Input Validation
[x] Output Encoding
[x] Authentication and Password Management
[x] Session Management
[x] Access Control
[x] Cryptographic Practices
[x] Error Handling and Logging
[x] Data Protection
[x] Communication Security
[x] System Configuration
[x] Database Security
[x] File Management
[x] Memory Management
[x] General Coding Practices

Codecov Report

Merging #45 (761db2d) into master (4949aaf) will increase coverage by 1.04%.
The diff coverage is 96.00%.

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
+ Coverage   51.43%   52.48%   +1.04%
==========================================
  Files          11       11
  Lines         591      604      +13
==========================================
+ Hits          304      317      +13
  Misses        267      267
  Partials       20       20

Flag
Coverage Δ

unittests
52.48% <96.00%> (+1.04%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

digestwriter/storage.go
62.09% <95.23%> (+4.43%)
:arrow_up:

digestwriter/consumer.go
76.47% <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 4949aaf...761db2d. Read the comment docs.


Move functions used for regulatory calculation to somewhere other than .plots/surfplots.py

The following functions (mostly used for regulatory calculations) currently in .plots/surfplots.py should likely be moved to somewhere else to keep .plots/surfplots.py relevant to plotting. They could be moved to .util/tools.py or to MONET.
make_24hr_regulatory()
get_utcoffset()
calc_24hr_ave_v1()
make_8hr_regulatory()
calc_8hr_rolling_max_v1()

We discussed moving this to the tools section of MELODIES MONET.


Wrong locales path during SSR

Describe the bug
I am facing a Vercel related bug, when transaltion keys are not resolved during SSR, It's a bit complex project, so unfortunately I was not able to make a minimal reproduction, we use over 14 layers
But  I am trying to figure out why locales can't be resolved and it seem, it tries to load locales from a wrong path as you can see from Vercel logs here (we have disablePageLocales set to true

It tries to get data from /_locales/index/en/data.json where there are no data, it returns just empty json.
When I check the build output on the vercel I can see only general locales, so I also don't know how it can resolves the previous path with empty json.

when I access url with /_locales/general/en/data.json the value is there.
in the bundle there is also top level folder called locales without underscore, where is the same output, could you explain a bit how are translations resolved both on server and client? :pray:
Could you give me a clue what I could try to change to get understanding what happens under the hood?
Locally it works fine.
Thank you so much.
Screenshots

Hi, this is strange behavior. Do you have multiple layers? Maybe disablePageLocales isn’t enabled in one of them? It shouldn’t be fetching locales for the index if disablePageLocales is enabled.
I tested it here and didn’t see this issue:
https://github.com/s00d/-Cloudflare-Pages-project/tree/vercel

it's weird. We have lot of layers but I would expect

the configuration will be inherited from the bottom to top
in case where page locales would be eanbled for some reason, general locales will be resolved as well

is there any idea how I could investigate it? because the most strange thing is, that locally everything works fine.

even though I set this flag explicitly in every layer, the problem stays same :thinking:

Unfortunately, I can only guess, and I don't understand what the problem might be. I need a live example to figure it out; without code, nothing is clear.

Ok, yesterday I spent about an hour with @danielroe to explore the problem, unfortunately without a solution, we figured out a small bug where page locales endpoint is called even though the disablePageLocales is set to true.
but I played a lot around it today, and tried to patch the plugin and add some console logs in order to see what is happening during load translations on the server and client and what is different. So this is what I have now
patched translationHelper
const generalLocaleCache = {};
const routeLocaleCache = {};
const dynamicTranslationsCaches = [];
const serverTranslationCache = {};
const serverTranslationInit = {};
function deepClone(value) {
  if (Array.isArray(value)) {
    return JSON.parse(JSON.stringify(value));
  } else if (typeof value === "object" && value !== null) {
    return JSON.parse(JSON.stringify(value));
  }
  return value;
}
function findTranslation(translations, parts) {
  console.warn(`findTranslation() -> parts: ${parts} | translations:`, translations)
  let value = translations;
  for (const part of parts) {
    if (value && typeof value === "object" && part in value) {
      console.warn(`findTranslation(${parts}) -> part value`)
      value = value[part];
    } else {
      console.warn(`findTranslation(${parts}) -> null value`)
      return null;
    }
  }
  if (typeof value === "object" && value !== null) {
    console.warn(`findTranslation(${parts}) -> deepClone value, translations: ${translations}`)
    return deepClone(value);
  }
  return value ?? null;
}
export function useTranslationHelper() {
  return {
    hasCache(locale, page) {
      return (serverTranslationCache[`${locale}:${page}`] ?? /* @__PURE__ */ new Map()).size > 0;
    },
    getCache(locale, routeName) {
      return serverTranslationCache[`${locale}:${routeName}`];
    },
    setCache(locale, routeName, cache) {
      const cacheKey = `${locale}:${routeName}`;
      serverTranslationCache[`${locale}:${routeName}`] = cache;
      serverTranslationInit[`${locale}:index`] = true;
      serverTranslationInit[cacheKey] = true;
    },
    mergeTranslation(locale, routeName, newTranslations, force = false) {
      if (!force && !routeLocaleCache[`${locale}:${routeName}`]) {
        console.error(`marge: route ${locale}:${routeName} not loaded`);
      }
      routeLocaleCache[`${locale}:${routeName}`] = {
        ...routeLocaleCache[`${locale}:${routeName}`],
        ...newTranslations
      };
    },
    mergeGlobalTranslation(locale, newTranslations, force = false) {
      if (!force && !generalLocaleCache[`${locale}`]) {
        console.error(`marge: route ${locale} not loaded`);
      }
      generalLocaleCache[locale] = {
        ...generalLocaleCache[locale],
        ...newTranslations
      };
    },
    hasGeneralTranslation(locale) {
      return !!generalLocaleCache[locale];
    },
    hasPageTranslation(locale, routeName) {
      return !!routeLocaleCache[`${locale}:${routeName}`];
    },
    getTranslation: (locale, routeName, key) => {
      const cacheKey = `${locale}:${routeName}`;
      const cached = serverTranslationCache[cacheKey]?.get(key);
      if (cached) {
        console.warn('i18nHelper.getTranslation() -> cached value:', cached)
        return cached;
      }
      const parts = key.split(".");
      let result = null;
      for (const dynamicCache of dynamicTranslationsCaches) {
        console.warn('i18nHelper.getTranslation() -> dynamicCache:', dynamicCache)
        result = findTranslation(dynamicCache[locale] || null, parts);
        if (result !== null) break;
      }
      if (!result) {
        console.warn('i18nHelper.getTranslation() -> routeLocaleCache:', routeLocaleCache)
        console.warn('i18nHelper.getTranslation() -> generalLocaleCache:', generalLocaleCache)
        result = findTranslation(routeLocaleCache[cacheKey] || null, parts) ?? findTranslation(generalLocaleCache[locale] || null, parts);
      }
      if (result) {
        if (!serverTranslationCache[cacheKey]) {
          serverTranslationCache[cacheKey] = /* @__PURE__ */ new Map();
        }
        serverTranslationCache[cacheKey].set(key, result);
      }
      return result;
    },
    async loadPageTranslations(locale, routeName, translations) {
      const cacheKey = `${locale}:${routeName}`;
      routeLocaleCache[cacheKey] = { ...translations };
      serverTranslationInit[cacheKey] = true;
    },
    async loadTranslations(locale, translations) {
      generalLocaleCache[locale] = { ...translations };
      serverTranslationInit[`${locale}:index`] = true;
    }
  };
}

This is the SSR output

This is a client output

Probably I got a function which does this problem, and it's hasGeneralTranslations I've put some logs there
hasGeneralTranslation(locale) {
      console.warn(`hasGeneralTranslation(${locale}) -> generalLocaleCache:`, generalLocaleCache)
      console.warn('!!generalLocaleCache[locale]:', !!generalLocaleCache[locale])
      return !!generalLocaleCache[locale];
    },

and the output is
SSR

Client

I am not sure where the generalLocalCache should come from since I found just mergeGlobalTranslations() which works with this property, where I also added some logs, but unfortunately it seems that it is not called on neither ssr nor client.
I hope this helps you guess where the problem might be coming from. :pray:

I was try to enforce this condition to go to the next step, which is loadTranslations where I debug a path and data from the $fetch itself. Paths are same but on the SSR there are no data at all.. any idea what is going on?
SSR

Client

Hi, maybe you just need to update it? The issue might be related to this?

Hi!
If you can create a simple project where this issue can be reproduced, I’ll most likely be able to fix it. Right now, I can’t make sense of the problem based on the information you’ve provided. From what I see, your server seems unable to fetch translations from the cache. This happens here:
i18n-loader.ts.
This file is responsible for loading translations and caching them. It uses a two-level cache:

File-based cache  (this is specifically useful for environments like Vercel).
In-memory cache

From the logs, it looks like translations are simply not accessible on your server. However, I’ve personally tested this multiple times using these links:

Test Project on GitHub
Deployed Demo

The issue could stem from anything, such as:

Dependency versions
Nuxt configuration
Dependency conflicts
Vercel settings
A bug under specific conditions
Or something else entirely.

In short, without a test project to reproduce the issue, I can’t pinpoint the problem.

I am wondering if it could does the $fetch itself 🤔  maybe trying to resolve the endpoint locally from registered routes, but I guess that the library adds _locales to the root of the build so I think it is not included in the Nuxt/Nitro app itself. but maybe I am wrong

On serverless platforms, $fetch won't be able to fetch static files as they are stored on the CDN and not internally to the nitro server. You might be able to set serveStatic to work around this temporarily but instead this module should probably implement a way to get this data on the server side using Nitro storage.

Okay, so if I add baseUrl with the actual origin, not just /, it gets the data. So I'm just wondering if there's any way to tell $fetch to make an http call and try not to handle it internally, the docs say that the internal request is made by unenv, so I'm not sure if this behavior can be changed by some option in $fetch itself. What do you think @danielroe ?

Try simply setting the apiBaseUrl with the domain (https://example.com/_locales), I'm not sure if it will work like this, I haven't checked.

Yes it wokrs this way.

I should also warn that the entire Nuxt 3.14.* version is buggy and slow, it's better to use 3.13.* for now.
https://github.com/nuxt/nuxt/issues/30290
https://github.com/nuxt/nuxt/issues/30008

on this project we use
nuxt: "^3.12.2"

@s00d do you think it's possible to switch to Nitro Storage as Daniel mentioned? :thinking:

@s00d neither of those issues (now resolved) is related to the bug reported here

@s00d do you think it's possible to switch to Nitro Storage as Daniel mentioned? 🤔

If you're referring to https://nitro.build/guide/storage, it is already being used to fetch translations. If you want to fully switch to storage instead of querying through $fetch, in theory, it's a good solution, but unfortunately, I don't have time for this. Perhaps you could do it yourself and submit a pull request.

Nuxt 3.14.*

This error is unrelated, I just wanted to warn you. The problem lies in the Nuxt 3.14.* version itself. After updating to 3.14.*, the project becomes twice as slow and consumes three times more CPU.

@s00d I'm aware - I resolved those issues as I mentioned above; v3.15 is slated for a release this weekend. Not sure what you are trying to tell me.


add find_models() function

There are 200+ models in json file. There is need for a function that users can call to list them down, instead of going into the json file everytime.
something like this:
>>> find_models() # this function lists all the models
["gpt-4", "gpt-4-0314", "gpt-4-0613",
 "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613",
 "gpt-4-1106-preview", "gpt-4-0125-preview", ....]

>>> find_models("voyage")
["voyage/voyage-01", "voyage/voyage-lite-01"]

>>> find_models("gpt-3.5-turbo", limit=5)
["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613",
 "gpt-3.5-turbo-1106", "gpt-3.5-turbo-16k"]

If the feature sounds pertinent, I'll be happy to add it.

Guess you are right, it in not a very necessary thing, I'll close this for now until I find a valid use-case. Thanks


(PUP-11540) Update task_info_service to return private/description

Updates the task_info_service implementation to return two additional
keys for tasks_for_module: "private" and "description". Both new keys
come from task metadata, which requires reading from metadata json files
for each task.
Testing was done to ensure the additional file reads for metadata json
files would not impact performance of puppetserver. In tests with an
environment with > 3000 tasks, the difference in total time to process
all task data was only any increase of 0.5 - 1 second..

To confirm, this is only intended for the Puppet 7 stream?

@mwaggett yeah, it's just for puppet 7.

Should these commits be squashed?


Minor Adaptive Authentication Doc and UI improvements

The doc page titles were updated therefore please update the doc links in the UI (see [1] for a list of the page links)

There needs to be hyphen in between if there is a compound noun before the modified verb. Therefore "Role Based", "Tenant Based", etc., need to be changed to "Role-Based","Tenant-Based", etc., in the UI.

"User's Age Based" should change to "User-Age-Based".

"Userstore Based" should change to "User Store-Based". (user store is two words but refers to one object)

Is it possible to call the "New Device Login" template as "Device-Based" or "Cookie-Based" template?

Can we change "ACR" to "ACR-Based"?

Can we change "Risk Calculation" to "Risk-Based" for consistency (only if it doesn't affect the meaning we are trying to convey).

[1] https://docs.wso2.com/display/IS570/Adaptive+Authentication+Scenarios
@Minoli

Fixed with PR https://github.com/wso2/carbon-identity-framework/pull/1771


Add filtering for subaccounts

Pull Request Test Coverage Report for Build 154

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.1%) to 91.578%

Files with Coverage Reduction
New Missed Lines
%

/home/travis/build/seatsio/seatsio-java/src/main/java/seatsio/subaccounts/Subaccounts.java
1
98.61%

Totals

Change from base Build 151:
0.1%

Covered Lines:
685

Relevant Lines:
748

💛  - Coveralls

Looking good @nahue

Looking good @nahue

Thanks! will merge when you confirm.

Sure, go ahead
On Tue, Dec 18, 2018, 19:55 Victor Nahuel Chaves<EMAIL_ADDRESS>wrote:

Looking good @nahue https://github.com/nahue
Thanks! will merge when you confirm.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/seatsio/seatsio-java/pull/3#issuecomment-448330197,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABRThrRIF-xPvFfC5P9EWq6xO-7YA4nQks5u6ToggaJpZM4ZQarK
.


Syntax scope adjustments for block ID (anchors/links) and for heading levels

Enabled "Goto Definition", "Goto reference", and "Goto symbol" to work between block IDs (anchors) and xref links. -- which involved changing the block ID (anchor) scope from "markup.underline.blockid.id" to "entity.name.label" (per the syntax naming guidelines).

Removed the extraneous "level" from "markup.heading.level.1.asciidoc", "markup.heading.level.2.asciidoc", etc. to align with what the color schemes expect (e.g. the Monokai and Breakers schemes set one color for all "markup.heading" and a second color for "markup.heading.1" in particular, and Celeste also sets a third color for "markup.heading.2").

False start. Will resubmit.


Python3 install installs wrapper calling python instead of python3

> sudo pip3 install mssql-cli
Collecting mssql-cli
  Using cached mssql_cli-0.18.2-py2.py3-none-manylinux1_x86_64.whl (43.4 MB)
Requirement already satisfied: [...]
[...]
Installing collected packages: mssql-cli
Successfully installed mssql-cli-0.18.2

> mssql-cli
/usr/local/bin/mssql-cli: Zeile 16: python: command not found

> grep python /usr/local/bin/mssql-cli
[...]
16:python -m mssqlcli.main "$@"

All other Python scripts installed via pip in /usr/local/bin refer to python3[.8].

@thorstenkampe what OS are you using to install mssql-cli?

@ellbosch I'm using Ubuntu 18.04

As of fairly recently we've published a version to apt-get that should work on Ubuntu 18.04. Best to uninstall mssql-cli first using pip3 uninstall mssql-cli and then follow these instructions:
# Installs mssql-cli from Packages.Microsoft
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -

# Use for pulling from prod channel
RUN apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod

RUN apt-get update
RUN apt-get install -y mssql-cli

# Installs missing requirements
RUN apt-get install -y -f

Please let me know if this resolves your problem.

Sorry, the packages creates

its own root directory (/mssql-cli)
brings its own Python (Python 3.6)
does not at all integrate with existing Python (3.7.5)
does not work

[...]
  File "/mssql-cli/lib/python3.6/site-packages/terminaltables/terminal_io.py", line 3, in <module>
    import ctypes
  File "/mssql-cli/lib/python3.6/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libffi.so.6: cannot open shared object file: No such file or directory

Interesting bug there... can you pass along the response you get for calling arch in the command line?
FYI—we bundle our own Python version with Ubuntu to prevent potential conflicts with Python dependencies downloaded elsewhere. There may be some issues if you attempt a purist Python installation on Linux.

I have to correct myself: the distribution is not 18.04 but 19.10, the latest version of Ubuntu.

Sorry @thorstenkampe, we don't support 19.10 at this time. Closing this issue.


Scraper improvements

This PR:

Implements logging

I will probably eventually have to split the Parser and the Scraper into independent repositories.


combine the llvm libcxx and libcxxabi builds

Issue description
placeholder issue for building the libcxx and libcxxabi libs.

https://github.com/NixOS/nixpkgs/pull/282624
https://github.com/NixOS/nixpkgs/issues/166205
https://github.com/NixOS/nixpkgs/pull/278945
https://github.com/llvm/llvm-project/issues/78860

Steps to reproduce
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

fixed by https://github.com/NixOS/nixpkgs/pull/292043


Fix multi-port scans aborting early

This fix lets multi-port scans proceed past 2^32 = 4,294,967,296.
However, I've seen some weird behavior:

ETA of scan reaching 100% around the mid-way point of scanning
Scanning far too many targets given the CLI inputs

Going to investigate further and add some repeatable integration tests for full IPv4 multi-port scans. I don't want to merge this until I've at least opened issues/verified the issues I saw over the weekend so main isn't in a bad state with no documentation.

Closing since pushed extra integration test changes to this branch, reopened this fix on #914


Out of memory after update to 1.2.4

After update nodeos from 1.2.1 to 1.2.4, can not startup:
./nodeos
2018-09-10T10:47:55.448 thread-0   chain_plugin.cpp:317          plugin_initialize    ] initializing chain plugin
Killed

tail -f /var/log/kern.log
Sep 10 18:48:16 localhost kernel: [  475.353998] Out of memory: Kill process 2071 (nodeos) score 950 or sacrifice child
Sep 10 18:48:16 localhost kernel: [  475.356197] Killed process 2071 (nodeos) total-vm:42016936kB, anon-rss:2628kB, file-rss:15935356kB

server RAM:16GB, only use chain plugin and net plugin.
So much RAM need?...

Can you please list the contents of
ulimit -a
(from the console you run nodeos from)
And also please share your config.ini

@gs201510 Are you using Ubuntu?

@spartucus Yes, using ubuntu 16.04

@spoonincode
ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 63526
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 102400
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63526
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

config.ini
bnet-endpoint = <IP_ADDRESS>:4321
bnet-follow-irreversible = 0
bnet-no-trx = false
bnet-peer-log-format = ["${_name}" ${_ip}:${_port}]

blocks-dir = "blocks"

abi-serializer-max-time-ms = 15000

chain-state-db-size-mb = 30720

chain-state-db-guard-size-mb = 128

reversible-blocks-db-size-mb = 1024

reversible-blocks-db-guard-size-mb = 16

contracts-console = false

read-mode = speculative

validation-mode = full

https-client-validate-peers = 1

http-server-address = <IP_ADDRESS>:8888

access-control-allow-origin = *

access-control-allow-credentials = false

max-body-size = 1048576

verbose-http-errors = false

http-validate-host = false

max-login-requests = 1000000

max-login-timeout = 60

mongodb-queue-size = 1024

mongodb-abi-cache-size = 2048

mongodb-wipe = false

mongodb-block-start = 0

mongodb-store-blocks = 1

mongodb-store-block-states = 1

mongodb-store-transactions = 1

mongodb-store-transaction-traces = 1

mongodb-store-action-traces = 1

p2p-listen-endpoint = <IP_ADDRESS>:9876

p2p-peer-address = jungle.cryptolions.io:19876
p2p-peer-address = dev.cryptolions.io:39876
p2p-peer-address = dev03.cryptolions.io:9878
p2p-peer-address = jungle.eosbcn.com:2095
p2p-peer-address = jungle.cryptolions.io:19876
p2p-peer-address = dev.cryptolions.io:19876
p2p-peer-address = <IP_ADDRESS>:9876
p2p-peer-address = testnet.blockgenesys.com:29876
p2p-peer-address = <IP_ADDRESS>:9876
p2p-peer-address = <IP_ADDRESS>:19876
p2p-peer-address = peer.jungle.alohaeos.com:9876
p2p-peer-address = <IP_ADDRESS>:9876
p2p-peer-address = dev03.cryptolions.io:9878
p2p-peer-address = dev03.cryptolions.io:9878
p2p-peer-address = jungle.cryptolions.io:19876
p2p-peer-address = jungle.cryptolions.io:39876
p2p-peer-address = jungle.cryptolions.io:39876

p2p-max-nodes-per-host = 8

agent-name = "EOS Test Agent"

allowed-connection = any

max-clients = 25

connection-cleanup-period = 30

max-cleanup-time-msec = 10

network-version-match = 0

sync-fetch-span = 100

max-implicit-request = 1500

use-socket-read-watermark = 0

peer-log-format = ["${_name}" ${_ip}:${_port}]

enable-stale-production = false

pause-on-startup = false

max-transaction-time = 30

max-irreversible-block-age = -1

signature-provider = EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEY:5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3

keosd-provider-timeout = 5

produce-time-offset-us = 0

last-block-time-offset-us = 0

incoming-defer-ratio = 1

txn-reference-block-lag = 0

plugin = eosio::chain_api_plugin

plugin = eosio::chain_plugin

plugin = eosio::net_plugin

plugin = eosio::net_api_plugin

Well, then i think it's duplication of https://github.com/EOSIO/eos/issues/5554

The new version will use "mlock" to lock all memory of size defined in chain-state-db-size-mb for better performance and latency. In your config chain-state-db-size-mb = 30720 is clearly run out of your physical RAM limit. I suggest to sync with a machine of equal or more than 32GB RAM.

@gs201510 @taokayan You can set chain-state-db-size-mb = 10240 since your physical RAM is 16GB. And then you will find that it frozen at startup just like what I did. There are somethings wrong with ubuntu.

I set chain-state-db-size-mb = 10240, got the same error. After update 1.2.2 and 1.2.4, the nodeos was killed frequently, and the nodeos show: "what":"database dirty flag set".

max locked memory       (kbytes, -l) 64
This should have prevented mlock from occurring 🤔


Release 1.22.1

Summary
I wanted these PRs to be a part of 1.22.0 but owing to certain dependency issues it was not possible.  With 1.22.0 in place, I would like to propose this minor release that would include the new build system and support for Go 1.13 in our latest stable version.
Let me know if we can include anything else.
Included PRs
#883
#885

I'm 👍 here! I'll give the actual approving review once the relevant PRs are merged.

We should address the deps issue before making a new release.

This is not a new release. This is merely a minor patch that was originally meant to be a part of 1.22.0 but could not be integrated then due to test failures caused by dependency issues.
What deps issue are you referring to? Could you reference it here?

Sorry, on the phone, about to catch a flight. #888 is what I am referring to.

Thanks! On it. Have a happy and safe journey

@Audrius The fix for the dep is already included in #885
The issue is due to mismatched version of md2man library leading to an issue in mismatched version of black friday.
If you would just approve this, I'd make the release and the issue would get fixed :)

But this needs more than just approvals, it needs an actual release.

Yes but with your approval, it's one less required. We could also include #889 in this release. It's a nice quick fix!

Sure

We should document the procedure for releases as I am not sure if you've done everything required so would be more comfortable if @lynncyrin approves this too.

@urfave/cli would really appreciate if you could check this out quickly so that we can get done with this...

🚢

@lynncyrin will this release be done today?

will this release be done today?

Probably!


Full workflow

Hi -
I'm repeatedly running into 'undefined symbol' errors and I'm not sure where I'm going wrong.
I've dropped all of the source files into one of the example folders and run the equivalent of :
zig cc main.c cimgui.cpp imgui*.cpp but it doesn't seem to work. I tried clang too.
Am I doing something dumb?
I think a slightly more comprehensive step-by-step would be really useful in the readme. This is one step between me creating an up to date binding in Nim, but its throwing the same error!

Hm... that depends on what backend you're trying, for starters - if it's anything except the null one then you'll likely need to include appropriate libraries for the graphics API/etc involved.
Does it work if you use the .vcproj file or Makefile in the appropriate example directory?
Those have been tested on Windows/OSX/Ubuntu so on any of those it should "just work" (and I'd imagine most other Linux variants too, as they really don't do anything particularly unusual).
Aside from that, it's hard to say anything without some additional information:

What OS/machine are you using?
Which example directory are you using?
Which files did you copy in there? (or, well, what does the folder look like at the point you're trying to compile?)
What is the exact error message you get?

Hi thank for getting back - I managed to get things built using msbuild on Windows, by making sure imgui was a the sibling directory. I'm not sure what I was doing wrong the first time but I guess it was just a missing dep / link path as you say. I'll look at how the vs project is set up.
Once cimgui is built as a lib (or .dll once I get that working), I can compile a custom backend separately and call cimgui from that right?

Yes, you should be able to just link the ImGuiLib file that the VS project generates in your project and then do whatever you want to in terms of backend/user code - that's the approach the various examples all use.

Closing due to inactivity - feel free to re-open if you run into any more problems.

Thanks!


Android YogaLayout does not recalculate its dimension for any runtime change in children dimension

Report

[ .] I have searched existing issues and this is not a duplicate

Issues and Steps to Reproduce
Hi team,
We are facing a major issue with using YogaLayout android.
Issue:
Whenever the dimension of the child of YogaLayout changes dynamically, then the YogaLayout never recalculates its dimension for the change in child's dimension.
For.eg. Let us say we have a YogaLayout (with height/width = WRAP_CONTENT) has two children with ImageView (height/width = WRAP_CONTENT) and TextView (height/width = WRAP_CONTENT) in flex direction = Column. And we download the image from a url and load into the image view, when image is downloaded, then ImageView dimension changes, but the parent YogaLayout never adjusts its height and it renders the children in previously calculated height, as a result, the bottom text view gets cropped off.
I tried to mark the yogaNode of ImageView as dirty to re-render but no luck.
This issue has been haunting us for long time, and this is limits us to not to use YogaLayout as child of RecyclerView.
Please help
Expected Behavior
YogaLayout to recalculate its dimensions for any change in child's dimension
Actual Behavior
YogaLayout does not recalculate its dimensions for any change in child's dimension
Link to Code
If you have some code that maintainers can clone/test for themselves, bugs can be resolved much faster. Please paste a link here.
When applicable, use this fiddle to post a web repro.

Thanks for filing this. It's a bit tricky to tell what might be happening from your description. Would you be willing to provide a minimal repro of the issue?
To set expectations, the YogaLayout ViewGroup hasn't seen much attention recently, even compared to the overall layout engine, so we might not be able to give a quick turnaround for this issue.

@NickGerleman  Thank you very much getting back
I have created a sample project here: https://github.com/SanthoshKandalu/YogaIssueDemo

I have a created a simple YogaLayout with two children TextView and Button in flex direction column
Initially the text view will show a simple single line text, on click of the button, I will try to show a bigger mulit-line text.
But things don't go correct here, as you can see in the screenshot, the YogaParent does not recalculate its height and tries to render the views in the same previously calculated height and as a result, button is cropped.
This unexpected caused bigger problem when used in RecyclerView.

Can you please help?
,

@SanthoshKandalu it looks like you are not invalidating the parent like here https://github.com/facebook/yoga/blob/40db73d1a8783eb72c73c55a6c99aac0b4e58a53/android/sample/java/com/facebook/samples/yoga/BenchmarkFragment.java#L42

@SanthoshKandalu it looks like you are not invalidating the parent like here. In order to kick of a layout recalculation for Android:
https://github.com/facebook/yoga/blob/40db73d1a8783eb72c73c55a6c99aac0b4e58a53/android/sample/java/com/facebook/samples/yoga/BenchmarkFragment.java#L42

@woehrl01  - Thanks for checking.
I tried that yet no luck. You can see the changes in line #38 of FirstFragment.kt in my demo app.
Can you please help?

Please try putting the text inside another container, just to verify if it doesn't hit a different error.
FYI: I haven't used Yoga inside Android, yet.

Please try putting the text inside another container, just to verify if it doesn't hit a different error.
FYI: I haven't used Yoga inside Android, yet.

@woehrl01 - I tried to wrap the text inside another container - LinearLayout or YogaLayout, but same ui behaviour as the screenshot attached above.

Please try putting the text inside another container, just to verify if it doesn't hit a different error.
FYI: I haven't used Yoga inside Android, yet.

@woehrl01 - I tried to wrap the text inside another container - LinearLayout or YogaLayout, but same ui behaviour as the screenshot attached above.

i have the same problem, i use yogalayout as item in RecycleView,and the item seem to be clipped as above, do u have any solution?

We're deprecating the com.facebook.yoga.android.YogaLayout ViewGroup in the next major release of Yoga. We intend to still push out a new version aligned to the core Yoga 2.0. I have bulk closed ViewGroup issues to reflect that we are not planning to invest time into functional changes of the ViewGroup. and eventually intend to remove it from the repo.


Refactor controller

WHAT

Refactor the flow of if statement

controller:pretty, pagination
pagination: c.Request.TLS

Insert lines and Adjust the position in each logic statement.

In order to avoid mistakes, I make this branch based on #92 branch.
After #92 , I rebase this branch to the master of that time. Sorry 🙇

plz attach [DO NOT MERGE] prefix in title, if this pull request is not ready to merge into master.

I'll be careful. Thank you very much. 🙏

#92 has been merged. Please do merge / rebase 🙏

merged. plz check! 🙇

LGTM 👍


Update Pages “about”

Automatically generated by Netlify CMS

👷 Deploy Preview for chic-shortbread-66a66b processing.

Name
Link

🔨 Latest commit
11d5a335a977dccf95fe0fd1316e69c2e0ac414f

🔍 Latest deploy log
https://app.netlify.com/sites/chic-shortbread-66a66b/deploys/655c3f1a4526aa00085f7eb1


Getter example

It wasn't immediately obvious how to actually loop over this array from the examples. Something like this would be helpful to newcomers:
var mat = ndarray([1, 2, 3, 4, 5, 6, 7, 8, 9], [3,3])
var m = mat.hi(2, 2)

console.log('at: %s', m.get(2, 2));
for(var i=0; i < m.shape[0]; ++i) {
  for(var j=0; j < m.shape[1]; ++j) {
    console.log('(%s, %s): %s', i, j + m.offset, mat.get(i, j + m.offset));
  }
}

I can open a PR to add it to the Readme, if you're interested, or if there's a better way to improve this, so it's more generic.

Looks good to me!  If you want to write something I will merge it in.


[synapse] Update CHANGELOG for march release

All SDK Contribution checklist:
This checklist is used to make sure that common guidelines for a pull request are followed.

[x] Please open PR in Draft mode if it is:

Work in progress or not intended to be merged.
Encountering multiple pipeline failures and working on fixes.

[x] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[x] I have read the contribution guidelines.
[x] The pull request does not introduce breaking changes.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. (Track 2 only)
[ ] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK. Please double check nuget.org current release version.

Additional management plane SDK specific contribution checklist:
Note: Only applies to Microsoft.Azure.Management.[RP] or Azure.ResourceManager.[RP]

[ ] Include updated management metadata.
[ ] Update AzureRP.props to add/remove version info to maintain up to date API versions.

Management plane SDK Troubleshooting

If this is very first SDK for a services and you are adding new service folders directly under /SDK, please add new service label and/or contact assigned reviewer.
If the check fails at the Verify Code Generation step, please ensure:

Do not modify any code in generated folders.
Do not selectively include/remove generated files in the PR.
Do use generate.ps1/cmd to generate this PR instead of calling autorest directly.
Please pay attention to the @microsoft.csharp version output after running generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version,

Old outstanding PR cleanup
Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.

Looks like a network issue...?
/mnt/vss/_work/1/s/eng/service.proj : warning : Unable to load the service index for source https://api.nuget.org/v3/index.json.
/mnt/vss/_work/1/s/eng/service.proj : warning : Unable to load the service index for source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json.
/mnt/vss/_work/1/s/eng/service.proj : warning : Unable to load the service index for source https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json.
/mnt/vss/_work/1/s/eng/service.proj : error : Unable to find package Microsoft.Build.Traversal. No packages exist with this id in source(s): azure-sdk-for-net, azure-sdk-tools, nuget.org
/mnt/vss/_work/1/s/eng/service.proj : warning : Unable to load the service index for source https://api.nuget.org/v3/index.json.
/mnt/vss/_work/1/s/eng/service.proj : warning : Unable to load the service index for source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json.
/mnt/vss/_work/1/s/eng/service.proj : warning : Unable to load the service index for source https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json.
/mnt/vss/_work/1/s/eng/service.proj : error : Unable to find package Microsoft.Build.Traversal. No packages exist with this id in source(s): azure-sdk-for-net, azure-sdk-tools, nuget.org
/mnt/vss/_work/1/s/eng/service.proj : error MSB4236: The SDK 'Microsoft.Build.Traversal' specified could not be found.

/check-enforcer override

/check-enforcer override


Add threshold options to time ago pipe

Provide threshold functionality to time ago pipe. Based on https://github.com/urish/angular2-moment/issues/108

Thanks!
I believe it will be better to use an option object instead of introducing three more positional args, e.g.
date|amTimeAgo:{omitSuffix:false, fullDateThreshold: 2, fullDateFormat: 'YYYY-MM-DD'}
instead of what we currently have -
date|amTimeAgo:false:2:'YYYY-MM-DD'
Since we don't want to break backward compatibility (at this point), let's also accept
date|amTimeAgo:false and date|amTimeAgo:true
as valid values (i.e.. if the options object is a boolean value, it will actually be interpreted as the value of omitSuffix).
If you can make these changes and update the PR accordingly, I will happily merge 👍

Closing due to inactivity. If still relevant, ping me and I'll reopen

is there a way to make amTimeAgo refresh on locale change or in a time interval?


Add EQ statements for MP:0030960 and MP:0030938

Add EQ statements for abnormal diapedesis MP:0030960 and abnormal reticulophagy MP:0030938

Added the EQ statements for abnormal diapedesis MP:0030960 and abnormal reticulophagy MP:0030938


Modal Overlay stays when navigating with a md-modal-triggers button

When having a modal open, and you click a button within the modal that has a modal trigger attribute and also redirects you to a new route, the modal closes and the page gets redirected, however the modal overlay stays there until the page is clicked where it then fades out.  I just fail to see a use-case. :smile:
What the modal-trigger attribute basically does is create a new modal. So if you click on that it invokes openModal, creating an overlay.
There are only three cases which actually close the modal and thus remove the overlay:

clicking outside the modal with dismissible set
pressing ESC while the modal ist displayed
clicking on a button with class modal-close set

Maybe it's best if the button which redirects the page also closes the modal (by having a modal-close class).
Having said that, there is a closeModal function in Materialize we could provide in the attribute to be able to have the router close the overlay, f.i. with an event subscribed to the router.
But I think I will have to try this. As I'm typing this post it's all a little abstract. :smile:

I've created a gist to reproduce but I don't get this behaviour. Can you please have a look at this:
https://gist.run/?id=46ed13418d516f3af2c8739998acfd91
Maybe adjust it so that it reproduces the bahaviour you mentioned above.
I've also tried to put a modal-trigger attribute on the "agree" button in this modal. I've deleted this experiment to have a "clean" setup for you.

To be more specific: I can actually reproduce this when I leave out the modal-close class on the "agree" button in the modal. But adding it again resolves this.

Hey, sorry, I meant to write modal-close :) Let me look into the gist and will let you know

Weird, I have the exact flow within my application. The modal actually goes away however the background stays. I made sure modal-action and modal-close classes are present on the button too.

Strange.. Maybe you have done something in another way that is not too obvious. :smile:

Is still happening? Couldn't reproduce it in the last two weeks..

Still happening on my local. I just have some issues which aren't allowing
me to upload onto the staging server to show you. Will keep you updated.
On Wed, May 4, 2016 at 9:13 PM, Daniel Bendel<EMAIL_ADDRESS>wrote:

Is still happening? Couldn't reproduce it in the last two weeks..
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/167#issuecomment-216970749

We figured it out. It is about navigating away from the page before the close modal can execute. A hack was to simulate a click on the overlay after router navigation. Not nice but works for now. Below is the solution:
https://gist.github.com/Kukks/9ea882e33471784ce2a12c5ddc1baa23

Thanks for sharing this. You could also subscribe to a router event, f.i. "router:navigation:complete" (see here for a good explanation and list of all events).
I'm mentioning it since according to this SO post ObserverLocator should not be used directly.


Error setting up Degree Days

After configuring the integration no entities are made, and an error comes up saying the configuration failed. The log file says the following:
2024-01-27 19:53:07.421 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Degree Days for degree_days
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/degree_days/__init__.py", line 28, in async_setup_entry
    coordinator = DegreeDaysData(hass, entry)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/degree_days/__init__.py", line 84, in __init__
    CONF_DHW_CONSUMPTION: data.pop(CONF_DHW_CONSUMPTION, DEFAULT_CONSUMPTION_USE_OTHER),
                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NameError: name 'DEFAULT_CONSUMPTION_USE_OTHER' is not defined

I fixed this by adding the DEFAULT_CONSUMPTION_USE_OTHER constant to const.py:
DEFAULT_HEATPUMP = False
**DEFAULT_CONSUMPTION_USE_OTHER = 0**

And added the import in init.py:
CONF_STARTMONTH, CONF_WEATHER_STATION,
DEFAULT_CONSUMPTION_SENSOR, DEFAULT_DHW_CONSUMPTION, **DEFAULT_CONSUMPTION_USE_OTHER,**
DEFAULT_HEATING_LIMIT, DEFAULT_HEATPUMP,

Thanks, I think we should change DEFAULT_CONSUMPTION_USE_OTHER  to DEFAULT_DHW_CONSUMPTION in the init.py file

Fixed in 1.2.0


imp: generate metadata if none provided + tests

Hey @Keegan-Evans - looks like there are some linting-related errors here - can you fix those up? Thanks!

Passing now.


NUT driver for UPSPlus

I wrote a NUT driver for UPSPlus (EP-0136), and I would appreciate any feedback before I submit a PR to the NUT repo.
Make sure that you have NUT installed:
$ sudo apt-get install nut
To build it:
You can clone my forked repository from here:
$ git clone https://github.com/dacarson/nut
$ cd nut
Generate the configuration files:
$ ./autogen.sh
Generate the Makefiles for the items we need to build and their path
$ ./configure --with-linux_i2c --with-statepath=/run/nut --sysconfdir=/etc/nut --with-user=nut --with-group=nut --with-pidpath=/run/nut
parameters meanings
--with_linux_i2c Build the NUT i2c linux UPS drivers
--with-statepath & --with-pidpath Location to put shared file & the PID file (default location for bullseye is /run/nut)
--sysconfdir Location of the NUT configuration files (default location for bullseye is /etc/nut)
--with-user & --with-group Username and Group to run the driver as (default for bullseye is nut:nut)
Build all the components
$ make all
Test the driver to make sure that it will run ok
$ sudo ./drivers/upsplus -DDD -s pi -x port=default -d 1
If it tests out ok, then copy it to the right directory for bullseye:
$ sudo cp upsplus /usr/lib/nut
Add this section to your /etc/nut/ups.conf:
[pi]
    driver = upsplus
    port = /dev/i2c-1
    desc = "RaspberryPi UPSPlus"

Make sure that the NUT upsplus driver can access the i2c-1 bus:
$ sudo chmod a+rw /dev/i2c-1
(The default user/group for a nut installations (user: nut, group: nut) doesn't have read-write access as the i2c bus device is created by default as user and group read-writable that nut is not a part of. This is something I need to work out how to fix because this is reset when the RPi reboots.)
Now restart your NUT driver
$ sudo systemctl restart nut-driver
Test that it is running correctly:
$ upsc pi

Hi dacarson,
Thanks for your effort, I will arrange our enginner to test it out, and give you a feed back, that looks nice!


Units improvements

Hello,
Some suggestions to improve the units conversion:
1- The built-in "g" value is 9.81 without units. I think it would be more useful to have it with units : 9.81m/s²
2- While trying to enter energy density such as E = 5J/g  It considers g as "9.81" instead of as "gram". Thus there is a confusion between the two. I'm ot too sure how to solve this. Perhaps having g as "gram" per default unless g is stated as "9.81m/s^2".
3- Adding the units of viscosity : Poise, Centipoise, Stokes, Centistoke could be useful. Those units are always a hassle to play with.
Thanks for your great work

You can just overwrite g: g=9.81N/kg

2 - yes, it's problem with units syntax, workaround for it: E=5j/1g.

There is only one problem with writing E = 5J/1g. The program will hot treat this as composite units of type J/g and will decompose them to m2/s2. To retain the composite units, also add vertical bar conversion at the end:
E = 5J/1g|J/g


fix: resolve issue with matchDataPoint not working

This commit fixes the problem of match datapoints, it will change the status in front-end if it is already existing in CB

@Bhavdeep13 please pull from the main branch, after this https://github.com/N5GEH/n5geh.tools.mqtt-gateway/pull/25 is merged. Because here there is a new function/endpoint that enable partial update of the datapoints

Done changes required for #25
Passed all test case

Hey @Bhavdeep13 did you merge from branch 17? or you copy the implementation there manually?

Hey @Bhavdeep13 did you merge from branch 17? or you copy the implementation there manually?

I have hopefully solved the conflict

@Bhavdeep13 The implementation looks good. Can you solve the conflict? After that we can merge

Done


xcode 12 + ios14: image displays as blank view

Describe the bug
After updating to xcode 12 and ios 14 - any image (wither from network or from local) displays as blank view.
Dependency versions

React Native version: 0.62.2
React version: 16.11.0
React Native Fast Image version: 8.3.2

I found similar issue for react-native's Image: https://github.com/facebook/react-native/issues/29279
Note: if these are not the latest versions of each I recommend updating as extra effort will not be taken to be backwards compatible, and updating might resolving your issue.

Fixed by #729

when will the new release come out?

+1

+1

Facing the same issue in RN0.63.2 and<EMAIL_ADDRESS>

For me running 'pod update' in the ios folder fixed the problem, it will automatically update SDWebImage to 5.9.1

Confirming, @jvandereijk's solution works for me as well (Even with old version of React Native 0.61.5)

Confirming too (RN 0.61.5)
To anyone who had problems to run pod update:
https://stackoverflow.com/a/59943058/1288541
1 - pod repo remove trunk
2 - pod update

Confirming too (RN 0.61.5)
To anyone who had problems to run pod update:
https://stackoverflow.com/a/59943058/1288541
1 - pod repo remove trunk
2 - pod update

i have RN ver 0.59.10, is this safe for me to use this method?
thank you

@krisnailafat I'm sorry, but I don't know, need to test it.
But if I try to guess, I believe you will have to update RN too because the react-native-fast-image explicitly says it's need to have RN 0.60+ https://github.com/DylanVann/react-native-fast-image#usage

@krisnailafat I'm sorry, but I don't know, need to test it.
But if I try to guess, I believe you will have to update RN too because the react-native-fast-image explicitly says it's need to have RN 0.60+ https://github.com/DylanVann/react-native-fast-image#usage

i try to update and its ok
and then disable fallback of react-native-fast-image
It's work on IOS 14
thank you

Does anyone has a clue if it's possible to update SDWebImage for a project that's not using pods? We're locked in RN < 0.60 and we don't manage our dependencies with pods. I believe It's the same case as @krisnailafat.
This is making it so that react-native-fast-image is not able to render images in iOS 14.

@tibuurcio I believe that you will need to fork the react-native-fast-image in the commit that you use in your project, than change de xcode project dependency of react-native-fast-image. Maybe it's not so easy...

Facing the same issue in RN0.63.3 and<EMAIL_ADDRESS>

Facing the same issue in RN0.63.3 and<EMAIL_ADDRESS>
For those who have this issue. it's a known bug with iOS 14. the solution is to use a patch that fix this issue in node_modules.
this library does it very good. https://github.com/huylvdev/react-native-fix
For any issue with images disply on iOS 14 , Here iHow to fix :
1-  yarn add https://github.com/huylvdev/react-native-fix-image or npm install https://github.com/huylvdev/react-native-fix-image --save
2- npx react-native-fix-image
3 - Rebuild the project. that's all.
NB : The npx npx react-native-fix-image will run a script that will patch the Lib responsible to this behavior.
if you want to avoid runing this script each time you make a build of your app , in the script section inside the package.json , just add the command npx react-native-fix-image
Ex: script:{            ....           "start": "react-native start",           "postinstall": "npx react-native-fix-image" }
That's All 💯

https://github.com/huylvdev/react-native-fix-image

It's still blank load local pictures

Confirming too (RN 0.61.5)
To anyone who had problems to run pod update:
https://stackoverflow.com/a/59943058/1288541
1 - pod repo remove trunk
2 - pod update

Worked for me. I'm using React-native 0.61.5 with latest XCode for iOS 14. I was using Image from ReactNative and Shoutem UI.
Both didn't worked and finally replaced all with react-native-fast-image. Works like a charm.

Hello, if people are in the same situation than me: RN < 0.60 (legacy project) and show blank images on IOS >= 14, I made a fork from FastImage 6.x.x (last version supported by RN < 0.60) with the latest SDWebImage.
In my case the project is build with Xcode 12.5.1 (because 13 is not compatible with RN 0.59)
use:
  {
    "react-native-fast-image": "titouancreach/react-native-fast-image",
  }

hope this help