Fix typo in ssvm check script

Description
This PR fixes a typo, which causes an incorrect check for the NFS connection.
ERROR: Storage nfs is not currently mounted
Verifying if we can at least ping the storage
Storage address is empty, trying to ping storage network gateway instead ()
ping: missing host operand
Try 'ping --help' or 'ping --usage' for more information.
WARNING: Cannot ping nfs storage network gateway

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI

@blueorangutan package

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 7661

@slavkap I try to validate your PR but don't see the error on 4.18-HEAD

@DaanHoogland, I'm having this issue when there is a problem with the NFS, and it's not mounted.

@DaanHoogland, I'm having this issue when there is a problem with the NFS, and it's not mounted.

of course :headbang:

[LL]Trillian test result (tid-6887)
Environment: kvm-centos7 (x1), Advanced Networking with Mgmt server 7
Total time taken: 40150 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8191-t6887-kvm-centos7.zip
Smoke tests completed. 104 look OK, 5 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_DeployVmAntiAffinityGroup
Error
35.44
test_affinity_groups.py

test_DeployVmAntiAffinityGroup_in_project
Error
71.37
test_affinity_groups_projects.py

test_01_non_strict_host_anti_affinity
Failure
100.37
test_nonstrict_affinity_group.py

test_02_non_strict_host_affinity
Error
77.92
test_nonstrict_affinity_group.py

test_02_upgrade_kubernetes_cluster
Failure
3925.07
test_kubernetes_clusters.py

test_03_deploy_and_scale_kubernetes_cluster
Failure
206.65
test_kubernetes_clusters.py

test_07_deploy_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_08_upgrade_kubernetes_ha_cluster
Failure
0.03
test_kubernetes_clusters.py

test_09_delete_kubernetes_ha_cluster
Failure
0.03
test_kubernetes_clusters.py

test_hostha_enable_ha_when_host_in_maintenance
Error
305.69
test_hostha_kvm.py

@blueorangutan package

@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 7814

@blueorangutan test

@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-8388)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 54459 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr8191-t8388-kvm-centos7.zip
Smoke tests completed. 108 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_invalid_upgrade_kubernetes_cluster
Failure
3616.30
test_kubernetes_clusters.py

test_02_upgrade_kubernetes_cluster
Failure
3615.55
test_kubernetes_clusters.py

test_03_deploy_and_scale_kubernetes_cluster
Failure
0.04
test_kubernetes_clusters.py

test_04_autoscale_kubernetes_cluster
Failure
0.04
test_kubernetes_clusters.py

test_05_basic_lifecycle_kubernetes_cluster
Failure
0.04
test_kubernetes_clusters.py

test_06_delete_kubernetes_cluster
Failure
0.04
test_kubernetes_clusters.py

test_07_deploy_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_08_upgrade_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_09_delete_kubernetes_ha_cluster
Failure
0.04
test_kubernetes_clusters.py

test_10_vpc_tier_kubernetes_cluster
Failure
47.70
test_kubernetes_clusters.py

ContextSuite context=TestKubernetesCluster>:teardown
Error
98.89
test_kubernetes_clusters.py


invalid guessing state while guessing uts namespace, got checking expected checked

I'm evaluating this project by running it on a local Minikube installation.  When I deploy via krew, here is what gets logged in the gadget container:
05:50 $ kubectl logs -n kube-system gadget-6sl8p
OS detected: "Ubuntu 20.04 LTS"
Kernel detected: 5.4.0-7642-generic
bcc detected: 0.1.8-2644.git.5fed2a94
Gadget image: docker.io/kinvolk/gadget:202007010134320f732c
Deployment options:
INSPEKTOR_GADGET_OPTION_RUNC_HOOKS_MODE=auto
INSPEKTOR_GADGET_OPTION_TRACELOOP=true
INSPEKTOR_GADGET_OPTION_TRACELOOP_LOGLEVEL=info,json
Inspektor Gadget version: v0.2.0
Falling back to podinformer runc-hook-mode.
Starting the Gadget Tracer Manager in the background...
traceloop version 3a57301
time="2020-09-21T12:50:09Z" level=info msg="Starting Pod controller"
{"level":"info","msg":"Starting pod informer","time":"2020-09-21T12:50:09Z"}
I0921 12:50:09.963990   10113 podinformer.go:268] Starting Pod controller
invalid guessing state while guessing uts namespace, got checking expected checked

I will poke around the source to see if I can resolve it, but it's not clear what my next step should be from the logs.

Hi @mattrjacobs, what is your Minikube version, and which Minikube driver are you using?
Unfortunately, Inspektor Gadget requires a couple of changes in Minikube, and that work is not yet completed in Minikube upstream (https://github.com/kubernetes/minikube/issues/8556 and https://github.com/kubernetes/minikube/issues/8637). Meanwhile, you could try a Minikube build with our Minikube branch, where Inspektor Gadget should work fine:
https://github.com/kinvolk/cloud-native-bpf-workshop/blob/master/minikube.md#our-branch

Ah thanks - those pointers are great.
I am currently running Minikube 1.13 with the Docker driver:
06:39 $ minikube start
😄  minikube v1.13.0 on Debian bullseye/sid
✨  Using the docker driver based on existing profile
👍  Starting control plane node minikube in cluster minikube
🔄  Restarting existing docker container for "minikube" ...
🐳  Preparing Kubernetes v1.19.0 on Docker 19.03.8 ...
🔎  Verifying Kubernetes components...
🌟  Enabled addons: default-storageclass, storage-provisioner
🏄  Done! kubectl is now configured to use "minikube" by default

I got the same error on MacOS inside a kind Cluster
MacOS: 11.2.3
kind version: 0.10.0
k8s version: v1.20.2

Would be great to test this on a local installation.

As mentioned by Alban, this was a known issue regarding the eBPF compatibility in minikube. We provide a minikube image in the https://github.com/kinvolk/cloud-native-bpf-workshop, that can be used with Inspektor Gadget for testing purposes (the workshop itself is outdated and would need to be updated to the latest IG version, but the Minikube image is still working and usable for testing IG functionality).
Closing as this is not actionable. Thanks for the report!


Translation

Hello. I want to translate this game to Russian.
How can I do it?

I remember you promise push update with JSON language file, but I can't see it.

The new version is not finished yet, it will take some time. New content is being done.
---Original---
From: "Marat<EMAIL_ADDRESS>Date: Tue, Feb 9, 2021 18:05 PM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Subject: Re: [ErLinErYi/PlantsVsZombies] Translation (#11)
I remember you promise push update with JSON language file, but I can't see it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

@ErLinErYi
Okey. Could you split changes to commits, please?

Hi @ErLinErYi, your game is really great, very well done.
Now about translation, I would like translate the game in Spanish, however for now I'm not sure if start translating the language.json file because to be honest I found this a bit weird.
Please make the main Language as English, this make the things easier for translation, and for now the jsong files have:
"language": ["中文", "english"],
Here the first language section is Chinese, so to start translate (generally speaking) we need down up to English language section.
Then, in the English section we have also this
["String Base (in Chinese)", "String Translation", 0, 0, 0, 0],
This makes things a bit complicated for those who want to translate the game, since English is usually the base language for translations.
And if I'm not mistaken, certain parts of the game still can't be translated, like the main menu buttons.
Best regards, and thank you so much by make this great work again :)

@c-sanchez Hello. Where can I find language.json file?
is it already in master?

