Add tooling operation StripGeneratedContent

For Knowledge Artifacts (Measures, Libraries, PlanDefinition, Questionnaires) test data we can strip anything that can be generated or inferred at runtime. Specifically:
text
data-requirements
parameters
related-artifacts (of type "depends-on")
content of type application/elm+json or application/elm+xml
Basically, the opposite of RefreshIG and RefreshLibrary.
The goal here is to make the test resources as easy to work with as possible. Removing any data that's not related to the functional behavior.
The less data we have, the less there is to parse at runtime, or index in the IDE, or download when you clone the repo. Tidy, small, fast.
The CQL debundling is already a huge win, we're just taking the next steps.
A rough guess is that this will half the size of the test data based on how much is narrative and so on.
Also, any auto-generated extensions on those resources:
http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-parameter
http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement
http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode
for (var file : recursiveDirectorySearch(input)) {
   parseAsResource(file)
     .flatMap(r -> stripAndWriteIfNeeded(r, file));
}

parseAsResource(input) {
  var version = getVersionFromPath(input)
  var context = FhirContent.forCached(version);
  var content = readFile(input);
  try {

  }
  if (input.endsWith(".json") {
     return context.newJsonParser().parse(content);
  }
  else {
     return context.newXmlParser().parse(content);
  }
  catch {
     return Optional.empty();
  }
}

stripAndWriteIfNeeded(resource, file) {
  if (!isKnowledgeArtifact(resource)) {
      return;
  }

  resource.text().clear()
  resource.dataRequirements.clear()
  ... etc

  var version = getVersionFromPath(input)
  var context = FhirContent.forCached(version);

  String output;
  if (input.endsWith(".json") {
     context.newJsonParser().string(resource)
  }
  else {
     context.newXmlParser().string(resource);
  }

  files.write(content, file);
}
```

Completed as per chat with @mdnazmulkarim. Closing this issue.


React 16: warning about ref's in functional component

Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
Check the render method of `inject-Toolbar`.
W/ReactNativeJS(13491):     in Toolbar (created by inject-Toolbar)
W/ReactNativeJS(13491):     in inject-Toolbar (created by UI)
W/ReactNativeJS(13491):     in RCTView (created by View)
W/ReactNativeJS(13491):     in View (created by Container)
W/ReactNativeJS(13491):     in Container (created by UI)
W/ReactNativeJS(13491):     in UI (created by App)
...

A simple check could be used to achieve this, before assigning the ref: http://stackoverflow.com/a/41489075/1983583

I believe the check needs to be here and docs should be updated that wrappedInstance is undefined for stateless components...


Failed to load Seccomp Profile

What happened:
According to the installation usage, I can set up the SeccompProfile in each of my node, but when it comes to the step of set up the Pod, it stuck in a CreateContainerError state, here is the description
Error: failed to generate security options for container "test-container": failed to generate seccomp security options for container: cannot load seccomp profile "/var/lib/kubelet/seccomp/operator/profiles/audit.json": open /var/lib/kubelet/seccomp/operator/profiles/audit.json: no such file or directory
I'm not sure what's wrong cause i follow the step of instruction strictly.
Even when i try another Profile-Binding method, it's still failed.
What you expected to happen:
the pod running successfully with a custom profile
How to reproduce it (as minimally and precisely as possible):
just follow the step of installation-usage,
Anything else we need to know?:
i try a default profile which is provided in moby repository, by make a /profiles dir under /var/lib/kubelet/seccomp , and the here is the pod configuration
apiVersion: v1
kind: Pod
metadata:
  name: audit-pod
spec:
  securityContext:
    seccompProfile:
      type: Localhost
      localhostProfile: profiles/audit.json
  containers:
  - name: test-container
    image: nginx

and it works well, and I'm not sure if it's related with the symlink of the operator
Environment:
k8s:
ai-sz-k8s-master-node-1   Ready      controlplane,etcd   186d   v1.20.10
ai-sz-k8s-master-node-2   Ready      controlplane,etcd   186d   v1.20.10
ai-sz-k8s-master-node-3   Ready      controlplane,etcd   186d   v1.20.10
ai-sz-k8s-worker-gpu-1    NotReady   worker              77d    v1.20.10
ai-sz-k8s-worker-gpu-2    NotReady   worker              77d    v1.20.10
ai-sz-k8s-worker-node-1   Ready      worker              186d   v1.20.10
ai-sz-k8s-worker-node-2   Ready      worker              186d   v1.20.10
ai-sz-k8s-worker-node-3   Ready      worker              106d   v1.20.10

docker :
Client: Docker Engine - Community
 Version:           20.10.8
 API version:       1.41
 Go version:        go1.16.6
 Git commit:        3967b7d
 Built:             Fri Jul 30 19:55:49 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.8
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.6
  Git commit:       75249d8
  Built:            Fri Jul 30 19:54:13 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.9
  GitCommit:        e25210fe30a0a703442421b0f60afac609f950a3
 runc:
  Version:          1.0.1
  GitCommit:        v1.0.1-0-g4144b63
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Cloud provider or hardware configuration: local cluster
OS (e.g: cat /etc/os-release):

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Kernel (e.g. uname -a):

Linux ai-sz-k8s-worker-node-1 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Others:

BTW, what's the meaning of doing a sysmlink of the profile? why not just create a file path /var/lib/kubelet/seccomp/operator?

We recently ran into something similar and it turned out that the problem was 64 character limit imposed on finalizers. The tell-tale sign was:
ontroller.go:317] controller/profile "msg"="Reconciler error" "error"="cannot ensure node status: cannot create finalizer for nginx-1.19.1: wait on retry: retry function: SeccompProfile.security-profiles-operator.x-k8s.io \"nginx-1.19.1\" is invalid: metadata.finalizers: Invalid value: \"$REDACTED.internal-delete\": name part must be no more than 63 characters" "name"="nginx-1.19.1"

where $REDACTED was the node name which itself was over 50 characters long, plus the -delete suffix.

change the file path of the seccompProfile would help. I set the OperatorRoot path from /var/lib/security-profile-operator to /var/lib/kubelet/security-profiles-operator , and you need to change the volume as well, and I can set the seccompProfile into the pod!!


Export of validation loss of each individual output for a multi-output model

I am building a multi-output model by using keras, and like to check the loss of each individual output.
But it seems the training returns only the mean value of losses. Is there any way that we can extract the losses of all outputs.
Thank you!

[ ] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

[ ] Check that your version of TensorFlow is up-to-date. The installation instructions can be found here.

[x] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Keras already returns the individual values in the History object. Use a jupyter notebook or Ipython to inspect it and you'll find the values you're looking for.

I am new with it, is there any documentation about it so I can learn from, or how can I use callback to collect these data? Thank you!


Unable to upload recordings in AWS S3

recording: {
autoStart: true, // auto start recording on participant joined
enabled: true,
webhookUrl: "https://www.videosdk.live/callback",
awsDirPath: /meeting-recordings/${meetingId}/, // automatically save recording in this s3 path
},
I'm unable to upload recorded video to our s3 bucket...Can you help with the same ?

hey, you have to configure your s3 bucket configuration as per the api keys
you can add this in our User Dashboard app.videosdk.live


Create path to shared dir in release dir if it does not exist.

If the shared paths do not exist in the release_path directory and those shared directories have a depth > 1, the directory structure must be created before symlinking can be done.

Cool!


fix: the entries field of cq is not set

The entries field of cq is not set, this PR fix it.

Please merge this PR after #13.


Removing duplicated authorization API resources

Duplicated authorization API resources cause garbage
collection issues.
Signed-off-by: Ricardo Noriega<EMAIL_ADDRESS>Closes USHIFT-88

This PR will leave us with the following resources (as it was already in 4.8):
oc api-resources | grep autho
localsubjectaccessreviews                        authorization.k8s.io/v1                  true         LocalSubjectAccessReview
selfsubjectaccessreviews                         authorization.k8s.io/v1                  false        SelfSubjectAccessReview
selfsubjectrulesreviews                          authorization.k8s.io/v1                  false        SelfSubjectRulesReview
subjectaccessreviews                             authorization.k8s.io/v1                  false        SubjectAccessReview
rolebindingrestrictions                          authorization.openshift.io/v1            true         RoleBindingRestriction
clusterrolebindings                              rbac.authorization.k8s.io/v1             false        ClusterRoleBinding
clusterroles                                     rbac.authorization.k8s.io/v1             false        ClusterRole
rolebindings                                     rbac.authorization.k8s.io/v1             true         RoleBinding
roles                                            rbac.authorization.k8s.io/v1             true         Role

In an OCP 4.11 nightly I see:
$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.11.0-0.nightly-2022-06-23-153912   True        False         7h59m   Cluster version is 4.11.0-0.nightly-2022-06-23-153912

$ oc api-resources | grep authoriz
localsubjectaccessreviews                                 authorization.k8s.io/v1                       true         LocalSubjectAccessReview
selfsubjectaccessreviews                                  authorization.k8s.io/v1                       false        SelfSubjectAccessReview
selfsubjectrulesreviews                                   authorization.k8s.io/v1                       false        SelfSubjectRulesReview
subjectaccessreviews                                      authorization.k8s.io/v1                       false        SubjectAccessReview
clusterrolebindings                                       authorization.openshift.io/v1                 false        ClusterRoleBinding
clusterroles                                              authorization.openshift.io/v1                 false        ClusterRole
localresourceaccessreviews                                authorization.openshift.io/v1                 true         LocalResourceAccessReview
localsubjectaccessreviews                                 authorization.openshift.io/v1                 true         LocalSubjectAccessReview
resourceaccessreviews                                     authorization.openshift.io/v1                 false        ResourceAccessReview
rolebindingrestrictions                                   authorization.openshift.io/v1                 true         RoleBindingRestriction
rolebindings                                              authorization.openshift.io/v1                 true         RoleBinding
roles                                                     authorization.openshift.io/v1                 true         Role
selfsubjectrulesreviews                                   authorization.openshift.io/v1                 true         SelfSubjectRulesReview
subjectaccessreviews                                      authorization.openshift.io/v1                 false        SubjectAccessReview
subjectrulesreviews                                       authorization.openshift.io/v1                 true         SubjectRulesReview
oauthauthorizetokens                                      oauth.openshift.io/v1                         false        OAuthAuthorizeToken
oauthclientauthorizations                                 oauth.openshift.io/v1                         false        OAuthClientAuthorization
clusterrolebindings                                       rbac.authorization.k8s.io/v1                  false        ClusterRoleBinding
clusterroles                                              rbac.authorization.k8s.io/v1                  false        ClusterRole
rolebindings                                              rbac.authorization.k8s.io/v1                  true         RoleBinding
roles                                                     rbac.authorization.k8s.io/v1                  true         Role

So those duplicates for CluserRoleBindings, ClusterRoles, RoleBindings, and Roles are present. Do we anticipate any issues only providing the k8s versions of the APIs, and not the openshift versions?

In an OCP 4.11 nightly I see:
$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.11.0-0.nightly-2022-06-23-153912   True        False         7h59m   Cluster version is 4.11.0-0.nightly-2022-06-23-153912

$ oc api-resources | grep authoriz
localsubjectaccessreviews                                 authorization.k8s.io/v1                       true         LocalSubjectAccessReview
selfsubjectaccessreviews                                  authorization.k8s.io/v1                       false        SelfSubjectAccessReview
selfsubjectrulesreviews                                   authorization.k8s.io/v1                       false        SelfSubjectRulesReview
subjectaccessreviews                                      authorization.k8s.io/v1                       false        SubjectAccessReview
clusterrolebindings                                       authorization.openshift.io/v1                 false        ClusterRoleBinding
clusterroles                                              authorization.openshift.io/v1                 false        ClusterRole
localresourceaccessreviews                                authorization.openshift.io/v1                 true         LocalResourceAccessReview
localsubjectaccessreviews                                 authorization.openshift.io/v1                 true         LocalSubjectAccessReview
resourceaccessreviews                                     authorization.openshift.io/v1                 false        ResourceAccessReview
rolebindingrestrictions                                   authorization.openshift.io/v1                 true         RoleBindingRestriction
rolebindings                                              authorization.openshift.io/v1                 true         RoleBinding
roles                                                     authorization.openshift.io/v1                 true         Role
selfsubjectrulesreviews                                   authorization.openshift.io/v1                 true         SelfSubjectRulesReview
subjectaccessreviews                                      authorization.openshift.io/v1                 false        SubjectAccessReview
subjectrulesreviews                                       authorization.openshift.io/v1                 true         SubjectRulesReview
oauthauthorizetokens                                      oauth.openshift.io/v1                         false        OAuthAuthorizeToken
oauthclientauthorizations                                 oauth.openshift.io/v1                         false        OAuthClientAuthorization
clusterrolebindings                                       rbac.authorization.k8s.io/v1                  false        ClusterRoleBinding
clusterroles                                              rbac.authorization.k8s.io/v1                  false        ClusterRole
rolebindings                                              rbac.authorization.k8s.io/v1                  true         RoleBinding
roles                                                     rbac.authorization.k8s.io/v1                  true         Role

So those duplicates for CluserRoleBindings, ClusterRoles, RoleBindings, and Roles are present. Do we anticipate any issues only providing the k8s versions of the APIs, and not the openshift versions?

The RBAC OpenShift resources existed prior to the Kubernetes ones. When the upstream RBAC was part of core Kubernetes, the OpenShift resources remained for backward compatibility. Currently, the OpenShift API server is basically a proxy for these resources and requests are forwarded to the k8s.io API group.
We're seeing the same conflict as in #739 where we apply a CRD for SCCs, and it creates conflicts with the openshift.io API group. In this case, the problem is with RoleBindingRestrictions which we apply a CRD as well.
We need this fix to get garbage collection back to work, but it opens a question about proper API serving for OpenShift resources in MicroShift.


Mutation of expression used in initializer list results in ill-formed program

Applying Dredd to
#include <initializer_list>
#include <cstdint>

template <typename T> class foo {
public:
  foo(std::initializer_list<T>) {}
};

int main() {
    foo<uint64_t>{+2};
}

change the sole statement in main() to
if (!__dredd_enabled_mutation(5)) { foo<uint64_t>{+__dredd_replace_expr_int_constant(2, 0)}; }

This causes the following compilation error:
non-constant-expression cannot be narrowed from type 'int' to 'unsigned long' in initializer list

Note that + in +2 is required to replicate the issue. Otherwise, Dredd will not mutate the expression 2, and thus avoid this issue.

While we can reduce this bug by avoiding mutation of expression in such case, I think this approach will further reduce the number of mutants.
Is it possible to change the prelude function to a templated version
template <typename T>
static T __dredd_replace_expr_int_constant(T arg, int local_mutation_id) {
  if (!__dredd_some_mutation_enabled) return arg;
  if (__dredd_enabled_mutation(local_mutation_id + 0)) return ~(arg);
  if (__dredd_enabled_mutation(local_mutation_id + 1)) return -(arg);
  if (__dredd_enabled_mutation(local_mutation_id + 2)) return 0;
  if (__dredd_enabled_mutation(local_mutation_id + 3)) return 1;
  if (__dredd_enabled_mutation(local_mutation_id + 4)) return -1;
  return arg;
}

and mutate the fault-causing expression to:
+__dredd_replace_expr_int_constant<uint64_t>(2, 0)

I am worried that having templated mutator functions may end up getting very complicated and leading to unexpected issues. On the other hand, it might actually turn out to provide a simple and elegant solution to certain issues. @JonathanFoo0523 can you experiment with the template idea?
If it turns out to be non-trivial then I would prefer to work around this by detecting the special case and avoiding a mutation in that special case, and opening a "stretch goal" issue to consider a better solution in the longer term.

A slightly simpler example
#include <initializer_list>

class foo {
public:
  foo(std::initializer_list<unsigned int>) {}
};

int main() {
    foo{+2};
}

The reason that dredd mutate {+2} but not {2} is because of the optimisation here. This optimisation check whether the current expression is a child of CastExpr. If so, we don't mutate the expression.
The AST generate for {+2} is of the form
`MaterializeTemporaryExpr 0x55d7abea7af8 <col:8, col:11> 'const unsigned int[1]' xvalue
  `-InitListExpr 0x55d7abea6e68 <col:8, col:11> 'const unsigned int[1]'
    `-ImplicitCastExpr 0x55d7abea7ae0 <col:9, col:10> 'const unsigned int' <IntegralCast>
      `-UnaryOperator 0x55d7abea6990 <col:9, col:10> 'int' prefix '+' cannot overflow
         `-IntegerLiteral 0x55d7abea6970 <col:10> 'int' 2

This 2 is still mutated because of the intermediate parent UnaryOperator.
@afd I believe this is a missed optimisation opportunity, right?

Another Example:
struct a {
  short b;
};
a c() { return {6 * 4}; }


The problem of getting a certificate from staging mode

In production mode, I get the certificate as before.
But using staging mode I started getting an error in the very last request, when all checks are done and all that is left is to get the certificate from the server.
Problem connecting to server (post for ; curl returned with 3)

Requesting certificate...
2023-07-11 18:26:10 - le error: Problem connecting to server (post for ; curl returned with 3)
Checking certificate...
+ error: failed to run x509 -text (Exitcode: 1)

Details:
Could not read certificate from
I use my finalized dehydrated script.
But on the latest version of dehydrated 0.7.1 the problem is also reproduced if you change the url to staging in the settings.
https://acme-staging-v02.api.letsencrypt.org/directory
https://community.letsencrypt.org/t/the-problem-of-getting-a-certificate-from-staging-mode/201662/1

https://github.com/dehydrated-io/dehydrated/blob/master/dehydrated#L1277-L1293


fix: thorchain savers deposit days to break even

Description

Notice

[ ] Have you followed the guidelines in our Contributing guide?
[ ] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #4194   👈

This comment was auto-generated by Graphite.


Modify SVG file to include width and height of graphic in SVG tag

I've a lot of SVG files (several graphics like, dogs, trees, birds, buildings etc.), and they are from different sources from web. I need to define height and width of these SVGs.
Example:
<svg id="svg1" viewBox="0 0 36 33" xmlns="http://www.w3.org/2000/svg">
 <path d="m18 0.0938-17.719 16.281h5.5625v15.531h24.312v-15.531h5.5625l-17.719-16.281z"/>
</svg>

I need to modified the file with as below:
<svg width="630" height="577" viewBox="0 0 36 33" xmlns="http://www.w3.org/2000/svg">
 <path d="m18 0.0938-17.719 16.281h5.5625v15.531h24.312v-15.531h5.5625l-17.719-16.281z"/>
</svg>

1- How can I get width and height of the graphic ? (Ratio is enough) Normally in javascript, I can find the width and height as below.
var svg1 = document.getElementById('svg1');
console.log('client', svg1.clientWidth + 'x' + svg1.clientHeight);

2- How can add these attributes to svg tag.

How can I get width and height of the graphic ?

There is usually no such thing in an SVG, except it is already set in the svg tag - this is basically the point of vector graphics.

How can add these attributes to svg tag.

I propose you just set the values you need using any xml/dom framework. The "preserveAspectRatio" property is by default set to "xMidYMid", which is probably what you want - otherwise you can set it, too.
As far as I can see, you don't need SVG.NET to accomplish this, but maybe you need it to do something else - depends on your use case.

Closing as answered.


Issue: TerminateServiceInstances task fails on routing failure report

The TerminateServiceInstances MSBuild task indicates failure if it encounters a routing failure report that was previously auto-terminated by a linked service instance.  When a routing failure report is linked to a service instance and that instance is terminated, the routing failure report terminates at the same time.
This work item was migrated from CodePlex
CodePlex work item ID: '10519'
Assigned to: 'tfabraham'
Vote count: '1'

[UnknownUser@2/12/2014]
Resolved with changeset 74546: Fix issue with TerminateServiceInstances and routing failure reports (#10519)


Move dataset.save() to the end in all steps

Problem
For some reason we got used to the following code structure, where we call dataset.save() right after creating it
def run(dest_dir: str) -> None:
    dataset = catalog.Dataset.create_empty(dest_dir)
    dataset.save()

    table = ...
    dataset.add(table)

Even though this works, it makes more sense to save the dataset at the very end (in case dataset metadata changes). Another common problem is forgetting to call dataset.save() at all.
Possible solutions

Move dataset.save() to the end in all steps (and assert that dataset.save() got called in DataStep)
Perhaps we should add a del() method to Dataset that does this automatically, since it's not obvious that it's expected or needed.

I tried calling save() in Dataset.__del__ destructor, but it had weird side effects (there are places where we use Dataset object without wanting to save it). The PR I've created adds warning if save wasn't called (I also went through all datasets and checked that .save() is called correctly everywhere).
Even better would be if run method was returning the dataset (and possible yielding tables), but that wouldn't be compatible with notebooks and rewriting everything wouldn't be worth it.


AOT and reactive forms please...

AOT and reactive forms please...
Angular 2 Kitchen sink: http://ng2.javascriptninja.io
and source@ https://github.com/born2net/Angular-kitchen-sink
Regards,
Sean

hi @born2net try my fork at https://github.com/daominhsangvn/angular2-ui-switch for AoT support

tx!!!


fix, variable weOwnStream_ not declared

Forgot to commit it by accident, now committed/pushed in b5e028d239ee343114a03b102e75e4a574ae967b


Broken "Edit" link in header

Let's take the following page:
https://www.scala-sbt.org/1.x/docs/Multi-Project.html
On top it has "Edit" options which should point to the blob on GitHub:

Currently, it point to https://github.com/sbt/website/edit/1.x/src/reference/00-Getting-Started/05B-Multi-Project.md, but it returns 404.

I believe it should point to https://github.com/sbt/website/blob/5524bb3e66a67fd73555910519abff51115fe3cd/src/reference/00-Getting-Started/05B-Multi-Project.md

Thanks for the report. It should be https://github.com/sbt/website/edit/develop/src/reference/00-Getting-Started/05B-Multi-Project.md
We recently renamed 1.x branch to develop branch.


buildGoPackage: move goDeps from JSON to nix

Motivation for this change
After #16017 there was a lot of comments saying that nix would be better
than JSON for Go packages dependency sets.
As said in https://github.com/NixOS/nixpkgs/pull/16017#issuecomment-229624046:

Because of the content-addressable store, if two programs have the
same dependency it will already result in the same derivation in the
store. Git also has compression in the pack files so it won't make
much difference to duplicate the dependencies on disk. And finally
most users will just use the binary builds so it won't make any
differences to them.

This PR removes all deps.json and libs.json files by replacing
it witth standard deps.nix dependecy set files that can be
generated by go2nix.
TODOs:

[x] documentation
[x] go2nix update

Things done

[x] Tested using sandboxing
(nix.useChroot on NixOS,
or option build-use-chroot in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

CC: @zimbatm @offlinehacker @groxxda @rushmorem @lethalman @edolstra @chris-martin @dguibert @bjornfor @obadz

I am down with the goals of this change.  By having go-binaries reference their dependencies + versions it will assist with keeping go-binaries working.  I feel that this change calls into question the purpose of pkgs/development/go-modules/libs.json.  From now on the only purpose of that file is for go development environments.  I would argue that most dev environments would have a particular set of versions they care about that shouldn't change just because the user updates nixpkgs.  My preference is to remove that file and force people to handle dependencies themselves.
Are there any docs that should be updated with this change?  Specifically docs which reference go2nix and/or how to write a go-binary package.
Also - question for @kamilchm - Are the versions of go dependencies the same as those in pkgs/development/go-modules/libs.json or are they the current revision of master from the source repo?  IMO they should be the same as libs.json so this change doesn't introduce any weird bugs.

Current docs http://hydra.nixos.org/build/36798894/download/1/nixpkgs/manual.html#sec-language-go needs to be updated if we agree on this change.
All deps.nix files were generated from libs.json with the same versions using https://github.com/kamilchm/go2nix/blob/deps-nix/depsjson2nix.nix
go2nix from a branch https://github.com/kamilchm/go2nix/tree/deps-nix can generate Go packages in the new format.

Nice, thanks for pushing this!  Looking forward to it becoming the new way to manage go packages.  LGTM

FYI: would be nice, if  go2nix would be able handle godeps and glide manifests, and simpe convert them to deps.nix

@avnik you can't generate deps.nix without sha of all package dependencies. Both Glide and Godep doesn't provide any checksums other than git rev.
So if you want to generate deps.nix for any of these you still have to download all packages with those tools. And if you do it all the deps will be available under current GOPATH so you could use go2nix save then without any special care for glide or godep.

On Mon, Jul 25, 2016 at 11:07:50AM -0700, Kamil Chmielewski wrote:

@avnik you can't generate deps.nix without sha of all package dependencies. Both Glide and Godep doesn't provide any checksums other than git rev.
So if you want to generate deps.nix for any of these you still have to download all packages with those tools. And if you do it all the deps will be available under current GOPATH so you could use go2nix save then without any special care for glide or godep.

@kamilchm It solely about packaging convinience, so I actually need download all stuff twice, firstly with go get/glide/godep, and secondly with go2nix (and fetchFromGitHub and
other nix stuff usually much faster than go-get.  But it only sidenote/wishlist, not requirement and even not suggestion ;)

What if the dependencies are fetched over mercurial or bazaar? With that approach the user need to coordinate the import inherited variables with what deps.nix needs. Maybe make the arguments in the deps.nix open-ended (eg: { fetchgit, ... }:) and then have a utility that imports and injects all the supported fetchers all the time. Actually if you have a helper you can also keep the deps.nix pure and compose the srcs from that at runtime.

@zimbatm in the current form you need to make sure that there proper fetches are propagated from default.nix. go2nix helps you to introduce and update packages, but you as a maintainer need to fine tune it.
If I understand you correctly you want deps.nix to be pure like:
[
  {
    goPackagePath = "bitbucket.org/ww/goautoneg";
    rev = "75cd24fc2f2c2a2088577d12123ddee5f54e0675";
    sha256 = "19khhn5xhqv1yp7d6k987gh5w5rhrjnp4p0c6fyrd8z6lzz5h9qi";
  }
  {
    goPackagePath = "golang.org/x/crypto";
    rev = "1f22c0103821b9390939b6776727195525381532";
    sha256 = "1acy12f396sr3lrnbcnym5q72qnlign5bagving41qijzjnc219m";
  }
]

and make an utility in buildGoPackage that will translate it to nix srcs. I we want to do it that way, we need to implement https://golang.org/cmd/go/#hdr-Remote_import_paths in nix that are now implemented in Go and used by go2nix https://github.com/golang/go/blob/7bc40ffb05d8813bf9b41a331b45d37216f9e747/src/cmd/go/vcs.go#L817.
The most hard part of it will be:

If the import path is not a known code hosting site and also lacks a version control qualifier, the go tool attempts to fetch the import over https/http and looks for a  tag in the document's HTML <head>.

So build of a Go package will have to call a site and parse HTML to know code location and make proper src.
Another thing is that there can be package fork that need to be used instead of its origin, like optional repo in https://glide.readthedocs.io/en/latest/glide.yaml/
The most important question for me here is if we want to replace deps.json with deps.nix without any helpers because it's just better to have it in nix or we can withdraw this PR and come later with a more complete solution implemented in nix?

could go2nix also use fix' like it is in haskell and pypi2nix? that would mean go2nix would initially generate 2 package. deps.nix and deps_overrides.nix. on second run it would only regenerate deps.nix. so if you want to override somethin gin deps.nix you would do it via deps_overrides.nix.

It's doable. Could you provide some examples in nixpkgs that will describe the exact use cases?
Besides that, even if I implement it now there are no packages in nixpkgs that will use it right now and I wonder if it's worth to add tens of empty files at the moment?
I opt for doing it when we find a real need of it in any new Go program introduced in the future PRs. Then I'll do it with a working example in real nixpkgs.

I'll be out of the github from the next week till september. So if the maintainers have any comments that can move this forward to the master I can try to get it merged if I manage to do it this week.

:+1: i'm for merging this. improvements can come later.

@kamilchm sorry for the late reply. I think we should try to avoid changing the deps format too much. Having the tooling produce the wrong format is going to be confusing otherwise.
I think we all agree that the libs.json is not necessary, so that could go into it's own PR.
Regarding the deps format, I think it would be best to keep in NIXON format (aka: only the data bits). How hard would it be to output the exact same JSON data structure but in Nix instead? (and maybe add a version format key so we can evolve the schema)

@zimbatm do you have an example where and how can I place a version?

I'll try to get rid of the libs.json from master in a separate PR for tomorrow.
@zimbatm if I convert current deps.json to nix it will look like this:
[
  {
    goPackagePath = "bitbucket.org/ww/goautoneg";
    fetch = {
      type = "hg";
      url = "bitbucket.org/ww/goautoneg";
      rev = "75cd24fc2f2c2a2088577d12123ddee5f54e0675";
      sha256 = "19khhn5xhqv1yp7d6k987gh5w5rhrjnp4p0c6fyrd8z6lzz5h9qi";
    };
  }
  {
    goPackagePath = "golang.org/x/crypto";
    fetch = {
      type = "git";
      url = "https://go.googlesource.com/crypto"
      rev = "1f22c0103821b9390939b6776727195525381532";
      sha256 = "1acy12f396sr3lrnbcnym5q72qnlign5bagving41qijzjnc219m";
    };
  }
]

I also showed more pure version before in this comment that will require a lot more stuff to be done as nix utility function.
So the main question is: do we want to have an advanced godeps like function in nix at the end? If so, is it worth do convert current deps.json to simple NIXON as a intermediate step?

I am agreed, that NIXON will be much better, and cleaner.
But also this PR block any work on adding go packages as well (I'd like to add drone.io CLI)

What we need is someone from maintainers who can say what would be a desired state and what steps needs to be done to get there. Someone who can then merge subsequent PRs into master if we do the work.
@avnik as for the adding new packages now, I think I can migrate any package and I'll do this in every following PR.

@kamilchm sorry for the delay.

So the main question is: do we want to have an advanced godeps like function in nix at the end?
In my view go2nix should do the heavy lifting and resolve aliases to keep the nix code simple. It can take dependencies from the GOPATH or from existing manifest like Godeps.json or vendor/vendor.json.

If you can just convert the existing JSON data structures to NIXON and replace the importJSON with importit's probably enough. If you want forward and backward-compatibility I would also wrap that NIXON with another layer so that a schema version can be specified. Eg:
{
  version: 1
  srcs: [ # the usual
  ]
}

If anyone missed it, there is a new effort and committee for Go package management https://groups.google.com/d/msg/golang-nuts/bErS3fDwIgU/DRSUfnS1FQAJ
I'll keep eye on it :)

Any progress on this? It would be good to get this merged before 16.09 so that we don't have to support that JSON craziness forever.

One concern here is the use of fetchgit, which should really never be used in Nixpkgs, because it's not deterministic. Any package that depends on it will fail to build randomly at some point in the future. OTOH, it looks like the Go infrastructure already uses fetchgit so this PR doesn't really make the situation worse.

I'll have time on friday to create new PR with JSON converted to NIXON (https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-239091834) with corresponding go2nix version.
Is it ok for 16.09?

PR with all deps in pure NIXON form -> https://github.com/NixOS/nixpkgs/pull/18487
I'm closing this one.


[extractor/JdItemVideo] Add Extractor

[extractor/JdItemVideo] Add Extractor
To extract the video links from a JD.com product page
e.g
yt-dlp https://npcitem.jd.hk/10033827629871.html

Why did you remove the PR template? The template that specifically told you not to remove it? You need to add it back before this will be considered for further review.
Also, you should review the yt-dlp contributing guide / coding conventions (especially the "trailing parentheses", "quotes" and traverse_obj parts) and update your code accordingly.
Finally, instead of making the regex methods non-fatal with default=None and then raising ValueError if None, just make the methods fatal. Raise ExtractorError if you need to go out of your way make something fatal.

resubmit a pull request


Can't delete challenge

Admin list of challenges. Click on Options -> Delete of one of the challenges. A message pops up that the challenge was deleted. But it is still in the list. I do reload. Still in the list. I try the whole thing again and now Maproulette is completely dead. Site doesn't answer any more.

Now Maproulette works again and the challenge is gone...

What I think is the case here is that deleting the challenge triggers a database query which should be optimized. If a challenge has a lot of tasks it locks the machine for a while causing MapRoulette to become unresponsive.
 If someone wants to have a go at it, this is the place to start.


SLU00 - Jupyter Notebook

@carlacotas could you please remove the .ipynb... checkpoint folder and the __pycache__ folder ?
@saragomes86 FYI these folders are not to be committed :)


Version 2.0.0 does not fire collision events

Given the following code:
<a-scene physics="debug: true">
  <a-box id="box" dynamic-body="" position="0 10 0" color="red"></a-box>
  <a-box id="world" static-body position="0 0 0" scale="9.5 0.2 9.5" rotation="0 0 0" color="cyan"></a-box>
</a-scene>

<script>
document.getElementById('box').addEventListener('collide', function() {
  console.log('collided!')
})
</script>

This is firing the collide events just fine when using v1.4.3 but doesn't fire anything in 2.0.0.
I wonder if this is a desired change (in which case the docs need an update) or a regression

Copied @gftruj's report in #57 —

Hi, I'm trying to listen for the collide event,
simply by entityWithADynamicBody.addEventListener('collide',(e)=>{});
It seems to be correct, moreover it works on earlier versions (1.4.1 at least), as presented in my fiddle.
But when i link the newest version ([2.0.0]()), it doesn't fire at all, as presented in my fiddle.
Am I missing something here ?
a-frame version: 0.6.1.

Yep thanks! It is a regression with the new version. We'll need to set things up a bit differently to support these events coming from a worker, but it shouldn't be too much work to fix.

Guys could you give an estimate about when is it supposed to be fixed? :)

I hope to work on it this week
Am 04.09.2017 9:52 vorm. schrieb "Nikolay Babanov"<EMAIL_ADDRESS>
:

Guys could you give an estimate about when is it supposed to be fixed? :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/donmccurdy/aframe-physics-system/issues/58#issuecomment-326891096,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWmRg0otClRMUlPTt6m_MON7V7aObL0ks5se6wvgaJpZM4PDxlz
.

To get this unblocked I went ahead and fixed the collide events for the default mode (physics="driver: local"). The event is still not working when running physics in a Web Worker; that will a little work to get right.


docs: update README with latest changes

Fixes:

#32

@valentina-s, do you think just the link to the GitHub Actions introduction is enough or I should explain more here?
I have put short descriptions of each script/workflow in the main README and not in subfolder for each one because I have encountered some issues with imports (of spectrogram functions) when I moved them into separate folders (ooi/orcasound). I think it is due to the fact that they are not proper Python packages right now. Let's leave it like this for now because after converting them into proper Actions this won't be a problem (as they will be in separate repositories, each with their own util functions).

@Molkree

Fixes:

Add documentation #32

@valentina-s, do you think just the link to the GitHub Actions introduction is enough or I should explain more here?

You can add a couple of more sentences about the context: we are accessing different datastreams, we can schedule and run jobs for free, etc.

I have put short descriptions of each script/workflow in the main README and not in subfolder for each one because I have encountered some issues with imports (of spectrogram functions) when I moved them into separate folders (ooi/orcasound). I think it is due to the fact that they are not proper Python packages right now. Let's leave it like this for now because after converting them into proper Actions this won't be a problem (as they will be in separate repositories, each with their own util functions).

Maybe __init__.py files would have helped? It is ok this way, since it is not too many functions.


an unexpected error occurred, and Bundler cannot continue. when I run bundle install

bundle install
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:68: warning: already initialized constant Win32::WCHAR
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:68: warning: previous definition of WCHAR was here
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:69: warning: already initialized constant Win32::WCHAR_NUL
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:69: warning: previous definition of WCHAR_NUL was here
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:70: warning: already initialized constant Win32::WCHAR_CR
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:70: warning: previous definition of WCHAR_CR was here
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:71: warning: already initialized constant Win32::WCHAR_SIZE
C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:71: warning: previous definition of WCHAR_SIZE was here
--- ERROR REPORT TEMPLATE -------------------------------------------------------
Error Report
Questions
Please fill out answers to these questions, it'll help us figure out
why things are going wrong.

What did you do?
I ran the command C:/RailsInstaller/Ruby2.3.3/bin/bundle install

What did you expect to happen?
I expected Bundler to...

What happened instead?
Instead, what happened was...

Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?
I tried...

Have you read our issues document, https://github.com/bundler/bundler/blob/master/doc/contributing/ISSUES.md?
...

Backtrace
ArgumentError: unknown encoding name - CP720
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:72:in `find'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:72:in `<module:Win32>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/registry.rb:4:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/win32/resolv.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/resolv.rb:172:in `<class:Hosts>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/resolv.rb:169:in `<class:Resolv>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/resolv.rb:39:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/remote_fetcher.rb:7:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/spec_fetcher.rb:2:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/dependency_installer.rb:6:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/installer.rb:3:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli/install.rb:68:in `run'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:191:in `block in install'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/settings.rb:92:in `temporary'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:190:in `install'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:22:in `dispatch'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/cli.rb:13:in `start'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/exe/bundle:30:in `block in <top (required)>'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.15.3/exe/bundle:22:in `<top (required)>'
  C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `load'
  C:/RailsInstaller/Ruby2.3.3/bin/bundle:22:in `<main>'

Environment
Bundler   1.15.3
Rubygems  2.5.2
Ruby      2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
GEM_HOME  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0
GEM_PATH  C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0;C:/Users/misso/.gem/ruby/2.3.0
Git       2.14.1.windows.1
Platform  x86-mingw32
OpenSSL   OpenSSL 1.0.2j  26 Sep 2016

Gemfile
Gemfile
source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '~> 2.13'
  gem 'selenium-webdriver'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console', '>= 3.3.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock
<No C:/Sites/maisaa-jobs-api/Gemfile.lock found>

--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=unknown+encoding+name+-+CP720&type=Issues
If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new

As you can see by the link about existing issues, this has come up a few times. Unfortunately, it seems like a general issue about using ruby on Windows, and not a problem with bundler.
Maybe you can get better help at https://github.com/oneclick/rubyinstaller2.
I'm going to close this for now.


vcpkg's find_package should verify libraries are found before appending

I've been hitting an issue with my own port of freetype where I am not including bzip2 support. Because of the overridden find_package library it always has BZIP2_LIBRARY-NOTFOUND. All the libraries in there should not append unless they are actually found.
Also with libxml2 it is also assuming that it builds with iconv and charset though ICU is also a perfectly acceptable target.

Hi @donny-dont thanks for posting this issue.
Could you please list the ports that have similar issues you found?
Related #6045

@NancyLi1013 I'm not sure if it's the same issue, but every time I do minor change in some CMakeLists.txt, I get this output:
1> CMake generation started for configuration: 'WSL-GCC-Debug'.
1> Found cmake executable at cmake.
1> cmake -G "Ninja"  -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="/mnt/d/MyProject/Sources/../out/install/WSL-GCC-Debug" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="~/development/vcpkg/scripts/buildsystems/vcpkg.cmake"  /mnt/d/MyProject/Sources/CMakeLists.txt;
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found version "1.75.0")
1> [CMake] -- Eigen found (include: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include/eigen3, version: 3.3.9)
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found suitable version "1.75.0", minimum required is "1.55.0") found components: system filesystem date_time iostreams regex
1> [CMake] ** WARNING ** io features related to png will be disabled
1> [CMake] ** WARNING ** surface features related to qhull will be disabled
1> [CMake] -- looking for PCL_COMMON
1> [CMake] CMake Warning (dev) at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
1> [CMake]   The package name passed to `find_package_handle_standard_args` (PCL_COMMON)
1> [CMake]   does not match the name of the calling package (PCL).  This can lead to
1> [CMake]   problems in calling code that expects `find_package` result variables
1> [CMake]   (e.g., `_FOUND`) to follow a certain pattern.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/share/pcl/PCLConfig.cmake:594 (find_package_handle_standard_args)
1> [CMake]   /home/me/development/vcpkg/scripts/buildsystems/vcpkg.cmake:772 (_find_package)
1> [CMake]   DatCls/cpc/CMakeLists.txt:96 (find_package)
1> [CMake] This warning is for project developers.  Use -Wno-dev to suppress it.
######################################## 200 LINES OMITTED
1> [CMake] -- looking for PCL_STEREO
1> [CMake] CMake Warning (dev) at /usr/local/share/cmake-3.20/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
1> [CMake]   The package name passed to `find_package_handle_standard_args` (PCL_STEREO)
1> [CMake]   does not match the name of the calling package (PCL).  This can lead to
1> [CMake]   problems in calling code that expects `find_package` result variables
1> [CMake]   (e.g., `_FOUND`) to follow a certain pattern.
1> [CMake] Call Stack (most recent call first):
1> [CMake]   /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/share/pcl/PCLConfig.cmake:594 (find_package_handle_standard_args)
1> [CMake]   /home/me/development/vcpkg/scripts/buildsystems/vcpkg.cmake:772 (_find_package)
1> [CMake]   DatCls/cpc/CMakeLists.txt:96 (find_package)
1> [CMake] This warning is for project developers.  Use -Wno-dev to suppress it.
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found version "1.75.0") found components: python39
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found version "1.75.0")
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found version "1.75.0") found components: date_time
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found version "1.75.0")
1> [CMake] -- Found Boost: /mnt/d/MyProject/out/build/WSL-GCC-Debug/vcpkg_installed/x64-linux/include (found version "1.75.0") found components: python39
1> [CMake] -- Configuring done
1> [CMake] -- Generating done
1> [CMake] -- Build files have been written to: /mnt/d/MyProject/out/build/WSL-GCC-Debug
1> [CMake]
1> Extracted CMake variables.
1> Extracted source files and headers.
1> Extracted code model.
1> Extracted includes paths.
1> CMake generation finished.

