Setup development environment with Apple M1

Trying to setup development environment for clickhouse-operator following this README.
In docker multi-arch support section, skipped the sudo apt-get command, and ran docker run --rm --privileged command, got following errors
➜  clickhouse-operator git:(master) ✗ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Unable to find image 'multiarch/qemu-user-static:latest' locally
latest: Pulling from multiarch/qemu-user-static
205dae5015e7: Pull complete
816739e52091: Pull complete
30abb83a18eb: Pull complete
0657daef200b: Pull complete
30c9c93f40b9: Pull complete
Digest: sha256:fe60359c92e86a43cc87b3d906006245f77bfc0565676b80004cc666e4feb9f0
Status: Downloaded newer image for multiarch/qemu-user-static:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
exec /register: exec format error

Based on this issue looks like only x86_64 architecture is supported, is there any workaround to develop clickhouse-operator in Apple M1? Thanks!
Test Environment:
Chip: Apple M1 Max
macOS: 13.3 (22E252)

You could just skip this section, it requires for making arm64 docker images under amd64 worker nodes.

Don't be shy, to ask questions in this issue if you have any other troubles

Thanks @Slach !
I continued the setup, unfortunately got another error message, here're the steps I did

Configure minikube

minikube config set driver docker
minikube config set cpus 2
minikube config set kubernetes-version 1.23.1
minikube start
minikube addons enable ingress
minikube addons enable ingress-dns
minikube addons enable metrics-server

Configure devspace

devspace init
? Are you sure you want to use the 'default' namespace?  [Use arrows to move, type to filter]
> No
  Yes

devspace use namespace operator-test
chmod +x ./deploy/devspace/docker-build.sh

Run devspace dev
Here're the command I ran and error messages

➜  clickhouse-operator git:(master) ✗ devspace dev --var=OPERATOR_NAMESPACE=kube-system --var=DEVSPACE_DEBUG=delve
info Using namespace 'operator-test'
info Using kube context 'minikube'
error Auto reload is not supported anymore in DevSpace version 6 and has no effect. Please update your config and use rerunning jobs instead
Ensuring image pull secret for registry: hub.docker.com...
Ensuring image pull secret for registry: hub.docker.com...
build:clickhouse-operator Build altinity/clickhouse-operator:devspace-UzaQ with custom command
build:metrics-exporter Build altinity/metrics-exporter:devspace-gZFU with custom command
build:clickhouse-operator + DEVSPACE_DEBUG=--debug=delve
build:clickhouse-operator + DOCKER_IMAGE=altinity/clickhouse-operator:devspace-UzaQ
build:clickhouse-operator ++ go env
build:metrics-exporter + DEVSPACE_DEBUG=--debug=delve
build:metrics-exporter + DOCKER_IMAGE=altinity/metrics-exporter:devspace-gZFU
...
build:metrics-exporter #4 [internal] load metadata for gcr.io/distroless/static-debian11:latest
build:metrics-exporter #4 ERROR: no match for platform in manifest sha256:7198a357ff3a8ef750b041324873960cf2153c11cc50abb9d8d5f8bb089f6b4e: not found
build:metrics-exporter
build:metrics-exporter #3 [internal] load metadata for docker.io/library/golang:1.19
build:clickhouse-operator #3 CANCELED
build:clickhouse-operator
build:clickhouse-operator #4 [internal] load metadata for gcr.io/distroless/static-debian11:latest
build:clickhouse-operator #4 ERROR: no match for platform in manifest sha256:7198a357ff3a8ef750b041324873960cf2153c11cc50abb9d8d5f8bb089f6b4e: not found
build:clickhouse-operator ------
build:clickhouse-operator  > [internal] load metadata for gcr.io/distroless/static-debian11:latest:
build:clickhouse-operator ------
build:clickhouse-operator Dockerfile:40
build:clickhouse-operator --------------------
build:clickhouse-operator   38 |     # ======================
build:clickhouse-operator   39 |
build:clickhouse-operator   40 | >>> FROM gcr.io/distroless/static-debian11:latest AS image-base
build:clickhouse-operator   41 |
build:clickhouse-operator   42 |     MAINTAINER "Altinity<EMAIL_ADDRESS>build:clickhouse-operator --------------------
build:clickhouse-operator ERROR: failed to solve: gcr.io/distroless/static-debian11:latest: no match for platform in manifest sha256:7198a357ff3a8ef750b041324873960cf2153c11cc50abb9d8d5f8bb089f6b4e: not found
...

Should I update the image here to something like gcr.io/distroless/static-debian11:latest-arm64?

yes try to change image to gcr.io/distroless/static-debian11:latest-arm64 in the following files
dockerfile/metrics-exporter/Dockerfile
dockerfile/clickhouse-operator/Dockerfile

Hi @Slach , thanks for your help!
After updating the image to gcr.io/distroless/static-debian11:latest-arm64, I ran command devspace dev --var=OPERATOR_NAMESPACE=kube-system --var=DEVSPACE_DEBUG=delve, but got following error messages😢
build:metrics-exporter #21 13.61 ++ go build -mod=vendor -a -ldflags '         -X github.com/altinity/clickhouse-operator/pkg/version.Version=0.21.2         -X github.com/altinity/clickhouse-operator/pkg/version.GitSHA=32ef0fad          -X github.com/altinity/clickhouse-operator/pkg/version.BuiltAt=2023-07-28T01:19:01         ' -gcflags ''\''-N' '-l'\''' -o /tmp/metrics-exporter /clickhouse-operator/cmd/metrics_exporter/main.go
build:metrics-exporter #21 13.62 invalid value "'-N" for flag -gcflags: missing =<value> in <pattern>=<value>
build:metrics-exporter #21 13.62 usage: go build [-o output] [build flags] [packages]
build:metrics-exporter #21 13.62 Run 'go help build' for details.
build:metrics-exporter #21 13.62 ++ echo 'WARNING! BUILD FAILED!'
build:metrics-exporter #21 13.62 WARNING! BUILD FAILED!
build:metrics-exporter #21 13.62 Check logs for details
build:metrics-exporter #21 13.62 ++ echo 'Check logs for details'
build:metrics-exporter #21 13.62 ++ exit 1
build:metrics-exporter #21 ERROR: process "/bin/sh -c METRICS_EXPORTER_BIN=/tmp/metrics-exporter bash -xe ./dev/go_build_metrics_exporter.sh" did not complete successfully: exit code: 1
build:metrics-exporter ------
build:metrics-exporter  > [builder 8/8] RUN METRICS_EXPORTER_BIN=/tmp/metrics-exporter bash -xe ./dev/go_build_metrics_exporter.sh:
build:metrics-exporter 13.61 ++ GOARCH=arm64
build:metrics-exporter 13.61 ++ go build -mod=vendor -a -ldflags '         -X github.com/altinity/clickhouse-operator/pkg/version.Version=0.21.2         -X github.com/altinity/clickhouse-operator/pkg/version.GitSHA=32ef0fad          -X github.com/altinity/clickhouse-operator/pkg/version.BuiltAt=2023-07-28T01:19:01         ' -gcflags ''\''-N' '-l'\''' -o /tmp/metrics-exporter /clickhouse-operator/cmd/metrics_exporter/main.go
build:metrics-exporter 13.62 invalid value "'-N" for flag -gcflags: missing =<value> in <pattern>=<value>
build:metrics-exporter 13.62 usage: go build [-o output] [build flags] [packages]
build:metrics-exporter 13.62 Run 'go help build' for details.
build:metrics-exporter 13.62 ++ echo 'WARNING! BUILD FAILED!'
build:metrics-exporter 13.62 WARNING! BUILD FAILED!
build:metrics-exporter 13.62 Check logs for details
build:metrics-exporter 13.62 ++ echo 'Check logs for details'
build:metrics-exporter 13.62 ++ exit 1

Later I tried updating the command here to GCFLAGS='all=-N -l' based on this stack overflow answer, but got another error message
build:metrics-exporter #15 14.81 ++ GCFLAGS='-gcflags '\''all=-N -l'\'''
build:metrics-exporter #15 14.81 ++ CGO_ENABLED=0
build:metrics-exporter #15 14.81 ++ GO111MODULE=on
build:metrics-exporter #15 14.81 ++ GOOS=darwin
build:metrics-exporter #15 14.81 ++ GOARCH=arm64
build:metrics-exporter #15 14.81 ++ go build -mod=vendor -a -ldflags '         -X github.com/altinity/clickhouse-operator/pkg/version.Version=0.21.2         -X github.com/altinity/clickhouse-operator/pkg/version.GitSHA=32ef0fad          -X github.com/altinity/clickhouse-operator/pkg/version.BuiltAt=2023-07-28T01:21:43         ' -gcflags ''\''all=-N' '-l'\''' -o /tmp/metrics-exporter /clickhouse-operator/cmd/metrics_exporter/main.go
build:metrics-exporter #15 14.81 invalid value "'all=-N" for flag -gcflags: parameter may not start with quote character '
build:metrics-exporter #15 14.81 usage: go build [-o output] [build flags] [packages]
build:metrics-exporter #15 14.81 Run 'go help build' for details.
build:metrics-exporter #15 14.81 ++ echo 'WARNING! BUILD FAILED!'
build:metrics-exporter #15 14.81 ++ echo 'Check logs for details'
build:metrics-exporter #15 14.81 ++ exit 1
build:metrics-exporter #15 14.81 WARNING! BUILD FAILED!
build:metrics-exporter #15 14.81 Check logs for details
build:metrics-exporter #15 ERROR: process "/bin/sh -c METRICS_EXPORTER_BIN=/tmp/metrics-exporter bash -xe ./dev/go_build_metrics_exporter.sh" did not complete successfully: exit code: 1

Is there something I could do to resolve this issue? The go version I'm running with is go version go1.20.3 darwin/arm64

gcflags is recommended for using with delve
ok. check 0.21.3 branch
i made several changes
DEPLOY_OPERATOR=yes ./deploy/devspace/dev-run-devspace.sh
should works on arm64 M1