Thank you for your letter.
If you want to add a new language, you can add it directly.
for example: "Language": ["中文", "English", "Spanish"]
Then you need to translate the text you need. The following figures are described in the .TXT file in the same level directory of the JSON file.
Since I didn't have to do a multilingual version at the beginning, I directly used Chinese in the code. After that, we took Chinese as the foundation. In fact, it doesn't matter if you can't understand the first string. It's only for the program to read, it's just a code, that's all. When it is displayed later, the translated text will be displayed. JSON files come with English translations, although these English translations may not be very accurate. If you need to translate other languages, you can take the translated English as the basis for translation.
There is no way to translate some pictures. This can only replace pictures, which is not supported at present. These problems will be solved later.
------------------ 原始邮件 ------------------
发件人:                                                                                "ErLinErYi/PlantsVsZombies"                                                                                @.>;
发送时间: 2021年6月6日(星期天) 晚上11:34
@.>;
<EMAIL_ADDRESS>主题: Re: [ErLinErYi/PlantsVsZombies] Translation (#11)
Hi @ErLinErYi, your game is really great, very well done.
Now about translation, I would like translate the game in Spanish, however for now I'm not sure if start translating the language.json file because to be honest I found this a bit weird.
Please make the main Language as English, this make the things easier for translation, and for now the jsong files have:
"language": ["中文", "english"],
Here the first language section is Chinese, so to start translate (generally speaking) we need down up to English language section.
Then, in the English section we have also this
["String Base (in Chinese)", "String Translation", 0, 0, 0, 0],
This makes things a bit complicated for those who want to translate the game, since English is usually the base language for translations.
And if I'm not mistaken, certain parts of the game still can't be translated, like the main menu buttons.
Best regards, and thank you so much by make this great work again :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

You need to download the latest version and find the language folder in the installation directory after installation, which contains the language.json file.
------------------ 原始邮件 ------------------
发件人:                                                                                "ErLinErYi/PlantsVsZombies"                                                                                @.>;
发送时间: 2021年6月7日(星期一) 晚上7:40
@.>;
<EMAIL_ADDRESS>主题: Re: [ErLinErYi/PlantsVsZombies] Translation (#11)
@c-sanchez Hello. Where can I find language.json file?
is it already in master?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@ErLinErYi Thanks

@ErLinErYi Well I think it's better keep the english languague as base, but I guess is ok anyway.
I am going to translate the game in Spanish but can you keep these files updated?
I mean, if with any update something is changed, added or removed, do you have any system to automatically add it to the translations?
By example in programs many times is used the GNU Gettext format (PO / POT files)
https://www.drupal.org/community/contributor-guide/reference-information/localize-drupal-org/working-with-offline/po-and#:~:text=pot (portable object template) extensions,translations to a particular language.
That facilitates the task of updating all new strings.
Just a curiosity on my part.
Btw I just saw the notification of a new update for the game, but when I try to update (with "Download" or "Downloader") the game closes automatically (crashes).
I guess I'd better wait for you to upload the update in a compressed file.
Regards.


Update to geth >=1.10.6

Try to update to geth >= 1.10.4 with a local overwrite of miguelmotas hd-wallet until https://github.com/miguelmota/go-ethereum-hdwallet/pull/16 is merged.
Update: The geth changelog states that all geth users should update to >= 1.10.6 before Aug. 4th to remain consensual.

I suggest we create a fork until it is merged and then reference the fork.

I suggest we create a fork until it is merged and then reference the fork.

Yes i will consider it.


Unknown substitution command [arm_id] When using franka_visualization.launch

I am using the franka_description package from the develop branch without any modifications to display the robot in RViz without actually connecting to the robot. I have only franka_description package from franka_ros repo and not building any other packages in the catkin_ws. Accordingly, I modified the launch file from the franka_visualization package as follows:
`

<xacro:include filename="$(find franka_description)/robots/common/franka_robot.xacro"/>
<xacro:arg name="arm_id" default="panda" />
<xacro:franka_robot arm_id="$(arg arm_id)"
joint_limits="${xacro.load_yaml('$(find franka_description)/robots/panda/joint_limits.yaml')}">
</xacro:franka_robot>

`
However, when I run the launch file I get the following error
`
Unknown substitution command [arm_id]. Valid commands are ['find', 'env', 'optenv', 'dirname', 'anon', 'arg']
when instantiating macro: franka_robot (/Users/cembilaloglu/catkin_ws/src/franka_description/robots/common/franka_robot.xacro)
in file: /Users/cembilaloglu/catkin_ws/src/franka_description/robots/panda/panda.urdf.xacro
RLException: Invalid  tag: Cannot load command parameter [robot_description]: command [['/Users/cembilaloglu/miniforge3/envs/robostackenv/lib/xacro/xacro', '/Users/cembilaloglu/catkin_ws/src/franka_description/robots/panda/panda.urdf.xacro', 'hand:=true']] returned with code [2].
Param xml is
The traceback for the exception was written to the log file
`
I would be glad if you can help me to resolve the issue as the log file also does not point to the line that generates the error.
Thanks in advance!

I found out that the issue is related to robostack conda environment that I am using (link here) and not associated with franka_ros


Failover in swarm/machine

Hi there,
I have read multiple articles mentioning failover in docker swarm but I can't find anything in the docs.  Is this feature still in development?  If not can you point me in the right direction to where to find out about it?
Sorry to put this in the issue queue as it's kind of a question but also I suppose a documentation/communication issue.

Haha, i just wondered about this too and Google pointed me here.

Please see #599 and #598


PodSecurityPolicies can't be deleted while upgrading to v3.25.0

Expected Behavior
Upgrading the tigera-operator helm chart to v3.25.0 should remove the PodSecurityPolicies or at least not recreate them once they are deleted.
Current Behavior
After upgrading our current tigera-operator helm chart from v3.23.0 to v3.25.0, the psp of calico-apiserver, calico-node, and calico-typha remains in the cluster. Uninstalling the chart doesn’t remove them, and if we try to delete them manually, they go back once we re-install the chart.
Removing them after the upgrade didn't help either. They were recreated.
Steps to Reproduce (for bugs)

We installed the chart using Terraform:

resource "helm_release" "tigera-operator" {
  name = "calico"
  repository = "https://projectcalico.docs.tigera.io/charts"
  chart = "tigera-operator"
  namespace = "tigera-operator"
  create_namespace = true
  version = "v3.25.0"
  reset_values = true
  recreate_pods = true
  values = [
    file("${path.module}/values.yaml")
  ]
}

values.yaml :
installation:
  kubernetesProvider: EKS
  cni:
    type: Calico
  calicoNetwork:
    bgp: Disabled

The created psp yaml files:

apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
  annotations:
    seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
  name: calico-apiserver
  ownerReferences:
  - apiVersion: operator.tigera.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: APIServer
    name: default
spec:
  allowPrivilegeEscalation: false
  fsGroup:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  hostPorts:
  - max: 65535
    min: 0
  requiredDropCapabilities:
  - ALL
  runAsUser:
    rule: RunAsAny
  seLinux:
    rule: RunAsAny
  supplementalGroups:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  volumes:
  - configMap
  - emptyDir
  - projected
  - secret
  - downwardAPI
  - persistentVolumeClaim
  - hostPath

apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
  annotations:
    seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
  name: calico-node
  ownerReferences:
  - apiVersion: operator.tigera.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: Installation
    name: default
spec:
  allowPrivilegeEscalation: true
  fsGroup:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  hostNetwork: true
  hostPorts:
  - max: 65535
    min: 0
  privileged: true
  requiredDropCapabilities:
  - ALL
  runAsUser:
    rule: RunAsAny
  seLinux:
    rule: RunAsAny
  supplementalGroups:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  volumes:
  - configMap
  - emptyDir
  - projected
  - secret
  - downwardAPI
  - persistentVolumeClaim
  - hostPath

apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
  annotations:
    seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
  name: calico-typha
  ownerReferences:
  - apiVersion: operator.tigera.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: Installation
    name: default
spec:
  allowPrivilegeEscalation: false
  fsGroup:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  hostNetwork: true
  hostPorts:
  - max: 65535
    min: 0
  requiredDropCapabilities:
  - ALL
  runAsUser:
    rule: MustRunAsNonRoot
  seLinux:
    rule: RunAsAny
  supplementalGroups:
    ranges:
    - max: 65535
      min: 1
    rule: MustRunAs
  volumes:
  - configMap
  - emptyDir
  - projected
  - secret
  - downwardAPI
  - persistentVolumeClaim

kubectl get clusterinfo -o yaml >>
apiVersion: v1
items:
- apiVersion: projectcalico.org/v3
  kind: ClusterInformation
  spec:
    calicoVersion: v3.25.0
    clusterType: k8s,bgp,kdd,typha,operator,ecs
    datastoreReady: true
kind: List
metadata:
  resourceVersion: ""

Context
Before we upgrade our EKS cluster to 1.25, we check that no psp is still needed.
Environment

Calico version: from v2.23.0 to v3.25.0
Orchestrator version (e.g. kubernetes, mesos, rkt): k8s 1.23

Yes, it sounds reasonable. Maybe just mentioning it in the documentation may be enough. Thank you! 😄


[BUG]Cannot select two attributes

Hi,
First I select the urls :
$ curl -qs https://ok.ru/video/c335170 | pup '.video-card_lk attr{href}' | head -5
/video/37630118466?st._aid=VideoState_open_album
/video/37668325954?st._aid=VideoState_open_album
/video/37609736770?st._aid=VideoState_open_album
/video/37595712066?st._aid=VideoState_open_album
/video/37601413698?st._aid=VideoState_open_album

and then, the titles :
$ curl -qs https://ok.ru/video/c335170 | pup '.ellip attr{title}' | head -5
Ugly Betty 4x20
Ugly Betty 4x19
Ugly Betty 4x18
Ugly Betty 4x17
Ugly Betty 4x16

and finally both urls and titles by using the , operator, but shomehow, it does not work :
$ curl -qs https://ok.ru/video/c335170 | pup '.video-card_lk attr{href}, .ellip attr{title}' | head -5
Ugly Betty 4x20
Ugly Betty 4x19
Ugly Betty 4x18
Ugly Betty 4x17
Ugly Betty 4x16

Can you please help me ?

This issue is confusing, rewriting a new one


TypeError: cannot instantiate ctype 'EVP_MD_CTX' of unknown size

I am using the latest version of GYB
Got Your Back 1.0
http://git.io/gyb
Jay Lee -<EMAIL_ADDRESS>Python 3.5.2 64-bit final
Linux-4.8.8-200.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four x86_64
I am using Fedora 24.
The command I used worked until I tried it today.
Full steps to reproduce the issue:

run "python3 ./gyb.py --action backup --service-account  --email "
crashes immediately.

Expected outcome (what are you trying to do?):
Create new or Update existing backup.
Actual outcome (what errors or bad behavior do you see instead?):
Traceback (most recent call last):
File "./gyb.py", line 1580, in
main(sys.argv[1:])
File "./gyb.py", line 969, in main
gmail = buildGAPIServiceObject('gmail')
File "./gyb.py", line 459, in buildGAPIServiceObject
return googleapiclient.discovery.build(api, version, http=http, cache_discovery=False)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, *kwargs)
File "/home/user1/Tools/gyb/got-your-back/googleapiclient/discovery.py", line 207, in build
cache)
File "/home/user1/Tools/gyb/got-your-back/googleapiclient/discovery.py", line 254, in _retrieve_discovery_doc
resp, content = http.request(actual_url)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/transport.py", line 153, in new_request
credentials._refresh(orig_request_method)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/client.py", line 765, in _refresh
self._do_refresh_request(http_request)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/client.py", line 792, in _do_refresh_request
body = self._generate_refresh_request_body()
File "/home/user1/Tools/gyb/got-your-back/oauth2client/client.py", line 1501, in _generate_refresh_request_body
assertion = self._generate_assertion()
File "/home/user1/Tools/gyb/got-your-back/oauth2client/service_account.py", line 386, in _generate_assertion
key_id=self._private_key_id)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/crypt.py", line 97, in make_signed_jwt
signature = signer.sign(signing_input)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/_openssl_crypt.py", line 97, in sign
return crypto.sign(self._key, message, 'sha256')
File "/usr/lib/python3.5/site-packages/OpenSSL/crypto.py", line 2563, in sign
md_ctx = _ffi.new("EVP_MD_CTX")
TypeError: cannot instantiate ctype 'EVP_MD_CTX' of unknown size

Upgrade your version of pyopenssl. See:
https://github.com/burnash/gspread/issues/407
Jay
On Mon, Nov 21, 2016, 7:19 AM daniejstriata<EMAIL_ADDRESS>wrote:

I am using the latest version of GYB
Please confirm the following:
Got Your Back 1.0
http://git.io/gyb
Jay Lee -<EMAIL_ADDRESS>Python 3.5.2 64-bit final
Linux-4.8.8-200.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four x86_64
The command I used worked until I tried it today.
Full steps to reproduce the issue:

run "python3 ./gyb.py --action backup --service-account --email "
crashes immediately.

Expected outcome (what are you trying to do?):
Create new or Update existing backup.
Actual outcome (what errors or bad behavior do you see instead?):
Traceback (most recent call last):
File "./gyb.py", line 1580, in
main(sys.argv[1:])
File "./gyb.py", line 969, in main
gmail = buildGAPIServiceObject('gmail')
File "./gyb.py", line 459, in buildGAPIServiceObject
return googleapiclient.discovery.build(api, version, http=http,
cache_discovery=False)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/util.py", line 137,
in positional_wrapper
return wrapped(*args, *
kwargs) File
"/home/user1/Tools/gyb/got-your-back/googleapiclient/discovery.py", line
207, in build cache) File
"/home/user1/Tools/gyb/got-your-back/googleapiclient/discovery.py", line
254, in _retrieve_discovery_doc resp, content = http.request(actual_url)
File "/home/user1/Tools/gyb/got-your-back/oauth2client/transport.py", line
153, in new_request credentials._refresh(orig_request_method) File
"/home/user1/Tools/gyb/got-your-back/oauth2client/client.py", line 765, in
_refresh self._do_refresh_request(http_request) File
"/home/user1/Tools/gyb/got-your-back/oauth2client/client.py", line 792, in
_do_refresh_request body = self._generate_refresh_request_body() File
"/home/user1/Tools/gyb/got-your-back/oauth2client/client.py", line 1501, in
_generate_refresh_request_body assertion = self._generate_assertion() File
"/home/user1/Tools/gyb/got-your-back/oauth2client/service_account.py", line
386, in _generate_assertion key_id=self._private_key_id) File
"/home/user1/Tools/gyb/got-your-back/oauth2client/crypt.py", line 97, in
make_signed_jwt signature = signer.sign(signing_input) File
"/home/user1/Tools/gyb/got-your-back/oauth2client/_openssl_crypt.py", line
97, in sign return crypto.sign(self._key, message, 'sha256') File
"/usr/lib/python3.5/site-packages/OpenSSL/crypto.py", line 2563, in sign
md_ctx = _ffi.new("EVP_MD_CTX")
TypeError: cannot instantiate ctype 'EVP_MD_CTX' of unknown size
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jay0lee/got-your-back/issues/118, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEaMsKm3dzPLV2V42iTnSEBzRjSbFh05ks5rAYxmgaJpZM4K4IlG
.