I do use boost, eigen3 and pcl, but I also use glm, flann and Qt which are not being searched over and over again:
# thirdparty

find_package(Boost REQUIRED)
target_include_directories(${MY_LIB_NAME} SYSTEM PUBLIC ${Boost_INCLUDE_DIRS})
target_link_directories(${MY_LIB_NAME} PUBLIC ${Boost_LIBS_DIR})

find_package(Eigen3 REQUIRED)
target_link_libraries(${MY_LIB_NAME}
  PUBLIC
    Eigen3::Eigen
)

find_package(flann REQUIRED)
target_link_libraries(${MY_LIB_NAME}
  PUBLIC
    flann::flann
)

find_package(glm REQUIRED)
target_link_libraries(${MY_LIB_NAME}
  PUBLIC
    glm::glm
)

find_package(PCL REQUIRED)
target_include_directories(${MY_LIB_NAME} PUBLIC ${PCL_INCLUDE_DIRS})
target_link_libraries(${MY_LIB_NAME} PUBLIC ${PCL_LIBRARIES})

find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
target_link_libraries(${MY_LIB_NAME}
  PUBLIC
    Qt::Core
    Qt::Gui
    Qt::Widgets
)

As a result, every change in some unrelated CMakeLists.txt is 15 seconds wasted.