Thanks so much for your help @Slach !
I was able to build clickhouse-operator successfully, however, the last step failed...
build:metrics-exporter #21 86.07 Build OK
build:metrics-exporter #21 86.07 ++ echo 'Build OK'
build:metrics-exporter #21 DONE 86.4s
build:metrics-exporter
build:metrics-exporter #22 [image-base  7/11] COPY --from=builder /tmp/metrics-exporter .
build:metrics-exporter #22 DONE 0.2s
build:metrics-exporter
build:metrics-exporter #23 [image-base  8/11] COPY --from=builder /tmp/bash /bin/bash
build:metrics-exporter #23 DONE 0.0s
build:metrics-exporter
build:metrics-exporter #24 [image-base  9/11] COPY --from=builder /tmp/bash /bin/sh
build:metrics-exporter #24 DONE 0.1s
build:metrics-exporter
build:metrics-exporter #25 [image-base 10/11] COPY --from=builder /tmp/curl /bin/curl
build:metrics-exporter #25 DONE 0.1s
build:metrics-exporter
build:metrics-exporter #26 [image-debug 1/3] RUN echo "Building DEBUG image"
build:metrics-exporter #26 0.507 Building DEBUG image
build:metrics-exporter #26 DONE 0.6s
build:metrics-exporter
build:metrics-exporter #27 [image-debug 2/3] COPY --from=delve-builder /go/bin/dlv /go/bin/dlv
build:metrics-exporter #27 DONE 0.1s
build:metrics-exporter
build:metrics-exporter #28 exporting to image
build:metrics-exporter #28 exporting layers
build:metrics-exporter #28 exporting layers 0.4s done
build:metrics-exporter #28 writing image sha256:49b5ffba1bee76e94a627c551d41489b7cd0ee58489d37d8648364dd2e851cc0 done
build:metrics-exporter #28 ERROR: operating system is not supported
build:metrics-exporter ------
build:metrics-exporter  > exporting to image:
build:metrics-exporter ------
build:metrics-exporter ERROR: failed to solve: operating system is not supported

Here's my full build log, is there any additional changes I should make?

I don't know which exactly command return ERROR: operating system is not supported
try to run manually
bash -xe ./deploy/devspace/docker-build.sh --debug=delve altinity/metrics-exporter:devspace-test

moreover, could you share
docker --version full output

Hey @Slach , thanks! Sure, got it.
Here's the output for running command bash -xe ./deploy/devspace/docker-build.sh --debug=delve altinity/metrics-exporter:devspace-test, and the docker command full output are
➜  clickhouse-operator git:(0.21.3) ✗ docker --version
Docker version 24.0.2, build cb74dfc
➜  clickhouse-operator git:(0.21.3) ✗ docker info
Client:
 Version:    24.0.2
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.0
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.19.1
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-compose
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.20
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.6
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-sbom
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-scan
  scout: Command line tool for Docker Scout (Docker Inc.)
    Version:  0.16.1
    Path:     /Users/shenzhu/.docker/cli-plugins/docker-scout

Server:
 Containers: 24
  Running: 20
  Paused: 0
  Stopped: 4
 Images: 13
 Server Version: 23.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc version: v1.1.5-0-gf19387a
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.49-linuxkit-pr
 Operating System: Ubuntu 20.04.5 LTS
 OSType: linux
 Architecture: aarch64
 CPUs: 5
 Total Memory: 7.667GiB
 Name: minikube
 ID: 61d01b0f-4c8b-47dd-ab14-fa938777a87e
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 No Proxy: control-plane.minikube.internal
 Labels:
  provider=docker
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/12
  <IP_ADDRESS>/8
 Live Restore Enabled: false

Not sure why it shows Ubuntu for my docker environment...but somehow I made it work with following changes
diff --git i/deploy/devspace/docker-build.sh w/deploy/devspace/docker-build.sh
old mode 100644
new mode 100755
index 2762b9c2..2c7ee8d3
--- i/deploy/devspace/docker-build.sh
+++ w/deploy/devspace/docker-build.sh
@@ -13,9 +13,9 @@ else
 fi

 if [[ "${DEVSPACE_DEBUG}" == "--debug=delve" ]]; then
-    time docker buildx build --progress plain --output "type=image,name=${DOCKER_IMAGE}" --platform="${TARGET_PLATFORM}" -f ${DOCKER_FILE} --target image-debug --build-arg GCFLAGS='-N -l' -t "${DOCKER_IMAGE}" .
+    time docker buildx build --progress plain --output "type=image,name=${DOCKER_IMAGE}" --platform="${TARGET_PLATFORM}" -f ${DOCKER_FILE} --target image-debug --build-arg GCFLAGS='all=-N -l' -t "${DOCKER_IMAGE}" .
 else
-    time docker buildx build --progress plain --output "type=image,name=${DOCKER_IMAGE}" --platform="${TARGET_PLATFORM}" -f ${DOCKER_FILE} -t "${DOCKER_IMAGE}" .
+    time docker buildx build --progress plain --output "type=image,name=${DOCKER_IMAGE}" --platform=linux/amd64 -f ${DOCKER_FILE} -t "${DOCKER_IMAGE}" .
 fi

 docker images "${DOCKER_IMAGE%:*}"
diff --git i/deploy/devspace/docker-clean.sh w/deploy/devspace/docker-clean.sh
old mode 100644
new mode 100755
diff --git i/deploy/devspace/yq_transform_clickhouse-operator-install.sh w/deploy/devspace/yq_transform_clickhouse-operator-install.sh
old mode 100644
new mode 100755
index 8b1c7bba..4a685f0f
--- i/deploy/devspace/yq_transform_clickhouse-operator-install.sh
+++ w/deploy/devspace/yq_transform_clickhouse-operator-install.sh
@@ -14,4 +14,4 @@ yq eval -e --inplace "(select(.kind == \"Deployment\" and .metadata.name == \"cl
 yq eval -e --inplace '(select(.kind == "Deployment" and .metadata.name == "clickhouse-operator") | .spec.template.spec.containers[] | select(.name=="metrics-exporter") | .imagePullPolicy) = "IfNotPresent"' "${CUR_DIR}/clickhouse-operator-install.yaml"
 yq eval -e --inplace '(select(.kind == "Deployment" and .metadata.name == "clickhouse-operator") | .spec.template.spec.containers[] | select(.name=="metrics-exporter") | .securityContext.capabilities.add) = ["SYS_PTRACE"]' "${CUR_DIR}/clickhouse-operator-install.yaml"

-sed -i "s/namespace: kube-system/namespace: ${OPERATOR_NAMESPACE}/" "${CUR_DIR}/clickhouse-operator-install.yaml"
+# sed -i "s/namespace: kube-system/namespace: ${OPERATOR_NAMESPACE}/" "${CUR_DIR}/clickhouse-operator-install.yaml"
diff --git i/dockerfile/metrics-exporter/Dockerfile w/dockerfile/metrics-exporter/Dockerfile
index a7b0b060..b1ea8456 100644
--- i/dockerfile/metrics-exporter/Dockerfile
+++ w/dockerfile/metrics-exporter/Dockerfile
@@ -37,7 +37,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" go in
 # ===== Image Base =====
 # ======================

-FROM gcr.io/distroless/static-debian11:latest AS image-base
+FROM gcr.io/distroless/static-debian11:latest-amd64 AS image-base

 MAINTAINER "Altinity<EMAIL_ADDRESS>
diff --git i/dockerfile/operator/Dockerfile w/dockerfile/operator/Dockerfile
index a0df1815..164a27cf 100644
--- i/dockerfile/operator/Dockerfile
+++ w/dockerfile/operator/Dockerfile
@@ -37,7 +37,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" go in
 # ===== Image Base =====
 # ======================

-FROM gcr.io/distroless/static-debian11:latest AS image-base
+FROM gcr.io/distroless/static-debian11:latest-amd64 AS image-base

 MAINTAINER "Altinity<EMAIL_ADDRESS>
And with command devspace dev --var=OPERATOR_NAMESPACE=kube-system:
deploy:clickhouse-operator Wait when 'clickhouse-operator' Deployment will ready...
deploy:clickhouse-operator ...Done
deploy:clickhouse-operator Untagged: altinity/metrics-exporter:devspace-HWKH
deploy:clickhouse-operator Deleted: sha256:ca6631feebd6f20a5b9fb5940a23e807842acf883b56246eb95e6a507a24a247
deploy:clickhouse-operator Untagged: altinity/metrics-exporter:devspace-mNqG
deploy:clickhouse-operator Deleted: sha256:4c9b7471d8737d0b66b55aa65093bb6e184a02fdbe619aab3f2c3c9525d49a66
deploy:clickhouse-operator Untagged: altinity/metrics-exporter:devspace-BvXO
deploy:clickhouse-operator Deleted: sha256:d904c8925a9eaf9d45cd27b97e4893733d9b93acc886b2a7d8c08ec02133268d
deploy:clickhouse-operator Error response from daemon: conflict: unable to delete 792be2cbc89f (cannot be forced) - image is being used by running container 23bfe85d9ba1
dev:ports-1 Waiting for pod to become ready...
dev:ports-0 Waiting for pod to become ready...
dev:ports-0 Selected pod clickhouse-operator-7f6bd55b7b-sqtf2
dev:ports-1 Selected pod clickhouse-operator-7f6bd55b7b-sqtf2
dev:ports-0 ports Port forwarding started on: 40001 -> 40001
dev:ports-1 ports Port forwarding started on: 8888 -> 8888, 40002 -> 40002


The to_tf_dataset is missing collate_fn argument.

Information
The problem arises in chapter:

[ ] Introduction
[x] Text Classification
[ ] Transformer Anatomy
[ ] Multilingual Named Entity Recognition
[ ] Text Generation
[ ] Summarization
[ ] Question Answering
[ ] Making Transformers Efficient in Production
[ ] Dealing with Few to No Labels
[ ] Training Transformers from Scratch
[ ] Future Directions

Describe the bug
The to_tf_dataset throws an error TypeError: to_tf_dataset() missing 1 required positional argument: 'collate_fn'. This could be a version issue.
cc @lewtun @cakiki

For clarification: I was not using the repo (and therefore not using the pinned requirements), I just had the book open and typing along into an environment I had with the following:
- `transformers` version: 4.18.0
- Platform: Linux-4.15.0-176-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- Huggingface_hub version: 0.5.1
- PyTorch version (GPU?): not installed (NA)
- Tensorflow version (GPU?): 2.9.0-rc0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: yes
- Using distributed or parallel set-up in script?: no

I think to_tf_dataset is currently being revamped, so definitely a version issue :smiley_cat: (https://github.com/huggingface/datasets/pull/4170)

I don't think this is a version issue! We are revamping that function, but I believe the DataCollator should be passed to the collate_fn argument either way.

That said, the code might work without a collator after the current PR is merged, because it includes a minimal default collator.


SerialPort.parsers "readline" should be camel case, or documentation should be updated

SerialPort version: 4.0.3
NodeJS Version: 6.3.1
Operating System and Hardware: OS X
Are you using Electron/Atom/NwJS?: No
Summary of Problem
SerialPort.parsers "readline" should be camel case, or documentation should be updated
Expected Behavior
ReadLine
Actual Behavior
readline
Steps and Code to Reproduce the Issue
console.log(SerialPort.parsers.ReadLine);

+1

Thanks @reconbot !


msm-javolution-serializer: ReflectionBinding does not honor XMLSerializable interface

From<EMAIL_ADDRESS>on February 05, 2010 12:09:15
When using javolution, one can create a custom XMLFormat by use of the
XMLSerializable interface.
But this interface is ignored by the ReflectionBinding.getFormat() method.
This applies to all Versions up to and including 1.2-SNAPSHOT.
I've attached a patch that solves the issue. I've used the patch in my
project to implement a custom XMLFormat and it worked.
Would be nice to add it to the master.
Thomas
Attachment: honor_xml_serializable.patch
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=33

From martin.grotzke on February 05, 2010 08:33:50
(No comment was entered for this change.)
Summary: msm-javolution-serializer: ReflectionBinding does not honor XMLSerializable interface
Status: Accepted

From martin.grotzke on February 05, 2010 08:34:32
(No comment was entered for this change.)
Owner: martin.grotzke

From martin.grotzke on February 10, 2010 08:32:52
(No comment was entered for this change.)
Labels: Milestone-1.2

From martin.grotzke on February 10, 2010 09:31:30
Applied the patch and wrote a unit test to show it's working - thanx for the issue and
patch!
Changes are merged to develop branch, this will be released with 1.2
Status: Fixed


Added app but stuck at login?.

Good Morning,
I've completed the steps and "Added the app" to teams but stuck at this page. Clicking login does nothing.

Would appreciate any help :)
Many thanks,
Ciaran