--
Jay

Thanks. I downgraded the python modules:

python3-cryptography-1.3.1-1.fc24.x86_64
python2-cryptography-1.3.1-1.fc24.x86_64

and that resolved the problem I had.


[Bug] Discord permission error (new in alpha.7)

Checks

[X] I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting.
[X] I confirm that I followed the MCDC Docs and read the Changelog, but this problem still exists.
[X] I confirm that I noted that if I don't follow the instructions, the issue may be closed directly.

Java Version
OpenJDK Runtime Environment Temurin-18.0.1+10 (build 18.0.1+10)
Minecraft Version
1.19
MCDiscordChat Version
2.0.0-alpha.7
Description
After upgrading from alpha.6 to alpha.7, I received an error on startup:
WebSocket connection was closed and cannot be recovered due to identification issues
CloseCode(4014 / Disallowed intents. Your bot might not be eligible to request a privileged intent such as GUILD_PRESENCES, MESSAGE_CONTENT, or GUILD_MEMBERS.)

This was without making any changes whatsoever to my config JSON, which had worked fine in alpha.6.
To confirm that this was in fact a problem with alpha.7, I reverted to alpha.6 and MCDC is working normally again. So it is not a problem with my token expiring.
To Reproduce

Upgrade from alpha.6 to alpha.7
Maybe the bot fails to authenticate to Discord
Revert to alpha.6
The bot is once again able to authentication to Discord

Log
[04:56:07] [main/INFO]: -----------------------------------------
[04:56:07] [main/INFO]: MCDiscordChat (MCDC) 2.0.0-alpha.7
[04:56:07] [main/INFO]: By Xujiayao
[04:56:07] [main/INFO]:
[04:56:07] [main/INFO]: More information + Docs:
[04:56:07] [main/INFO]: https://blog.xujiayao.top/posts/4ba0a17a/
[04:56:07] [main/INFO]: -----------------------------------------
[04:56:07] [main/INFO]: Login Successful!
[04:56:07] [JDA MainWS-ReadThread/INFO]: Connected to WebSocket
[04:56:07] [JDA MainWS-WriteThread/ERROR]: WebSocket connection was closed and cannot be recovered due to identification issues
CloseCode(4014 / Disallowed intents. Your bot might not be eligible to request a privileged intent such as GUILD_PRESENCES, MESSAGE_CONTENT, or GUILD_MEMBERS.)
[04:56:08] [main/ERROR]: java.lang.IllegalStateException: Was shutdown trying to await status
	at net.dv8tion.jda.internal.JDAImpl.awaitStatus(JDAImpl.java:493)
	at net.dv8tion.jda.api.JDA.awaitStatus(JDA.java:320)
	at net.dv8tion.jda.api.JDA.awaitReady(JDA.java:370)
	at top.xujiayao.mcdiscordchat.Main.onInitializeServer(Main.java:83)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:47)
	at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
	at net.fabricmc.loader.impl.game.minecraft.Hooks.startServer(Hooks.java:63)
	at net.minecraft.server.Main.main(Main.java:101)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23)
	at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69)
	at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69)

Config
{
  "generic": {
    "useEngInsteadOfChin": true,
    "botToken": "<removed>",
    "botPlayingStatus": "Minecraft",
    "botListeningStatus": "",
    "webhookUrl": "",
    "channelId": "<removed>",
    "consoleLogChannelId": "<removed>",
    "useUuidInsteadOfName": true,
    "avatarApi": "https://mc-heads.net/avatar/%player%.png",
    "broadcastCommandExecution": true,
    "allowMentions": true,
    "formatChatMessages": true,
    "useServerNickname": true,
    "announceHighMspt": true,
    "msptCheckInterval": 5000,
    "msptLimit": 50,
    "mentionAdmins": true,
    "updateChannelTopic": true,
    "channelTopicUpdateInterval": 600000,
    "excludedCommands": [
      "/tell"
    ],
    "adminsIds": [
      "<removed>",
      "<removed>"
    ]
  },
  "multiServer": {
    "enable": false,
    "host": "<IP_ADDRESS>",
    "port": 5000,
    "name": "SMP",
    "botIds": []
  },
  "textsZH": {
    "unformattedResponseMessage": "    ┌──── <%name%> %message%",
    "unformattedChatMessage": "[%server%] <%name%> %message%",
    "unformattedOtherMessage": "[%server%] %message%",
    "unformattedCommandNotice": "%name% 执行了 %command% 命令！",
    "formattedResponseMessage": [
      {
        "text": "    ┌──── ",
        "bold": true,
        "color": "dark_gray"
      },
      {
        "text": "<%name%> ",
        "bold": false,
        "color": "%roleColor%"
      },
      {
        "text": "%message%",
        "bold": false,
        "color": "dark_gray"
      }
    ],
    "formattedChatMessage": [
      {
        "text": "[%server%] ",
        "bold": true,
        "color": "blue"
      },
      {
        "text": "<%name%> ",
        "bold": false,
        "color": "%roleColor%"
      },
      {
        "text": "%message%",
        "bold": false,
        "color": "gray"
      }
    ],
    "formattedOtherMessage": [
      {
        "text": "[%server%] ",
        "bold": true,
        "color": "blue"
      },
      {
        "text": "%message%",
        "bold": false,
        "color": "gray"
      }
    ],
    "formattedCommandNotice": [
      {
        "text": "%name% ",
        "bold": false,
        "color": "%roleColor%"
      },
      {
        "text": "执行了 %command% 命令！",
        "bold": false,
        "color": "gray"
      }
    ],
    "serverStarted": "**服务器已启动！**",
    "serverStopped": "**服务器已关闭！**",
    "joinServer": "**%playerName% 加入了服务器**",
    "leftServer": "**%playerName% 离开了服务器**",
    "deathMessage": "**%deathMessage%**",
    "advancementTask": "**%playerName% 达成了进度 [%advancement%]**",
    "advancementChallenge": "**%playerName% 完成了挑战 [%advancement%]**",
    "advancementGoal": "**%playerName% 达成了目标 [%advancement%]**",
    "highMspt": "**服务器 MSPT (%mspt%) 高于 %msptLimit%！**",
    "consoleLogMessage": "[%time%] [INFO] %message%",
    "offlineChannelTopic": ":x: 服务器离线 | 最后更新于：<t:%lastUpdateTime%:f>",
    "onlineChannelTopic": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% 位玩家在线 | 服务器玩家总数：%uniquePlayerCount% | 服务器于 <t:%serverStartedTime%:R> 启动 | 最后更新于：<t:%lastUpdateTime%:f>",
    "onlineChannelTopicForMultiServer": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% 位玩家在线 | 服务器玩家总数：%uniquePlayerCount% | %onlineServerCount% 个服务器在线 [%onlineServerList%] | 服务器于 <t:%serverStartedTime%:R> 启动 | 最后更新于：<t:%lastUpdateTime%:f>"
  },
  "textsEN": {
    "unformattedResponseMessage": "    ┌──── <%name%> %message%",
    "unformattedChatMessage": "[%server%] <%name%> %message%",
    "unformattedOtherMessage": "[%server%] %message%",
    "unformattedCommandNotice": "%name% executed %command% command!",
    "formattedResponseMessage": [
      {
        "text": "    ┌──── ",
        "bold": true,
        "color": "dark_gray"
      },
      {
        "text": "<%name%> ",
        "bold": false,
        "color": "%roleColor%"
      },
      {
        "text": "%message%",
        "bold": false,
        "color": "dark_gray"
      }
    ],
    "formattedChatMessage": [
      {
        "text": "[%server%] ",
        "bold": true,
        "color": "blue"
      },
      {
        "text": "<%name%> ",
        "bold": false,
        "color": "%roleColor%"
      },
      {
        "text": "%message%",
        "bold": false,
        "color": "gray"
      }
    ],
    "formattedOtherMessage": [
      {
        "text": "[%server%] ",
        "bold": true,
        "color": "blue"
      },
      {
        "text": "%message%",
        "bold": false,
        "color": "gray"
      }
    ],
    "formattedCommandNotice": [
      {
        "text": "%name% ",
        "bold": false,
        "color": "%roleColor%"
      },
      {
        "text": "executed %command% command!",
        "bold": false,
        "color": "gray"
      }
    ],
    "serverStarted": "**Server started!**",
    "serverStopped": "**Server stopped!**",
    "joinServer": "**%playerName% joined the game**",
    "leftServer": "**%playerName% left the game**",
    "deathMessage": "**%deathMessage%**",
    "advancementTask": "**%playerName% has made the advancement [%advancement%]**",
    "advancementChallenge": "**%playerName% has completed the challenge [%advancement%]**",
    "advancementGoal": "**%playerName% has reached the goal [%advancement%]**",
    "highMspt": "**Server MSPT (%mspt%) is above %msptLimit%!**",
    "consoleLogMessage": "[%time%] [INFO] %message%",
    "offlineChannelTopic": ":x: Server offline | Last updated: <t:%lastUpdateTime%:f>",
    "onlineChannelTopic": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% player(s) online | %uniquePlayerCount% unique player(s) ever joined | Server started <t:%serverStartedTime%:R> | Last updated: <t:%lastUpdateTime%:f>",
    "onlineChannelTopicForMultiServer": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% player(s) online | %uniquePlayerCount% unique player(s) ever joined | %onlineServerCount% server(s) online [%onlineServerList%] | Server started <t:%serverStartedTime%:R> | Last updated: <t:%lastUpdateTime%:f>"
  },
  "latestVersion": "2.0.0-alpha.7",
  "latestCheckTime":<PHONE_NUMBER>027
}

Here are the permissions granted to my bot:

Did you follow the docs when setting up the Discord bot? The following captured from the docs should work.

I finally had time to try this and updating my intents worked, thank you!

Ok👍


feat: implement the test suite for 0x53 - MSTORE8 opcode

Pull Request type

Please check the type of change your PR introduces:

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

What is the current behavior?

Resolves: #249
What is the new behavior?

Does this introduce a breaking change?

[ ] Yes
[x] No

Closing this as a duplicate of #321  - we'll review the tests in 321


Crash String - stringByRemovingPercentEncoding