@donny-dont ，Thanks for posting this issue,Can you give a list of libraries that have this problem on the latest version of vcpkg currently?

Hey @JonLiu1993 its been a long while since I opened this and I believe I encountered this when I was trying to make my own port of FreeType which was doing a find_library on BZIP2. I was surprised because I had no idea that vcpkg was overriding find_library internally and opened this when I determined it.

@JonLiu1993 I think this can be closed.


Ensure content of META-INF/services is merged correctly for fatjar

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@gjoranv I don't remember the rationale of using assembly over shade plugin. It could be due to the zip goal.


Create generic services/repositories which are connected with Asp.Net Identity

To simplify using of different Asp.Net Identity model, especially another type of key - it will be necessary to rework the services, repositories and mapping which are connected with Asp.Net Identity.

I push these changes to branch feature/extensible-aspnet-identity: https://github.com/skoruba/IdentityServer4.Admin/tree/feature/extensible-aspnet-identity

Done on master - #99


cursor position error after dynamic insert

My requirement is when user tap enter then auto insert two space. and my code as follows.
when I auto insert space, I expect cursor appear after space but now it appear before space
May be my code is wrong. please give me some suggestion Thank you.
I wish you can provide more examples.
@override
void initState() {
this._controller.addListener(() {
this._controller.changes.first.then((value) {
if (value.item2.length >= 2 &&
value.item2[1].isInsert &&
value.item2[1].data == "\n") {
final index = this._controller.selection.baseOffset;
this._controller.document.insert(index, "　　");
}
});
});
}

