Slow response times interacting with data lineage chart on large projects

Describe the bug
Users open the data lineage graph by clicking the button at the bottom-right corner of the page. It takes 2-3 seconds for the graph to load. This issue persists beyond the initial load too. Most interactions take 2-3 seconds to complete when several nodes are selected in the lineage graph. Response times are also slow when using selectors; the page becomes briefly unresponsive and keystrokes aren't immediately input to the text field.
Steps To Reproduce
Serve the data catalog for a large dbt project with relatively large manifest.json and catalog.json files; in my example,  300+ models and 1800+ tests generate a 6.2 MB manifest.json and a 1.2 MB catalog.json.
Click the "data lineage chart" button on the bottom-right corner of the page.
See profiling output below for benchmark.
Expected behavior
The data lineage chart should load under 500ms (or some other arbitrary threshold determined by users' tolerance).
Screenshots and log output
The "View Lineage Chart" button:

My profiling output:

System information
Which database are you using dbt with?

[ ] postgres
[x] redshift
[ ] bigquery
[ ] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
installed version: 0.18.0
   latest version: 0.18.1

Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation

Plugins:
  - bigquery: 0.18.0
  - snowflake: 0.18.0
  - redshift: 0.18.0
  - postgres: 0.18.0

The operating system you're using:
The data catalog is served with the base Docker image library/nginx:1.19.0-alpine.
The documentation is generated with the base Docker image library/python:3.7.7-slim-buster.
The output of python --version: 3.7.7

I'm not sure where this issue currently stands but @vogt4nick, @drewbanin and @jtcohen6 - we (kraftheinz engineering) are just about wrapped up with converting dbt docs over to React. One of the first things we did was compressed the manifest.json file during the build which solved all of the performance issues. For context, we currently have over 115 projects and the site loads in less than 5 seconds after that change.
We will have a repo to share with everyone once we are done packaging it up for public consumption.

@kevnoo Very cool!! I'd love to see, when it's ready to share

super cool and very exciting to hear @kevnoo! Anything we can help out with?
Also - wondering if you're thinking about upstreaming these changes. Did you rebuild the site from scratch, or does it look like a branch off of the existing docs site? Would love to hear more if you're able to share!

We are very close to publishing the code but would be open to chatting directly prior to (or after).
The site itself looks exactly the same (for the most part). We are using the manifest.json but do not use the catalog.json or run_results.json. The reason for this is because we have also integrated it directly with Snowflake via a backend API. We also had some issues with the catalog.json due to the way we have implemented DBT across all of our projects.
The biggest change was a massive revamp to the lineage graph - this is all done now using HTML Canvas.
As for upstreaming the changes, there would be some work required to have it act just like the existing version. We have not gone through the process to allow it to be part of the dbt docs generate process - this is something we are definitely open to but would need some guidance on. And obviously there would need to be a version that does include the use of run_results and catalog. These are all things we agree with and would be open to helping out on but as of now can't prioritize it due to a lack of time.

@kevnoo any update on if/when you'll be publishing the React version of dbt docs?

Hey @ajbosco - sorry for the delay! It's ready.  @AlexanderKutz is going to work on publishing it over the next couple days.

Hello @ajbosco and anyone else interested in checking it out, I have published the react version here

+1 dbt Cloud user - the slow response time of the data lineage chart for their larger project made this feature relatively unusable. Any time they tried to move or modify the chart, it lags and takes a few seconds to load correctly again

+1. The page crashes with our large DBT repo when interacting with the lineage chart.
Here are some number for reference.
Found 1042 models, 1071 tests, 0 snapshots, 0 analyses, 493 macros, 0 operations, 29 seed files, 650 sources, 10 exposures, 0 metrics

I am also facing the same issue as mentioned by @StepienTomasz while loading the lineage graphs for the "sources". We are getting the page unresponsive and it loads after 3-4 minutes.

Agreed it is very slow and causes a really poor user experience.
Would love to see this move forward! We're evangelizing dbt at the org and the docs are a large part of that.

FYI on what a full rewrite can look and feel like for dbt docs: https://dagster.io/blog/dbt-docs-on-react

@nobgb no updates as I believe official dbt docs development will go through dbt Cloud only. I'll let the dbt maintainers speak to it more!

couldn't find the info about it in dbt docs. Would you be so kind to share those with me, i'd like to follow that


Integrate spin_telemetry to support OTel

Integrates spin_telemetry into the shim so that we get OTel support.
The workaround to prevent the panic is to point at versions of spin and spin triggers that don't use the tracing-log feature.
TODO:

[ ] Point at a tagged version of spin with the new changes
[ ] Point at a tagged version of trigger-command with the new changes
[ ] Point at a tagged version of trigger-sqs with the new changes

spin_telemetry has a fmt_layer on the tracing subscriber that sends tracing events to STDERR. My testing shows that now that we have this fmt_layer if the user sets RUST_LOG=info they'll get additional logs. This is a good thing IMO.
@Mossaka do you know how environment variables are passed through to the shim in SpinKube? In my local testing I've been doing something like sudo ctr run ... --env RUST_LOG=info. In SpinKube is it as simple as setting an environment variable on the podspec of a SpinApp for it to be passed down to the shim? This isn't just relevant for setting something like RUST_LOG=info, but also determines how OTEL_EXPORTER_OTLP_ENDPOINT would be set.

ENV variables are passed to shims via containerd. Set the ENV variable before starting containerd or configure the systemd service with the env's

ENV variables are passed to shims via containerd. Set the ENV variable before starting containerd or configure the systemd service with the env's

Sorry I'm still not clear. Are you implying that in a K8s context the env variable needs to be set on the node? Is there a way to set it on the pod and have containerd pick it up?

@calebschoepp, to elaborate on @jsturtevant's comment, it depends how containerd is executed.
For example, if using systemd, you can update the systemd log level for the containerd service on each node byt adding an environment variable to the service:
systemctl stop containerd
systemctl edit containerd

Then add this to the containerd file that comes up:
[Service]
Environment="RUST_LOG=info"

Restart the service
systemctl restart containerd

@calebschoepp, to elaborate on @jsturtevant's comment, it depends how containerd is executed. For example, if using systemd, you can update the systemd log level for the containerd service on each node byt adding an environment variable to the service:
systemctl stop containerd
systemctl edit containerd

Then add this to the containerd file that comes up:
[Service]
Environment="RUST_LOG=info"

Restart the service
systemctl restart containerd

I'm following that, but I'm specifically curious how containerd works in a K8s environment. In other words how/where would a SpinKube user set RUST_LOG or OTEL_EXPORTER_OTPL_ENDPOINT?

For a SpinKube user, i'd imagine we'd add the ability to do this through the runtime class manager

Hey folks this is ready for review!


Coords are different on android and iphone devices

Bug
Version Number of Plugin: 3.0.4
Device Tested On: Samsung Galaxy S5 (Android 6.0.1), iPhone 5 (iOS 9.3)
Expected Behavior
Coords of current location are the same (or approx the same) in both android and ios.
Actual Behavior
Android returns the coords -XX.1329328, -XX.885063 while in iphone the coords returned are -XX,1328481193063, -XX,8850149120623 (the values XX are the same in both cases). When I set a pin in android I can see it on another android but not an iphone device and vice versa.
Steps to reproduce the Behavior
Use geolocation to get your current location on both phones
Position position = await CrossGeolocator.Current.GetPositionAsync(30000);

Checking both iphone and androids coords on google maps it appears that both coords are correct they are just a little off which is fine since the gps on each device wont be exactly the same... I'm guessing the issue is on the maps end and not when the locations coords are returned.


Test pr check

Fixes

Description

Type of change

[ ] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review

How to test or reproduce?

Browser conformance:

[ ] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

This PR fixed the problem with bonfire. @rohitkrai03 could you force merge this please?

/approve
/lgtm


Vcon 293 demolink

(DO NOT MERGE YET)
VCON-293
Removed the old scenario and images (Note, they are not actually removed yet but once confirmed, can be removed from the project)
Added a button to link to the virtual concierge demo site.
Acceptance Criteria
Get the acceptance criteria for the story and/or task you are working on and put it all here.
Test Instructions

Steps on...
how to test...
or inspect this...
feature manually.

Help Requested

Things that you (the submitter)...
want reviewers to pay very close...
attention to when they review this PR.

Checklist

[ ] Strings use placeholders for translation (No hard coded strings)
[ ] Unit tests have been added/updated
[ ] Update CHANGELOG

Product and Sprint Backlog
Trello

English:
https://av-va.alpha.service.canada.ca/en
French:
https://av-va.alpha.service.canada.ca/fr

I will make the change in a new PR.


Fixed installation command for VuePress (2.0.0-beta.49) in docs

Related ISSUE
> Input follow ISSUE URL address

Type Of Change

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[ ] ✨ New feature (non-breaking change which adds functionality)
[x] 📝 Document (This change requires a documentation update)
[ ] 🎨 Theme style (Theme style beautification)
[ ] ⚠  Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] 🔨 Workflow (Workflow changes)

Clear Describe

A clear and concise description of what update for target.

Fixed vuepress installation command of VuePress (2.0.0-beta.49).
Description
What's fixed:

pnpm Vuepress installtion command
yarn Vuepress installation command
npm Vuepress installation command
Refer to docs - vuepress

Test Case

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test case.

According to docs

With pnpm, you may need to install vue and @vuepress/client as peer-dependencies, i.e. pnpm add -D vue @vuepress/client@next.

Thanks!


Wildcard?

I paste a lot of content that has sources in them which I don't need in my notes. Would it be possible with this plugin to highlight the text, trigger the check and have it replace all instances of things like:
[1]
[2]
[3]
[123]
To achieve this I would need a wild-card.
I would also like to simply delete these, so the replace should be... nothing.
[.] |+|
Is this possible?

You may be looking for a regex plugin. That's beyond the scope of this plugin. I found this plugin: https://github.com/Gru80/obsidian-regex-replace - but I can't say whether it will fit your needs or work at all.
As for regex-triggered snippets in particular, that is something I did consider when starting this plugin. (A YAGNI situation.) It would in fact be very simple to add a regex sort of snippet command, based on selection. You'd just select the text, trigger the command, and if the selection matched the regex, it would replace. Seems easy enough. I'd have to find a way of letting users specify regex snippets apart from text snippets, but sure. It doesn't seem too hard either. I'll keep this in mind.
Maybe if I have time, I'll think about writing a plugin solely for regex (considering other plugins seem unmaintained?), but I don't have any such plans right now.


csv-import build issue