For some weird reason, converting an object to a dictionary crashed with the following error:
valueForUndefinedKey:]: this class is not key value coding-compliant for the key stringByRemovingPercentEncoding
if there was a string generated with the following code set to a property in the object
func generateRandomKey(amountOfCharacters: Int) -> String {

    var alphabet = Array("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXZY0123456789".characters)
    var randomKey = String()

    for (var i = 0; i < amountOfCharacters; i++) {
        randomKey.append(alphabet[Int(arc4random_uniform(62))])
    }

    return randomKey
}

I have now changed to the following solution and it works, funny though:
func generateRandomKey (len : Int) -> String {

    let letters : NSString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

    let randomString : NSMutableString = NSMutableString(capacity: len)

    for (var i=0; i < len; i++){
        let length = UInt32 (letters.length)
        let rand = arc4random_uniform(length)
        randomString.appendFormat("%C", letters.characterAtIndex(Int(rand)))
    }

    return randomString as String
}

hmmm what does this have to do with OCMapper?

Well, I suppose it's got something to do with how OCMapper handles it's String parsing, and gets messed up at some point, which makes me think whether I should be concerned with content I try to parse that's been typed by the user, since the output string causing the problem had nothing special in it.
Feel free to remove the topic if you feel offended, I merely wanted to share a negative experience I had, which could help others.

On Oct 15, 2015, at 12:11 PM, Aryan Ghassemi<EMAIL_ADDRESS>wrote:
hmmm what does this have to do with OCMapper?
—
Reply to this email directly or view it on GitHub https://github.com/aryaxt/OCMapper/issues/40#issuecomment-148417296.

yeah I missed the part where you said convert object to dictionary :) My bad.
Will check to see why it's crashing, thanks


Area doesn't detect ConcaveCollisionShape StaticBody

Godot version: 3.2 stable
OS/device including version:
Linux Mint 19.3
Issue description: Area doesn't detect collisions with ConcaveCollisionShapes created from Meshes.
Note that I create the collision at runtime, because then I don't have to recreate the Create Trimesh Collision in the interface every time I edit the .glb on Blender. It happens even if I create the trimesh manually, tho.
Steps to reproduce:
Download MRP, enable visible collision shapes, run Spatial.tscn scene.
Note that the ball does collide with the ConcaveCollisionShape, but the Area ignores it.
Minimal reproduction project:
MRP.tar.gz

What am I supposed to observe after the reproduction? Is it this: The ball collides with the monkey and passes through the cube? Also, I couldn't find any ConcaveCollisionShape in the MRP.

@lakshay-angrish, the Area prints its collisions to output every frame. The ball collides with the monkey to demonstrate that the collision shape is there and working. I'd expect it to print the name of the monkey, but it doesn't.
The shape of the monkey is generated at runtime, use the Remote scene tree to view it when the game is running.