I guess you can follow https://github.com/singerdmx/flutter-quill/blob/master/lib/widgets/editor.dart#L376 to do something similar

I guess you can follow https://github.com/singerdmx/flutter-quill/blob/master/lib/widgets/editor.dart#L376 to do something similar

Tapping on image or url is what we have.
You can create a pull request so that you can pass in additional behavior if you want.

Tapping on image or url is what we have.
You can create a pull request so that you can pass in additional behavior if you want.

check https://github.com/singerdmx/flutter-quill/blob/master/lib/widgets/editor.dart#L340
getEditor().widget.onLaunchUrl can be passed from outside
I think you can do sth similar

check https://github.com/singerdmx/flutter-quill/blob/master/lib/widgets/editor.dart#L340
getEditor().widget.onLaunchUrl can be passed from outside
I think you can do sth similar

Would you mean that I need to change the editor.dart to implements my requirement？ OK  I will try to do this and I think have an extension function to implements custom requirement is a better way.

Would you mean that I need to change the editor.dart to implements my requirement？ OK  I will try to do this and I think have an extension function to implements custom requirement is a better way.

Yes you can submit a pull request for external extensibility on tapping.

Yes you can submit a pull request for external extensibility on tapping.

@override
void initState() {
this._createIndent();
this._controller.addListener(() {
  this._controller.changes.first.then((value) {
    if (value.item2.length >= 2 &&
        value.item2[1].isInsert &&
        value.item2[1].data == "\n") {
      this._createIndent();
    }
  });
});

}
_createIndent() {
final indent = "　　"; // em space
final index = this._controller.selection.baseOffset;
this._controller.document.insert(index, indent);
this._controller.updateSelection(
    TextSelection.collapsed(offset: index + 2), ChangeSource.LOCAL);

}