Maybe I've overlooked something. I'm attempting to build the csv-import tool.
cd noms/samples/go/csv/csv-import
go build

Error I receive:
./importer.go:52: cannot use "github.com/tsuru/gnuflag".CommandLine (type *"github.com/tsuru/gnuflag".FlagSet) as type *"github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag".FlagSet in argument to spec.RegisterDatabaseFlags
./importer.go:53: cannot use "github.com/tsuru/gnuflag".CommandLine (type *"github.com/tsuru/gnuflag".FlagSet) as type *"github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag".FlagSet in argument to profile.RegisterProfileFlags

System Info:
Red Hat Enterprise Linux Server release 7.2 (Maipo)
go version go1.6.3 linux/amd64

Any ideas?

Thanks for trying our Noms. Can you double check your $GOPATH and send us the output (pwd) of where you have the noms repo locally too?

Another question: do you have github.com/tsuru/gnuflag? I wonder if the way we use go vendoring is messing something up.

E.g. ls $GOPATH/github.com/tsuru/gnuflag

tsuru is in the noms/vendor/ area AFAICT

[teg csv-import]$ pwd
/usr/local/go/dev/src/github.com/attic-labs/noms/samples/go/csv/csv-import

[teg csv-import]$ echo $GOPATH
/usr/local/go/dev

[teg csv-import]$ ls $GOPATH/github.com/tsuru/gnuflag
ls: cannot access /usr/local/go/dev/github.com/tsuru/gnuflag: No such file or directory

Hm. The error message makes it look like it's finding 2 copies of gnuflag, one in github.com/tsuru/gnuflag and the other (correct) one in github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag.
I realised I should have asked for ls $GOPATH/src/github.com/tsuru/gnuflag i.e. was missing the src in the component there.
Can you also try building with export GO15VENDOREXPERIMENT=1? I don't expect it'll help but maybe Go will surprise me.

Looks to be the same.
[teg csv-import]$ ls $GOPATH/src/github.com/tsuru/gnuflag
ls: cannot access /usr/local/go/dev/src/github.com/tsuru/gnuflag: No such file or directory

[teg csv-import]$ export GO15VENDOREXPERIMENT=1
[teg csv-import]$ go build
# _/usr/local/go/dev/src/github.com/attic-labs/noms/samples/go/csv/csv-import
./importer.go:52: cannot use "github.com/tsuru/gnuflag".CommandLine (type *"github.com/tsuru/gnuflag".FlagSet) as type *"github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag".FlagSet in argument to spec.RegisterDatabaseFlags
./importer.go:53: cannot use "github.com/tsuru/gnuflag".CommandLine (type *"github.com/tsuru/gnuflag".FlagSet) as type *"github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag".FlagSet in argument to profile.RegisterProfileFlags

Bleh.
Perhaps you can investigate yourself whether there is a spurious version of gnuflag sitting around somewhere? It does look like they added a CommandLine thing in a subsequence patch to the initial: https://github.com/tsuru/gnuflag/blame/master/flag.go. The symptoms suggest you have an older version without CommandLine and our vendor version with it.

Seems unlikely as this is a fresh install, but I will look a bit. Thanks for the assistance so far. I'm pretty interested in evaluating the tools usage. My specific use case is to retrieve the delta's for ETL loads.

so... it works on Mac but not on Linux?

@kalman correct.

Maybe Linux has that Go library installed globally, if that's something Linux supports. We don't have any Linux machines over here unfortunately.

um @kalman we have a crapload of them inside ec2 :).

FTR, I just built/installed csv-import fresh on that same go version, works fine, system info:
$  cat /etc/*-release
NAME="Amazon Linux AMI"
VERSION="2016.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.03"
PRETTY_NAME="Amazon Linux AMI 2016.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.03:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"
Amazon Linux AMI release 2016.03

It doesn't look to me like it is finding two copies ... the error says:
cannot use "github.com/tsuru/gnuflag".CommandLine
(type *"github.com/tsuru/gnuflag".FlagSet)
as type *"github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag".FlagSet
in argument to spec.RegisterDatabaseFlags
So we're trying to pass an instance of github.com/tsuru/gnuflag.FlagSet as github.com/attic-labs/noms/vendor/github.com/tsuru/gnuflag.FlagSet ... somehow.
I'm not sure where the path with /vendor/ in it is coming from. That doesn't appear in our source anywhere. Vendoring is not supposed to affect type names.
You've definitely not made any changes to the git repo, right?
Do other go-based projects that use vendoring build on that machine?
I'm sad because your use case sounds ideal and I'd like you to be able to evaluate Noms.

I suppose the next step would be to provision an instance of this version of RHEL inside EC2 just to be sure.

I just tried this on a new RHEL machine and it worked. There must be something wrong with the other machine. I was try a fresh install on the other machine. Here are the steps I took on the new machine.
[teg ~]$ cat /etc/*-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

[teg ~]$ go version
go version go1.6.3 linux/amd64

[teg ~]$ git clone https://github.com/attic-labs/noms $GOPATH/src/github.com/attic-labs/noms
Cloning into '/usr/local/go/dev/src/github.com/attic-labs/noms'...

[teg ~]$ go install github.com/attic-labs/noms/cmd/noms

[teg csv-import]$ cd $GOPATH/src/github.com/attic-labs/noms
[teg noms]$ cd samples/go/csv/csv-import

[teg csv-import]$ go build

I'm closing this because it appears to be a config issue with my other machine. I appreciate everyone's help.

Phew. Glad to hear. I'd love to hear what you get up to with Noms, let us know if slack.noms.io if you have any questions.

Thanks @aboodman. I reinstalled it on the other machine and got it to work too! I joined the slack channel. For the moment I'm exploring using it for understanding the deltas that result from a weekly ETL process I have. It would speed up my process if I only process the deltas.


CI: update docker-image ci to build multi-platform images (CON-1371)

Description

This pull request enhances the Docker image CI workflow to include both arm64 and amd64 images for the ESP Matter development Docker image. Previously, as of January 10, 2023, the arm64 build was discontinued due to space limitations on GitHub runners when building for multiple architectures sequentially on a single runner. This update resolves the space issue by adopting a matrix approach as recommended by Docker, which distributes the build process for each platform across multiple runners.
The motivation to also build an arm64 image comes from wanting to develop code inside a container on an Apple Silicon machine.

Related

See example workflow run here.
Testing

Tested the changes by forking and commenting out '# Disable the job in forks'. I ran the CI workflow with the docker credentials connected to my personal docker account. The resulting images can be seen here. I then tested automated build on two runners, one ubuntu amd64, and a self hosted macOS arm64 runner using the new docker images which resulted in success.

Checklist
Before submitting a Pull Request, please ensure the following:

[x] 🚨 This PR does not introduce breaking changes.
[x] All CI checks (GH Actions) pass.
[x] Documentation is updated as needed.
[x] Tests are updated or added as necessary.
[x] Code is well-commented, especially in complex areas.
[x] Git history is clean — commits are squashed to the minimum necessary.

@Will-Panton can you please squash the commits.

@Will-Panton can you please squash the commits.

Done ✅

@Will-Panton PR is merged! Thank you for your contribution!


Javascript support inside .vue files

Hi! 👋 First of all, love your extension!
Secondly, I noticed recently that even though Javascript is a supported language, the extension is confused by *.vue files and refuses to document JS code within

Seems that it can generate the documentation, but the shortcut is not working, so you have to manually press the Generate Docs button in the extension setting.
This fix would help me a lot.


Error installing SigNoz when executing the Schema Migrator with external ClickHouse

I have a problem installing SigNoz with external ClickHouse since a change in the schema migrator Helm Chart.
When I run this comamand to install signoz 0.32.2 via helm:
helm install system-monitor signoz/signoz -f signoz-values.yaml --namespace system-monitor
with the following yaml file to override some values:
global:
  storageClass: gp2
  cloud: aws

clickhouse:
  enabled: false
  installCustomStorageClass: false
  size: 80Gi
  zookeeper:
    enabled: false

externalClickhouse:
  host: <IP_ADDRESS>
  cluster: cluster
  database: signoz_metrics
  traceDatabase: signoz_traces
  user: "default"
  password: "xxx"
  existingSecret:
  existingSecretPasswordKey:
  secure: false
  verify: false
  httpPort: 8123
  tcpPort: 9000

schemaMigrator:
  enabled: true

I get the following error in the pod logs:
"failed to parse dsn: parse.. port"
This happens only when using schema migrator and external ClickHouse.
I tracked down the error and it's related to this line of code in the chart:
{{/*
Common ClickHouse ENV variables and helpers used by SigNoz
*/}}

{{- define "schemamigrator.dsn" }}
{{- if .Values.clickhouse.enabled -}}
{{- printf "tcp://%s:%s?username=%s&password=%s" ( include "clickhouse.servicename" . ) ( include "clickhouse.tcpPort" . ) ( .Values.clickhouse.user ) ( .Values.clickhouse.password ) -}}
{{- else -}}
{{- printf "tcp://%s:%s?username=%s&password=%s" ( required "externalClickhouse.host is required if not clickhouse.enabled" .Values.externalClickhouse.host ) ( default 9000 .Values.externalClickhouse.tcpPort ) ( .Values.externalClickhouse.user ) ( .Values.externalClickhouse.password ) -}}
{{- end }}
{{- end }}

Where "tcp://%s:%s?username=%s&password=%s" is handling the port with float on the dsn name and gives the error when executing the migration.
I tried an old version (0.25.4) and work perfectly.
The problem is related to this exact commit:

https://github.com/SigNoz/charts/commit/b4e625da15a81dfd9d411941d06e59e86458f9f8

I think that changing the -dsn tcp route to handle the port in another way that doesn't prints float64 literally in the route would fix the error and fix the issue.
I would be pleased to provide any further information if it's needed.
Thanks,
regards team!

Please change the type of the port to string in the externalClickhouse config to get around the issue temporarily.

This is encountered by others as well https://github.com/SigNoz/signoz.io/pull/1422

Brilliant, issue solved. Thank you!


[Bug] Axios requests in pre-request scripts behave differently in bruno-app and bruno-cli

In pre-request script I use Axios requests which uses Axios feature that if content-type header is set to application/x-www-form-urlencoded and data is JS object then it is automatically serialized and encoded to urlencoded format. It is documented here: https://axios-http.com/docs/urlencoded#automatic-serialization and it should be available in Axios (if I'm not mistaken) from version 1.0.0
But it is working as expected only in bruno-app and not working correctly in bruno-cli (data object is sent serialized as json and not urlencoded)
Minimal request how to reproduce it:
meta {
  name: test
  type: http
  seq: 1
}