@CiaranSuntera , thank you for reporting this issue.
Please verify if you have entered the correct Client Id and Client Secret during deployment. Ensure that the Client Id is the same in the Teams Manifest file. Also, check if the Base resource name is in uppercase. To confirm, navigate to the Azure Resource group, click on deployment, then select "Microsoft.template" and review the input section to verify the Client Id and Base resource name.
Additionally, open Teams in a browser and access the developer tools. Keep the developer tools open, then access the TEOC app and try to reproduce the issue. Please share the Console log, network traces and Teams Manifest file which you uploaded to Teams Admin center.

Thank you for your swift reply!
I’ve check and it would seem the IDs are correct in the Inputs, and all is lower case:
Inputs Page:
@.***
App Registration Page:
@.***
I’ve noted the below error on the on deployment if that has any effect.
@.***
Kind Regards,
Ci
CIARÁN CLARKE
IT Engineer, Suntera Global
T +44 1624 682255 // M +44 7624 476139
Email<EMAIL_ADDRESS>Websitehttps://www.suntera.com/ // My LinkedInhttps://www.linkedin.com/in/daniel-bryans-8593a416/ // Suntera LinkedIn
https://www.linkedin.com/company/67739595/
Suntera Group Limited, a company registered in the Isle of Man (001262V) at Peveril Buildings, Peveril Square, Douglas, Isle of Man, IM99 1RZ. A member of the Suntera Global group of companies. This email is confidential. For full details of limitations on the use of this email, other companies within the group, additional contact and regulatory details, your data rights and other useful information please visit our websitehttps://www.suntera.com/legal-and-regulatory.
@.***https://www.suntera.com/?utm_campaign=SG24_Suntera Global&utm_source=Outlook&utm_medium=Outlook Signature Banner&utm_content=Outlook Signature Banner - Global 4
From: v-ajaysahu @.>
Sent: 25 November 2024 14:27
To: OfficeDev/microsoft-teams-emergency-operations-center @.>
Cc: Ciarán Clarke @.>; Mention @.>
Subject: Re: [OfficeDev/microsoft-teams-emergency-operations-center] Added app but stuck at login?. (Issue #296)
@CiaranSunterahttps://github.com/CiaranSuntera , thank you for reporting this issue.
Please verify if you have entered the correct Client Id and Client Secret during deployment. Ensure that the Client Id is the same in the Teams Manifest file. Also, check if the Base resource name is in uppercase. To confirm, navigate to the Azure Resource group, click on deployment, then select "Microsoft.template" and review the input section to verify the Client Id and Base resource name.
Additionally, open Teams in a browser and access the developer tools. Keep the developer tools open, then access the TEOC app and try to reproduce the issue. Please share the Console log, network traces and Teams Manifest file which you uploaded to Teams Admin center.
—
Reply to this email directly, view it on GitHubhttps://github.com/OfficeDev/microsoft-teams-emergency-operations-center/issues/296#issuecomment-2498165519, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4IIXY2V2WEDDCRNB2W4ILD2CMXTRAVCNFSM6AAAAABSNPQRD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJYGE3DKNJRHE.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

@CiaranSuntera ,
Since your response was via email, we couldn't view the details. Could you please respond directly on GitHub so we can access the shared information? Additionally, please provide the console logs and network traces as mentioned in the previous comments.

@CiaranSuntera ,
Thank you for providing the logs and screenshot. Upon review, we identified that the Web Application Info resource URL in the Teams Manifest file is incorrect. It should be "api://<<appDomain>>/<<clientId>>". In your case, the app domain is suntera-eoc.azurewebsites.net, and you need to add the client ID. Kindly follow the instructions provided in the link below and subsequently upload the Team App package to Teams.
https://github.com/OfficeDev/microsoft-teams-emergency-operations-center/wiki/Deployment-Guide#7-create-the-teams-app-packages


Foss compliance

During FOSS compliance check of our product the file jsonify module was identified as in public domain. In Swiss Law it is not possible to give up the copyright. There is the risk that our company can be sued by the copyright holder for a copyright infringement or that the author can place the software under a restrictive license (e.g. GPL with Copyleft) at any time. We are not able to reach the author. The module is installed by react scripts evry time i run install, there's a way to remove it from  my CRA or add a license?

What’s the dependency chain? npm ls jsonify

@gaearon
`--<EMAIL_ADDRESS>  +--<EMAIL_ADDRESS>  | `--<EMAIL_ADDRESS>  |   `--<EMAIL_ADDRESS>deduped
  +--<EMAIL_ADDRESS>  | `--<EMAIL_ADDRESS>  |   `--<EMAIL_ADDRESS>  |     `--<EMAIL_ADDRESS>  |       `--<EMAIL_ADDRESS>deduped
  `--<EMAIL_ADDRESS>    `--<EMAIL_ADDRESS>      `--<EMAIL_ADDRESS>

If you get shell-quote to drop the dependency, happy to bump the version we use.

this topic is of interest to me
looked at shell-quote, looks like 1.6.1 has a LICENSE file with MIT in it.

https://github.com/substack/node-shell-quote/pull/21, looks like there already was a PR to shell-quote to drop it years ago, but it never was merged :)


use light mode G not work at all

just like this, which D has a very small loss

may need to train more steps

may need to train more steps

already, it dose not work

I also met such case

+1, I already trained more than 100000 steps but still got blank outputs.

+1, Using light mode gets similar results.

It seems the input channel after adaptive_avg_pooling in light mode can't be set too small.
if self.light:             FC = [nn.Linear(ngf * mult, ngf * mult, bias=False),                   nn.ReLU(True),                   nn.Linear(ngf * mult, ngf * mult, bias=False),                   nn.ReLU(True)]
if I change the first ngf * mult to a larger one. Then the output img is normal.

I try with this command
python main.py --dataset selfie2anime --light True --resume True --save_freq 10000 --benchmark_flag True
and the following is my result at 100,000 epoch.  btw I continue the training start from 10000 (it is just the save network testing before).

B2A is terrible...


Remove anchor peers from configtx.yaml tutorial

Signed-off-by: Nikhil Gupta<EMAIL_ADDRESS>Type of change

Documentation update

Description
This deprecated feature has been removed from the configtx.yaml of the test network. We should remove this section from the tutorial as well.
Anchor peers are documented in the main create channel tutorial.

@Mergifyio backport release-2.3

@Mergifyio backport release-2.3

@Mergifyio backport release-2.2

@Mergifyio backport release-2.2


Content-Location not generated correctly with mongo IDs.

The Content-Location header is not serialized correctly when the ID is a mongo ID.
$ bat POST :2015/api/as Authorization:"Bearer ${KEY}" name=n1
POST /api/as HTTP/1.1
Host: localhost:2015
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: Bearer XXX
Content-Type: application/json
User-Agent: bat/0.1.0

{"name":"n1"}

HTTP/1.1 201 Created
Last-Modified: Thu, 07 Sep 2017 20:28:37 GMT
Server: Caddy
Content-Length: 45
Content-Location: /as/ObjectIdHex("59b1abf5cee0fb0001ea732e")
Content-Type: application/json
Date: Thu, 07 Sep 2017 20:28:37 GMT
Etag: "5efa3a3f0f355cef35d7ca2464d4836d"

{
  "id": "59b1abf5cee0fb0001ea732e",
  "name": "n1"
}

The problem lies in encoding/bson Go package (bug maybe?):
// String returns a hex string representation of the id.
// Example: ObjectIdHex("4d88e15b60f486e428412dc9").
func (id ObjectId) String() string {
	return fmt.Sprintf(`ObjectIdHex("%x")`, string(id))
}

We might need to wrap it then.

@rs Interestingly how bson.ObjectId leaks into rest-layer. Shouldn't all such occurrences be wrapped within github.com/rs/rest-layer-mongo ObjectID type?

I think so.

@rs Thanks, will try to fix this issue myself.

Not sure it's in the mongo package.  I used the  rest-layer-mongo.ObjectIDField. Should it not call the serializer method in rest-layer on the location URLgeneration?
https://github.com/rs/rest-layer-mongo/blob/f301bb23e3cb499e6ddd0c9c7210a3d158570f9f/id.go#L57
This method does return a string:
https://godoc.org/gopkg.in/mgo.v2/bson#ObjectId.Hex

@smyrman Please take a look at the open issue in rest-layer-mongo

@smyrman might be true. Perhaps we should get the validator of the id field and use the validator's serializer if provided. This way we wouldn't have to wrap the ObjectID.

@rs Might be cleaner solution.


Fix pep508 logic assuming single-digit minor versions

If the python version were to reach 3.10.0, the logic from pep508 would result in a python_version of 3.1 instead of 3.10

@joshfriend, thanks for taking the time to put this together! I agree that this will eventually be a problem, however I have a quick note here. The initial patch is to a currently unmodified file from pip itself. Rather than keeping track of that on our end, it would be much better to get this merged upstream.
If you wouldn't mind opening a PR there, and seeing it through to merge, that would be really helpful. At that time, I think we can look at merging this. I'm going to close this out for now though since we're at least 3.5 years out from a 3.x release greater than 9. If it's not fixed before then, we'll know it when pip does. Please feel free to ping here when things are set up in the pip repo.
Thanks again!

The initial patch is to a currently unmodified file from pip itself

I somehow did not look at the file path and realize that, sorry 😝
The PEP508 document also has it wrong.
I'll send a fix to pip first though, even if its a long ways away from being a problem :)


detype input and get element by name 0

The widget, and thus the edior, crashed and did not show anything in dev-root. This seemd to fix it even thoug it is a bit undefined :)

Sorry, I forgot to change it! Vite does a little bit worse job of making cutting edge stuff work in browsers. Did the exact same thing in topic map, so let's copy the jQuery type info from there.


Update firefox-fr to 49.0

Checklist

[x] The commit message includes the cask’s name and version.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.

See https://github.com/caskroom/homebrew-versions/pull/2558.


Remove powershell popup with PM2

When using PM2 we get a powershell window that opens then closes once audio completes.
Adding "windowsHide: true" makes sure no window opens when starting a process from node.

@Durss If that is a specific fix for Windows, can we only input the params in the window command only?