@override
void initState() {
this._createIndent();
this._controller.addListener(() {
  this._controller.changes.first.then((value) {
    if (value.item2.length >= 2 &&
        value.item2[1].isInsert &&
        value.item2[1].data == "\n") {
      this._createIndent();
    }
  });
});

}
_createIndent() {
final indent = "　　"; // em space
final index = this._controller.selection.baseOffset;
this._controller.document.insert(index, indent);
this._controller.updateSelection(
    TextSelection.collapsed(offset: index + 2), ChangeSource.LOCAL);

}


lf line endingify stray opengcs files

For some reason there's 4 opengcs files that are crlf, oddly 2 out of the 3 files in
vsockexec..
The opengcs/README will be going by the wayside soon but it was caught in the altering. I needed to reset my local repo for the gitattributes
Signed-off-by: Daniel Canter<EMAIL_ADDRESS>

Can you run go mod vendor in test/ to make sure files are reflected there if necessary?

yes


wrong return value

in mannwhitneyu criteria earlier U is computed, based on U1, U2 and sidedness of criteria, but U1 returns as result
https://github.com/scipy/scipy/blob/4edfcaa3ce8a387450b6efce968572def71be089/scipy/stats/_mannwhitneyu.py#L501

This is not a bug. See the documentation.

Please be sure to read the documentation and follow the template when reporting issues in the future.