get {
  url: https://www.google.com
  body: none
  auth: none
}

script:pre-request {
  const axios = require('axios');
  let res = await axios({
    url: 'https://webhook.site/ce3d32c9-dbc1-42b5-8894-195beb0bdfea',
    method: 'post',
    data: {
      grant_type: 'client_credentials'
    },
    headers: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  });
}

I can see on webhook.site that if such request is executed in bruno-app, then raw request body is:
grant_type=client_credentials

If I run this request in bruno-cli then the raw body is:
{
  "grant_type": "client_credentials"
}

bruno-app version: 0.27.0
buno-cli version: 0.15.1

It's strange it is still working correctly also in 0.27.2 binary but if I run bruno-app from the latest sources then it is working incorrectly the same way as in bruno-cli.

It is caused by inconsistency in Axios versions used in bruno packages. Some of them uses ^1.5.1 and some of them ^0.26.0 and then there is axios.defaults.requestTransformer differently defined (with and without support for this automatic transformation of form url encoded data). If I updated Axios versions to ^1.5.1 in bruno-js and bruno-app then it starts working consistently.


Keyboard do not pop up with shouldAutoFocus to true in mobile browsers

Describe the Feature Request
When shouldAutoFocus is set to true, the field in focused on initial render but when the app is opened in a mobile browser the keyboard do not pop up. We have to click the field to show keyboard

Describe Preferred Solution

@ritikbanger I checked in both safari iOS (16.0) and chrome browser on android. Both had the same problem.
The field is focused but the keyboard do not pop up unless pressed on the field again to start typing.

It is working fine on Android. Please check the codesandbox: https://codesandbox.io/s/react18-input-otp-0nxzx7?file=/src/App.js

Yes it works on android devices

Kindly refer to this comment here:
https://github.com/ritikbanger/react18-input-otp/discussions/31#discussioncomment-6405382


[BUG]: get error while run as a docker container

How are you running AnythingLLM?
Docker (local)
What happened?
the container exited with error, check with cmd:  sudo docker logs xx, get below error message:
Collector hot directory and tmp storage wiped!
Document processor app listening on port 8888
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.3.1) to ./node_modules/@prisma/client in 605ms

Start using Prisma Client in Node.js (See: https://pris.ly/d/client)

import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)

import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": SQLite database "anythingllm.db" at "file:../storage/anythingllm.db"

Error: Schema engine error:
SQLite database error
unable to open database file: ../storage/anythingllm.db

Are there known steps to reproduce?
 export STORAGE_LOCATION=/mnt/anyllm/docker_cotainer && mkdir -p $STORAGE_LOCATION && touch "$STORAGE_LOCATION/.env" && sudo docker run -d -p 3001:3001 --cap-add SYS_ADMIN -v ${STORAGE_LOCATION}:/app/server/storage -v ${STORAGE_LOCATION}/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" mintplexlabs/anythingllm

sudo docker ps -a

linux version:
uname -a
Linux AP1AZRAP3057 5.15.0-1061-azure #70~20.04.1-Ubuntu SMP Mon Apr 8 15:38:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

You cannot write to /mnt unless you chmod 777 that folder you are using for storage. The reason it cannot interact with the database is permission related, modify the permissions so the docker user can write and it will work

thanks a lot @timothycarambat .


Can't see level 1 view after expand

Hi,
I followed every instruction about creating expandable items but the problem is that the code is executed there is no error at all but items of recyclerview are not expanded.
I checked logs it says that : "item expanded" but I don't see any change in the application.
Should I have some special attribute in xml file?!


Consider JSON API

The Nextcloud API supports JSON. This may have several advantages compared to the XML format and parser in terms of performance, security and portability.
https://docs.nextcloud.com/server/stable/developer_manual/core/externalapi.html#output

Thanks for the reminder. I had stumbled over the alternative output format last time I looked at the docs, don't know why I missed it the first time or if it was added after I created the first implementation of the exporter.
Don't know if this will change much in regards to security and portability but it should shave off a few bytes from the transferred response.


login without 2FA seems to be impossible.

The 'steam guard' feature is not enabled on my steam account, yet I get a dialog asking me for some secret and without the ok button enabled.
It looks like I can't login using the openstreamclient :-(

tried this using the AUR/git version.
$ pacman -Qs opensteam
local/opensteam-git v0.0.2.beta.r34.gd90a0b0-1
  Partially open-source alternative to the Steam Client application

Thanks for the answer,
if you figure out what it is, please share so I can fix it in the Qt version. I can't run C# and would not do so if I could. A proper open source and cross platform toolkit like Qt still has a place in my heart ;-)

You should be able to look through the login window code to see what the problem is. The code isn't very smart


Test Release KubeOne 1.8 - Test Cluster Provisioning on VMware Cloud Director (VCD)

This ticket requires manual testing
### VMware Cloud Director (Ubuntu)
- [ ] v1.27.11
- [ ] v1.28.7
- [ ] v1.29.2

/assign

Tested with the latest k8s patch releases and everything works as expected.

v1.27.13
v1.28.9
v1.29.4

/close


Cow: Watch lifelinefoundations.win

Cow requests the watch of the watch_keyword lifelinefoundations\.win. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

lifelinefoundations\.win has been seen in 2 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


MVVM Support: JSeparator

 Issue by ngrebenshikov
Tuesday Nov 25, 2014 at 09:05 GMT
Originally opened as https://github.com/ngrebenshikov/aswing/issues/24

Hide all overriden methods.


dashboard torxakis

For management, we need a TorXakis dashboard.
On this dashboard I would like to show
nrof files
nrof lines of code
nrof lines of comment
A few details view are envisioned:
I would like to separate the files & lines into programming language, scripting language etc.
I would like to separate the files & line into core, test & example code
Do tools exists that measure this?
Can we simply output it into excel and create the views we want?

dashboard should contain far more info, of course... see e.g. #398


Crazy touchpad

Describe the bug
Since I got my laptop (Dell Lattitude 5500) and installed NixOs nearly 1 year ago, my touchpad behave very strangely from time to time (maybe 5mn per hour, but sometimes it works fine during 1 day and suddently gets crazy during 10mn). I thought before that it was a hardware issue, but Dell replaced the touchpad, the battery and the keyboard, and I still have the bug. So I'm thinking that it could be a software issue. If it rings a bell to someone, please let me know!
More precisely:

sometimes the touchpad clicks automatically when I press on key on the keyboard, even if my hand is very far from the keyboard. When this happens, It is very hard to type any text since the cursor jumps sometimes to the mouse position, or the text area loses the focus. Similarly, changing windows with Alt+Tab is quite annoying since sometimes it clicks when I press Tab, which cancels the window's change. When this happens long enough, I can even navigate with only my keyboard, by "clicking" after pressing a random key ^^'
sometimes (like right now... :'-(), when I click, instead of clicking, the mouse jumps quite far away from the current position (it could be a few cm away). I also noticed that when this arrives, I can spot a place on the touchpad that I call the "center" (when I click there the mouse does not move), and the further I click from this point, the further the mouse jumps. I managed to record it via xev. Here is a normal click:

ButtonPress event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17150910, (428,257), root:(1367,286),
    state 0x10, button 1, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17151090, (428,257), root:(1367,286),
    state 0x110, button 1, same_screen YES

and here is this buggy click that moves the cursor:
MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161179, (449,221), root:(1388,250),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161186, (455,207), root:(1394,236),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161190, (459,202), root:(1398,231),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161196, (465,192), root:(1404,221),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161200, (467,186), root:(1406,215),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161205, (469,181), root:(1408,210),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161209, (470,177), root:(1409,206),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161214, (474,173), root:(1413,202),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161216, (474,169), root:(1413,198),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161223, (476,165), root:(1415,194),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161225, (476,163), root:(1415,192),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161233, (478,162), root:(1417,191),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161235, (478,160), root:(1417,189),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161242, (480,158), root:(1419,187),
    state 0x10, is_hint 0, same_screen YES

MotionNotify event, serial 40, synthetic NO, window 0x6600001,
    root 0x79b, subw 0x0, time 17161244, (482,158), root:(1421,187),
    state 0x10, is_hint 0, same_screen YES

I also spotted another bug which is quite different since it is always present (well at the beginning it was never present, but after an upgrade (I think), it stoped working). This time, it is not related with the touchpad but with the buttons of the mini-mouse included inside the keyboard (DELL laptops have a second (unpractical) mouse). When I press the middle button, the press events is fired quite lately, only when I release the button. This is quite annoying in 3D softwares where this button is used to drag/drop the view. To take that xev shot, I pressed it during 6 seconds... but the two events (press and release) are received at the exact same time:

ButtonPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x79b, subw 0x0, time 20303363, (92,116), root:(1031,145),
    state 0x10, button 2, same_screen YES

ButtonRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x79b, subw 0x0, time 20303363, (92,116), root:(1031,145),
    state 0x210, button 2, same_screen YES

I've no idea how to debug this, and it is even harder to fix it given that the bug 1 and 2 happens only a few minutes per hour... But if it rings a bell to someone, please let me know! I also saw that DELL released a firmware update for the touchpad a year ago, but I can't manage to install it since I don't have windows, and when I run it in using the livecd Hirensbootcd, it just tells me the device is not found.
To Reproduce
Steps to reproduce the behavior (it is very hard to reproduce):

Get a DELL Latitude 5500.
Use it during a few hours. At some point you may have this weird click when you press a key on the keyboard or when you click with your mouse.

Metadata
I'm not sure if the metadata are very relevant since I got this problem since june 2020. but here is it:

system: "x86_64-linux"
host os: Linux 5.4.93, NixOS, 21.03pre-git (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre20201205_a5d85d0
channels(root): "nixos-unstable-21.03pre267299.5ff6700bb82, nixos-21.03pre267299.5ff6700bb82"
channels(me): "local-nixos-unstable-21.05pre279012.ad47284f8b0, home-manager, local-nixpkgs-unstable-21.03pre267409.f5daa8ab31f, nixos-20-03-20.03.3324.929768261a3, test, nixos-unstable-21.03pre250162.34ad166a830"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

I still have the issue… but I strongly suspect a hardware issue (technically Dell replaced half of my computer, it solved it for like 3 days and after it was back). Dell seems to be really bad on touchpad, I got another Dell (different model), and the touchpad clearly has bugs (it clicks automatically physically with a sound 10x in a row), the bug was different (ubuntu). I guess we can close it… for now my trick is to put the mouse in some corners where clicks are not taken into account ^^'

This might actually be related to sleep mode, see this discussion https://gitlab.freedesktop.org/libinput/libinput/-/issues/36 with a fix pushed to libinput 1.12 (I still see some weird touchpad related stuff sometimes, so not sure if it's 100% solved… but it does occur less often than before and in a less dramatic way as the cursor stopped from crossing the whole screen)


Prevent unlatch when lock is locked

Hi there, great great zero-conf plugin! Really love it.
I've been using hombridge-nuki until I changed to homebridge-nb today.
One feature I'm really missing from homebridge-nuki plugin is the option to prevent unlatch when lock is locked. Meaning, unlatch only works when the lock is unlocked for extra safety.
Anyway to memic that behavior with this plugin?

I'm not going to do that.  I would be another setting in config.json, kinda negating the whole zero-config philosophy.

Agree with the last part, however I thought maybe that should be the default as it is more logical to prevent a latch operation when the lock is locked.
This issue will be closed as such.

You can prevent the latch form being exposed as separate accessory.  You could probably create an automation in Shortcuts or some home automation platform, that sets Latch on the lock accessory only when the lock is unlocked.

I already disabled the latch from the settings of the plugin.
Any idea how I'd go about doing such an automation? It sounds really usefull if I could attach the latch to the lock accessory only when it's unlocked.

HomeKit doesn't like configuration changes, so optionally exposing an accessory, service, or characteristic won't work.  Just create a dummy switch, and an automation to set the Latch characteristic when that switch is activated, and the lock is unlocked.  Use a decent HomeKit app, like Eve to see the Latch characteristic, as Apple's Home doesn't support custom characteristics.


Move Certain Site Specific Things into Environment Variables

Once we have both test and prod environments, there are some things that should be set based on which environment you're building in/for. Here are the things I know for sure need to be handled:

AWS DynamoDB API id/secret (done and in AWS_ID/AWS_KEY)
Donorwall Tablename (done and in AWS_DBNAME)
URL for PayPal transactions (done and in GATSBY_PAYPAL_URL)
API Key for correct Stripe environment (done and in GATSBY_STRIPE_APIKEY)
Success URL for Stripe transaction (root URL is done and in GATSBY_SITEURL)

Any environment variable I think we need is now complete. For now they are documented in the original request until I make time to write the site documentation.

Any environment variable I think we need is now complete. For now they are documented in the original request until I make time to write the site documentation.


Swagger (v2) not deserialized properly

In the following code :
var stream = new HttpClient().GetStreamAsync("https://petstore.swagger.io/v2/swagger.json").Result;

var inputDocument = new OpenApiStreamReader().Read(stream, out var diagnostic);

Debug.Assert(diagnostic.SpecificationVersion == OpenApiSpecVersion.OpenApi2_0);

var schema = inputDocument.Paths["/pet/{petId}"].Operations[OperationType.Get].Responses["200"].Content["application/json"].Schema;

schema ends up null, whereas it should contain Pet.

Hello Darrel,
Thanks a lot for investigating.
May I suggest to add a unit test to cover this case ? ;)
Thanks again!

Hello, i think i'm running into a similar scenario the response schema reference is empty.
The bug is introduced in the package v1.1.2. I rolled back to v1.1.1 the schema is now read correctly.
This is part of my swagger v2 document
paths:
  /xxx:
    post:
      operationId: xxx
      produces:
        - application/json
      parameters:
        ***
      responses:
        '200':
          description: success
          schema:
            $ref: '#/definitions/checkOutput'

@huaxing-yuan Thanks for the additional info, I suspected it was a regression.  And yes @sbacquet I'll make sure that our test cases are updated to account for this.

Should be resolved by #398

This fix should be available in 1.1.3

I confirm it's fixed, thank you !


MM-10717: Update longpress buttons when add reaction, edit post, or d…

Summary
Updates post longpress actions when a permissions for add reaction, edit post, or delete post are changed.
Ticket Link
MM-10717
Checklist
n/a
Device Information
iPhon 6, iOS 11.4 (emulated)
Screenshots
https://youtu.be/FDdsZ4rBrVw

@enahum It doesn't work in Android and the react-native-bottom-sheet package does not expose methods to programatically close or open the native Android BottomSheet package. It looks to me like we would need to fork the package and add methods something like:
@ReactMethod
public void expand() {
    ...
    BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.from(mLayoutBottomSheet);
    mbottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
}

@ReactMethod
public void collapse() {
    ...
    BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.from(mLayoutBottomSheet);
    mbottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
}

@ReactMethod
public boolean isExpanded() {
    ...
    BottomSheetBehavior bottomSheetBehavior = BottomSheetBehavior.from(mLayoutBottomSheet);
    return buttomSheetBehaviour.getState() == BottomSheetBehavior.STATE_EXPANDED;
}

@enahum Since the original issue was that the app needed to be killed and reopened to show changes to those buttons we have solved that for iOS and Android. The iOS "updating while still open" was a bonus. With that in mind I think we should add a new story to get that bonus feature working in Android. Sound good?

@mkraft yeah I'm ok with that.. please create the ticket :)
going to merge this one


x/tools/imports: don't prepend std/ to packages from GOROOT

In #31769 goimports added "std/go/token" for me. (Because I used a new API only in master and not yet recognized by the goimports fast path)
And in https://go-review.googlesource.com/c/go/+/175099/ I got a failure:
https://storage.googleapis.com/go-build-log/0c3a1672/freebsd-amd64-12_0_de6f6ad5.log
ok  	context	1.249s
ok  	crypto	0.006s
ok  	crypto/aes	0.020s
# crypto/cipher
package crypto/cipher_test
	imports std/internal/testenv: unknown import path "std/internal/testenv": cannot find module providing package std/internal/testenv
FAIL	crypto/cipher [setup failed]
ok  	crypto/des	0.007s
ok  	crypto/dsa	0.004s
2019/05/02 22:10:18 Failed: exit status 1

because goimports added "std/internal/testenv".
We need to remove the std/ prefixes.

I had the same happen to me while I was working on the go/token CL itself, but I figured I was using goimports wrong :)


Notice: Undefined index: login_url

Notice: Undefined index: login_url
File: sources/controllers/Auth.controller.php
Line 539

That was already fixed a while ago, but the code not yet pushed to elkarte.net


How I can manage count of Outbound connections in azure function? [QUERY]

Library name and version
Microsoft.Azure.ServiceBus 5.1.3 Azure.Messaging.ServiceBus 7.2.1
Query/Question
I have an azure function service bus trigger. With some periodicity, I have a lot of incoming messages into the service bus queue. Azure Function triggers by each new message. And because of a lot of messages I have troubles with Outbound connections -> other azure functions (f.e. time trigger) that want to create a new connection can't do it and they fail with a message "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full"
How can I fix the problem with connections?

Environment
OS Windows
Azure Functions
.net 6.0.100 (but pushed version is .net 5.0)
Microsoft.Azure.ServiceBus 5.1.3
Azure.Messaging.ServiceBus 7.2.1
Microsoft.Azure.Functions.Worker.Sdk 1.0.4
Microsoft.Azure.Functions.Worker.Extensions.ServiceBus 4.2.1
Azure.Security.KeyVault.Keys 4.2.0

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Can you clarify how you are using the Service Bus SDK here. It looks like you are referencing two different SB libraries:
Microsoft.Azure.ServiceBus 5.1.3
Azure.Messaging.ServiceBus 7.2.1
The worker extension you are using corresponds to the Microsoft.Azure.ServiceBus library.


Support custom 404 previews

Hello, thanks for making this great Action.
I'm trying to test adding a new 404 page and wondered if I'm going about it the wrong way.
The docs for GitHub Pages say that you can have a custom 404 page by putting a 404.html in the root of the deployment.
If I create a 404 page and add it as part of a PR, I can see it by going to https://[owner].github.io/[repo]/pr-preview/pr-[number]/404.html but it does not function as a catch-all, for example when I go to https://[owner].github.io/[repo]/pr-preview/pr-[number]/this/page/does/not/exist I see the default GitHub Pages 404 instead of mine. Would it be possible to get this working?

I don't think so, no. 404s get redirected to 404.html at the root of your site.
If you were using e.g. an Apache web server, you could change the config to have a different 404 page per directory. GitHub Pages doesn't allow you that level of customisation.


Updated feature list

" Policy based forwarding
￼ +- 802.1x authentication support"
Suggest to say instead:
policy based forwarding to offload processing to external systems (Eg 802.1x via hostapd).
Makes it clearer that 802.1x is not and does not need to be in the controller.

Good suggestion.  Fixed and updated Pull request.
Thanks!
On Tue, Aug 2, 2016 at 1:12 PM, Josh Bailey<EMAIL_ADDRESS>wrote:

" Policy based forwarding
￼ +- 802.1x authentication support"
Suggest to say instead:
policy based forwarding to offload processing to external systems (Eg
802.1x via hostapd).
Makes it clearer that 802.1x is not and does not need to be in the
controller.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/REANNZ/faucet/pull/147#issuecomment-237028683, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABmf84HcwVefsqVtc1iijLv-Jb9aCPjqks5qb6SzgaJpZM4JZ3M6
.


Clicking on link for modal scroll to top of site

I am making a website where I want to display a table in a modal. I have a link to open up a modal and display a table with data.
Now when I click on the link rather than opening the modal my browser instead scroll to the top of the webpage.

Please provide a codepen wgich shows this issue.

Try using a <button> instead of an <a> tag so you do not inherit other default browser functionality


Drag/drop does not work for iOS 13.3.1

Note: for support questions, please use our Gitter channel. This repository's issues are reserved for feature requests and bug reports.
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
Drag-drop does not work on iOS 13.3.1.  Screen scrolls instead.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.
In Safari or Chrome on iOS 13.3.1 iPhone, try drag-drop with the demo site.  It scrolls the screen instead of drag-drop.
What is the expected behavior?
Drag-drop, no screen scroll.
What is the motivation / use case for changing the behavior?
Bug fix
Which versions of Angular, UI Tree and which browser / OS are affected by this issue? Did this work in previous versions of Angular, UI Tree? Please also test with the latest version.
iOS 13.3.1.  Both my site using Angular 1.4.5, Angular UI Tree 2.22.5, as well as the demo site show the same behavior.  Works fine before iOS upgrade.
Other information (e.g. stacktraces, related issues, suggestions how to fix)