I can't tell if it's a Windows specific issue i havent tried on any other OS.
But in any case I see no reason why it would cause any trouble to other OS :)
I ended up using a home made solution because this module had too much delay between the command and the audio actually playing, so, in the end, I'm not much concerned by this issue anymore but I think it would only benefit the module to enable this flag :)

Sounds great, I'll review and make adjustment if necessary. Thanks.


plots: soft-deprecate stage-level plot definitions

We can soft-deprecate plots inside stages (see https://github.com/iterative/example-repos-dev/pull/117#issuecomment-1175197428)... references to plots inside stages in the cmd-ref and dvc.yaml description
Originally posted by @dberenbaum in https://github.com/iterative/dvc.org/issues/3691#issuecomment-1182017982

p.s. we need to update dvc plots modify (see https://github.com/iterative/dvc/issues/7753) to work with top-level plots before we can deprecate stage-level plots
Originally posted by @dberenbaum in https://github.com/iterative/dvc.org/pull/3691#issuecomment-1183541808

As noted by @shcheklein, we may want to wait on this since there's no support for advanced scenarios like foreach in top-level plots.

We have done more to emphasize top-level plots and explain the differences  between them and stage-level plots. No further action planned for now.


drivers: eeprom: at2x: initialize after I2C/SPI

Introduce dedicated init priority for AT2X EEPROMs connected via I2C or SPI to ensure they are initialized after I2C/SPI by default.
This approach is similar to other drivers (e.g. flash, DAC) which can be either an internal peripheral of the MCU or connected via I2C or SPI.
Found this issue while trying out #55654 in our custom application. For verification run the following command in the PR branch:
$ west build -b native_posix tests/drivers/build_all/eeprom -p -- -DCONFIG_CHECK_INIT_PRIORITIES=y
...
WARNING: /test/spi@33334444/at25@0 POST_KERNEL 50 == /test/spi@33334444 POST_KERNEL 50
WARNING: /test/i2c@11112222/at24@0 POST_KERNEL 50 == /test/i2c@11112222 POST_KERNEL 50

Thank you for addressing this, but why not just change the default EEPROM initialization priority to 80?

In order to avoid breaking existing code as much as possible. There may be out-of-tree drivers depending on information stored in the built-in EEPROM (didn't find anything in-tree though).
I think it's a general problem: We should have more granularity for driver initialization than just CONFIG_KERNEL_INIT_PRIORITY_DEVICE, e.g. one level for built-in low-level peripheral drivers (I2C, SPI) and a lower prio (higher value) for drivers which use those low-level peripherals.
I'm fine to raise overall EEPROM priority to 80 if you wish, but that doesn't seem to be the typical approach when looking at similar drivers.


building without brew

currently build.rs requires brew to be installed even if everything is installed and available by other means (e.g. nix)
i think it should not check for brew, and instead check for pkg-config binary in PATH and use paths provided by it, instead of relying on brew

currently build.rs requires brew to be installed even if everything is installed and available by other means (e.g. nix)
i think it should not check for brew, and instead check for pkg-config binary in PATH and use paths provided by it, instead of relying on brew

currently build.rs requires brew to be installed even if everything is installed and available by other means (e.g. nix)
i think it should not check for brew, and instead check for pkg-config binary in PATH and use paths provided by it, instead of relying on brew

currently build.rs requires brew to be installed even if everything is installed and available by other means (e.g. nix)
i think it should not check for brew, and instead check for pkg-config binary in PATH and use paths provided by it, instead of relying on brew

currently build.rs requires brew to be installed even if everything is installed and available by other means (e.g. nix)
i think it should not check for brew, and instead check for pkg-config binary in PATH and use paths provided by it, instead of relying on brew


feat: #2475 - "contribute" now links to "in app" to-be-completed page

Impacted file:

user_preferences_contribute.dart: now opens the "in app" to-be-completed page instead of the web version

What

From the "contribute" page in preferences, now you open directly the "all to be completed" product page.

Fixes bug(s)

Closes: #2475

Codecov Report

Merging #2623 (3c49648) into develop (2ea0da3) will decrease coverage by 1.33%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop   #2623      +/-   ##
==========================================
- Coverage     8.86%   7.52%   -1.34%
==========================================
  Files          161     212      +51
  Lines         6623   10153    +3530
==========================================
+ Hits           587     764     +177
- Misses        6036    9389    +3353

Impacted Files
Coverage Δ

...kages/smooth_app/lib/widgets/attribute_button.dart
0.00% <0.00%> (-92.00%)
:arrow_down:

...s/smooth_app/lib/data_models/user_preferences.dart
8.73% <0.00%> (-23.57%)
:arrow_down:

packages/smooth_app/lib/themes/smooth_theme.dart
60.00% <0.00%> (-22.98%)
:arrow_down:

...p/lib/generic_lib/dialogs/smooth_alert_dialog.dart
15.11% <0.00%> (-19.10%)
:arrow_down:

...mooth_app/lib/data_models/product_preferences.dart
24.65% <0.00%> (-6.78%)
:arrow_down:

packages/smooth_app/lib/main.dart
14.16% <0.00%> (-3.73%)
:arrow_down:

.../smooth_app/lib/pages/onboarding/welcome_page.dart
0.00% <0.00%> (-3.13%)
:arrow_down:

.../smooth_app/lib/pages/onboarding/scan_example.dart
0.00% <0.00%> (-2.28%)
:arrow_down:

...p/lib/pages/onboarding/consent_analytics_page.dart
0.00% <0.00%> (-1.57%)
:arrow_down:

...smooth_app/lib/pages/product/new_product_page.dart
0.00% <0.00%> (-0.88%)
:arrow_down:

... and 223 more

Continue to review full report at Codecov.

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


Campfire Mode Volume Slider

Is your feature request related to a problem? Please describe.
I like the campfire mode's idea, however it would be nice to control the volume of it instead of turning my main speaker down.
Describe the solution you'd like
For volume under the campfire settings, or even in the top right menu(so we can control anywhere on site)
Describe alternatives you've considered
A volume slider in the menu would allow for easier, quicker control of the volume.
Additional context
I'm sorry about the duplication in the solution and alternative, its a simple feature but they were required to fill.

Sounds like a good idea. Would you be interested in helping us build it out? We will be happy to guide you through it. If not, that's OK - let us know, and we will open this up for contribution.
Happy coding.

Hi! I am a new FreeCodeCamp contributor and I would be happy to help design/implement this.
Hit me up if I can help.

Thanks, @benjamrio. I would give @DemonSlayer112 some time to respond; stay tuned.

Im afraid im more ideas then functionality right now, though im sure you guys would be able to find a nice fit that would match the site's layout :)
Sorry for the waited response

No worries @DemonSlayer112 thanks for getting back to us! Please feel free to share ideas and feedback, those are really valuable to us.
@benjamrio if you are around and interested we are opening this for contributions.

Hi @raisedadead ! Yes I am still interested in helping building this. I am super excited to work on a component, yet it might take me sometimes getting everything right. Fortunately the contributing guide helps a lot.

Awesome - there is no rush, take all the time you need to build it. Also you can reach out to us on the forum or the contributor's chat if you find yourself stuck.

Hi @raditotev . Thank you very much for offering your help. I will look a bit on my side to see what I can figure out alone and will reach out to you.


AttributeError: 'Environment' object has no attribute 'dist_metric'

Hello @hongyeehh, @sabrinaossey and I are finding the following error when we try to run the tool. Did you find it before?
Error:
root@1830f64ae1c5:/odtp/odtp-workdir/irmlma# python3 mobsim/scripts/run.py
Traceback (most recent call last):
  File "/odtp/odtp-workdir/irmlma/mobsim/scripts/run.py", line 54, in <module>
    simulator = DTEpr(env)
  File "/usr/local/lib/python3.10/dist-packages/mobsim/models.py", line 222, in __init__
    super().__init__(env, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/mobsim/models.py", line 21, in __init__
    if self.env.dist_metric == "euclidean":
AttributeError: 'Environment' object has no attribute 'dist_metric'

Config file:
# True reading from db, false reading from data_dir
database: False
# simulated, whether to use simulated or real data
simulated: False

data_dir: "./data/input"
loc_seq_file: "loc_seq.csv"
locs_file: "locs.csv"

# parameters from empirical distribution
wait:
  # could be lognormal, powerlaw or truncpowerlaw
  type: "lognormal"

  # parameter for lognormal
  mu: 0.75
  sigma: 1.49

  # parameter for both powerlaw (default 1.2) and truncpowerlaw (default 1.1)
  alpha: 1.2

  # parameters for truncpowerlaw
  Lambda: 0.5

jump:
  # could be lognormal, powerlaw or truncpowerlaw
  type: "lognormal"

  # parameter for lognormal
  mu: 7.72
  sigma: 2.38

  # parameter for both powerlaw (default 1.2) and truncpowerlaw (default 1.1)
  alpha: 1.2

  # parameters for truncpowerlaw
  Lambda: 0.5

rho:
  type: "normal"
  mu: 0.64
  sigma: 0.16

gamma:
  type: "normal"
  mu: 0.18
  sigma: 0.069

# shall be within [0, 1]; change to non 0 value to perform hard interventions
P: 0.0

Thanks for the bug report, and sorry for the confusion. The code logic got complicated after the database integration.
The parameter allows the user to specify a projected coordinate system of the locations, so the distance calculation can be performed in Euclidian space instead of the much slower Haversine distance. This has now been corrected to the proj_crs parameter in the config file. I hope the issue is fixed with the latest code push.

Hello @hongyeehh now it works perfect. Thank you a lot for the quick fix.


no module " pybind11"

thanks for your excellent work.
when i run  this command" docker-compose up --build builder",i get this error message in step 9/16
`Successfully installed easydict-1.10 pykitti-0.3.1 trimesh-3.20.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Processing /puma
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-e_smm85x/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-e_smm85x/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-e_smm85x/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-e_smm85x/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pybind11'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Service 'builder' failed to build: The command '/bin/sh -c cd /puma     && pip install --no-cache-dir --requirement requirements.txt     && pip install --no-cache-dir --upgrade .     && rm -rf /puma' returned a non-zero code: 1
`

Hello there, I'm not actively supporting this project anymore. I guess that you could try with sudo apt install pybind11-dev on the Dockerfile, but I'm not sure about your environment setup.
Maybe someone from the community can help in the future!

thanks for your reply

Hi I solved this problem by adding
[build-system]
requires = ["setuptools", "wheel", "pybind11"]
build-backend = "setuptools.build_meta"

in pyproject.toml


unicode-node css style

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: MacOS Sierra 10.12.2
Hyper.app version: <IP_ADDRESS>9
Link of a Gist with the contents of your .hyper.js: https://gist.github.com/enguerran/c7c56adcaca07b9679daad7328d8bbfd
Relevent information from devtools (CMD+SHIFT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
The issue is reproducible in vanilla Hyper.app: zsh + oh-my-zsh + bullet-train theme

Issue
I have a unicode-node style issue: on the left, the actual css rule with unicode-node { display: inline-block; }, on the right, a modified css rule with unicode-node { display: inline; }.
My custom emojis (goat + gust of wind) are better aligned on the right.
Do you think it is a issue on hyper or may it be a issue on another element in my terminal stack (MacOS + hyper + zsh + oh-my-zsh + bullet-train + Powerline font)?

same result,and unicode-node { display: inline; } works

Same goes for me, but..
Changing inline-block to inline fixes icons, but the cursor shifts (due to icon widths?).

Turning on newline in the prompt makes it bearable. This also makes tmux usable again, see my comment here #1156. As long as you dont split the window vertically

I found this to be driving me nuts with the vim plugin airline. everything renders correctly in this terminal except for the trigram for heaven glyph used to display the line numbers at the bottom. You can see what i'm talking about in this other issue for more information. I've attached a screenshot with the css patched for the unicode node so you can see what i'm referring to.
broken:

patched:

If i might ask. Where are you guys setting this in your .hyper.js file? So far I have tried setting it in css and termCss but neither has worked, if i change it from the dev console it does work however

@schmittyjd
this will be work, but I don't know why it will not working after i use this hyperterm-retro plugin
termCSS: `
  span.wc-node.unicode-node {
    display: inline;
  }
`

I close the issue because new versions are out and if there is still an issue, someone will reopen it.


1.0 -> 2.0 Transition Guide suggested addition - twoWay directives and filters

I just upgraded an app from 1.0 to 2.0 and a mention that twoWay directives and filters should be converted to v-model on a component wrapping an input (at least that seems the case) would be helpful.

@chrisvfritz just updated the guide: http://vuejs.org/guide/migration.html#Two-Way-Filters-deprecated
Does that cover the points you feel were missimg?

Wow, that's a great new section! Two things:

There's some occasional weirdness with the JSFiddle embeds where they don't seem to load properly sometimes. Safari 9.1.3 on El Capitan.
For those who don't want to go through all of the examples, perhaps this sentence:

Instead, components are recommended as a more explicit and feature-rich way of creating custom inputs.

could say something like:

Instead, components wrapping an input are recommended as a more explicit and feature-rich way of creating custom inputs.

Thanks!

Also, it might be worth it to have a blurb elsewhere like "Two-Way Directives ^ deprecated" that points to this section.

Oh, and some of the examples say they select the text on focus - but on Safari, if I click them with the mouse you can see the text get selected and then it unselects.

Thanks for the feedback!
/ping @chrisvfritz

@davidkhess I just pushed up a couple updates that I think should resolve all of these. Let me know what you think!

Looks great!

Fantastic. 😄  Thanks for your help!


dependency problem?

Hello,
I'm currently having trouble with the urlencoded package (I think).
I muse use serde 0.6.11, but urlencoded is including a new bodyparser 0.1.0, which needs a minimum of serde 0.6.15.
I've tried specifying various combinations in Cargo.toml to try to force specific versions of urlencoded and bodyparser, but I either get 2 versions (so serde 0.6.15 is still required) or Cargo hangs forever.
Any suggestions ?
Am I correct in saying that if urlencoded specified specific versions of its dependencies I wouldn't have my current problem?
Thanks.

I don't understand the problem. Are you getting a version split? Or is there an actual conflict? Or does it not compile?

Also body-parser seems to depend on 0.6.11 specifically.


Get Started Link Broken

Issue
This was working the other day, but I think due to the rebranding, the "Getting Started" link has since broken

The current link goes here:
https://radicle.xyz/get-started.html
But is now pointing to a broken page:

Proposal
I'd try and find an alternative
And make a note to the Radicle team about making a permanent/canonical getting started page that won't break
These types of pages tend to be linked externally a lot

Hey @bordumb, thank you for creating an issue for this topic! :raised_hands:
In truth, we've been aware of this broken link --as well as other inconsistencies, including branding discrepancies emergent from the Radicle rebranding-- since the very first day the new website was published but hadn't documented them in issues yet (Easter time).
I'll see if I can sort all that out today. I'll keep you posted. :)

Here's the discussion with the team and the follow-up.

the page doesn't under the URL radicle.xyz/get-started.html exist anymore and there are no plans to restore it.
the previously broken link will now be "fixed"/mitigated for us (VS Code extension) and everyone else by having it at least redirect to the home page
the CLI team has a getting-started flow planned for the CLI itself


All my previous pull requests, plus some bits

All the individual pull requests I sent (#2, #3, #4) are stand alone chunks of work, but here is a branch containing all of them, plus some extra clean up that does not deserve a pull request of its own. This is how I am using this app in the application that I am currently building, and is how I envisioned my changes to ultimately be applied.

Tim,
First let me say, THANKS! I appreciate all the pull requests and explanations. I will be reviewing them and merging them for a target of a new release ASAP.
Patrick

I really disagree with the "Remove all the CSS cruft..." commit. It's not wrong to ship with some css that just works out of the box. It's not dictating anything as you can just not include the css by omitting the tag and style it yourself as a site developer.

Can you update your fork with the master from this repo and create two new pull requests with the last two commits you have there (like list tag -- will need to be reworked based on the settings change I made where I use setting instead of registry, and the render_like tag)?  Thanks.

I am still very interested in 1193aaa and 5a41e83 but think it best if they are updated with what's now currently on master and sent as new pull requests, if that isn't too much trouble. Therefore I am closing this pull request. Thanks!


Page Authorization

Existing authentication methods will need to be modified to allow for the new user type of a non-admin.  The current ‘requireAuthentication’ Page wrapper function checks for both a session and admin rights.  The function will need to be modified to take arguments in order to determine role requirements for a specific page.
Current Roles:  Admin (true / false)
Proposed Roles:
“ProgramAdministrator” : A user that can view and download form responses.
“Administrator”: A user that can access all pages except to view and download form responses.
To support the new authentication wrapper function a new field will be created on the User object in the database.  The new ‘role’ field will replace the ‘admin’ field.  Logic that relies on the current admin field will need to be modified to ensure the acceptance of a string value and new role field.

Existing Pseudo Code

Proposed Pseudo Code

##Acceptance Criteria

[x] A user is defined as "ProgramAdministrator" or "Administrator"
[x] The function redirects to an 'unauthorized' page if the user does not possess the required role.  See page/admin/unauthorized as an example.
[x] The function continues to render the page if the user possesses the required role.
[x] The role requirements defined in this issue are respected and implemented on the appropriate pages.

Because the permissions for the roles are exclusive, and there isn't any overlap, then I don't think that the roleRequirement should be an array.

I think the default user role in the User table doesn't need to be ProgramAdministrator, since all of the users who are ProgramAdministrators are in the FormUser table.


Multiline TextInput is not centering text or placeholder vertically

Description
Hi, I'm trying to center the text into a multiline text input but seems like its not possible.
Reproduction Steps and Sample Code
<TextInput                 style={styles.inputStyle}                 placeholder="Type Answer"                 multiline             />
  inputStyle: {     flex: 1,     justifyContent: 'center',     alignItems: 'center'     textAlign: 'center',     fontSize: 16   },
Additional Information

React Native version: 0.43
Platform: [Both]
Development Operating System: [MacOs]
Dev tools: [Android SDK 23]

This issue looks like a question that would be best asked on StackOverflow.
StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only.
Will close this as this is really a question that should be asked on StackOverflow.

Having a similar issue.

Setting textAlignVertical: 'center' style on the input helped in my case.

any solution?
I have this problem in android 5.0.1

Same here textAlignVertical: 'center' doesn't help.


MySQL Backup does not work when using sockets.

Today, I discovered that the scheduled backups I had on a client's project weren't working quite as intended. Digging through the files, I found the cause of the problem:
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect

It seems like the backup script does not pick up the socket configuration I have in my config/database.php:
['unix_socket' => '/tmp/mysql5.sock']

Fixing this would be much appreciated! Thanks for this wonderful package :)
Edit: Maybe this helps: http://stackoverflow.com/questions/15318875/mysqldump-cannot-connect-using-socket

This is solved in version 2.2.0

Thank you very much!


Add a PostgreSQL DB running on Docker

This PR adds a PostgreSQL database running on Docker using Docker Compose. Includes a sample DB interaction based on this article.
To test:
docker-compose up -d
curl localhost:8080/users/add -d name=First -d<EMAIL_ADDRESS>-d username=coolkid
curl 'localhost:8080/users/all'

TODO: Add the main app as well to docker-compose.yml.
TODO: DB password is currently stored in plaintext, probably needs to change
https://github.com/astrohsy/ZETCH/blob/5b96e71cf6cc418205d6218a02361631c2ead4e2/demo/docker-compose.yml#L10
https://github.com/astrohsy/ZETCH/blob/5b96e71cf6cc418205d6218a02361631c2ead4e2/demo/src/main/resources/application.properties#L4

Great work, Timuh! You did a fantastic job. I will add authentication stuff on top of this implementation this week.

I added a doc!


Suggestion: a streamlined way to "expose" private variables publically

Right now, if you want to expose a class property with a public getter and a private setter, the standard a possibility is to use methods (since gets and sets can't have different visibility):
class Container<T> {
    private value: T;

    constructor(value: T) {
        this.value = value;
    }

    public getValue(): T {
        return this.value;
    }
}

// To access the value
new Container("foo").getValue(); // "foo"

The code works fine, but with a caveat: there's an extra function defined for every exposure. That really bloats the generated JavaScript.
Edit: the same holds true for creating a getter. See the second and third comments.
I propose some sort of exposure functionality be added for these simple private values. They should still be publicly gettable but only privately settable.
A few options would be to mix public and private, create a new exposed keyword, or use a variation C#'s { get; private set; }
class Container {
    public private value: T;
    private exposed value: T;
    public value: T { get; private set; }
    // ...
}

new Container("foo").value; // "foo"

I slightly prefer the keyword approaches, since in C# there's a difference between properties and fields, and using the property syntax on TypeScript fields could be viewed as a syntactic conflation with the existing get/set properties.
Note that there are prior, mostly-declined issues vaguely related to this. https://github.com/Microsoft/TypeScript/issues/2845 is the closest by asking for different access modifiers for getter and setter. I think this is a better approach for simulating C#'s { get; private set; }
This is also different from the readonly and imm proposals. The goal here is to allow changing the property with less code. Arguably, allowing the language to prefer directly accessing properties actually embraces the third and fourth design goals by removing the need to rely on methods to guarantee property privacy and creating more streamlined output JavaScript.

Right now, if you want to expose a class property with a public getter and a private setter, the standard is to use methods (since gets and sets can't have different visibility):

class Container<T> {
    private value: T;

    constructor(value: T) {
        this.value = value;
    }

    public getValue(): T {
        return this.value;
    }
}

The standard approach is to use a getter.
 class Container<T> {
     private _value: T;

     constructor(value: T) {
         this._value = value;
     }

     get value() {
         return this.value;
     }
 }

@aluanhaddad yes, and using a getter results in significantly more generated JavaScript. The point of this proposal is to not have to do that.
Without a getter:
var Container = (function () {
    function Container(value) {
        this._value = value;
    }
    return Container;
}());

With a getter:
var Container = (function () {
    function Container(value) {
        this._value = value;
    }
    Object.defineProperty(Container.prototype, "value", {
        get: function () {
            return this._value;
        },
        enumerable: true,
        configurable: true
    });
    return Container;
}());

@JoshuaKGoldberg Indeed there is more emitted code but performance in es5.1 environments should be quite good.

What you are missing are two modifiers, private_set and protected_set that can adorn a property. you can combine them with public and protected to get public|protected read, private|protected write properties. (assuming public private_get is not really a scenario that is worth supporting). in this context, readonly is just an alias for constructor_set.

Looks like the team is collectively not in favor of adding new keywords for this. That makes sense. How about combining existing privacy keywords?

If there is one keyword, both gets and sets use it
If there are two keywords, gets use the first and sets use the second
The first keyword must be strictly more "open" than the second

class AllowedMemberPrivacySettings<T> {
    public fullyPublic: T;
    public protected publicGetsProtectedSets: T;
    public private publicGetsPrivateSets: T;
    protected fullyProtected: T;
    protected private protectedGetsPrivateSets: T;
    private fullyPrivate: T;
}

The public protected/public private combo could be particularly useful for MobX stores in MobX's strict mode:
import { action, observable } from "mobx";

class Store<T> {
    @observable
    public private data: T;

    @action
    public setData(data: T): void {
        this.data = data;
    }
}

This falls victim to the same problem as others - we don't distinguish the type of a property for reading vs the type/accessibility of it for writing, so the variance problems become rather hairy and you'd quickly find yourself doing unsound writes or reads.


test: tests/lib/multi_heap/libraries.multi_heap FAILED on up_squared

Describe the bug
Test libraries.multi_heap failed on up_squared.
Repro 100%
To Reproduce
twister --device-testing --hardware-map up2.map -s tests/lib/multi_heap/libraries.multi_heap
or
west build -p -b up_squared tests/lib/multi_heap -T libraries.multi_heap
or
west twister -p up_squared -s tests/lib/multi_heap/libraries.multi_heap
Logs and console output
DEBUG   - DEVICE: *** Booting Zephyr OS build v3.7.0-3643-gf810e1318f38 ***
DEBUG   - DEVICE: Running TESTSUITE mheap_api
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_k_aligned_alloc
DEBUG   - DEVICE: PASS - test_k_aligned_alloc in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_malloc_in_isr
DEBUG   - DEVICE: PASS - test_malloc_in_isr in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_malloc_in_thread
DEBUG   - DEVICE: PASS - test_malloc_in_thread in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_calloc
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:190: mheap_api_test_mheap_calloc: (mem is not NULL)
DEBUG   - DEVICE: calloc operation failed
DEBUG   - DEVICE: FAIL - test_mheap_calloc in 0.017 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_malloc_align4
DEBUG   - DEVICE: PASS - test_mheap_malloc_align4 in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_malloc_free
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:86: mheap_api_test_mheap_malloc_free: block_fail is not NULL
DEBUG   - DEVICE: FAIL - test_mheap_malloc_free in 0.015 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_realloc
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:132: mheap_api_test_mheap_realloc: block2 is not NULL
DEBUG   - DEVICE: FAIL - test_mheap_realloc in 0.014 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_mheap_threadsafe
DEBUG   - DEVICE: PASS - test_mheap_threadsafe in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_multi_heap
DEBUG   - DEVICE: PASS - test_multi_heap in 0.001 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: START - test_sys_heap_mem_pool_assign
DEBUG   - DEVICE: Assertion failed at WEST_TOPDIR/zephyr/tests/lib/multi_heap/src/test_mheap_api.c:259: mheap_api_test_sys_heap_mem_pool_assign: ((char *)z_thread_malloc(BLK_SIZE_MAX * 2) is not NULL)
DEBUG   - DEVICE: overflow check failed
DEBUG   - DEVICE: FAIL - test_sys_heap_mem_pool_assign in 0.021 seconds
DEBUG   - DEVICE: ===================================================================
DEBUG   - DEVICE: TESTSUITE mheap_api failed.
DEBUG   - DEVICE: ------ TESTSUITE SUMMARY START ------
DEBUG   - DEVICE: SUITE FAIL -  60.00% [mheap_api]: pass = 6, fail = 4, skip = 0, total = 10 duration = 0.073 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_k_aligned_alloc] duration = 0.001 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_malloc_in_isr] duration = 0.001 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_malloc_in_thread] duration = 0.001 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_mheap_calloc] duration = 0.017 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_mheap_malloc_align4] duration = 0.001 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_mheap_malloc_free] duration = 0.015 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_mheap_realloc] duration = 0.014 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_mheap_threadsafe] duration = 0.001 seconds
DEBUG   - DEVICE: - PASS - [mheap_api.test_multi_heap] duration = 0.001 seconds
DEBUG   - DEVICE: - FAIL - [mheap_api.test_sys_heap_mem_pool_assign] duration = 0.021 seconds
DEBUG   - DEVICE: ------ TESTSUITE SUMMARY END ------