BUG - Unable to fetch transport list by using ADT service

Related Feature
Feature request:  #518
Related fix: #1083
Description
When package name contains namespace e.g. "/A/B/NAME", ADT service API fails to fetch transport list.
Steps to Reproduce
Steps to reproduce the behavior:

Enter a valid package name in the format "/A/B/NAME".
Expand to get the list

Expected results
Transport list is fetched successfully.
Actual results
Failure to fetch transport requests, error URI-Mapping cannot be performed due to invalid URI:
Screenshots
Package name can also have namespace, which requires uriencoding:

Root Cause Analysis
Problem
{describe the problem}
Fix
{describe the fix}
Why was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}

@slin-sap it seems to be fixed, could you please check and close the issue.

@tobiasqueck A fix has been applied based on the WebIDE implementation. But it didn't resolve the customer incident related to this bug. We are waiting for ADT colleague to further investigate the ADT service response data.


./docker.sh build error

Step 8/38 : RUN usermod -u $USER_ID moos
---> Running in 97e913ca6b0c
usermod: UID '0' already exists
The command '/bin/bash -c usermod -u $USER_ID moos' returned a non-zero code: 4
What is the problem and how to solve it

Hi @En-lightener,
This is happening due to the docker configuration, admittedly it is not the best setup, but in order to have proper file permissions on Linux, I had to mirror the user's UID into the docker container which allowed for write access to the files copied inside the container. The script will detect your UID on your host machine (desktop / laptop / etc) and try to use that for the moos user in the docker container.
It looks like, when launching the docker container, you are logged in with a user which has a UID of zero. Because this is already used by the root user in the docker container, you are getting an error.
I would suggest trying to launch docker via a non-root user (one without UID of zero).

I will mark this is a place for enhancement, it would be nice not to have this UID collision issue.


[DNM] S3 bench

What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-build-arm64-release comment=true

/run-build-arm64-release comment=true

http://fileserver.pingcap.net/download/builds/pingcap/test/tiflash/master/c8a2c363b82ffd236fa68e3e6bc73a387523658e/centos7/tiflash-linux-arm64.tar.gz

/rebuild

/rebuild


[SPG-443]: add User resource

Describe your changes
Comment Triggers

PR Check triggers

Build: trigger build
Sub Category Field Check: trigger subcategoryfieldcheck

https://app.harness.io/ng/#/account/UKh5Yts7THSMAbccG3HrLA/ci/orgs/default/projects/Terraform_Provider/pipelines/NG_AccTest/executions/gicja5WLQXm3ISeTrk_Zew/pipeline got successful run.


Can't deploy msi during Autopilot

The Teams msi does not install during autopilot. Per the documentation. "We recommend that you deploy the package to the computer" however when it's imported in to Intune I see "Execution Context: Per-User" which is a value read from the msi which cannot be changed. When I assign the msi to all devices Autopilot will hang on the teams install, it looks to me like the msi never even launches. I say because it doesn't generate a log file which indicates to me that it never launched.

Hi @PJMarcum , thank you for your feedback.
Could you let me know the article you are talking about? Thanks.

@PJMarcum  We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


Closing transactions

Coming from go-pg I was used to manage transactions with this style of code:
tx, err := db.Begin()
if err != nil {
 log.Fatal(err)
}
defer tx.Close()

On Bun I realized there is no Close() method and I was wondering what the best approach was. Should I use the context to manage transactions? I'm feeling lost, and the migration guide doesn't mention transactions.

We provide db.RunInTx - check the code to see how we are doing it.

I see, thanks for the example! Maybe add a hint to it to the migration from go-pg article?


commander: fix takeoff and land CI test