Hello @jabcross
I made a PR (#33690) a little while ago hoping to fix this issue. Maybe you could see if it solves your problem?

Awesome, thanks! I'll check asap.

It works. Thanks!

This seems fixed, so I'm closing it :)

@AndreaCatania It's fixed by a yet unmerged PR from what I read.

Ops,


初次进入https://share121.github.io/inter_knot/会报错

Type
安全问题
Bug 描述
Error: https://api.github.com/graphql
Response:
{message: Bad credentials, documentation_url: https://docs.github.com/graphql, status: 401}
Error Object:
DioException [bad response]: This exception was thrown because the response has a status code of 401 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 401 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
Stack Trace:
Error
at Object.n6 (https://share121.github.io/inter_knot/main.dart.js:7575:18)
at https://share121.github.io/inter_knot/main.dart.js:62806:5
at bbO.a (https://share121.github.io/inter_knot/main.dart.js:6032:63)
at bbO.$2 (https://share121.github.io/inter_knot/main.dart.js:53399:14)
at Object.t (https://share121.github.io/inter_knot/main.dart.js:6018:10)
at awO.aYw (https://share121.github.io/inter_knot/main.dart.js:62863:10)
at awO.F0 (https://share121.github.io/inter_knot/main.dart.js:62799:35)
at awO.aYu (https://share121.github.io/inter_knot/main.dart.js:62800:30)
at https://share121.github.io/inter_knot/main.dart.js:33398:20
at bbO.a (https://share121.github.io/inter_knot/main.dart.js:6032:63)
截屏或视频

您确认您已经阅读了上方的注意事项，并已知此处并非讨论区。您遇到了问题需要反馈，或有功能建议需要提出。

[X] 我确认。

感谢你提供的错误代码。 不过这个是没有问题的，你可以无视他。 这个是因为不必要的代码产生的，不会对于新绳网带来其他的影响，可以正常使用。

主要一定程度上影响使用体验


Unpin Jinja2

Summary
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.293%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
8864

Relevant Lines:
10642

💛  - Coveralls


Move to semantic commits, to facilitate nice ChangeLogs

https://www.conventionalcommits.org/en/v1.0.0/
& https://github.com/googleapis/release-please

See also:
https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/git-commit-message-convention.html


Modal doesn't get focused in iOS with VoiceOver on

Issue
Steps to reproduce:

Turn on VO on an iOS device (doesn't seem to matter what version, even the latest version has this issue)
Go to the main demo page http://humaan.com/modaal/
Click the View Example button to open the modal

What's expected:
VO focus moves to the modal, swiping right will get me to modal content
What happens:
VO focus is still on the button, swiping right will get me to content past the button (which is behind the modal).
What's going on
I created a really simple modal example to demonstrate this problem: https://codepen.io/backwardok/pen/goXPPq
At the core of it is that iOS VO doesn't know how to focus most nested elements. I ended up creating a set of use cases to test VO's handling of focusing things: https://codepen.io/backwardok/pen/xpPZKL.

Thanks @backwardok. I know it's been a while since raising the issue. I appreciate the detail and we'll work to find a solution to make it more useful on mobile. Cheers

Made some progress on this, and it appears to be driven by VoiceOver's being a little less than ideal in the way it handles the shift of focus. With a little user agent detection and slight delay we seem to be in a better place, although it is a less than ideal solution (but one that works for now). We'll roll this one out shortly once it's been tested a bit more thoroughly.
The next difficulty we seem to be running into is a random result in the 'return to last focus state' where VoiceOver, if it can't find/remember the state for whatever reason, will default to afocussable element nearest the last press being the close button of the modal.
It appears we aren't alone in dealing with issues like these as others seem to be having similar issues. Contribution on this from anyone is very welcome.

Thanks for working on this! I've found that older versions of iOS (<11.3) + VO seem to have a performance problem when new DOM nodes are added. Seems like the accessibility tree isn't getting populated fast enough or something, so even when the DOM node is available and keyboard focus moves, sometimes VO focus doesn't move with it. With a modal I was working with, I did a somewhat hacky double timeout focus attempt (with timeout of 0), which seemed to do the trick, but probably like what you're attempting, it's an awkward solution.

Also not sure if this is helpful or not but I chatted with @scottaohara a few times about modals and he has a few useful resources:

https://developer.paciellogroup.com/blog/2018/06/the-current-state-of-modal-dialog-accessibility/
https://codepen.io/scottohara/pen/lIdfv

oh hi @backwardok :)
got the notification, so just dropping into provide a direct link to the latest version of my script, in case a comparison to how i handled some of these issues.


Add Option maximumInputLength

Hi guys,
it would be nice to have an option to limit the search term to a certain number of characters. I currently have a situation where I need the user to type in exactly 9 characters, not more, not less to load result data from a query function. It should behave like input's maxlength attribute
I took the example from http://ivaynberg.github.com/select2/#data and modified the query function to my needs:

 $("#e5").select2({
    minimumInputLength: 9,
    query: function (query) {
        var data = {results: []}, crossfoot = 0, multiplier, product, i;

        for(i = 7; i >= 2; i--) {
            multiplier = i % 2 == 0 ? 2 : 1;
            product = String(parseInt(query.term[i]) * multiplier);
            crossfoot += parseInt(product) > 9 ? product[0] + product[1] : parseInt(product);
        }

        // Validates query term and pushes result only if valid
        if(crossfoot % 10 == parseInt(query.term[8])) {
            data.results.push({id: query.term, text: query.term});
        }

        query.callback(data);
    }
});

What do you think?

This doesn't prevent the additional characters from being entered, it displays a message "Please delete X characters" instead. While this may be desired in certain situations, it differs from how <input type="text" maxlength="20"> works... so in order to have a consistent UI it would be preferable to just limit the input instead of showing some message

This is not fixed yet. maxLength attribute not appears on input. Need to reopen the issue.


What things incomplete for iOS?

I have success to build Macos.
What things incomplete for iOS?

I'm fairly sure macos and iOS should build OK (I have no way of testing). The issue is that maid_llm isn't setup to build the C++ code for those platforms so llama.cpp won't work on either platform.

ok, thank you.


Fixes exceptions when there's a rest exception

A few fixes when there's an exception, the lack of error handling causes exceptions in certain cases.

Rebase and +1

@blanchma can you fix this and give me another pull request so I can merge it?


refactor: replaced images

Replaced all default images

have to test something for a current Zendesk ticket I thought when I used the zcli themes:preview it was removing all my themes but after testing it seems not. I am now thinking it is the merging of the pull request. I get a message similar to this every time  which may be deleting the themes
Hi David,
It looks like you signed into your Zendesk account using a new device on August 2, 2024 at 9:52 PM:
Location: Washington, VA, United States (different location each time but I think the issue may be stemming from here)
IP: <IP_ADDRESS>


Do debug sections really have alignment requirements?

I just sent up a PR to backtrace-rs (https://github.com/rust-lang/backtrace-rs/pull/344) to add support for compressed debug info sections. One of the big hiccups was the alignment requirement of the CompressionHeader. Does the header really have alignment requirements? My toolchain does not align them at all, AFAICT:
 30 .debug_aranges 00030a70<PHONE_NUMBER>000000<PHONE_NUMBER>000000  001e8ac3  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 31 .debug_pubnames 000c6d6c<PHONE_NUMBER>000000<PHONE_NUMBER>000000  001f068e  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 32 .debug_info   00275c12<PHONE_NUMBER>000000<PHONE_NUMBER>000000  00217825  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 33 .debug_abbrev 00014d8d<PHONE_NUMBER>000000<PHONE_NUMBER>000000  002f1d16  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 34 .debug_line   00109f88<PHONE_NUMBER>000000<PHONE_NUMBER>000000  002f4a94  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 35 .debug_frame  00001368<PHONE_NUMBER>000000<PHONE_NUMBER>000000  00344170  2**3
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 36 .debug_str    0020bbcf<PHONE_NUMBER>000000<PHONE_NUMBER>000000  003444c2  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 37 .debug_loc    0000b48c<PHONE_NUMBER>000000<PHONE_NUMBER>000000  003a2514  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 38 .debug_macinfo 00000106<PHONE_NUMBER>000000<PHONE_NUMBER>000000  003a43b5  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 39 .debug_pubtypes 0010101b<PHONE_NUMBER>000000<PHONE_NUMBER>000000  003a43da  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS
 40 .debug_ranges 0009cab0<PHONE_NUMBER>000000<PHONE_NUMBER>000000  003cb50b  2**0
                  CONTENTS, READONLY, DEBUGGING, OCTETS

(GCC 9.3.0, stock Ubuntu Eoan.)
I tracked down some related discussion in https://github.com/gimli-rs/object/issues/230 and so that backtrace PR flips on the new unaligned feature (great timing, so thanks!). But I'm not it's the right solution in this case—maybe there is no alignment requirement for the compression headers? And if so disabling alignment checks everywhere seems heavyweight. I tried looking through the DWARF standard but couldn't find anything one way or another.

My understanding of ELF is that all headers must always be aligned to the natural alignment for the ELF class (32-bit or 64-bit). For compressed sections, the contents of the section are irrelevant (so the DWARF standard won't have anything to say about this).  The alignment of the compressed section should be the alignment requirement of the compression header (4 or 8), and the alignment of the uncompressed data should be stored in the ch_addralign field of the header. I guess a common bug will be that tools use the alignment of the uncompressed data for the compressed section too (and vice versa).
If this bug is common for compressed headers, then maybe we should remove the alignment requirement for it. The performance is hardly likely to be relevant if you need to decompress.

https://blogs.oracle.com/solaris/elf_section_compression-v2 talks about the design of ELF compression, and an explicit goal was for the compression header to be aligned.

@philipc since it seems like backtrace-rs wants the unaligned feature for other reasons there is no pressing need for any action here! Happy to have this open since it seems like compressed headers are particularly likely to be misaligned and maybe allowing them to be misaligned should be the default, but also happy for you to close this because it does seem like the default behavior is standards-compliant and correct.

Yep thanks. I'll look into it a bit but the probable outcome is to allow them to be misaligned.

LLVM fixed its output in https://reviews.llvm.org/D60965 and binutils fixed its output in https://sourceware.org/bugzilla/show_bug.cgi?id=23919. That's still relatively new though, so let's handle misaligned for now, and consider changing it back later.


UI for survey ownership change as admin

Create UI for admin to change poll ownership. The admin should be able to remove and assign ownership of polls. The newly assigned poll owner should be able to view the poll and its results in their poll history.

Duplicate, already done as part of #147


Broken TimePickerDialog UI

This renders just fine on both API 26 and 27 in the emulator.
It looks like the device you tested this on has a heavily modified system theme, I can't really take all those possibilities into account.

@wdullaer  already fixed within last commits (dat for background I think so).
Just need to deploy.

I released those changes over the weekend
Op di 19 dec. 2017 09:53 schreef Taras Melko<EMAIL_ADDRESS>
@wdullaer https://github.com/wdullaer already fixed within last commits
(dat for background I think so).
Just need to deploy.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wdullaer/MaterialDateTimePicker/issues/436#issuecomment-352678813,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGA1xZzCMQ_KDumG9DtfjBauf-5AI2NJks5tB3lrgaJpZM4RA3Kl
.


[core] register, unregister logic adapted to prevent data races

Description
In the destruction phase of a publisher, subscriber, client, server it could happen that parallel to the unregistration of the entity a cyclic registration is triggered by the registration provider refresh thread. This should be avoided by adapting the creation flag logic and making this state atomic.

Those cherry pick labels only work for pushes to master


Add HDB version parser and files

This is to get the sap_version back into the system_proflie

This one uses our HDB parser to grab the version. It matches the schema we had setup forever ago. Looks like it does the job.

not sure if this error is the root cause or a cascading error

16:46:10 Recording test results
16:46:10 ERROR: Step ?Publish JUnit test result report? failed: No test report files were found. Configuration error?

not sure if this error is the root cause or a cascading error

16:46:10 Recording test results
16:46:10 ERROR: Step ?Publish JUnit test result report? failed: No test report files were found. Configuration error?

That keeps happening. I think it's something up with the testing env.


fix sign error

in #1044 a error has shown with reversed sign, this fix it
With a call to http://localhost/state-balances/autoHealAllStateUserTransactions
all values in db will be fixed.

can we close this @einhornimmond ?


Remove invalid chars from the stack file in README example.

Hello and thanks for flamescope,
In https://medium.com/netflix-techblog/netflix-flamescope-a57ca19d47bb and https://github.com/Netflix/flamescope/blob/master/README.md#installation--instructions the example filename used is stacks.myproductionapp.2018-03-30_01 , (UPDATE - the first dash on the medium site is a non ASCII char), as of https://github.com/Netflix/flamescope/commit/cbd13e187d913cc522c512ed4725a4bd79209078 for https://github.com/Netflix/flamescope/issues/7 this is now invalid and the heatmap generation fails with a 500 from app/util/heatmap.py::read_offsets when fileutil.validpath returns false.
I was thinking that in addition to a change to the filename used in the example (UPDATE - on medium.com), that an error could be printed to the terminal, something like:
     if not fileutil.validpath(path):
+        print("ERROR: File %s path %s is not valid" % (filename, path) )
         return abort(500)

Thanks.
Reproducer:
> cp examples/perf.test01 examples/stacks.myproductionapp.2018-03-30_01 (copy-and-paste from blog on medium.com)
> python run.py
Click on link for the heatmap.

Error in terminal is:
[16/Apr/2018 07:38:09] "GET /heatmap/?filename=stacks.myproductionapp.2018%E2%80%9303%E2%80%9330_01&rows=50 HTTP/1.1" 500 -

Error in the web app is a missing heatmap.

Just wanted to point out that I think the reason the invalidchar regexp is failing is because the dash/hyphen "-" is a unicode codepoint while the regexp is not.  If I prefix the regexp char group with a u then the dash/hyphen is allowed:
import re

invalidchars = re.compile('[^a-zA-Z0-9.,/_%+: -\\\\]') # does not allow unicode dash
#invalidchars = re.compile('u[^a-zA-Z0-9.,/_%+: -\\\\]') # allows unicode dash
pathname="201804" + u"\u2013" + "16"
#pathname="201804" + "-" + "16" # works
print pathname

ret = invalidchars.search(pathname)
if ret:
    print("ERROR: pathname '%s' is not valid: '%s' matched: '%s' type(pathname)='%s' " % (pathname, ret , ret.group(0) , type(pathname) ) )

So from your point of view, the issue is Medium containing unicode characters? Or that the tool should support unicode?

This https://github.com/Netflix/flamescope/issues/18 issue is being used to track the exception handling part.

The issue for me was the blog post on medium containing a non ASCII dash in the filename.  If an error had been printed about an invalid filename then I would have tried a different (ASCII) filename earlier.
I don't use unicode (deliberately) for filenames, so support for it is not an issue for me.

Fixed. Changed to underscores (Medium would not let me insert a dash there.)


Update blogs.json

I just realized I put myself in the wrong category. This fixes that.

Thanks for spotting the mistake!


Linux Install Fails

Linux Installation with curl -k --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh fails with error:
"Fetching the latest database version..."
"Error: could not fetch the latest SurrealDB version number"

@glrramos thanks for bringing this up!
Have you tried running the command curl -sSf https://install.surrealdb.com | sh from here?
I'm looking into the inconsistencies with installation commands on our site :eye:

I am using the command curl -sSfk https://install.surrealdb.com | sh to disable certificate verification.

Yes, the only change I did is to use the -k option in the curl to disable
certificate verification.
[image: image.png]
Em ter., 1 de ago. de 2023 às 08:47, Naiyarah Hussain <
@.***> escreveu:

@glrramos https://github.com/glrramos thanks for bringing this up!
Have you tried running the command curl -sSf https://install.surrealdb.com
| sh from here https://surrealdb.com/install?
I'm looking into the inconsistencies with installation commands on our
site 👁
—
Reply to this email directly, view it on GitHub
https://github.com/surrealdb/install.surrealdb.com/issues/7#issuecomment-1660150967,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADLS4P5F5RLO5U6GTMN2Z6TXTDUF7ANCNFSM6AAAAAA2QP7YTQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Fix type accessibility deserialization.

Add a missing enum attribute for deserialization.

@DJ4ddi Good catch! I just fixed one of those as well and didn't notice this one

@all-contributors please add @DJ4ddi for code


fix: update ret_output shape

Closes #1146

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


Video file does not get deleted from server in stateless mode

https://wordpress.org/support/topic/media-not-synced-to-google-cloud-storage/#post-12172313

I set the wp-stateless settng to “Stateless” but when I upload a video file it does not delete from the local server, i have to synchronize before it is deleted, but this does not happen with image files, for image files when i upload them they are deleted automatically from the server. i use the latest wp-stateless version. this is a major bug that has been with the plugin and you have not solve it. please solve this problem.

The required WordPress version has been increased to 4.7.0 from 4.0.

hi alimuzzaman, on the issue of the "video not being deleted from the server on stateless mode" when will the update be released that has this issue solved ?

Hi @dewlonse,
The update will be released soon.
For the time being, you can use https://github.com/wpCloud/wp-stateless/releases/tag/2.3.2-RC.2

thks for the update. But there is still an issue.  the issue of the "video not being deleted from the server on stateless mode" was solved but only when you upload a video from the backend admin "media Library" that the video gets deleted from the server. When you upload a video through the frontend using "contact form 7", the video does not delete from the server. But  if you upload image file through the frontend  using contact form 7, it will delete from the server. You need to please solve this issue.

find the attached pictures, of the issue when you upload video file from the frontend, the video does not get deleted from the server while in stateless mode

if i remove the plugin and upload the video file from the frontend, it goes to the server and shows no errors.

is there is code snippet that can synchronize video files on the fly , that is video files are automatically synchronized when they are uploaded.
I see that for  "Stateless mode"  setting the "Synchronize non-images files between Google Storage and local server" when you run the process, files that are already deleted from the server still undergo the synchronization process. is possible to prevent a file from being re-synchronized.
How can I schedule a cron job to synchronized video files ?

Hi @dewlonse

is there is code snippet that can synchronize video files on the fly , that is video files are automatically synchronized when they are uploaded.

Yes, we have a filter.

I see that for "Stateless mode" setting the "Synchronize non-images files between Google Storage and local server" when you run the process, files that are already deleted from the server still undergo the synchronization process. is possible to prevent a file from being re-synchronized.

Sorry, it is by design.

Hi @dewlonse,
I wasn't able to replicate your issue.
Is there any addon you are using for CF7?

Please send me the code snippet that will synchronize video files on the fly , so that video files are automatically synchronized when they are uploaded
Sent from Yahoo Mail on Android
On Mon, 30 Dec 2019 at 5:21 pm, Md. Alimuzzaman<EMAIL_ADDRESS>wrote:
Hi @dewlonse
is there is code snippet that can synchronize video files on the fly , that is video files are automatically synchronized when they are uploaded.
Yes, we have a filter.
I see that for "Stateless mode" setting the "Synchronize non-images files between Google Storage and local server" when you run the process, files that are already deleted from the server still undergo the synchronization process. is possible to prevent a file from being re-synchronized.
Sorry, it is by design.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@dewlonse
How do you upload videos from the frontend?

find the attached pictures, of the issue when you upload video file from the frontend

@dewlonse

Please send me the code snippet that will synchronize video files on the fly , so that video files are automatically synchronized when they are uploaded

We have to identify what is creating the problem first. Then we can create a solution.
Here is the code you can use to sync a single file:
$gs_path = apply_filters( 'wp_stateless_file_name', $full_local_path_or_url);
do_action( 'sm:sync::syncFile', $gs_path, $full_local_path_or_url);

I use the vidorev theme it has a frontend upload form. https://themeforest.net/item/vidorev-video-wordpress-theme/21798615

This is the upload form, http://demo.beeteam368.com/vidorev/submit-your-video-2/

Download it here, https://www.downloadfreethemes.co/vidorev-v2-6-8-responsive-video-wordpress-theme/

Can you help us to replicate the issue on our server?
Please send me an mail at<EMAIL_ADDRESS>I will send you details.

the code snippet did not solve the issue. I used the code snippet plugin to paste the code.

This is may have to with mime. Wp-stateless does allow mp4 upload from frontend.

The problem is that VidoRev Extensions don't generate attachment metadata for a video as it does for an image attachment.
WP Stateless works on wp_update_attachment_metadata filter wich is not fired for video files.
In vidorev_cf7_save_posted_data and vidorev_front_end_edit_post_data function adding the following code
$attach_data = wp_generate_attachment_metadata( $attach_id, $movefile['file'] );
wp_update_attachment_metadata( $attach_id, $attach_data );

after $attach_id = wp_insert_attachment( $attachment, $movefile['file'], $newPostID ); solves the problem.
@dewlonse please contact VidoRev if they add those lines for video attachment then the image will be automatically synced.
I will also try to contact them.

How can I add it as a code snippet so that I can just add it in the code snippets plugin
Sent from Yahoo Mail on Android
On Wed, 1 Jan 2020 at 7:17 pm, Md. Alimuzzaman<EMAIL_ADDRESS>wrote:
The problem is that VidoRev Extensions don't generate attachment metadata for a video as it does for an image attachment.
WP Stateless works on wp_update_attachment_metadata filter wich is not fired for video files.
In vidorev_cf7_save_posted_data and vidorev_front_end_edit_post_data function adding the following code
$attach_data = wp_generate_attachment_metadata( $attach_id, $movefile['file'] );
wp_update_attachment_metadata( $attach_id, $attach_data );
after $attach_id = wp_insert_attachment( $attachment, $movefile['file'], $newPostID ); solves the problem.
@dewlonse please contact VidoRev if they add those lines for video attachment then the image will be automatically synced.
I will also try to contact them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

It can't be added as a code snippet. You can directly edit their plugin though.
I will add a patch to our plugin for the time being.

Show me the file in the vidorev plugin where to edit and add the code.
Also the  patch you want to add to your pluginWill you add it now and send it or it will be in the next update
Sent from Yahoo Mail on Android
On Wed, 1 Jan 2020 at 7:33 pm, Md. Alimuzzaman<EMAIL_ADDRESS>wrote:
It can't be added as a code snippet. You can directly edit their plugin though.
I will add a patch to our plugin for the time being.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

If you want to directly edit the plugin file. Though I will recommend the patch.
wp-content\plugins\vidorev-extensions\inc\cf7-addons.php

wp-content\plugins\vidorev-extensions\inc\front-end-edit-post.php

@dewlonse You can get the patch from here
https://github.com/wpCloud/wp-stateless/releases/tag/2.3.3-RC.1

1.there is some issues with wp-stateless when synchronizing non-media library files. Files that are not media library files both video and image files, do not get deleted from the local server in stateless mode even when the url is changed to google cloud storage url, this cause file. error
2. is there a code snipet that can prevent  auto synchronizing of non-media files (video and image) and also prevent changing there url to google cloud storage url.

hi, I added the code to the vidorev extensions as suggested but it did not solve the issue. It is the wp-stateless patch that solve the issue because you made it compatible with the vidorev extension plugin. therefore my theme author does not need to add the codes as you suggested.

thank you for solving this issue.

1.there is some issues with wp-stateless when synchronizing non-media library files. Files that are not media library files both video and image files, do not get deleted from the local server in stateless mode even when the url is changed to google cloud storage url, this cause file. error
2. is there a code snipet that can prevent auto synchronizing of non-media files (video and image) and also prevent changing there url to google cloud storage url.
Name: Charles AhanekuMobile: +234-08103279304, +234-8155425704
On Thursday, January 2, 2020, 6:45:35 PM GMT+1, Md. Alimuzzaman Alim<EMAIL_ADDRESS>wrote:

Closed #418.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@dewlonse Please create a new issue if you have further questions.


tsc_wrapped cannot find tslib when importHelpers is set to true

I will look more into this soon. From first glance it looks like Typescript cannot resolve where 'tslib' is even if it is part of the @//:node_modules filegroup.
The error reported is:
ERROR: /private/var/tmp/_bazel_greg/34cb2c27ba201fc3e02405892697c98f/external/rxjs/BUILD.bazel:22:1: Compiling TypeScript (devmode) @rxjs//:rxjs failed (Exit 1)
external/rxjs/index.ts:73:1 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.

This is now resolved with the fix to resolveTypeReferenceDirectives (https://github.com/bazelbuild/rules_typescript/pull/259)

@gregmagolan I'm still getting the error when I set "importHelpers": true:
ERROR: C:/users/simon/documents/github/angular-library-starter/BUILD.bazel:24:1: Compiling Angular templates (ngc) //:src failed (Exit 1)
src/services/sum.service.ts(3,1): error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.

I have tslib added in the deps:
    deps = [
        "@npm//tslib",
        "@npm//@types"
    ]

Branch: https://github.com/robisim74/angular-library-starter/tree/bazel
Any idea?
Thanks

@robisim74 No idea. But will re-open this so that this is not lost and take a look.


New manual tracing docs

Closes https://github.com/pydantic/logfire/issues/229

Preview: https://alex-manual-tracing-docs-v2.logfire-docs.pages.dev/guides/onboarding_checklist/add_manual_tracing/
Details: https://dash.cloudflare.com/58c2606138e6f7346345b5a882718168/pages/view/logfire-docs/1d2f2ab7-646d-4410-8357-af7ccb2857c3
Dunno why the cloudflare comment is missing...


IPFS_PATH not used on macOS

Mac, latest 0.4.18,
terminal run 'env', confirm that IPFS_PATH=/Volumes/d/ipfs_repo
However, when start ipfs-desktop
it supposed to use env IPFS_PATH=/Volumes/d/ipfs_repo ,
but it did not. It init a new default  $user/.ipfs repos.
I delete default  $user/.ipfs repos , try again, still not pick up the customized IPFS_PATH=/Volumes/d/ipfs_repo
I tried on windows, same issue.
It would NOT pick up the customized IPFS_PATH=/Volumes/d/ipfs_repo

I try run
ipfs daemon
It correctly pick up the IPFS_PATH=/Volumes/d/ipfs_repo
But ipfs desktop failed to do so.
use
ipfs repo
list all help
 ipfs repo fsck ( will remove the repo.lock file)

make sure the your ipfs_repo directory does not have a repo.lock file.
If it exist, use ipfs repo fsck to remove it.
now you are ready to run  ipfs daemon, it will use your IPFS_PATH=/Volumes/d/ipfs_repo
but when I use ipfs desktop, it still use default user/.ipfs.
This is the bug, should be fixed easily.

I can manually update config.json file, let it point to customized ipfs repo directory.
It works fine.
On windows,
C:\Users\your-user-name-here\AppData\Roaming\IPFS Desktop
open config.json
          update the path

"ipfsConfig": {
"type": "go",
"path": "D:\ipfs_repo",
"flags": [
"--migrate=true",
"--routing=dhtclient"
],
"keysize": 2048
},

On Mac:
manually change ipfs_path repo,
(library is hidden directory, cmd+shift+. to show hidden)
$user/Library/Application Support/IPFS Desktop
Edit config.json
"path": "/Volumes/ipfs1/ipfs_repo",
Unfortunately, when I re-start ipfs-desktop, it auto over-write above change, to default
"path": "/Users/you/.ipfs",
This is a bug, need to fix, should be easy, because windows version of ipfs-desktop do not have this issue,
on windows, manually update config.json,  it will correctly pick up new path.
But on Mac, re-open ipfs-desktop, it just over-write the change, annoying,
I have to use cmd "ipfs daemon", not use ipfs-desktop for now.

version 0.7 rc Mac did not fix this bug,
Windows version does not have this bug.

@hoogw what I understood from what you said is that IFPS_PATH environment variable is being ignored on macOS. Just a few points to clarify:

IPFS_PATH is only used the first time IPFS Desktop runs. After that, its configuration is its source of truth.
We're using ipfsd-ctl which takes care of that. Also, we have tests for custom IPFS_PATH and they're passing on macOS.

How're you running IPFS Desktop? From the command line? Executing the binary?
I'm not sure how environment variables work on macOS: does a var set in the CLI persist to an external program that executes outside of it? /cc @olizilla

Good news, you fixed the problem on newest release. v0.7.0-rc.5.
Here is how to do notes:
If you want ipfs-desktop use new ipfs_repo, you have to do following
...............
Windows:
ipfs repo
      will list all help

ipfs repo stat
       will list current repo path ( which read from IPFS_PATH=D:/ipfs_repo environment variable)

        default is (c:/users/you/.ipfs)

Before you run ipfs daemon or ipfs desktop, you need to set ipfs repo(block, datastore etc)
run
ipfs init
       will use your current ipfs_path as repo location.

Now you are ready to run ipfs daemon,
Because of bug of ipfs desktop, you need to manually config new repo_path, othewise, it always use default .ipfs
I can manually update config.json file, let it point to customized ipfs repo directory.
It works fine.
On windows,
C:\Users\your-user-name-here\AppData\Roaming\IPFS Desktop
open config.json

          update the path

"ipfsConfig": {
"type": "go",
"path": "D:\ipfs_repo",
"flags": [
"--migrate=true",
"--routing=dhtclient"
],
"keysize": 2048
},
On Mac:
(library is hidden directory, cmd+shift+. to show hidden)
$your-user-home/Library/Application Support/IPFS Desktop
Edit config.json
"path": "/Volumes/ipfs-1tb/ipfs_repo",


Order of includes in JSON output.

I have a transformer which uses $defaultIncludes to bring in other related models. That all works a treat. My question is how might I affect where the output goes in my transformer output? Consider this basic example. Assume objects is the included data (e.g. $defaultIncludes = ["objects"];)
{
  "data": {
    "id": "1475b9c0-ce05-4ff6-a35a-e07fe3e9b35c",
    "name": "Daffy Bunny Company",
    "links": [
      {
        "rel": "self",
        "uri": "/accounts/1475b9c0-ce05-4ff6-a35a-e07fe3e9b35c"
      }
    ],
    "objects": {
      "data": [
        {
          "id": 2,
          "name": "Primary",
        },
        {
          "id": 3,
          "name": "Secondary",
        }
      ]
    }
  }
}

I would like to force the links to be at the bottom of the JSON output. Am I being OCD or is that something I can massage Fractal into doing?
If it's helpful this is my transform method...
    /**
     * I can transform, I can transform ya!
     *
     * @return array
     */
    public function transform(Account $account)
    {
        return [
          'id' => $account->id,
          'name' => $account->name,
          'links' => [
            [
              'rel' => 'self',
              'uri' => '/accounts/' . $account->id,
            ]
          ],
        ];
    }

Is this the type of thing I might use a serializer for?
(Full Disclosure: I asked this question on a discussion forum but, honestly, seeing that it's not anywhere in the documentation or obvious to me in the codebase, I figured asking here is more appropriate. If we come up with an answer, I'll document it there - and issue a pull request for the docs as well)

Order of output doesn't matter to a computer so it shouldn't matter to you. ;)
--
Phil Sturgeon
Sent from my iPhone and there's probably typos because I'm probably at the pub.

On Sep 10, 2015, at 1:57 AM, Kenny Silanskas<EMAIL_ADDRESS>wrote:
I have a transformer which uses $defaultIncludes to bring in other related models. That all works a treat. My question is how might I affect where the output goes in my transformer output? Consider this basic example. Assume objects is the included data (e.g. $defaultIncludes = ["objects"];)
{
"data": {
"id": "1475b9c0-ce05-4ff6-a35a-e07fe3e9b35c",
"name": "Daffy Bunny Company",
"links": [
{
"rel": "self",
"uri": "/accounts/1475b9c0-ce05-4ff6-a35a-e07fe3e9b35c"
}
],
"objects": {
"data": [
{
"id": 2,
"name": "Primary",
},
{
"id": 3,
"name": "Secondary",
}
]
}
}
}
I would like to force the links to be at the bottom of the JSON output. Am I being OCD or is that something I can massage Fractal into doing?
If it's helpful this is my transform method...
/**
 * I can transform, I can transform ya!
 *
 * @return array
 */
public function transform(Account $account)
{
    return [
      'id' => $account->id,
      'name' => $account->name,
      'links' => [
        [
          'rel' => 'self',
          'uri' => '/accounts/' . $account->id,
        ]
      ],
    ];
}

Is this the type of thing I might use a serializer for?
(Full Disclosure: I asked this question on a discussion forum but, honestly, seeing that it's not anywhere in the documentation or obvious to me in the codebase, I figured asking here is more appropriate. If we come up with an answer, I'll document it there - and issue a pull request for the docs as well)
—
Reply to this email directly or view it on GitHub.

This is pretty much exactly what I was hoping you'd say. OCD episode
averted. Thanks Phil.
--
Kenny Silanskas
@webkenny
http://linkedin.com/in/kennysilanskas
http://about.me/webkenny
My email address is changing!
<EMAIL_ADDRESS>On Wed, Sep 9, 2015, at 01:22 PM, Phil Sturgeon wrote:

Order of output doesn't matter to a computer so it shouldn't matter to
you. ;)
--
Phil Sturgeon
Sent from my iPhone and there's probably typos because I'm probably at
the pub.

On Sep 10, 2015, at 1:57 AM, Kenny Silanskas<EMAIL_ADDRESS>wrote:
I have a transformer which uses $defaultIncludes to bring in other related models. That all works a treat. My question is how might I affect where the output goes in my transformer output? Consider this basic example. Assume objects is the included data (e.g. $defaultIncludes = ["objects"];)
{
"data": {
"id": "1475b9c0-ce05-4ff6-a35a-e07fe3e9b35c",
"name": "Daffy Bunny Company",
"links": [
{
"rel": "self",
"uri": "/accounts/1475b9c0-ce05-4ff6-a35a-e07fe3e9b35c"
}
],
"objects": {
"data": [
{
"id": 2,
"name": "Primary",
},
{
"id": 3,
"name": "Secondary",
}
]
}
}
}
I would like to force the links to be at the bottom of the JSON output. Am I being OCD or is that something I can massage Fractal into doing?
If it's helpful this is my transform method...
/**
 * I can transform, I can transform ya!
 *
 * @return array
 */
public function transform(Account $account)
{
    return [
      'id' => $account->id,
      'name' => $account->name,
      'links' => [
        [
          'rel' => 'self',
          'uri' => '/accounts/' . $account->id,
        ]
      ],
    ];
}

Is this the type of thing I might use a serializer for?
(Full Disclosure: I asked this question on a discussion forum but, honestly, seeing that it's not anywhere in the documentation or obvious to me in the codebase, I figured asking here is more appropriate. If we come up with an answer, I'll document it there - and issue a pull request for the docs as well)
—
Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub:
https://github.com/thephpleague/fractal/issues/223#issuecomment-139035342


When use BootstrapApplicationListener(Because need used the remote configuration center) ,SpringApplication.addListeners Method does not work（sping boot 2.3.5.RELEASE，spring cloud Hoxton.SR8）

main class
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class GiantApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(GiantApplication.class);
        application.addListeners(new Log4J2SpringEnvListener());
        application.run(args);
    }
}

The configuration file is bootstrap.yml，
The debugging results of idea found that when use nacos or spring cloud config
, the SpringApplication.run method was executed twice as shown in the figure:
the first：
SpringApplication.java

Second : Log4J2SpringEnvListener is gone.
BootstrapApplicationListener.java

SpringApplication.java

What i need to Do something so that custom listener is called before LoggingApplicationListener. But custom  defined Listener needs to be able to use the environment.
I used Google Translate and it may be difficult to understand,
Thank you for reading all this question!

it work for me;
in src\main\resources\META-INF\spring.factories
org.springframework.context.ApplicationListener=\
com.xxx.xxx.common.spring.log4j2.Log4J2SpringEnvListener

But I don’t want to configure more locally， Is there any other way?

This is an artifact of the legacy bootstrap system. https://github.com/spring-cloud/spring-cloud-commons/issues/737  There is no easy fix. Using the new spring.config.import in 2020.0 (aka ilford) is the way to avoid this problem.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Hope we all have a bright future! Come on!

As I said before, this is an artifact of bootstrap. There's no way to fix it. The new spring.config.import avoids this.

If it is not easy to fix, it can be added to the future plan. As for whether to close the problem, it depends on the long-term consideration of the spring cloud team.  I have no other opinions


FormLog: Setup the Backend for form login for spring boot

Configured Spring Security to handle form login. The login form now posts to /login instead of /api/login. Used environment variables for admin password configuration.
Remove the Login Controller, since it not needed no more
Need to send back the cookie, however, I don't think we need the cookies no more if we setup the securityConfig correctly
TEST=manual
-login with form work
Change-Id: Ia8b39aa65857d5f186c60dc65759e438114e6770

Code Review comments can be found at https://gerrithub.io/q/Ia8b39aa65857d5f186c60dc65759e438114e6770


Usages of deprecated DefinitionDecorator

The current master makes use of DefinitionDecorator which will lead to deprecation notices as of symfony 3.3 and fatal errors as of 4.0.
Should we replace any DefinitionDecorator occurrence by ChildDefinition and update the symfony/dependency-injection requirement to ~3.3  on master right now?
If so I can work on this.

No we should not bump the requirement (otherwise we would have to maintain 2 versions in parallel due to the LTS, which is not worth it IMO). We should select the right class based on availability.


Does not work with Laravel 5.2

I've tried this on Laravel v5.2 and Blade directives are not detected. Upon looking at source code I found that Laravel changed how directives are extended between two versions.
Do you have any plans to update this code base?

Yes I plan on keeping this package up to date, thanks for bringing this to attention.
I won't be working on it directly in the next few days so if you happen to find a solution feel free to PR it otherwise I'll take a look by weeks end.

@deviloflaplace I tested against 5.2 and 5.2.31 and integration worked normally,do you have a specific error or steps to replicate I can look at?


routing-controllers-openapi -extended

This is amazing,
I've been waiting for a replacement because my CI tools to all christmas-tree on routing-controllers.
I am also using "routing-controllers-openapi" which has a peer dependency to<EMAIL_ADDRESS>Are you interested to add these ecosystem libraries too?
I would help you update routing-controllers-openapi-extended to work with your routing-controllers-extended.
I guess a better name is "routing-controllers-extended-openapi"

Glad you like it.
It's a great idea and "routing-controllers-openapi" is a great project.
Since my bandwidth is limited to handle additional projects we could ask the maintainer to add routing-controllers-extended as a peer dependency?
It seems to be abandoned too so we might be unlucky. Then i would fork and update it with your help. And yes "routing-controllers-extended-openapi" sounds good.

I placed the question: https://github.com/epiphone/routing-controllers-openapi/issues/120
I wait what they say, otherwise we can fork it.

:thumbsup:

It's been a week, so I think the project is dead too.
Would you mind to fork it? I would get on updating it asap.

Sure. It's forked now and i sent an invitation to you.

Thanks, on it.

@spicemc I think the https://github.com/spicemc/routing-controllers-extended-openapi is ready.

tests pass
sample updated and tested
updated docu

I think next would be to setup publish to npm.
I have never done that and I might not have permissions for that, could I trouble you for that step?
Thanks Leo

Sure, i`ll take care of this.
Yes, it's not possible to publish without my npm token.

It's published as 4.0.0 because 1.0.0 already exists.


Merge stabilization into dev

Overview
Periodic merge of stabilization into dev
There were a few merge conflicts this time, hence the custom branch

/azp run


Git: Unable to change default git launch location in VSCode

VSCode Version: 1.52.1 (user setup)
OS Version: Windows_NT x64 10.0.19042

Steps to Reproduce:

Open any folder/workspace in vscode
The git window will show all activities in the default launch location of Git
This happens when the folder is not initialized as a git repository
It makes vscode slow when it tracks the changes in the default launch location of Git which is the Users Menu.
Git says too many activities occurring, only a subset of features will be available.

Does this issue occur when all extensions are disabled?: Yes
Request:
A setting to change the default git launch location in vscode like there is a setting to change the default launch location of the in-built terminal in vscode. Thank you.

@eamodio Is this issue a bug as only a subset of git features are available when this issue occurs or will it be a feature request as I would like to have a setting to change the default launch location of git in VSCode.

Is there possibly a git repo configured in the parent/ancestor folder of any of the folders you are opening? Because that is about the only way that I can think of that would have the SCM view show items outside the folder you opened in VS Code.

Is there possibly a git repo configured in the parent/ancestor folder of any of the folders you are opening? Because that is about the only way that I can think of that would have the SCM view show items outside the folder you opened in VS Code.

The issue happens when I have not created a git repo and build the project.

The issue happens when I have not created a git repo and build the project.

Can you record a video/gif of what you are seeing? I don't think I'm understanding.

Can you record a video/gif of what you are seeing? I don't think I'm understanding.


Invalid expression in tex.vim

While opening tex file, an error is detected while processing syntax/tex.vim.
Error detected while processing /usr/local/Cellar/macvim/HEAD-9d68878/MacVim.app/Contents/Resources/vim/runtime/syntax/tex.vim:
line  514:
E697: Missing end of List ']':
E15: Invalid expression: s:texMathDelimList + [ ['\\langle'     , '〈'] , ['\\rangle'     , '〉'] ,

Already reported in Vim issue


Add label-to-project workflow

This github workflow will add issues to projects when a particular label is applied. It will also remove it from the project when the label is removed.

@benbp switching to doing a checkout adds about 4-5 seconds to the workflows but the overall time is still about 20 seconds so I'm going to keep with the split of the script and config independent of the yml. Once I see this in action for a while in the tools repo I will move the script under eng/common so I can use it in the other repos as well.

/check-enforcer override


Getting XML By URL now working

Thank you so much for all the help so far! I have written a service to return the XML needed to display the graphic and am trying to test it out. I am facing a couple issues, 1) not sure if related to this plugin, but am seeing error "WARN : XML Content not defined undefined" in the chrome console. 2) it is as if nothing is happening on the screen, i can't see the request hit my service so not sure if its making it out of grafana. We are also not seeing any errors in the granfana logs. I have written the service to return of type "xml/plain" and is working fine in postman.

Hi @Seana36,
I know, funtion not implemented, i hope it will be in 0.4

Duplicate with https://github.com/algenty/grafana-flowcharting/issues/17
I close it


Can't use the ML-ready dataset

Hi,
I follow the tutorial but I can't take the training and evaluation step:
1.the requirements.txt contains many libraries that cannot be installed, so I just use my own env.
2.But the ML-ready dataset is too old, I can't create an environment(pytorch==1.7.0 can't be installed) to use it.
do you have a new ML-ready dataset generated by new version of pyG?
Best regards

Hi @sparklesea,
Unfortunately, I don't have a new ML-ready dataset compatible with PyG 2.0. Anything lesser than PyG < 2.0 should work.
There is an alternative if you want to re-use the ML-ready dataset with new PyG 2.0 version.
https://github.com/pyg-team/pytorch_geometric/discussions/4502
I do have a singularity container which have all the dependencies of requirements.txt installed. I can share that with you if needed.
Best regards,
Animesh

Thank you for your reply！ @animeshbchowdhury
I already set up the environment to use the ML-ready dataset.  Meanwhile, the solution you shared works, so I can re-use the ML-ready dataset with PyG>2.0.
Thanks again!

Hi @animeshbchowdhury, could you share the container with me as well? Thanks.


Init NicIdMap on the config daemon startup

After PR #252 is merged there is a race condition between NicIdMap
init and accec to it.
This patch moves InitNicIdMap function call before NicIdMap will be
used in node writer and config daemon run function.
Closes-Bug: #279

lgtm

/retest-all

/retest

/test-all


Don't use .npmignore - Use "files" in package.json.

Fixes https://github.com/dpogue/seymour/issues/27
From (old package content):
seymour
|= .github
|  \= workflows
|     \- ci.yml
|= bin
|  |- seymour
|  \- seymour.cmd
|= src
|  \- seymour.js
|- .editorconfig
|- .eslintrc
|- CHANGELOG.md
|- CODE_OF_CONDUCT.md
|- LICENCE
|- package.json
\- README.md

To (new package content with this commit):
package
|= src
|  \- seymour.js
|= bin
|  |- seymour
|  \- seymour.cmd
|- CHANGELOG.md
|- LICENCE
|- package.json
\- README.md

This project is pretty much a perfect example of "npmignore is hard to keep up-to-date and you shouldn't use it" 😅
Thanks for the pull request to fix that!
You should (if you want) also add your name to the contributors list in package.json.


Revert "build(deps): bump actions/setup-python from 4.7.0 to 4.7.1 (#…

…29917)"
This reverts commit a6ef6364123eb9d9ebce54ca2650b38f96f7887b.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Ran out of disk?

/retest


answer prompts via args

overview
It would be great if we could answer each of the prompt questions using a --key value setup in the cli commands. This will allow us to generate things on the fly so that we do not need to answer every single question, which is useful for things like tests that need to test generated work.
tasks

[ ] come up with naming schema
[ ] implement some way in feathers-cli to pass through all xargs
[ ] map xargs to inquirer prompts
[ ] populate answers using a middleware in generator chain
[ ] make sure things get generated and still work
[ ] unblock #16

Yeah this would be great! The --key value would work great, something for generating an app could look like feathers generate app --projectName a-simple-project --source feathers --packageManager yarn --api rest --api socketio.


[Device Support Request] Develco WISZB-120 door/windows sensor

Is your feature request related to a problem? Please describe.
This sensor is currently only working for the onboard temperature sensor. The contact sensor doesn't report state changes in HA. It is always open. Also, the battery sensor is not reporting any values at all, only unknown.
Describe the solution you'd like
Support for the sensor in ZHA.
Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.
https://paste.ubuntu.com/p/ST3Y6k9fXf/

Node Descriptor: <Optional byte1=2 byte2=64 mac_capability_flags=0 manufacturer_code=4117 maximum_buffer_size=80 maximum_incoming_transfer_size=80 server_mask=0 maximum_outgoing_transfer_size=80 descriptor_capability_field=0>

<SimpleDescriptor endpoint=1 profile=49353 device_type=1 device_version=1 input_clusters=[3, 5, 6] output_clusters=[]>

<SimpleDescriptor endpoint=35 profile=260 device_type=1026 device_version=0 input_clusters=[0, 1, 3, 15, 32, 1280] output_clusters=[10, 25]>

<SimpleDescriptor endpoint=38 profile=260 device_type=770 device_version=0 input_clusters=[0, 3, 1026] output_clusters=[3]>

Manufacturer: Develco Products A/S
Model: WISZB-120

https://github.com/Koenkk/zigbee2mqtt/issues/3012 device appears to have a firmware problem causing it to send an invalid payload on status change messages for the IAS Zone cluster

Failed to parse message (b'090d00350000') on cluster 1280, because Data is too short to contain 1 bytes
...
2020-03-30 18:15:07 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [32, 34, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x4453>, 35, 260, 1280, b'\tI\x005\x00\x00\x00\xdc\x1a', 0, 175, 151, 20, 130, 16, 0, -75]
2020-03-30 18:15:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x4453>, ep: 35, profile: 0x0104, cluster_id: 0x0500, data: b'09490035000000dc1a'
2020-03-30 18:15:07 DEBUG (MainThread) [zigpy_deconz.api] APS data indication response: [29, 34, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x0000>, 1, <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x4453>, 35, 260, 1280, b'\tI\x005\x00\x00', 0, 175, 143, 20, 130, 16, 0, -76]
2020-03-30 18:15:07 DEBUG (MainThread) [zigpy_deconz.api] 'aps_data_indication' response from <DeconzAddress address_mode=ADDRESS_MODE.NWK address=0x4453>, ep: 35, profile: 0x0104, cluster_id: 0x0500, data: b'094900350000'

as a test, modify /usr/local/lib/python3.7/site-packages/zigpy/zcl/clusters/security.py inside your homeassistant container and around line 80 modify schema for "status_change_notification" command:
    client_commands = {
        0x0000: (
            "status_change_notification",
            (ZoneStatus, t.bitmap8, t.Optional(t.uint8_t), t.Optional(t.uint16_t)),
            False,
        ),

the only change is to last two t.uint8_t and t.uint16_t making those optional. Just wanna to test if a quirk would work.

FTR, that change to status_change_notification (plus a quirks handler) was exactly what I needed to get my old SmartThings multi sensors working. It's the one halfway down this page, called "SmartSense Multi Sensor", and it identifies itself as a SmartThings PGC313.
I'm working on the handler now and will open a PR, but I was getting stuck on this malformed packet.

@dmulcahey I'm split whether that change should be done in ZCL or in quirk. Specs clearly state it should send those two params.

Then quirk it 🤷♂


Disenchanting items items gives little to none xp back

Minecraft Version
1.20.1
Describe the Bug
Disenchanting items gives roughly 15mB of liquid xp.
Reproduction Steps

Enchant an item using a blaze burner
Take a look at the price with the goggles (e.g 102)
Disenchant the item
Take a look at the disenchanter and see very little xp in it (e.g. 19 => 5%, I sometimes get as little as 1 xp)

Expected Result
Find the full or at least or notable percentage (50%?!) of the xp in the disenchanter.
Screenshots and Videos

Crash Report or Log
No response
Other Mods
No response
Mod Version
1.2.11

This discrepancy is still in v1.2.13 or is the current level of discrepancy to be expected?
102 -> 19
97 -> 16

Interesting, shouldn't be I'll have to take another look


Research new base container images

As a follow up to https://github.com/keptn/lifecycle-toolkit/issues/1087 we want to find out if there is a benefit to switching our base container images to something else. Right now, KLT uses distroless static images as base but there are other options out there, e.g. UBI micro images or chainguard images.
Tasks

research new base images

UBI
Chainguard
other images that you might find
ko

DoD
Document as a comment to this ticket the following benefits for KLT for each image:

[ ] image size
[ ] security vulnerabilities and how fast they're solved
[ ] license
[ ] support for the image/SLAs(?)

I would like to look into this :)

thankyou @vedsmand! I assigned you 🚀

Hey @vedsmand ! Are you still working on this? Do you need support in any way?

hey @mowies, I havent got the time to look more into this yet unfortunately
But I expect this can be done from my side within next 2-3 weeks
task seems pretty clear to me, so no support is needed atm. thanks for asking :)

Ok cool, sounds good!
If you need anything, either @ me or @RealAnna :)

As a follow-up, I'll create a ticket to do a PoC for trying out chainguard as a base image and KO.
@vedsmand thanks again for the great work! I'll ping you on the PoC ticket if you wanna take it 😉

From chainguards website on SLA and time to fix for CVEs. Public images don't have a SLA attached, but I suppose that if CVEs are fixed for paying customers, they will also be fixed for public images in a timely manner.

Thank you 👍
I would be up for doing the POC also @thisthat 😊

Follow-up ticket created: https://github.com/keptn/lifecycle-toolkit/issues/1591
I'm closing this one :)


Update naming conventions in functions and in notebooks

PR Description
Please describe the changes proposed in the pull request:

Update naming conventions in change_type() and add_column()
Update naming conventions in min_max_scale() and remove_columns()

This PR resolves #59 .

PR Checklist

Please ensure that you have done the following:

[X] PR in from a fork off your branch. Do not PR from <your_username>:master, but rather from <your_username>:<branch_name>.

[X] If you're not on the contributors list, add yourself to AUTHORS.rst.

Quick Check
To do a very quick check that everything is correct, follow these steps below:

[ ] Run the command make check from pyjanitor's top-level directory. This will automatically run:

[X] black formatting
[X] pycodestyle checking
[X] running the test suite
docs build

Once done, please check off the check-box above.
If make check does not work for you, you can execute the commands listed in the Makefile individually.
Code Changes

If you are adding code changes, please ensure the following:

[ ] Ensure that you have added tests.
[X] Run all tests ($ pytest .) locally on your machine.

[ ] Check to ensure that test coverage covers the lines of code that you have added.
[ ] Ensure that all tests pass.

Relevant Reviewers

Please tag maintainers to review.

@ericmjl

All good, thanks @HectorM14!

The naming updates are still flowing!