Expected behavior
Test passed
Environment:

Linux Ubuntu 22.04
Toolchain: Zephyr SDK 16.8
Zephyr version: v3.7.0-3643-gf810e1318f38

@edersondisouza can you please assign this to the right Intel person

west boards -n up2 returns no boards here. Which board is this?

Sorry for my mistake. I meant up_squared board.

@henrikbrixandersen @dkalowsk @KamilxPaszkiet
could you assign the right owner? Although I'm one Intel guy, but I have no idea what up_squared board is.

As an FYI, the last time I can see this test work was two years ago, it broke sometime before 11 months ago it was moved to the folder it currently resides in (2ce20e5df64dece42b122359ff77328c622a9a72)


Multiple cases were Sparrowwallet screen freezes

I have set up a private electrum (via Umbrel node), according to Umbrel instructions, to Sparrowwallet (SW).
I am not sure of the etiquette to explain myself, so I will overkill, until I learn better how to describe an issue(s).
Initially, all SW screens worked, without any form of screen freezing occurring.
Then, I sent BTC to SW from Bluewallet (BW). Once I saw 1 confirmation on BW, I closed SW. Later that day, when I reopened SW, I didn’t see the tx on the SW transaction page.  But, I saw in the log section at the bottom of the tx page that SW was finding/searching for that tx.
I know this first tx exists, because it does exist on the blockchain ledger, which I verified through BW details of the tx.
I tried loading that particular SW from backup and for a nanosecond saw the above transaction, then it disappeared.  And the log section at the bottom of the page showed that is was still finding that first tx. When I go to the receive address page, it shows that that first address has never been used, but it has.
I have since successful sent two txs to SW from BW, but the first tx still has not been found by SW.
This was with the 1.6.4 version and I recently updated to the 1.6.5 version, for MacBook Pro. Both installs were verified and successfully and on the most recent update the second and third txs were present, but still no sign of the first tx.  SW log shows that it continues looking for it.
Now, is when the screen freezing starts to happen on multiple pages.
I went to advance mode screen to:

see what it looked like and clicked CLOSE and the screen froze.
change the gap limit (to potentially resolve missing tx issue) and clicked CLOSE and screen froze.

Screen also freezes every time perform a coinjoin and I get to the PREVIEW MIX stage.  Once I click PREVIEW MIX the screen freezes.  I also noticed that when I click on either the advanced settings or mix selected tx that a smaller screen pops up for those pages and everything else goes grey behind it.
I have had to either restart or force restart SW many times.
I am not technical, but 110 % willing to learn and apply myself on my end, so please send basic requests, expecting that I won’t understand, and instructions that I easily follow to give you either more detail information or logs.
I am also aware that a more performant server like Fulcrum would work better with SW, but I use electrs via Umbrel, for now though.
Today, when the screen froze again, I went to the sparrow.log screen and saw there was an issue related to ‘store header is corrupt.’
Let me know how much of the logs to provide, because I have no idea how much to send.

Although this is unusual for a Macbook Pro, the symptoms you describe suggest Sparrow is running out of RAM. Do you see any OutOfMemory errors in the log? Please also supply more details on your system, including OS version. It may be worth trying to run Sparrow with minimal other apps running to see if the same occurs.

I tried loading that particular SW from backup and for a nanosecond saw the above transaction, then it disappeared.

With respect to finding the transaction sent from BW: Are you using a passphrase in the Sparrow wallet? The behaviour you described above suggests you entered an incorrect passphrase when opening the wallet. Possibly you entered an incorrect passphrase initially when you got the address for the first tx?