This fixes the takeoff and land CI test where we do a takeoff and land without RC connected.
In my opinion it does not make sense to go into RC lost failsafe if a datalink is still available.
Of course, this can be dangerous if someone has a companion computer connected which gets detected as "data link" but actually has no connection to the ground station.
This is required for the takeoff and land SITL test after https://github.com/PX4/Firmware/pull/15316.

This sounds right to me, if anything I'm wondering if this was intentionally not done in the first place.

I wanted to first lock down arming with manual control and data link (depending on configuration and mode), but it's not a small clean change. I'll merge this now and come back to that idea later.


Make Settings Toggle Available to Developers

First of all I like your way of thinking in creating this Package, thanks for creating it!
Fell into a rabbit hole when looking for GDPR banners without having to use an external service
and settled on yours : ).
This PR will move toggling the Details / Settings Modal to useConsentState in order to make it available
as isDetailsVisible & toggleDetails() to a Developer.
And while you seem to have made all Services being auto enabled by default in one of your last commits,
to my knowledge that's against the GDPR and a dark pattern. So I changed it to only make the mandatory
ones auto enabled.
Hope the changes are to your liking and this PR will get merged.
Up till then I'm using the following patch with patch-package
(has to be renamed to .patch & put into a patches folder - for whatever reason GitHub doesn't support patch files % ):
react-hook-consent+3.2.0.txt
Best,
Tim.

Hi Tim,
thank you for your participation in this project. Your features are now available in version 3.3.0.
Br
Lukas


Remove hostname url hardcoded

For development purposes, I have used that URL. When merging, that URL should not be hardcoded there.
Close #201

Aha, this needs a rebuild, too.


Delete redundancy

I have found redundancy codes. I have deleted it.

I have noticed an issue in Nightly. The first commit of my PR that deleted twice calling rendering method. So twice calling is very heavy for Nightly. After deleting it, Nightly is very fast running in VR mode.

👍  to this PR. The description is sparse, but the change is important. The title of this PR could better be explained Performance: Cut rendering time in half.
effect.render(scene, camera); effectively renders the VREffect a second time, after the manager has already done it. This means that everyone using this boilerplate is effectively seeing double the rendering time, which originally made me seriously question the performance of WebVR on the Google Pixel.
One could also go the opposite route, and remove/deprecate the .render() from the WebVRManager. But it's more hassle to change the WebVRManager constructor, assuming we want to deprecate and not just flat out remove.

Thank you for comment. I've rewrite the subject of PR :)


No module named 'dataframe_image'

Doesn't work in pycharm even after installing in pycharm terminal.

Take care of your interpreter of debug/running settings.

It may not the same as interpreter choosed for your project.
I'm sure it's not a problem with this package.


docs: add info on FormData submitter and SubmitEvent compatibility

Closes: #9704

[x] Docs

Also, since this is just docs change you can PR this straight to main so it shows up on the docs immediately.  You may need to rebase this branch to point to main so it doesn't pick up commits from dev if you branched from dev originally.

Ok, I will create a new PR from main branch with your suggested changes.


Rename aux to auxiliary for Windows and update .toml files.

This is PR #72. The original PR was made against the staging branch when it should have been sent to master.
bors r+


New BabyBeast Asset and Animations – Crystal Theme💎 (Eagle)

Scope
We need to create a new BabyBeast asset with a Crystal Theme💎 for a Baby Eagle. The design must maintain consistency, while introducing unique translucent and light-refracting features.

What is a BabyBeast?
BabyBeasts are designed as cute magical animals with a consistent style: rounded proportions, soft tones, and minimal yet expressive details.
You can use this one as an example of a Crystal Theme: Assets/BabySprites/crystalbabybeast.gif

Requirements
Design the Crystal BabyBeast💎:

Use the Assets/BabySprites/crystalbabybeast.gif as a base for style and proportions.
Add crystal-like features, such as:

Translucent feathers that refract light into rainbow colors. 🌈🦅
A glowing body with subtle shimmering effects. ✨💫
Elegant and sharp details on the wings and beak.

Create Animations:

Idle Animation (breathing):

Gentle wing movements with light refracting through the feathers.

Additional Animations:

Eating animation: Precise pecking at food while light shimmers on its feathers.
Sleeping animation: Wings folding gracefully with light dimming softly.
Happiness animation: Energetic flapping with rainbow-like sparkles.
Bathing animation: Light ripples shimmering across its translucent feathers.

Maintain Consistency:

Match the proportions, color palettes, and aesthetic logic of the current BabyBeasts.
All animations should feel smooth and aligned with the game’s magical and crystalline theme.

How to Implement?

Use any pixel art or sprite animation toolkit of your choice.
Create and animate the Crystal BabyBeast (Eagle).
Save all assets to the Assets/BabySprites folder in this repository, ensuring proper naming conventions for the files.

Cool Tools to Use

Aseprite: A powerful tool for creating and animating sprites and pixel art.
Piskel: A free online tool for sprite creation and animation.
Feel free to use any toolkit that works best for you.

How to Apply?

Follow the contribution guidelines provided in the README file.
Submit your pull request with the asset and animations in their respective folders.
Ensure all animations are properly tested before submission.

We’re excited to see your contribution! 🦅💎

i have the required experience in unity andd making animations as such. I'll create the Crystal BabyBeast Eagle using Aseprite to maintain the established cute style while adding translucent crystal effects and rainbow refractions, aslo including the breathing animation prioritizing smooth wing movements, followed by the eating, sleeping, happiness, and bathing animations

Can I tackle this one?

hey sir i would love to work on this issue
i'm a blockchain dev and i would love to handle this issue
assign me and i'll get to work

To address this issue, I would design a Crystal BabyBeast Eagle using the style provided as a base, with translucent, light-refracting feathers, a glowing body, and elegant crystalline details. Create smooth animations, including idle (breathing), eating, sleeping, happiness, and bathing, with shimmering and rainbow effects aligned with the magical theme. Save all assets in the Assets/BabySprites folder with proper naming conventions to ensure consistency.

May I take this issue on?

May I try my hand at this?

thanks for the assignment.

hi @suhas-sensei is there any update in this issue? let me know please between 24 hours

yeah, im sending a pr today @juandiegocv27


[Feature Request] Full integration of Virtual Pinball Spreadsheet (virtualpinballspreadsheet.github.io)

VPS integrations for Virtual Pinball Spreadsheet (virtualpinballspreadsheet.github.io)
Ideas...

Separate VPS tab to view/use web page   *easiest
VPS can directly download any item posted on the spreadsheet; homed on vpforums, or vpuniverse
VPS would have two options: "Download, Storage, and Install to vPin" and "Download for Storage" (when you want to not install)

Example for 2:

spreadsheet page has... https://www.vpforums.org/index.php?app=downloads&showfile=17672

actual DL link is... https://www.vpforums.org/index.php?app=downloads&module=display&section=download&do=confirm_download&hash=3f88f166d57711f640aef4cb9d4e53c9

In VPS, user would have a "Storage" location set. For me, I use \Pinball\Storage<table name> to store all my table items (VPX, media, B2S, etc)
Actions would look like this....
User selected "Download and Install"
VPS would download the files, place them in the 'Storage" folder (creating a new folder name if needed) and then upload to the users vPin
User would have default settings, and also have the option to select something else... using the existing modal dialog that shows when uploading anything now.

So much I like the idea of simplifying the whole table download and asset management stuff, I have to close this ticket as a won't fix. I don't want to by-pass the download options of these websites since it's likely to cause troubles with the owners.
When starting with the Studio I had a similar discussion with Dazz, the admin of VPU. He imagined something like a Steam client for VPU, I even build a prototype back then. But we did not follow up on this since.

So much I like the idea of simplifying the whole table download and asset management stuff, I have to close this ticket as a won't fix. I don't want to by-pass the download options of these websites since it's likely to cause troubles with the owners.
When starting with the Studio I had a similar discussion with Dazz, the admin of VPU. He imagined something like a Steam client for VPU, I even build a prototype back then. But we did not follow up on this since.

Actually not suggesting bypassing any of the sites. VPU would embed them into a VPS window and then intercept DL's to automatically store and process (upload) them
example...
a VPS tab with the spreadsheet on the left side, selecting a table opens the spreadsheet popup as normal.
Then click on the actual table (as in the screenshot), changes the right-side of the VPS window to open the VPU location.
Where we can then download the table, pup, etc.

then clicking on the "Download" button shows you the same inset VPU opens, like this...

... BUT when you actually do the download... VPS does some magic.
VPS will directly download (instead of the browser itself) that item and present the user with two options: "Download, Storage, and Install to vPin" and "Download for Storage" (when you want to not install)
This might require an API call to VPU, not sure if you can intercept a browser call or not?


ASCII art figures are not rendered correctly

RST renders correctly in github:
https://github.com/ebpffoundation/ebpf-docs/blob/update/rst/instruction-set.rst#13instruction-encoding
But XML2RFC version is not rendered correctly:
https://htmlpreview.github.io/?https://raw.githubusercontent.com/ebpffoundation/ebpf-docs/pdf/draft-thaler-bpf-isa.html#name-instruction-encoding
Original rst text:
This is depicted in the following figure::

        basic_instruction
  .-----------------------------.
  |                             |
  code:8 regs:8 offset:16 imm:32 unused:32 imm:32
                                 |              |
                                 '--------------'
                                pseudo instruction

XML:
   <t>
    This is depicted in the following figure:
   </t>
   <blockquote>    basic_instruction
    .-----------------------------.
    |                             |
    code:8 regs:8 offset:16 imm:32 unused:32 imm:32
    |              |
    '--------------'
    pseudo instruction
   </blockquote>

Here it should be <artwork> instead of <blockquote>.
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#block-quotes explains the RST format for a blockquote, which should be converted to <blockquote>.
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#literal-blocks explains the RST format for a literal block, which should be converted to <artwork>.


Typecasting

Is it possible to output numbers without quotes? Something like:
let logFormat = loggerJson({
	date: ':date[iso]',
	method: ':method',
	url: ':url',
	status: ':status',
	length: ':res[content-length]',
	responseTime: Number(':response-time'),
});

app.use(logger(logFormat));

Thanks

Just say this: https://github.com/expressjs/morgan/issues/74


Broken image on the PyPI description

Fixed in the README.rst, will be visible on next release.


Add extra endpoints

Create a DELETE /bus/contracts/set:set endpoint that allows deleting a contract set, which isn't needed anymore.
Create a DELETE /bus/contracts/all endpoint to batch delete all contracts from the bus.

Rerunning all tests, quite an exotic NDF you ran into there 👀


[BEAM-11217] Metrics querying for Pcol metrics

Metrics querying for PCollection Metrics.

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

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

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


test/live.go fails for sparc64 SSA backend

# go run run.go -- live.go

live.go:86: no match for `live at call to printint: x z$` in:
        live.go:86: live at call to printint: x
live.go:88: missing error "live at call to printint: x$"
live.go:92: no match for `live at call to printint: x z$` in:
        live.go:92: live at call to printint: x
live.go:141: no match for `live at call to convT2E: x$` in:
        live.go:141: live at call to convT2E: x.data x.type
live.go:192: missing error "live at call to printint: p$"
live.go:193: no match for `live at call to newselect: autotmp_[0-9]+ p$` in:
        live.go:193: live at call to newselect: autotmp_16
        live.go:193: live at call to selectgo: autotmp_16
live.go:193: no match for `live at call to selectgo: autotmp_[0-9]+ p$` in:
        live.go:193: live at call to newselect: autotmp_16
        live.go:193: live at call to selectgo: autotmp_16
live.go:194: no match for `live at call to selectrecv: autotmp_[0-9]+ p$` in:
        live.go:194: live at call to selectrecv: autotmp_16
live.go:195: no match for `live at call to selectrecv: autotmp_[0-9]+ p$` in:
        live.go:195: live at call to selectrecv: autotmp_16
live.go:219: missing error "live at call to g13: s$"
live.go:596: no match for `live at call to printnl: x$` in:
        live.go:596: live at call to printnl: autotmp_183
live.go:602: no match for `live at call to printnl: x$` in:
        live.go:602: live at call to printnl: autotmp_186
Unmatched Errors:
live.go:86: live at call to printint: x
live.go:92: live at call to printint: x
live.go:141: live at call to convT2E: x.data x.type
live.go:193: live at call to newselect: autotmp_16
live.go:193: live at call to selectgo: autotmp_16
live.go:194: live at call to selectrecv: autotmp_16
live.go:195: live at call to selectrecv: autotmp_16
live.go:596: live at call to printnl: autotmp_183
live.go:602: live at call to printnl: autotmp_186

FAIL    live.go 0.370s

This is apparently expected; this test is sensitive to details that were apparently only true with the old compiler backend.  It's skipped on amd64, etc. and only works when SSA is not enabled.


Apply moderation to merged contrasts or to linear model only?

Hi,
I have a question regarding when it is suggested to apply the Bayes moderation. In the vignette Comparing2Groups, the moderation is applied only to the linear model, and then the results of the ContrastsMissing are appended.
In the publication of prolfqua the moderation is performed after merging the different contrasts.
I go with the second method but wanted to confirm which method is recommended.
Thanks for your assistance!

Dear Roman,
Please stick with the paper's version —first merge and then moderate. I will update the Vignette to align it with the paper as soon as possible.
Thank you for pointing out the discrepancy.
Best wishes


fmt, log: messages are not appearing on device log for darwin/arm,arm64

Update the x/mobile/example/basic.main to fmt.Println and log.Println.
...
func main() {
	fmt.Println("starting")
	log.Println("log starting")
...

Build and deploy the app to the device. Run idevicesyslog, launch the app.
The expected result is to see "starting" and "log starting messages" to appear, even though there is no output from the example app.
/cc @crawshaw @hyangah @nigeltao

Is it easy for you to check if those messages appear on Android instead of iOS?

On android we redirect stdout and stderr to logd (the system logger) because there is no way to get access to an app's stdout for debugging on a non-root android phone, the usual development environment.
But that's not so on iOS, where stdout and stderr fit neatly with starting an app from inside Xcode. The attached lldb picks them up and drops them neatly in the output window, interleaved correctly with results from NSLog.
So redirecting os.Stdout and os.Stderr as we do for android would be consistent but an unpleasant development experience, so I think the inconsistency is worth it.
For the log package, there's a question: should we mirror the output to the system log? (We can do so quite easily by calling log.SetOutput(io.MultiWriter(os.Stdout, ...)).) I think we should match the behavior of NSLog here. Does it go to both?

NSLog writes to ASL. ASL provides an option to write the same log to stderr. (man asl_open)

Are you sure that it is working? I can't see any log output.
$ go version
go version devel +b733234 Thu Aug 20 12:13:41 2015 +0000 darwin/amd64

I tested that a log.Printf line in example/basic appeared in the output of idevicesyslog, both starting from lldb and starting the app by clicking on the icon. What are you testing?
(Note that fmt.Printf will not appear in idevicesyslog, as per my comment earlier on this issue.)

I unfortunately can't see the log.Printf output on my device log by starting app by clicking on the icon. This is the main function I am testing:
func main() {
	log.Printf("-----main called")

	//...
}

Do you need any additional information about my device?

Does your app import x/mobile/app?
Have you synced x/mobile past golang/mobile@ab223cf?
As this is a low priority issue, without a way to reproduce this I don't expect to get to this soon.

I must have had an ASL faulty. I rebooted the device and I can see the messages are appearing on the log. Thanks.

For anyone who comes across the same problem of not being able to see the logs, note that you need to relaunch idevicesyslog every time you launch a new application on the device.


run functional tests with both phantomjs and firefox

because I'm pretty sure they're broken on firefox right now


Fails to find cocoapod installation

Although I have cocoapods installed, I get the following error when trying to build:
Fatal error: RepoTools requires a cocoapod installation on host: file Sources/RepoToolsCore/RepoActions.swift, line 197

I have the same issue. I use rbenv to manage my rubies, and bundler to declare my cocoapods toolchain dependency in my repo. Could it be because I can't execute pod directly, instead needing rbenv exec bundle exec pod?

because ios uses zsh -
run / at terminal
run
bash
gem install cocoapods


What do to if I want to install Docker on an macOS that is older than the previous two releases

File: docker-for-mac/install.md
Due to a hardware limitation (old laptop), I can't update my macOS to 10.14 and above. I was living fine with that until I wanted to work with Docker. Is there anyway to install older version of Docker?

You may be able to download and install older versions using the download links in the release notes for older releases  (links can be found in the navigation on https://docs.docker.com/desktop/mac/), but we don't test or support older versions, so no promises if everything works well (and you won't be able to get updated versions / fixes).
Closing this for now, but feel free to continue the conversation


Property definition "initial" value is unexpectedly reused across instances

For example, given an element x-baz with property block as follows:
static get properties() {
  return {
    bar: {
        type: Foo,
        initial: () => new Foo(),
    },
  };
}

Newly created instances of <x-baz> will reuse the same instance of Foo. In my case this creates an issue when attempting to destroy unwanted copies of x-baz. Because the reference is shared, any newly created <x-baz> will point to the original Foo
Happy to create a repro case if it helps

Seems reasonable. I'll update.