If it helps, Safari debug mode shows the following error: "null is not an object (evaluatin 'eventObj.pageX').  Line: angular-ui-tree.js 919, dragMove.
Looks like dragMove is not being given the event object.

Semi-workaround: set a drag-delay of 1 ms.  Drag no longer crashes, but screen still scrolls.

In case it helps someone else, this fix worked for me:
angular-ui-tree.js: Line 1495:
eventObj: function (e) {
var obj = e;
if (e.targetTouches !== undefined && e.targetTouches.length > 0) {
//Set obj equal to the first Touch object in the TouchList.
obj = e.targetTouches.item(0);
//Logic to set obj to original TouchEvent.
} else if (e.originalEvent !== undefined && e.originalEvent.targetTouches !== undefined && e.originalEvent.targetTouches.length > 0) {
obj = e.originalEvent.targetTouches.item(0);
}
return obj;
},


float32 mode broken?

after the first iteration i get the following error, when i use float32 mode to merge models
Traceback (most recent call last):
File "E:\stablediffu\stable-diffusion-webui\models\Stable-diffusion\Merge-Stable-Diffusion-models-without-distortion-main\SD_rebasin_merge.py", line 65, in
first_permutation, y = weight_matching(permutation_spec, flatten_params(model_a), theta_0, usefp16=args.usefp16)
File "E:\stablediffu\stable-diffusion-webui\models\Stable-diffusion\Merge-Stable-Diffusion-models-without-distortion-main\weight_matching.py", line 849, in weight_matching
A += torch.matmul(w_a, w_b).cpu()
RuntimeError: expected scalar type Float but found Half

            w_a = torch.moveaxis(w_a, axis, 0).reshape((n, -1)).to("cpu").to(torch.float32)
            w_b = torch.moveaxis(w_b, axis, 0).reshape((n, -1)).T.to("cpu").to(torch.float32)
            A += torch.matmul(w_a, w_b).cpu()

Missed this sorry. Should work now.


Display Syntax error in text

Maybe related with #7  and #2

oh, I think I just tinker this plugin a bit, maybe it will be better with this issues. Can you check it?.

Oh, I just tested with your example, it works, right?. It is not perfect, it was parsed at 3 different times. I will keep improving it. But at least it will not give bug in plot anymore

done, i am not using mermaidjs anymore.


2.0b1 Bug: Draftail crash when rich text field is named "description"

Issue Summary
If a richtext field is called "description" (and presumably also "viewport") the script fails, because
the following
const field = document.querySelector(`[name="${fieldName}"]`);

matches the first element on the page with the attribute name matching fieldName. Since the admin template contains the following
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

If a rich text field is named "description" or presumably also "viewport" the query selector will match these meta tags instead of the correct input field. Then it will crash when it tries to parse undefined at
const rawContentState = JSON.parse(field.value);

since the meta tag is not the correct input tag and does not have a value attribute.
Steps to Reproduce
Make a model with a rich text field named description:
    description = RichTextField(_('description'))

Open the editor
Technical details

Python version: 3.6.3 (irrelevant since this is a js bug)
Django version: 1.11.10 (irrelevant since this is a js bug)
Wagtail version: Version: 2.0b1
Browser version: Google Chrome  64.0.3282.140 (though JSON.parse(undefined) will fail in any browser)

Proposed fix
The minimal fix is simply to add the tagname to the querySelector string like so (assuming rich text fields are always input tags):
const field = document.querySelector(`input[name="${fieldName}"]`);