My system:
macOS Monterey
V. 12.4
MacBook Pro (2015)
Processor: 2.7 GHz Dual-Core Intel Core i5
Memory: 8 GB 1887 MHz DDR3
I only have a VPN and Umbrel running in the background, as far as I can tell.
I was specifically looking for any OutOfMemory errors, from when I first installed SW up to today's log in, and I found these:
NB:  These errors did not all occur on the same day.
109 ERROR [Thread-6] h2database [null:-1] Slight wallet:database flush
org.h2.message.DbException: General error: "org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]" [50000-206]
Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]" [50000-206]
Caused by: org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]
115 ERROR [Thread-6] h2database [null:-1] Slight wallet:database opening /Users/Username/.sparrow/wallets/Slight wallet
org.h2.message.DbException: Encryption error in file null [90049-206]
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: Encryption error in file null [90049-206]
119 ERROR [Thread-6] c.z.h.p.HikariPool [null:-1] HikariPool-1 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Encryption error in file null [90049-206]
567 ERROR [JavaFX Application Thread] c.s.s.MainApp [null:-1] Exception in thread "JavaFX Application Thread"
java.lang.NullPointerException: Cannot invoke "java.util.concurrent.ScheduledExecutorService.shutdown()" because "this.executor" is null
147 ERROR [Thread-6] h2database [null:-1] Slight wallet:database opening /Users/Username/.sparrow/wallets/Slight wallet
org.h2.message.DbException: Encryption error in file null [90049-206]
148 ERROR [Thread-6] c.z.h.p.HikariPool [null:-1] HikariPool-1 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Encryption error in file null [90049-206]
804 ERROR [Thread-6] h2database [null:-1] Slight wallet:database flush
org.h2.message.DbException: General error: "org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]" [50000-206]
813 ERROR [Thread-6] h2database [null:-1] Slight wallet:database opening /Users/Username/.sparrow/wallets/Slight wallet
org.h2.message.DbException: Encryption error in file null [90049-206]
818 ERROR [Thread-6] c.z.h.p.HikariPool [null:-1] HikariPool-1 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Encryption error in file null [90049-206]
657 ERROR [Thread-410] h2database [null:-1] Slight wallet:database flush
org.h2.message.DbException: General error: "org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]" [50000-206]
660 ERROR [Thread-410] h2database [null:-1] Slight wallet:database opening /Users/Username/.sparrow/wallets/Slight wallet
org.h2.message.DbException: Encryption error in file null [90049-206]
666 ERROR [Thread-410] c.z.h.p.HikariPool [null:-1] HikariPool-3 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Encryption error in file null [90049-206]
601 ERROR,  656 ERROR [JavaFX Application Thread] c.s.s.p.ServerPreferencesController [null:-1] Connection error
com.sparrowwallet.sparrow.net.ServerException: java.io.IOException: Cannot connect to hidden service
(These errors were at different log ins).
879 ERROR , 995 ERROR, 40, 784 ERROR, 40, 077 ERROR [JavaFX Application Thread] c.s.s.p.ServerPreferencesController [null:-1] Connection error
com.sparrowwallet.sparrow.net.ServerException: java.io.IOException: Cannot connect to hidden service
(The above errors were at different log ins).
04,752 ERROR [Thread-6] h2database [null:-1] Slight wallet:database flush
org.h2.message.DbException: General error: "org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]" [50000-206]
59,585 ERROR [Thread-6] h2database [null:-1] Slight wallet:database flush
org.h2.message.DbException: General error: "org.h2.mvstore.MVStoreException: Store header is corrupt: /Users/Username/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]" [50000-206]
59,592 ERROR [Thread-6] h2database [null:-1] Slight wallet:database opening /Users/Username/.sparrow/wallets/Slight wallet
org.h2.message.DbException: Encryption error in file null [90049-206]
00,596 ERROR [Thread-6] c.z.h.p.HikariPool [null:-1] HikariPool-1 - Exception during pool initialization.
org.h2.jdbc.JdbcSQLNonTransientConnectionException: Encryption error in file null [90049-206]
Caused by: org.h2.mvstore.MVStoreException: Store header is corrupt: /Users**/Username**/.sparrow/wallets/Slight wallet.mv.db [2.0.206/6]
(In all of the above, I have obviously changed my Username to Username).
There is a certain redundancy with the errors, but I no idea what it actually means...
"With respect to finding the transaction sent from BW: Are you using a passphrase in the Sparrow wallet? The behaviour you described above suggests you entered an incorrect passphrase when opening the wallet. Possibly you entered an incorrect passphrase initially when you got the address for the first tx?"
I don't think so, because I saw that first TX when I opened with the backup of the original file, but I will try a few more 'things' on my end to see if I can find where I 'hid' that TX.
Finally, today I only logged in and did not try to repeat anything that i had done before (mixing, advanced settings, etc...).

i just tried to do another mix this morning and the screen still freezes at the same point: PREVIEW MIX

My best guess is this is some kind of a JavaFX framework issue.
Does the freeze happen consistently on closing the dialogs you mentioned? Or only occasionally?
Can you try the following on the command line when Sparrow freezes:

Get the process ID by running ps -ax | awk '/[s]parrow/{print $1}'
Get the thread dump by running kill -3 <PID>, replacing <PID> with the number you got in step 1.

The thread dump should be printed to the Sparrow log file. If nothing is printed, that's interesting too.

Ok, I will make an effort to apply these tips.

My best guess is this is some kind of a JavaFX framework issue.
Does the freeze happen consistently on closing the dialogs you mentioned? Or only occasionally?
My best guess is this is some kind of a JavaFX framework issue.
Does the freeze happen consistently on closing the dialogs you mentioned? Or only occasionally?
The freeze happens consistently.
Can you try the following on the command line when Sparrow freezes:
Get the process ID by running ps -ax | awk '/[s]parrow/{print $1}'
Get the thread dump by running kill -3 , replacing  with the number you got in step 1.
The thread dump should be printed to the Sparrow log file. If nothing is printed, that's interesting too.

The freeze happens consistently. And the screen goes all grey in the background.

I've had reports of another graphics related issue being resolved by avoiding hardware acceleration (which Sparrow doesn't really need anyway). I'm wondering if this might help. Can you try running with
_JAVA_OPTIONS=-Dprism.order=sw /Applications/Sparrow.app/Contents/MacOS/Sparrow

from Terminal.

I'm having repeated issue of when opening Settings, either making a change or not, then closing settings, Sparrow will freeze with rainbow spiral (thinking) icon replacing cursor. Does not recover from thinking and I am required to force quit Sparrow an restart it to use again. This happens when using other functions as well.
I'm using an Apple MacBook Air M1 (2020) 8gb Mac OS Ventura 13.3.1
I have experienced this issue for a while on previous versions of Sparrow on my Mac. I do not experience this issue on Windows desktop PC.
I've checked Sparrow Log and can't see anything time stamped occurring at the same time.

Reported upstream: https://mail.openjdk.org/pipermail/openjfx-dev/2023-May/040782.html


Feature/cu 1da4wxq melee attack

If you want to test the feature, in Boss.scene, you need to add the prefab "DukePunch" to Duke->Duke_Hips->Duke_Spine1->Duke_Spine2->Duke_RightShoulder->Duke_RightArm->Duke_RightForearm->Duke_RightHand. Then, add this prefab's UID in the exposed member meleeAttackColliderUID in the script AIDuke.

Task linked: CU-p1btku Boss mechanics

Task linked: CU-1da4wxq Implement Melee attack


Macro parser improvements

Rewrite macro attribute parser to improve error messages
This is a rewrite of the attribute parser in gtk4-macros.
It will now print clear error messages that are annotated at the correct span.
It will also allow to leave out the id field in #[template_child] if the id is the same as the identifier.
I really looked around for crates that do this job, but they all don't really seem to support arbitrary attributes inside structs.
This will now catch errors such as:

multiple attributes for the same field (only recognizes the template attributes, other attributes are fine)
multiple instances of the same attribute argument (such as #[template_child(id = "widget", id = "otherwidget")])
wrong attribute arguments
wrong type of attribute arguments (ident or "literal" instead of name = value)
wrong type of argument values (number literal instead of string etc.)
missing attribute arguments should also be easy to add if some new attribute might need that.
any syn parse errors are correctly handled as well

All with correct span annotation so the compiler will throw nice error messages.

CC @BrainBlasted @gdesmott

Thanks for working on this! and yes we should definitely try to keep both templates support in sync between both gtk3/gtk4

See https://github.com/gtk-rs/gtk-rs/pull/206


Add Getting started page

Resolved by https://github.com/FilecoinPlus/docs/commit/8822d64ed7cbde5e383436bd469498b3999f4179


Elide long strings in their middle in the Peers tab

The eliding of long addresses (Onion v3 etc) in the Peers tab in their middle was discussed in #262.
On master (f0fa32450ec35056b3e1025262aeaef4a24c35ee):

With this PR:

This PR suggests the minimal diff to achieve the goal. OTOH, this change in behavior is common for all columns in the Peers table, but it seems harmless.

Concept ACK, this looks like a real and practical improvement.

Because of wordWrap=true by default.
On Sat, 10 Apr 2021 at 22:01 João Barbosa @.***> wrote:

@.**** commented on this pull request.
Concept ACK
Why does it show only ellipsis on the 1st sreenshot?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bitcoin-core/gui/pull/276#pullrequestreview-632945368,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH3PXPSYOICYOCDSTHGZVMDTICOARANCNFSM42WM3Z6A
.

--
--
Hennadii Stepanov

🎉


test: verify the integration // do not merge

Description
This is a test

I tested the Ermetic action and understood how it works. For the moment, I will disable it until further refinement.


Adding react-native-webview to dependencies

Fixes #329

react-native-webview has voluntarily been added has a peer dependency because:

it needs to be linked;
many developers wanted to be able to use their version of choice.


AtlasDatabaseUser - message - unable to list: test because of unknown namespace for the cache

Have a version of operator 1.7.1 and decide to upgrade to the latest in cluster.
Create local env

k8s - by docker desktop v 1.25.4
operator v1.7.1
Add AtlasDeployment and AtlasDatabaseUser
Upgrade to v2.2.0 ( helm upgrade crd then upgrade operator )
Fix AtlasDeployment
Check logs of operator get error aka

{"level":"INFO","time":"2024-04-16T12:12:14.543Z","msg":"Status update","atlasdatabaseuser":"test/operator-upgrade-test","lastCondition":{"type":"DatabaseUserReady","status":"False","lastTransitionTime":null,"reason":"DatabaseUserStaleConnectionSecrets","message":"unable to list: test because of unknown namespace for the cache"}}
What did you expect?
After all step operator just should work as expected
What happened instead?
AtlasDatabaseUser status always in False state
Operator Information

1.7.1 -> 2.2.0

Kubernetes Cluster Information

Docker Desktop
1.25.4

Additional context
Try to figure out why AtlasDatabaseUser CRD failed.
It's created proper secrets and creates users in AtlasUI but CRD itself always in Ready - False state
status:     conditions:     - lastTransitionTime: "2024-04-16T12:03:17Z"       status: "False"       type: Ready     - lastTransitionTime: "2024-04-16T11:44:08Z"       status: "True"       type: ResourceVersionIsValid     - lastTransitionTime: "2024-04-16T11:44:08Z"       status: "True"       type: ValidationSucceeded     - lastTransitionTime: "2024-04-16T12:03:18Z"       message: 'unable to list: test because of unknown namespace for the cache'       reason: DatabaseUserStaleConnectionSecrets       status: "False"       type: DatabaseUserReady
If possible, please include:
{"level":"DEBUG","time":"2024-04-16T12:17:12.709Z","msg":"Ensured connection Secret up-to-date","atlasdatabaseuser":"test/operator-upgrade-test","secretname":"HIDDEN"} {"level":"INFO","time":"2024-04-16T12:17:12.709Z","msg":"Status update","atlasdatabaseuser":"test/operator-upgrade-test-","lastCondition":{"type":"DatabaseUserReady","status":"False","lastTransitionTime":null,"reason":"DatabaseUserStaleConnectionSecrets","message":"unable to list: test because of unknown namespace for the cache"}}

Thanks for reporting this issue @qtranton !
Could you give us a minimum YAML sample we could use to reproduce the issue?
Does not need to be your original complete setup, just the definitions that reproduce the same failure.

Sure, i have cleanup i guess my yaml here
apiVersion: v1
kind: Secret
metadata:
  labels:
    app: operator-upgrade
    atlas.mongodb.com/type: credentials
    env: dev
  name: operator-upgrade-test
  namespace: test
stringData:
  password: testpassword

---
# Source: app-resources/templates/mongodb_atlas.yaml
apiVersion: atlas.mongodb.com/v1
kind: AtlasBackupPolicy
metadata:
  name: operator-upgrade-test
  namespace: test
  annotations:
    mongodb.com/atlas-resource-policy: "keep"
spec:
  items:
    - frequencyInterval: 12
      frequencyType: hourly
      retentionUnit: days
      retentionValue: 1
    - frequencyInterval: 1
      frequencyType: daily
      retentionUnit: days
      retentionValue: 7
    - frequencyInterval: 6
      frequencyType: weekly
      retentionUnit: weeks
      retentionValue: 1
    - frequencyInterval: 40
      frequencyType: monthly
      retentionUnit: months
      retentionValue: 1
---
# Source: app-resources/templates/mongodb_atlas.yaml
apiVersion: atlas.mongodb.com/v1
kind: AtlasBackupSchedule
metadata:
  name: operator-upgrade-test
  namespace: test
  annotations:
    mongodb.com/atlas-resource-policy: "keep"
spec:
  autoExportEnabled: false
  referenceHourOfDay: 21
  referenceMinuteOfHour: 2
  policy:
    name: operator-upgrade-test
    namespace: test
---
# Source: app-resources/templates/mongodb_atlas.yaml
apiVersion: atlas.mongodb.com/v1
kind: AtlasDatabaseUser
metadata:
  name: operator-upgrade-test
  labels:
    app: "operator-upgrade"
    env: dev
  #   mongodb.com/atlas-resource-policy: "keep"
spec:
  roles:
  - roleName: readWrite
    databaseName: Application
  scopes:
  - type: CLUSTER
    name: operator-upgrade-test
  projectRef:
    name: project-name
    namespace: mongodb-operator
  username: operator-upgrade-test
  databaseName: admin
  passwordSecretRef:
    name: "operator-upgrade-test"

---
# Source: app-resources/templates/mongodb_atlas.yaml
apiVersion: atlas.mongodb.com/v1
kind: AtlasDeployment
metadata:
  name: operator-upgrade-test
  namespace: test
  labels:
    app: "operator-upgrade"
    env: dev
  # annotations:
  #   mongodb.com/atlas-resource-policy: "keep"
spec:
  backupRef:
    name: operator-upgrade-test
    namespace: test
  projectRef:
    name: project-name
    namespace: mongodb-operator
  advancedDeploymentSpec:
    mongoDBMajorVersion: "6.0"
    clusterType: REPLICASET
    backupEnabled: true
    pitEnabled: false
    name: operator-upgrade-test
    replicationSpecs:
      - regionConfigs:
        - electableSpecs:
              instanceSize: M10
              nodeCount: 3
          providerName: GCP
          backingProviderName: GCP
          regionName: "EASTERN_US"
          # Priority description https://www.mongodb.com/docs/atlas/reference/atlas-operator/atlasdeployment-custom-resource/#mongodb-setting-spec.advancedDeploymentSpec.replicationSpecs.regionConfigs.priority
          priority: 7
          autoScaling:
            compute:
              enabled: false

cc @roothorp

@qtranton can you check if you happen to have the WATCH_NAMESPACE environment variable set for your deployment?

In helm i see this
{{- if .Values.watchNamespaces }}
          - name: WATCH_NAMESPACE
            value: "{{ join "," .Values.watchNamespaces }}"
          {{- end }}

So i have check pod and
 Readiness:  http-get http://:8081/readyz delay=5s timeout=1s period=10s #success=1 #failure=3
    Environment:
      OPERATOR_POD_NAME:   mongodb-atlas-operator-5df9ff6978-tqznx (v1:metadata.name)
      OPERATOR_NAMESPACE:  mongodb-operator (v1:metadata.namespace)
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4kgq7 (to)

In roles i also see some mention of this variable, but since it empty no additional roles was created
mongodb-operator   mongodb-atlas-operator
mongodb-operator   mongodb-atlas-operator-leader-election-role

@josvazg @s-urbaniak hey have some time to debug issue, so on my local cluster for some reason on version 2.2.2 i do not see status.name parameters.
Just put a lot of println in local branch :D
 operator-upgrade-test
cleanupStaleSecrets: Failed to list connection Secrets
#############################

To
if user.Status.UserName != user.Spec.Username {
		// Note, that we pass the username from the status, not from the spec
		fmt.Println("#############################")
		fmt.Println(user.Status.UserName, user.Spec.Username)
		fmt.Println("cleanupStaleSecrets: Failed to list connection Secrets")
		fmt.Println("#############################")
		return RemoveStaleSecretsByUserName(ctx.Context, k8sClient, projectID, user.Status.UserName, user, ctx.Log)
	}
	```
Here
https://github.com/mongodb/mongodb-atlas-kubernetes/blob/main/pkg/controller/connectionsecret/connectionsecrets.go#L126
Now i try figure out why i have error related to secret if user not set
Meanwhile CRD look like that

...
status:
conditions:
- lastTransitionTime: "2024-05-27T11:30:38Z"
status: "False"
type: Ready
- lastTransitionTime: "2024-05-27T11:30:38Z"
status: "True"
type: ResourceVersionIsValid
- lastTransitionTime: "2024-05-27T11:30:38Z"
status: "True"
type: ValidationSucceeded
- lastTransitionTime: "2024-05-27T11:30:39Z"
message: 'unable to list: tester because of unknown namespace for the cache'
reason: DatabaseUserStaleConnectionSecrets
status: "False"
type: DatabaseUserReady
observedGeneration: 1
passwordVersion: "3017702"
...

Update: Recheck on v 1.7 and name in status appear

Thanks for your reports. I managed to reproduce the same. I am debugging it now.

Seems we found the issue, we are working on a fix.
In the meantime, you could pass the list of namespaces you want to get checked. ie:
helm install ... --set watchNamespaces=test,...

@josvazg on local machine yeah, but for main cluster we have too much namespace :) i will wait, not so critical

BTW this #1619 already fixes the issue but it includes unrelated refactors. I am working on a specific test to cover this bug which was not previously detected by our test suite.

I will check build locally then :)

@josvazg jfyi
{"level":"ERROR","time":"2024-05-30T14:00:05.322Z","msg":"LeaderElectionID must be configuredunable to start operator"}```
Get this error now

@josvazg jfyi
{"level":"ERROR","time":"2024-05-30T14:00:05.322Z","msg":"LeaderElectionID must be configuredunable to start operator"}

Get this error now

I do not think this is related. BTW this PR #1621 should fix the original issue.
As for this new error, do you have a sample to reproduce it?

@josvazg just build and put docker container to helm chart 2.2.2 nothing change from in deployment

@josvazg After few additional crd ( not in upstream yet :D ) user status becomes true. We will do some additional tests according to our infra.
Maybe you know when will it be released?

@josvazg After few additional crd ( not in upstream yet :D ) user status becomes true. We will do some additional tests according to our infra. Maybe you know when will it be released?

We are aiming for a release soon, maybe this week. I should be merging PR #1621 soon


Show bounding box of selected object in world editor

@kschzt When selecting an object, should we always show the bounding box ?

@mattatgit what do you think?

@fthr

yeah, i think we probably should do this


lastMessage.text & lastMessage.attributedText From the MXRoomLastMessage is always nil

I want to show the last message received by each room in the room listing along with name, time and avatar. But lastMessage.text and lastMessage.attributedText are always nil
roomSummary.lastMessage.text
always return nil even if room has message

So I took a closer look at it, and it seems as though lastMessage is actually better names lastEvent. I ended up implementing a real lastMessage implementation the crumby way:
room.enumeratorForStoredMessagesWithType(in: [MXEventType.roomMessage.identifier]).nextEvent

did you find a solution to this @Dhruvil-sim ?

Bump. Also having this issue.


Canary read receipt trackers not blocked

read-receipts.canarymail.io

Are you not seeing this blue icon  in any email that you received from Canary?

For that specific email that isn't being blocked, could you send it to me by going to File > Save As > (eml) then sending me that file attachment?

Ah that's that same email from earlier. I know I asked about version earlier, but just double checking: you're on 0.7.9?


504: Update plan_504 method on student record to read EdPlan for Somerville

Related to https://github.com/studentinsights/studentinsights/pull/2287.
Who is this PR for?
Somerville educators
What problem does this PR fix?
The plan_504 value coming from the SIS export isn't accurate; it overcounts students who have an ed plan set to "previous" status.
What does this PR do?
To work around this, this PR adds a method to the Student model to patch this for Somerville.  We could update the student export to solve this upstream, but this is a faster change and self-contained.  Aside from the complexity downside, this also means doing another query for each read of plan_504, which could be expensive for calls like Student.active.as_json with an eager include.
This also updates the JS function that decides about showing "504 plan" so that it is stricter, which isn't directly related to the server-side change (since the server-side change for Somerville keeps the same API with the UI).
Checklists
Which features or pages does this PR touch?

[x] Student Profile
[x] School Overview

Does this PR use tests to help verify we can deploy these changes quickly and confidently?

[x] Included specs for changes
[x] Improved specs for existing code in need of better test coverage
[x] Manual testing made more sense here

selfie


Upgrade to run with Qt 6.5

We're currently building with 5.15.2, which was released November 2020 and is EOL. We should upgrade to build with Qt 6.5 which is the latest LTS version.

Note: when you do this, you might also have to add -DUSE_QT6=ON to the cmake like in scripts/build-adwaita.sh


Implement moveBefore($node,...) & moveAfter($node,...)

I`m porting my yii1.1 stuff to yii2.
Any plans on this functions?

I`m found that insertBefore/After behave same. Sorry =).
closed.

@AlexGx Yeah, api become more short now. You can insert new node and move exists node with same methods now )


Ergonomic Improvements for perseus::template::Template

Is your feature request related to a problem? Please describe.
The current way of defining a template is somewhat boilerplate heavy (taken from https://arctic-hen7.github.io/perseus/en-US/docs/0.3.x/templates/intro):
use perseus::Template;
use std::rc::Rc;
use sycamore::prelude::{component, template, GenericNode, Template as SycamoreTemplate};

#[component(AboutPage<G>)]
pub fn about_page() -> SycamoreTemplate<G> {
    template! {
        p { "About." }
    }
}

pub fn get_template<G: GenericNode>() -> Template<G> {
    Template::new("about")
        .template(Rc::new(|_| {
            template! {
                AboutPage()
            }
        }))
        .head(Rc::new(|_| {
            template! {
                title { "About Page | Perseus Example – Basic" }
            }
        }))
}

Describe the solution you'd like
A simple way of slightly improving this would be to get rid of the Rc::news by accepting a impl Fn(Option<String>) instead.
Another possible solution would be to add the ability to set a component as the template function. Something like:
Template::new(...).component::<AboutPage<_>>()

Describe alternatives you've considered
Leave it the way it is

Okay, Rcs are now gone completely and done behind the scenes! The next thing will be possible automatic serialization/deserialization I think, because that removes the need for a template function.

I've added a template proc macro that allows users to define their templates with an extra annotation #[perseus::template(ComponentName)], and they can then avoid the closure in the .template() call, which is I think as close as we'll get to a .component() call.

I've also now added a macro that will do serialization and deserialization of custom props automatically, which reduces the number of serde_json calls drastically (though it's still needed as a dependency when #[perseus::autoserde(...)] is used).

Okay, I think the new macros are a pretty good solution to the problems of Perseus' ergonomics, so I'm going to close this issue. @lukechu10 please let me know if you think there's anything else in particular that should be done!

Looks great!