(I'm testing this fix now, by modifying the minified file directly on localhost, so I can see if it causes any other issues; if it doesn't I'm happy to make a PR for it later)
Alternatively the script could be modified to use getElementById instead of queryselector, which is slightly faster and less likely to accidentally match a random tag on the page.

BTW, it would be nice if the script files were build with sourcemaps and the source files available (at least for beta builds like this), so you could jump directly to a sensibly formatted file in the debugger rather than having to grep for it manually.
Ideally it should have sourcemaps all the time. If the source map file is in a separate file, only referenced in the bottom of the file with a sourcemaps comment, it doesn't really affect the performance at all unless you open the debugger; in which case having a sourcemap file actually improves performance because it's easier on the debugger to jump to source files rather than to a point in a single line, million character minified file.

👍 I'll have a look at this, probably switch to the field's id which is more likely to be unique.
I'm not sure why source maps haven't been included so far, it would definitely make debugging much easier. It should be a straightforward change so I'll make a separate PR for that and we can further discuss there.

It's important that we don't build front-end assets on beta / RC versions any differently from the final releases, because then we'll miss bugs that occur in the build process, like we did in #3944.

@gasman  Sure, but I don't see any reason not to have external sourcemaps in production as well.
And by "external", i mean the kind where only a short comment is added to the minified file like this:
//# sourceMappingURL=somefilename.js.map

This adds just a few bytes to the minimized file, but makes debugging an js error a lot easier if it should occur. The only "disadvantage" besides a slightly slower build, is that people can see your unminified source code easily; but this is open source anyway, so...
I think adding config.devtool = 'source-map'; to the prod file or something should do that; (I have some trouble getting node up and running correctly, so I haven't testet it yet).

Instead of document.querySelector, I suggest using document.forms['form id'].elements['field name'], since it's an API specific to form elements.

If Wagtail does the leg-work to make sure the element IDs are truly unique, it should be safe to just use document.getElementById. Using document.currentScript to determine context seems a bit fragile to me, as it would break if the scripts were relocated to somewhere else in the DOM.

I agree that it seems fragile on principle, but this is the one thing Wagtail actually enforces with WidgetWithScript.
It would break if this code is refactored willy-nilly, but document.currentScript is used at the call site rather than in the init function's implementation so hopefully it's clear enough that script location matters.
As far as I know, there is no particular enforcement of ID uniqueness.

Fair enough! I guess the root of what's bothering me is actually part of Wagtail's design, not this PR.

Hi, I'm far away from Wagtail's source code but @thibaudcolas 's fix works for me. I now have the Draftail editor on my description field, thanks!

Unfortunately the fix in #4301 has broken the initialisation of newly-added RichTextBlocks in StreamFields (and, I suspect, RichTextFields inside InlinePanels). Will investigate...

Looking into this, it's because jQuery evaluates dynamically inserted scripts in the head, not where the script will actually be inserted, so document.currentScript in the editor init gives the wrong context.


Added Phreak

I've been working on a little CLI builder for a while, finally got around to making it conform with your contributing guidelines. If there are any issues, please let me know.
Thanks for maintaining this useful list!

Alright, I'll beef those up when I get a chance and get back to you soon. Thanks!

This is amazing, and pretty much what I believe should be in the standard library. It's well-documented, it doesn't use macros, and the code is simple and concise. I would love it if you made an issue on the crystal repo about reworking the OptionParser API, and included this shard as an API and code example. I'd support you through this.
In terms of this shard - we tend not to use tabs in crystal, instead using two spaces (crystal tool format enforces this). There's some bad indenting in your source files, especially the readme as it's rendered on github. This should be fixed.

@RX14
Thank you so much! I'm totally open to that idea, although there are a few things I'd like to get working before I pitched it. Currently, Phreak cannot generate a help menu, and I think that's important thing to cinch up!
Regarding the indentation issues, I wasn't aware that spaces were the convention - thanks for bringing that to my attention. I'll fix that, along with writing some more integration tests and then this PR should be ready to merge.

Alright, @veelenga, I've got a healthy collection of specs written and an irksome few bugs fixed. Also fixed the formatting issues that RX14 so helpfully pointed out. I'd love it if this PR could be accepted! Happy to address any other issues you might have with Phreak.

Looks great. Thank you.


Support Limit Parameter in Delete

Closes #82

I've left the tests in both the msg_delete_test and handler_test as I'm not sure which is best... Could probably clean up the test cases a bit

Let's pick one place to keep the test. We can always move it later.

Let's pick one place to keep the test. We can always move it later.

Just reverted the handler_test... Think keeping it in a separate file is better. Although the SQL handler isn't tested that way.

Thanks!


run code on finish

In working on fatih/vim-go#2090, I realized I really wanted a way to say "run this code when we stop sourcing this script" a la shell's trap EXIT, or Go's defer. I can imagine this problem lurks in a bunch of places, especially now that everyone's getting religion about setting and restoring &cpo.

One possibility would be enclosing the rest of the script code in a :try block, with the "when stop sourcing" part in the :finally just before the :endtry at the end of the script.
This means of course running in a Vim supporting the :try command, which was new in Vim 6.2 and (I think) needs a Vim compiled with +eval (which usually means a Normal, Big or Huge build).
There may be more elegant solutions which don't jump into my mind at the moment.
Best regards,
Tony.

Possibly fixed by https://github.com/vim/vim/commit/2b6185287adf53343ed5f49e967ae402c64063e4 which provides SourcePost:
au SourcePost <buffer> echom 'after script has been sourced'

@lacygoill what about
execute 'au SourcePost' fnameescape(expand('<sfile>')) " ++once echom 'after script has been sourced'"

Probably with ++once, too?

Yes, probably with ++once.  See the command given by @andymass:
execute 'au SourcePost' fnameescape(expand('<sfile>')) " ++once echom 'after script has been sourced'"
                                                         ^----^

Ah, whoops; I misunderstood, thinking the first double-quote was the start of a comment. Thanks for pointing that out.


Added conv2d transpose layer along with associated tests

@dusenberrymw @niketanpansare @bertholdreinwald
Can you please review this PR?
Besides including the forward, backward functions for conv2d transpose, this PR also includes tests (for the forward function and the gradient checks).
Also, I've included a weight initializer for bilinear interpolation. This is useful if someone wants to upsample using this layer.

Refer to this link for build results (access rights to CI server needed):
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/1454/

Refer to this link for build results (access rights to CI server needed):
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/1457/


[rcore] Call SDL_GL_SetSwapInterval() after GL context creation

Fixes #3982

@JupiterRider Nice! Thanks for the review!


chore(backend): update createTransfer options

Changes proposed in this pull request

Context

fixes #966
fixes #968
fixes #964

Checklist

[x] Related issues linked using fixes #number
[ ] Tests added/updated
[ ] Documentation added
[x] Make sure that all checks pass

Isn't this issue also related to your changes?

#965

Isn't this issue also related to your changes?
* [Throw an error when an invalid `transfer.id` is provided for `accounting/transfers.ts#createTransfers()` #965](https://github.com/interledger/rafiki/issues/965)

I wasn't sure

https://github.com/interledger/rafiki/issues/965#issuecomment-1398967422


Remove print test from FederatedStoreTest

A test was added in error in ticket gh-1771 and not picked up in the PR.
FederatedStoreTest.shouldUseMulti() needs removing.

Hi. I would like to take this up. Can you give me info about the file and other related stuff? Thanks.

Hi
Sure, thanks. The file is mentioned above (FederatedStoreTest) and the method name is shouldUseMulti().
Let us know if you have any further questions.

Is this issue fixed yet? Otherwise I would like to take this

@Sand038 sorry it has been assigned.

Merged into develop


Uglify doesn't seem to do anything (probably my own fault)

Hiya!
When I transpile my javascript the end result looks exactly the same whether I run it through gulp-uglify or not (i.e. the code isn't minified) - anything obvious I'm doing wrong here?
const uglify = require('gulp-uglify');
function build () {
        const bundler = browserify(opts);
        bundler.transform(babelify);
        bundler
        .bundle()
        .on('error', handleErrors)
        .pipe(source('app.js'))
        .pipe(gulp.dest(dest))
        .pipe(buffer())
        .pipe(uglify()) // nothing happens to the output when I remove this line
        .on('end', build ? () => revision('js') : noop)
    }

Uglify only transforms the actual content of the stream, not the contents of the files. You should have uglify in the pipeline before gulp.dest() as you want the uglified output saved to the destination file.

Thanks @mikaelbr, you're the best. Better than all the rest

@nicohvi If you follow the advice in Why Use Pump? you'll be correctly handling the errors for all tasks in your pipeline.


Node Requirements - Documentation Issue

Description
I notice the current documentation for node requirements has the following requirements:
Sequential write sustained:
Minimum: 2,000GB/s
Recommended: 3,000GB/s
Sequential read sustained:
Minimum: 3,000GB/s
Recommended: 4,500GB/s
I can see that prior to #432 they were:

Sequential read: 6200 MB/s
Sequential write: 3000 MB/s

Did the unit accidentally switch from MB to GB?
Steps to reproduce
Refer to https://github.com/hashgraph/hedera-docs/blob/master/networks/mainnet/mainnet-nodes/node-requirements/README.md
Additional context
No response
Hedera network
No response
Version
master
Operating system
None

Looks like your assessment is correct, I've made a PR to correct this:

https://github.com/hashgraph/hedera-docs/pull/801


Option to return timezone aware datetime for to_utc_datetime

Fixes #26942
The underlying issue is that the json and avro writer treat datetime.datetime object without time zone differently. The former assumes it is in local time zone while the latter assumes its UTC.
There is not a easy way to fix this discrepancy as change either will introduce a breaking change. For avro, it is not easy to warn user either, because the input PCollection element (dict) is sent to fastavro directly. Beam does not check the dict.
One thing we can do here is to add an option to Timestamp.to_utc_datetime to return a time zone aware datetime.datime object. This will work consistently for both json and avro temp file in the use case reported in #26942
Also added pydoc for Timestamp.to_utc_datetime.
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

retest this please

.PortableRunnerTestWithSubprocesses.test_batch_pardo_overlapping_windows flaky test unrelated, merginf for now


Use NonZero* or NonNull, so that Option is no larger than Bytes

It would be nice if size_of::<Option<Bytes>>() was the same as size_of::<Bytes>(). The compiler does this if one of the fields inside Bytes / bytes::Inner has a type that is statically known to be non-zero or non-null: &T, Box<T>, num::NonZeroUsize, ptr::NonNull<T>, …
https://github.com/carllerche/bytes/blob/42b669690af1f358dd5234beb5078ebdf25b3e02/src/bytes.rs#L301-L304
I believe that arc is the only possible candidate without changing the data representation. It contains either a non-zero marker in its lower two bits, or a non-null pointer for the KIND_ARC case. Other fields can be entirely zero, at least in the KIND_INLINE case.
However replacing the field with arc: NonNull<Shared> is not enough, since some of the accesses to it are atomic.
The standard library provides AtomicPtr and ptr::NonNull, but not AtomicNonNullPtr nor atomic operations on raw pointers. However, maybe we could build a AtomicNonNullPtr type that contains UnsafeCell<NonNull<T>>, and implements atomic operations based on unsafely casting &UnsafeCell<NonNull<T>> to &AtomicPtr<T>:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=811d20754131c6339802fb05d0908afe
@RalfJung I think this would be sound, but am I missing something?

I feel it'd also help if we could change struct Inner to union Inner, but I just tried to do so, and non-Copy values in a union are still unstable (AtomicPtr and NonNull are both !Copy).

@seanmonstar union would be nice, but we use a few bits to track the variant. I'm not sure if union would let us do that.

The bit tricks would have to operate on one of the union variant.
(NonNull is Copy.)

@SimonSapin I don't know much about Rust unions. We would need the memory layout to be well defined in that case.

Is it the representation tricks that necessitate the arc pointer itself to be atomically accessed, or is there some other interior mutability wizardry? Arc uses NonNull internally.

@mzabaluev Yes. In the code link in the issue description you can see a arc: AtomicPtr<Shared> field. It’s called arc because atomic reference counting is involved, but it’s not using std::sync::Arc and the access to the pointer itself is (in some cases) also atomic.

@SimonSapin yes, I understand most of that, except this last part:

the access to the pointer itself is (in some cases) also atomic.

It actually should be always atomic with AtomicPtr unless you explicitly bypass the atomicity?
And why must the pointer itself be atomic in Bytes/BytesMut which exhibit no interior mutability, meaning that a non-mutating thread could never observe a partially updated pointer anyway?

I mean, I’m only reading the code. You can presumably do so as well as I.

I can't claim to be good enough to understand everything in there, and I have better uses of my work day than to read through screenfuls of pointers-as-bitfields arcana :laughing: It's just on the principle, I can't see a good reason imposed by the API for these pointers to be atomic.

@mzabaluev there is mutation that happens internally. When you create a Bytes initially, it only allocates once (similar to Vec). This works because there is only one outstanding handle. As soon as you clone, an arc is needed (see here).
This is done, among other reasons, to make conversions from Vec<u8> cheap.

This is done, among other reasons, to make conversions from Vec cheap.

I think this is one of the cases where an implicit dynamic optimization made to benefit one use case penalizes all other users of the crate who may not need it at all.
What usage patterns channel people into starting off with Vec and then converting? In-place initialization could be provided via macros like bytes![...] and bytes_mut![...] which would also select the optimal representation at compile time.
Could the optimized conversions be addressed explicitly with a Cow-like enum type (there's already support for Either which cuts part of the cake), or, going forward, by abstracting over Buf and specializing for Bytes/BytesMut to achieve zero copy behavior?

When you create a Bytes initially, it only allocates once (similar to Vec).

The double allocation - one for Vec, one for Shared - could be avoided by inlining the data into Shared as a DST.

The problem is that buffer capacity is often allocated in multiples of page size. Inlining the metadata will break this and not play well with allocators.

Either way, the path forward for any change would be to demonstrate it performs better than the current impl for common usage patterns.

The problem is that buffer capacity is often allocated in multiples of page size. Inlining the metadata will break this and not play well with allocators.

The allocator is supposed to properly align any Layout thrown at it and that covers the fixed-size array parameterizations of the generic type that would CoerceUnsized to the DST pointer after allocation.
As to the size, the buffer capacity for reallocation could account for mem::size_of::<SharedHeader>() to come up with a total allocation size fitting within the next power of two.

Yep... so now a 4kb allocation takes 8kb... etc

Does it matter how much of a 2^n allocated size is taken up by the header, as long as the rest is available for data? I did not notice any particular guarantees about the capacity growth strategy in the docs, so I assume the implementation is free to change it.

One potential drawback with an inline shared buffer layout is reallocation of small buffers, where the overhead of copying the header to the new contiguous DST structure factors noticeably in the overall copying cost. I'd wager that smaller reserved capacities in BytesMut are more likely to be seen when encoding output buffers. The implementation could hedge against this by choosing a larger minimal allocated size, but forced allocation overcapacity has its own performance hazards...
I agree that benchmarking on typical application workloads is important.

In master now (from #298), both Bytes and BytesMut now take advantage of non-null optimization for Option.


AeroFC: Use leds to show PX4 status

@zehortigoza Code style fail: https://travis-ci.org/PX4/Firmware/jobs/201292051

@LorenzMeier Sorry about that, I just pushed a new version with the code style fixes.

LGTM


Question: is it possible to implement non-blocking FIFO queue with luv?

Hello.
Looking for a solution (or even possibility) to implement non-blocking FIFO queue with libuv.
Just like that: https://gist.github.com/daurnimator/88e942022d4f3cabf57c but for luv instead of cqueues.
I'm ready to pay some bounty (like $100 in USDT or LTC) if someone suggests an answer.

I don't know the cqueues API so I'm not quite sure what it is that that FIFO implementation does to make it "non-blocking". How do you make a queue/stack non-blocking? Is it the access to it that you're controlling? Could you show an example usage?

I will try to explain.
Let's look on example: https://github.com/luvit/luv/blob/master/examples/uvbook/tcp-echo-server.lua
Imagine that we have FIFO with some object inside. Let's say there is 5 objects.
In callback function for read_start, to conjure a response, we :pop() an object from FIFO, and after we send a response and close connection — we :push() our object back to FIFO.
If we have 6 simultaneous requests, sixth request will face that FIFO is empty.
It will invoke fifo:empty() function (throws an error by default)
Let's look at cqueues-fifo.lua.
There is modified fifo:empty() function:
	fifo:setempty(function(self)
        		cond:wait()
        		return fifo:pop()
       end)

And also fifo:push():
function methods:push(...)
        	self.fifo:insert(...)
        	self.pollfd:signal(1)
end

So, when we trying to :pop() an object from empty FIFO, it will wait for a signal, that will occur when someone :push() into FIFO.

Let's return to our example.
When we will receive 6 simultaneous request, on a sixth request we will face empty FIFO.
With cqueues, sixth request will invoke fifo:empty() that waits for a signal.
When one of first five requests will finish and :push() our object back to FIFO, procedure in sixth request will be awakened with a signal and will be completed normally.
How to do the same with luv?
I tried playing around with timers and pipes, but it does not work.
When sixth request invokes fifo:empty() (with timer/pipe), it blocks whole I/O, so neither of first five requests will complete and :push() object back to FIFO, so our program will just hang.

Hope I explained it understandable.

@daurnimator do you understand what is being asked here?  When I hear fifo, I think of the linux file objects created by mkfifo(3), but I don't think that's @snoopcatt means.
@snoopcatt, do you just was a pure lua code library that creates a queue of arbitrary lua values or do you want something related to actual linux fifos?  I don't understand what the empty thing that throws an error by default means.

@daurnimator do you understand what is being asked here? When I hear fifo, I think of the linux file objects created by mkfifo(3), but I don't think that's @snoopcatt means.

A first-in-first-out queue interface. https://en.wikipedia.org/wiki/FIFO_(computing_and_electronics)#Computer_science
i.e. you can push in one end; and pop out the other.  It stores objects waiting to be popped in an internal buffer.

The integration between a fifo and luv would be: "when I pop and the internal buffer is empty; the current coroutine should be paused; and the next push would wake it up"

@daurnimator, Thanks I understand the general concept of fifo queues, but the title "with luv" made me think maybe it was related to linux syscalls.
For starters, here is a simple FIFO queue with no max buffer size:
local function fifo()
    local reader = 0
    local writer = 0

    local function pop()
        if reader < writer then
            local value = queue[reader]
            queue[reader] = nil
            reader = reader + 1
            return value
        end
        local current = coroutine.runing()
        queue[reader] = current
        reader = reader + 1
        return coroutine.yield()
    end

    local function push(value)
        if reader > writer then
            local waiting = queue[writer]
            queue[writer] = nil
            writer = writer + 1
            return coroutine.resume(waiting, value)
        end
        queue[writer] = value
        writer = writer + 1
    end

    return {
        pop = pop,
        push = push,
    }
end

It will block the current coroutine on queue.pop() if there is nothing waiting in the queue and resume when data appears.  But it will not ever block the writer because there is no max queue size.  I'm guessing you want some kind of max queue size that blocks the writer if that max size is reached?  What if there are multiple concurrent writers and a full buffer, should we then queue all the writers without a limit, or throw an error after the first blocked writer?  And same thing for readers, is there a limit for the number of enqueued readers allowed or is it just the one?

return coroutine.resume(waiting, value)

this of course wouldn't handle errors well; nor do you want random 'poppers' resumed from the context of the 'puller': you want the puller to be resume next time the main loop is hit.  I guess in luv you'd use a uv_async_t for that?

I'm guessing you want some kind of max queue size that blocks the writer if that max size is reached?

maybe; the example I wrote (back in 2015) that the OP linked doesn't have that feature though.

True, I've often been in a context where that was the only option, but I like the idea of using async or something to keep them on clean stacks.


response of REST endpoint /api/security/csrf contains set-cookie header with DSPACE-XSRF-COOKIE twice

Describe the bug
The response of
curl -i 'https://demo.dspace.org/server/api/security/csrf'

contains the set-cookie header with DSPACE-XSRF-COOKIE twice:
HTTP/2 204
date: Mon, 26 Aug 2024 13:47:27 GMT
set-cookie: AWSALB=HxxfYfZt3QQS8QUaqDgr1gynojBLXpfYSTGAMEPTPWd7ZC+YbcIVJPHzggjPNwfS8DsbAVd03UNVdJ3QS/W6rD/hbH77WyZZ4oVmnj93tutxztfbGkrPNjsUaM9I; Expires=Mon, 02 Sep 2024 13:47:27 GMT; Path=/
set-cookie: AWSALBCORS=HxxfYfZt3QQS8QUaqDgr1gynojBLXpfYSTGAMEPTPWd7ZC+YbcIVJPHzggjPNwfS8DsbAVd03UNVdJ3QS/W6rD/hbH77WyZZ4oVmnj93tutxztfbGkrPNjsUaM9I; Expires=Mon, 02 Sep 2024 13:47:27 GMT; Path=/; SameSite=None; Secure
vary: Origin
vary: Access-Control-Request-Method
vary: Access-Control-Request-Headers
content-language: en
dspace-xsrf-token: 2aadea04-adcc-4647-aef0-083497d30a7a

set-cookie: DSPACE-XSRF-COOKIE=2aadea04-adcc-4647-aef0-083497d30a7a; Path=/server; Secure; HttpOnly; SameSite=None
set-cookie: DSPACE-XSRF-COOKIE=2aadea04-adcc-4647-aef0-083497d30a7a; Path=/server; Secure; HttpOnly; SameSite=None

x-content-type-options: nosniff
x-xss-protection: 0
cache-control: no-cache, no-store, max-age=0, must-revalidate
pragma: no-cache
expires: 0
strict-transport-security: max-age=31536000 ; includeSubDomains
x-frame-options: DENY
x-cache: Miss from cloudfront
via: 1.1 15ecb680f8d71749752cdfbf2e720cac.cloudfront.net (CloudFront)
x-amz-cf-pop: TXL50-P5
alt-svc: h3=":443"; ma=86400
x-amz-cf-id: rx9azxBX-qnhTZZ9Ws801JrI04RlUBQGwBf71iN_iD9XoEVJ00BBsw==
referrer-policy: strict-origin-when-cross-origin

NOTE: It's possible this is related to the upgrade to Spring Security 6 in DSpace 8.0.   CSRF generation is all done via Spring Security, and there were major changes to Spring Security's built-in CSRF tools between version 5 and 6.   This behavior might be a side effect of the upgrade... though I'm not sure why it would be occurring.
Needs a volunteer to investigate.


How can I use HDR-VQM for HDR video?

If I have HDR reference video and test video which's format is MP4, how can I use HDR-VAM to evaluate their quality?

Hello,
HDR VQM only processes video frames. So you need to extract all the frames of your MP4 video before processing it. You can do it for example with FFMPEG (I guess it is HDR-10 MP4).

Yes, the video file I want to test is HDR-10 video file.Sadly, I found no way to convert MP4 video files to .hdr or .exr files in ffmpeg.I want to know where is the video produced by HDR-VQM for evaluating the quality of video files. Produced by camera? Or is it converted from other jpg?

You question is not directly linked with HDR-VQM. As already said, HDR VQM processes only (sequences of) images in .HDR or .EXR format. Those images should contain linearly encoded (display processed, that is to say containing luminance values that correspond to what the observer sees (cd/m2 values)) luminance values (raw value), not gamma curve or other perceptual mapping curve (but this is usually the case for .HDR or .EXR images).
If your source content is an HDR-10 MP4 (h264 or h265 codec I guess) it is your responsibility to convert it to a series of HDR frames. This might be done for example y extracting TIFF frames (16 bits per channel) from your video and then converting TIFF16 to .HDR. See for example https://video.stackexchange.com/questions/22136/convert-video-to-10-bit-images for converting your video to TIFF frames.


SourceMap generates wrong paths

Example setup with grunt-sass: https://moonbase.hashworks.net/grunt-sass-issue-241.tar
Gruntfile.js
index.html
package.json
css
├── screen.css
└── screen.css.map
sass
└── screen.scss

screen.css.map:
{
        "version": 3,
        "file": "screen.css",
        "sources": [
                "../screen.scss"
        ],
        "sourcesContent": [],
        "mappings": "AAAA;EAIC,AAAkB;EAHnB,AAAM;IACJ,AAAkB",
        "names": []
}

Should be ../sass/screen.scss.

Got
Whoops! Error 404
The page you're trying to access doesn't seem to exist anymore.
Check out what's available!

Thanks for the report @hashworks. Could you please created a small GitHub repo with a minimal work example reproducing this issue. This will ensure there are no other external factors.
Also our experience the process of creating these test repos in itself surfaces the problem.

Hi, sry for the dead link.
I reproduced my case with grunt-sass v0.18.1, however it seems to be fixed with grunt-sass v1.1.0-beta (which includes node-sass v3.0 and libsass v3.2.0).


Xcode@5 Code Signing Error when building a project: (xcodebuild failed with return code: 65)

I am trying to create a ci/cd pipeline for flutter iOS. I am expecting an signed .ipa file. Note: locally on mac machine able to create.ipa.
I am getting error in Xcode@5 task, when trying to sign. I have found the reason. This issue is coming when pubspec.yaml have more plugins.
Example following package working well.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
http: ^0.13.5
hexcolor: ^3.0.1
=========================================
when added more packages (in bold latter) it failed.
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
http: ^0.13.5
provider: ^6.0.4
hexcolor: ^3.0.1
localstorage: ^4.0.0+1
image_picker: ^0.8.6
============================================
Code:

task: Xcode@5
displayName: "Code Sign ipa for Distribution"
inputs:
actions: "build"
scheme: "Runner"
sdk: "$(sdk)"
configuration: "$(configuration)"
xcWorkspacePath: "ios/Runner.xcworkspace"
xcodeVersion: "default"
packageApp: true
signingOption: "manual"
signingIdentity: "$(APPLE_CERTIFICATE_SIGNING_IDENTITY)"
provisioningProfileUuid: "$(APPLE_PROV_PROFILE_UUID)"

Hi @ANISHSINZEROTECH thanks for reporting!
We're currently working on higher priority issues, but will get back to this one soon.
Could you please share pipeline logs in debug mode to take a look? You can retrieve them by following docs
You can email this logs here<EMAIL_ADDRESS>Please make sure that you have cleared all sensitive data

Hi Konstantin Tyukalov,
I am sharing the log and also sharing the xcodebuild.log which I have
downloaded from AgentTempDirectory dir
I think this is the issue, but I have no idea how to resolve the same.
Kindly help me with this.
Sharing the highlighted issue in xcodebuild.log, It's seems the error
note: Building targets in dependency order
/Users/runner/work/1/s/ios/Pods/Pods.xcodeproj: error: Pods-Runner does not
support provisioning profiles. Pods-Runner does not support provisioning
profiles, but provisioning profile MobileXXX7_Adhoc has been manually
specified. Set the provisioning profile value to "Automatic" in the build
settings editor. (in target 'Pods-Runner' from project 'Pods') note: Run
script build phase 'Run Script' will be run during every build because the
option to run the script phase "Based on dependency analysis" is unchecked.
(in target 'Runner' from project 'Runner') note: Run script build phase
'Thin Binary' will be run during every build because the option to run the
script phase "Based on dependency analysis" is unchecked. (in target
'Runner' from project 'Runner')
/Users/runner/work/1/s/ios/Pods/Pods.xcodeproj: error: image_picker_ios
does not support provisioning profiles. image_picker_ios does not support
provisioning profiles, but provisioning profile MobileXXX7_Adhoc has been
manually specified. Set the provisioning profile value to "Automatic" in
the build settings editor. (in target 'image_picker_ios' from project
'Pods') ** BUILD FAILED **
On Fri, Feb 3, 2023 at 12:53 AM Konstantin Tyukalov <
@.***> wrote:

Hi @ANISHSINZEROTECH https://github.com/ANISHSINZEROTECH thanks for
reporting!
We're currently working on higher priority issues, but will get back to
this one soon.
Could you please share pipeline logs in debug mode to take a look? You can
retrieve them by following docs
https://learn.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/review-logs?view=azure-devops#configure-verbose-logs
You can email this logs here: @.***
Please make sure that you have cleared all sensitive data
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/azure-pipelines-tasks/issues/17688#issuecomment-1414246326,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKGYBGT5HL3DLDI4452A4BLWVQCSDANCNFSM6AAAAAAUMLXJ4U
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Thanks,
Anish Singh

adding the attachemnt
On Fri, Feb 3, 2023 at 12:14 PM Anish Singh @.***> wrote:

Hi Konstantin Tyukalov,
I am sharing the log and also sharing the xcodebuild.log which I have
downloaded from AgentTempDirectory dir
I think this is the issue, but I have no idea how to resolve the same.
Kindly help me with this.
Sharing the highlighted issue in xcodebuild.log, It's seems the error
note: Building targets in dependency order
/Users/runner/work/1/s/ios/Pods/Pods.xcodeproj: error: Pods-Runner does not
support provisioning profiles. Pods-Runner does not support provisioning
profiles, but provisioning profile MobileXXX7_Adhoc has been manually
specified. Set the provisioning profile value to "Automatic" in the build
settings editor. (in target 'Pods-Runner' from project 'Pods') note: Run
script build phase 'Run Script' will be run during every build because the
option to run the script phase "Based on dependency analysis" is unchecked.
(in target 'Runner' from project 'Runner') note: Run script build phase
'Thin Binary' will be run during every build because the option to run the
script phase "Based on dependency analysis" is unchecked. (in target
'Runner' from project 'Runner')
/Users/runner/work/1/s/ios/Pods/Pods.xcodeproj: error: image_picker_ios
does not support provisioning profiles. image_picker_ios does not support
provisioning profiles, but provisioning profile MobileXXX7_Adhoc has been
manually specified. Set the provisioning profile value to "Automatic" in
the build settings editor. (in target 'image_picker_ios' from project
'Pods') ** BUILD FAILED **
On Fri, Feb 3, 2023 at 12:53 AM Konstantin Tyukalov <
@.***> wrote:

Hi @ANISHSINZEROTECH https://github.com/ANISHSINZEROTECH thanks for
reporting!
We're currently working on higher priority issues, but will get back to
this one soon.
Could you please share pipeline logs in debug mode to take a look? You
can retrieve them by following docs
https://learn.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/review-logs?view=azure-devops#configure-verbose-logs
You can email this logs here: @.***
Please make sure that you have cleared all sensitive data
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/azure-pipelines-tasks/issues/17688#issuecomment-1414246326,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKGYBGT5HL3DLDI4452A4BLWVQCSDANCNFSM6AAAAAAUMLXJ4U
.
 Supports Git, TfsVC, and SVN repositories.
2023-02-03T06:20:07.0277010Z Version      : 1.0.0
2023-02-03T06:20:07.0277160Z Author       : Microsoft
2023-02-03T06:20:07.0279190Z Help         : More Information
2023-02-03T06:20:07.0279490Z ==============================================================================
2023-02-03T06:20:08.0602690Z Syncing repository: WebTMA7-MobileApps (Git)
2023-02-03T06:20:08.5960220Z ##[command]git version
2023-02-03T06:20:08.7946970Z git version 2.39.1
2023-02-03T06:20:08.8272380Z ##[command]git lfs version
2023-02-03T06:20:08.9850360Z git-lfs/3.3.0 (GitHub; darwin amd64; go 1.19.3)
2023-02-03T06:20:09.0420970Z ##[command]git init "/Users/runner/work/1/s"
2023-02-03T06:20:09.1819470Z hint: Using 'master' as the name for the initial branch. This default branch name
2023-02-03T06:20:09.1921390Z Initialized empty Git repository in /Users/runner/work/1/s/.git/
2023-02-03T06:20:09.2223940Z hint: is subject to change. To configure the initial branch name to use in all
2023-02-03T06:20:09.2324110Z hint: of your new repositories, which will suppress this warning, call:
2023-02-03T06:20:09.2426260Z hint:
2023-02-03T06:20:09.2502880Z hint: 	git config --global init.defaultBranch
2023-02-03T06:20:09.2596420Z hint:
2023-02-03T06:20:09.2698640Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2023-02-03T06:20:09.2789630Z hint: 'development'.

@ANISHSINZEROTECH could you fix the issue? Got same issue


[Feature Request] Start armed option for multiplayer

I may be mixing it up with GoldenEye, but I think I remember a mod that made it possible to make everyone start with the slot 1 weapon in multiplayer. I think this can greatly improve the multiplayer experience, but I understand it's also low priority to add options like this.

The TimeSplitters games also featured such an option, which you may be thinking of as well.

I like this idea, wanted to implement it myself for fun earlier since I think it'd be easy but wasn't sure how the text label in the menu would be handled, is there a way to add custom labels currently or would that require a separate feature? Said feature would be extremely handy in the future for toggling new and previously added enhancements without having to go through the ini everytime.

There is not. Well, technically you can pass a function instead of a string index, but that's a bit awkward.
I still don't know what would be the best way to implement this.

I think I may have seen this mod on maxbots.
https://github.com/n64decomp/perfect_dark/commit/3681c7d75fb1127a0a26dfe5ddfbe67fa972687a

I think I may have seen this mod on maxbots.
n64decomp@3681c7d

Yes, that's it!

Another interesting feature imo would be a temporary invincibility on spawn - lets say 5s (maybe configurable) - which ends if you grab a weapon. There are so many possibilities for enhancements in the future.

Custom invincibility timer would be interesting. 3 second by default with it turning off when shooting (start armed) or picking up a weapon would be nice for packed multiplayer matches if the bot increase / online does happen down the line.

Yea a spawn protection option would be acceptable, especially for smaller maps and increased player counts. I just know it will be annoying on the receiving end with harder Sim challenges.

Yea a spawn protection option would be acceptable, especially for smaller maps and increased player counts. I just know it will be annoying on the receiving end with harder Sim challenges if they respawn near you.

Well, in practice it shouldn't be enabled for Challenges, so this shouldn't be an issue

I think I remember a mod that made it possible to make everyone start with the slot 1 weapon in multiplayer

That's my mod. I implemented this in GoldenEye. Works really great and I think that'd be really helpful in PD because guns are often already taken when a player respawns in 8 player games, leaving players harmless.
An alternative I saw in some games was to make weapons stay on the map, but a player can't pickup the same weapon twice. Because the ammo pickups may not be present, pickuping a new weapons gives double ammo rather than the normal amount.

"Start armed" has been in the port for a while, so I'll close this.


feat: Use open-next for building (BREAKING)

Use open-next for building lambda functions and organizing static assets.

Yeah it'd be nice to use the headers because the edge lambda fixes the host header. I don't know how to make that work with open-next's wacky header forwarding scheme

Nevertheless, I think that's open-next's responsibility to handle the different event types.

I tried running with open-next. However, I am using a custom distribution that uses api gateway rest APIs instead of cloudfront. This means that request/response from lambdas are expected to be in the old v1 format. However, open-next only supports v2 format. So atm I can't continue my testing until open-next supports v1 format.

Although i'm running a fork, I've tested with open-next (0.9.3) and it seems to work. However my project doesn't use public assets so I have not tested that.


[WARN] [Error: Plex Server didnt respond with a valid 2xx status code, response code: 400] Couldn't add media to collection:

Describe the bug
[WARN] [Error: Plex Server didnt respond with a valid 2xx status code, response code: 400] Couldn't add media to collection:
To Reproduce
Steps to reproduce the behavior:
Try to add content to collection manually
Expected behavior
For item to go into a collection
Screenshots

Device (please complete the following information):

OS: Ubuntu
Version 22.04

Hey! Can you see the collection in Plex? If so, could you try manually removing it and then try again?
The most common cause of this error is a mismatch between media types when using a manual collection. For example, some users create 'show' type collections in Plex and then try to add seasons to them, which Plex doesn't allow. However, since you're not using a manual collection, this likely isn't the issue—unless there's an older collection with the same name and a different type still lingering in Plex.


Adding yarn.lock file

Since Facebook has released Yarn to the public, it seems to be all the
hype over this last week.  Adding the auto-generated yarn.lock file to
the repo for anyone else who is hopping on the Yarn wagon.

Great idea Scott - thanks for the PR


use more recent version of cvmfs-contrib/github-action-cvmfs

fix for:
Error: Bad request - cvmfs-contrib/github-action-cvmfs@d4641d0d591c9a5c3be23835ced2fb648b44c04b is not allowed to be used in EESSI/test-suite

duplicate of #22


ast.to_lua_source adds unnecessary parenthesis for class (and maybe other) arguments

Class(AAirUnit) {
    bar
}

gets turned into
Class(AAirUnit)({
    bar
})

Note that not only are the parenthesis unecessary, the whitespace after the class call is missing as well.

This is fine - having no parenthesis is purely syntactic sugar.


How to use RegisterCustomSchemeHandler

I tried to use the custom scheme also with the initial page:
        var window = new PhotinoWindow()
             .RegisterCustomSchemeHandler("app", (object sender, string scheme, string url, out string contentType) =>
             {
                 contentType = "text/javascript";
                 var filename = url.Replace("app://./", "wwwroot/html/app/dist/ACT/");
                 return new MemoryStream(File.ReadAllBytes(filename));
             })
            .SetTitle(windowTitle)
            .SetUseOsDefaultSize(true)
            //.SetSize(new Size(600, 400))
            .Center()
            .SetResizable(true)
            .SetDevToolsEnabled(true)
            .Load(new Uri("app://./index.html"));

        window.WaitForClose();

I know that my mime type is wrong at the moment, but the problem is, the CustomSchemehandler is not called, and it is not even tried to load the initial page.
In electron i did something similar:
        protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }]);
        let createProtocol = (scheme, normalize = true) => {
            protocol.registerBufferProtocol(scheme,
                async (request, respond) => {
                .........

       app.on('ready',
          async () => {
              createProtocol("app");
              await createWindow();
          }
      );

      and in createWindow:
        win.loadURL('app://./index.html', { query: query });

there it worked

You can't load an initial window using the custom scheme. You will have to use an HTTP resource on your disk like index.html in a wwwroot. That resource can then use the custom scheme to load dynamically generated data from the scheme handler.