Create an instruction for adding provider templates to Project 2A

Create an instruction for adding provider templates to Project 2A:

Based on CAPI instructions from: https://cluster-api.sigs.k8s.io/user/quick-start.html
Making decisions on control plane selection
Converting generated CAPI yaml to Project 2A templates
Running and testing recommendations

Introduction
To generate YAML templates for a CAPI (Cluster API) provider, you'll typically need to define YAML files that describe the infrastructure, cluster, and machines using the CAPI resources and the specific provider's CRDs (Custom Resource Definitions).
Steps to Generate YAML Templates for CAPI Provider:

Understand the CAPI Resources:
CAPI uses several key resources:

Cluster: Describes the entire cluster.
Machine: Represents a single machine instance.
MachineSet: A set of machines with a defined size.
MachineDeployment: A set of machines with deployment-like functionality.
KubeadmControlPlane (for Kubeadm-based providers): Describes the control plane for the cluster.
InfrastructureProvider: Describes the infrastructure provider-specific resources, like VMs or clouds (AWS, Azure, GCP, etc.).

Choose Your CAPI Provider:
CAPI works with different infrastructure providers. Each provider (e.g., AWS, Azure, vSphere, etc.) has its own set of resources, configurations, and CRDs. Some of the popular CAPI providers are:

Cluster API - AWS (cluster-api-provider-aws)
Cluster API - Azure (cluster-api-provider-azure)
Cluster API - vSphere (cluster-api-provider-vsphere)
Cluster API - GCP (cluster-api-provider-gcp)

Depending on your provider, you'll need to install the necessary CRDs for that provider.

Install the Necessary CRDs:
Install the CRDs (Custom Resource Definitions) from the relevant CAPI provider. For example, for AWS, you would run:
kubectl apply -k github.com/kubernetes-sigs/cluster-api-provider-aws/config/crd/

Create a Cluster YAML Template:
You will define a Cluster resource first. Below is an example of how you would define a Cluster YAML for a specific provider.
Cluster YAML (for AWS):
apiVersion: cluster.x-k8s.io/v1alpha4
kind: Cluster
metadata:
  name: my-cluster
  namespace: default
spec:
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
    kind: AWSCluster
    name: my-cluster-infra

Create Infrastructure YAML Template:
Define the infrastructure specific to your provider (e.g., for AWS, you will create an AWSCluster resource). Here’s an example for AWS:
AWSCluster YAML (for AWS):
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
kind: AWSCluster
metadata:
  name: my-cluster-infra
  namespace: default
spec:
  region: us-west-2
  controlPlaneConfiguration:
    instanceType: t3.medium
  nodePools:
    - name: worker-node-pool
      instanceType: t3.medium
      minCount: 2
      maxCount: 5
      replicas: 3

Create Machine YAML Templates:
Each machine in your cluster will be represented as a Machine resource. Below is an example of a Machine resource template:
Machine YAML (for AWS):
apiVersion: cluster.x-k8s.io/v1alpha4
kind: Machine
metadata:
  name: my-cluster-machine
  namespace: default
spec:
  bootstrap:
    configRef:
      name: my-cluster-bootstrap
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
    kind: AWSMachine
    name: my-cluster-machine-infra

Configure KubeadmControlPlane (for Kubeadm-based providers):
If you are using a Kubeadm-based control plane (e.g., for AWS), you will define a KubeadmControlPlane resource, which defines the number of control plane nodes and configuration.
KubeadmControlPlane YAML (for AWS):
apiVersion: controlplane.cluster.x-k8s.io/v1alpha4
kind: KubeadmControlPlane
metadata:
  name: my-cluster-control-plane
  namespace: default
spec:
  version: v1.24.0
  replicas: 3
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
    kind: AWSMachine
    name: my-cluster-control-plane-infra

Generate MachineSet or MachineDeployment:
Optionally, you can define MachineSet or MachineDeployment if you want to scale machines. This is useful for scaling your worker nodes.
MachineSet YAML (for AWS):
apiVersion: cluster.x-k8s.io/v1alpha4
kind: MachineSet
metadata:
  name: my-cluster-machineset
  namespace: default
spec:
  replicas: 3
  selector:
    matchLabels:
      cluster.x-k8s.io/cluster-name: my-cluster
  template:
    metadata:
      labels:
        cluster.x-k8s.io/cluster-name: my-cluster
    spec:
      bootstrap:
        configRef:
          name: my-cluster-bootstrap
      infrastructureRef:
        apiVersion: infrastructure.cluster.x-k8s.io/v1alpha4
        kind: AWSMachine
        name: my-cluster-machine-infra

9. Apply the YAML Templates:
After you have your YAML templates defined, apply them to your Kubernetes cluster using kubectl:
kubectl apply -f cluster.yaml
kubectl apply -f awscluster.yaml
kubectl apply -f machine.yaml
kubectl apply -f kubeadmcontrolplane.yaml

Notes:

Ensure the versions of your YAML templates are aligned with the Cluster API and provider's version you're using.
Some resources (like Machine or MachineSet) might have specific configurations, such as bootstrap scripts, specific machine types, or cloud-provider-specific fields.
You can find more detailed templates and examples in the official CAPI documentation and the respective CAPI provider repositories (e.g., cluster-api-provider-aws).

Conclusion:
More steps will be described further.

Example steps for EKS provider
Useful resources:
Kubernetes Cluster API
Quick Start
Kubernetes Cluster API Provider AWS
Creating a EKS cluster
export AWS_ACCESS_KEY_ID="<KEY-ID>"
export AWS_SECRET_ACCESS_KEY="<ACCESS-KEY>"
export AWS_SESSION_TOKEN="<TOKEN>"
export AWS_REGION=<REGION>
export AWS_B64ENCODED_CREDENTIALS=$(./bin/clusterawsadm bootstrap credentials encode-as-profile)
export AWS_NODE_MACHINE_TYPE=<MACHINE-TYPE-SIZE>
export AWS_SSH_KEY_NAME=<SSK_KEY-NAME>
export KUBERNETES_VERSION=<VERSION>

clusterctl init --infrastructure aws
clusterctl generate cluster managed-test --flavor eks > capi-eks.yaml
CAPI definitions (example) w/o templates:
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
  name: managed-test
  namespace: default
spec:
  clusterNetwork:
    pods:
      cidrBlocks:
      - <IP_ADDRESS>/16
  controlPlaneRef:
    apiVersion: controlplane.cluster.x-k8s.io/v1beta2
    kind: AWSManagedControlPlane
    name: managed-test-control-plane
  infrastructureRef:
    apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
    kind: AWSManagedCluster
    name: managed-test
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSManagedCluster
metadata:
  name: managed-test
  namespace: default
spec: {}
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: AWSManagedControlPlane
metadata:
  name: managed-test-control-plane
  namespace: default
spec:
  region: us-east-2
  sshKeyName: slysunkin
  version: 1.30.0
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
  name: managed-test-md-0
  namespace: default
spec:
  clusterName: managed-test
  replicas: 0
  selector:
    matchLabels: null
  template:
    spec:
      bootstrap:
        configRef:
          apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
          kind: EKSConfigTemplate
          name: managed-test-md-0
      clusterName: managed-test
      infrastructureRef:
        apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
        kind: AWSMachineTemplate
        name: managed-test-md-0
      version: 1.30.0
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
metadata:
  name: managed-test-md-0
  namespace: default
spec:
  template:
    spec:
      iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io
      instanceType: t3.small
      sshKeyName: slysunkin
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: EKSConfigTemplate
metadata:
  name: managed-test-md-0
  namespace: default
spec:
  template: {}

Role definitions:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: capa-eks-control-plane-system-capa-eks-control-plane-manager-role
  labels:
    cluster.x-k8s.io/provider: control-plane-aws-eks
    clusterctl.cluster.x-k8s.io: ''
rules:
  - verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
    apiGroups:
      - ''
    resources:
      - secrets
  - verbs:
      - get
      - list
      - watch
    apiGroups:
      - cluster.x-k8s.io
    resources:
      - clusters
      - clusters/status
      - machinedeployments
      - machinedeployments/status
  - verbs:
      - create
      - delete
      - get
      - list
      - patch
      - update
      - watch
    apiGroups:
      - controlplane.cluster.x-k8s.io
    resources:
      - awsmanagedcontrolplanes
  - verbs:
      - get
      - patch
      - update
    apiGroups:
      - controlplane.cluster.x-k8s.io
    resources:
      - awsmanagedcontrolplanes/status
  - verbs:
      - get
      - list
      - watch
    apiGroups:
      - infrastructure.cluster.x-k8s.io
    resources:
      - awsmanagedclusters
      - awsmanagedclusters/status
      - awsmachinetemplates
      - awsmachinetemplates/status

To be continued...

@bnallapeta , I've added a couple of articles on CAPI provider development

EKS Templates

[!IMPORTANT]
The corner stone of CAPI provider templates is the selection of control plane. In case of EKS (or GCP, for example) the original control plane should be retained (AWSManagedControlPlane for EKS, GCPManagedControlPlane for GCP). For AWS, Azure, etc. - K0s or K0smotron control plane should be used.

Generated YAML for EKS could be converted into 2A template in a straightforward way:
templates/cluster/aws-eks
├── Chart.yaml
├── templates
│   ├── _helpers.tpl
│   ├── awsmachinetemplate-worker.yaml
│   ├── awsmanagedcluster.yaml
│   ├── awsmanagedcontrolplane.yaml
│   ├── cluster.yaml
│   ├── eksconfigtemplate.yaml
│   └── machinedeployment.yaml
├── values.schema.json
└── values.yaml

After applying templated values on all cluster object definitions a new template is pretty much ready.
To be continued...


How to add ripples programatically ?

I've tried this, but it doesn't work.
$('#add').on('click', function(e){
e.preventDefault();
$('#test').ripples("drop", 200, 200, 20, 0.04);
})

Also, is it possible to create only one ripple? Preferably without the mouseover, but rather from code.
That way it won't be too much processor intensive, leaving open some nice possibilities for loading/splash-screen animations.

You're reporting a bug and making a suggestion.
Concerning your code not working - unfortunately I'd need a bit more context to address it - it should work, but maybe you've got something else not set-up correctly. Maybe your selector(s) is/are wrong? Can you perhaps create a small test case I can try out, showing that it indeed does not work correctly?
Concerning your suggestion to disable mouseover ripples - it could be a good idea for an extension, I guess. Though it wouldn't make it significantly less intensive for the processor, as you might think. The performance gain would be negligible.

Concerning that suggestion - I just added the "interactive" property/option. (a034a0f318b4e46f24cb238600e8fbc56ba8a527)


aggressive inlining breaks let mutable semantics

(Sorry for these overwhelming issues... Just post them here and I can help)
Inlining let bindings in Fable seems ignoring the side-effect of evaluation. I've constructed a minimal repro:

type S() =
    let mutable f = []

    let call() =
        f <- 1 :: f
        [2]

    let main() =
        let xs = call() <-- has side effect here, modifying `f`
        f @ xs

call() will modify the value of f, hence the result is expected to be [1] @ [2] == [1; 2].
However, running the generated python code gives [2]. The generated code is:
class S:
    def __init__(self) -> None:
        self.f = empty()

def S__call(this: S) -> FSharpList[int]:
    this.f = cons(1, this.f)
    return singleton(2)

def S__main(this: S) -> FSharpList[int]:
    return append(this.f, S__call(this))   <----- this will get us unchanged `this.f`, which is incorrect

P.S: I'm not sure if this is a Fable.Python specific issue.

Not sure what's going on here.  When I run the code I get [1; 2]. But my generated code looks correct. Not sure if this is something that have been fixed upstream (Fable).
def expr_8() -> TypeInfo:
    return class_type("QuickTest.S", None, S)

class S:
    def __init__(self) -> None:
        self.f = empty()

S_reflection = expr_8

def S__ctor() -> S:
    return S()

def S__call(this: S) -> FSharpList[int]:
    this.f = cons(1, this.f)
    return singleton(2)

def S__main(this: S) -> FSharpList[int]:
    xs : FSharpList[int] = S__call(this)
    return append(this.f, xs)

Nice to see it gets fixed. May you please tell me your fable-py version? I tried 4.0.0-alpha-020 and 4.0.0-alpha-005 which are available on Nuget, but didn't get it correct..

Now I also tried -20 and it fails here as well. The code I used was beyond branch. It get's updates from main now and then.
To test code snippets with the latest compiler it's btw easy to use the src/quicktest/QuickTest.fsproj project in the Fable repo. Checkout beyond, replace QuickTest.fs with your code and run dotnet fsi build.fsx quicktest-py from the root of the repo.
You can also run without fable-py from a custom location by running dotnet run . --project ../../../Fable/src/Fable.Cli --lang Python. This will do the same as fable-py without using fable-py. Note that you need to modify ../../../Fable/src/Fable.Cli to point to the Fable repo src/Fable.cli relative from where you are currently located.

PS: Would be great if you want to contribute this as a unit-test to e.g TestMisc.fs so the bug doesn't come back. Python tests are btw now run as part of the CI for all of Fable.

Adding @alfonsogarciacaro @ncave that might have more info about this bug (which now looks to be resolved) by upstream fixes?

Thanks for this information. I'm going to make a PR for that unit-test.

Great! The Python tests can be run with dotnet fsi build.fsx test-py. They will btw output to build/test/Python. Thus if you tweak the Python code directly you can run a particular file directly using e.g pytest build/tests/Python/test_misc.py

Thanks for these kind instructions!

Forgot to say you need to generate the fable library before testing: dotnet fsi build.fsx library-py

Ahh, I didn't get the test pass on latest beyond.. Anyway I make a PR.

I add a control group in the PR:
    let runCase (l: int) (r: int) (expect: int) =
        let mutable left = 0
        let call() =
            left <- l
            r

        let run() =
            let right = call()
            left + right

       run() |> equal (left + right)

Such function works fine. Hope thishelp bug positioning.

FYI: note that things might be a little slow these days because of vacation. But failing unit-tests are a great contribution!

FYI: Looks like a problem upstream. The test fails for JavaScript as well: https://github.com/fable-compiler/Fable/pull/2687

Thanks a lot @thautwarm for reporting and @dbrattli for helping isolate the issue! I've added a fix for Fable's main branch and I will port it to beyond so it works with Python too 👍

Thanks @alfonsogarciacaro 💯


Data always exported as "cont" (continuous)?

I don't have time to look into this myself (especially since I won't be handling categorical env data any time soon), but I just wanted to make a note of this before I forget:
Some of the functions should probably be reviewed/tested in terms of how the "cont" status gets assigned to data that is later exported.
In envDataRead.R, this
https://github.com/jromanowska/HaplinMethyl/blob/159f19a50bea17a91d1f4d6500104afc920b466f/R/envDataRead.R#L205
takes place before  this:
https://github.com/jromanowska/HaplinMethyl/blob/159f19a50bea17a91d1f4d6500104afc920b466f/R/envDataRead.R#L210-L218
I might be missing something, but it looks like the exported data will be regarded as having "cont" status no matter whether cont is TRUE or FALSE. This also appears to be the case in envDataSubset.R:
https://github.com/jromanowska/HaplinMethyl/blob/159f19a50bea17a91d1f4d6500104afc920b466f/R/envDataSubset.R#L242-L248
(	save.list <- c(cur.names, "cont.data") is not inside an if  statement; it appears to happen no matter what)
The same goes for envDataReadFromObj.R:
https://github.com/jromanowska/HaplinMethyl/blob/159f19a50bea17a91d1f4d6500104afc920b466f/R/envDataReadFromObj.R#L103-L116
It looks "buggy" to me , but  it might be fine 👀 Hard to say without testing 🕵

The statement save.list <- c(save.list, "cont") creates the list with names of objects that will be saved in the .ffData/.RData files. Thus, the cont object will be saved, showing whether there is continuous data (TRUE) or categorical (FALSE). When you read in the .ffData/.RData files, you can check then whether object cont == TRUE.
The statements within the if(cont) are so that the class of the final object returned to the user is set accordingly to whether it's a continuous data (cont == TRUE) or not (cont == FALSE).
If it's still not clear, we can talk about it - maybe I can't explain it correctly in writing.


Updated Domains

Hi,
The domain list in the script isn't up to date with the latest update:
https://github.com/MicrosoftDocs/memdocs/commit/d5021ef84ba592f1bb2e579498aa24efb50fc172

True, the emdl addresses got removed. The other addresses around do.dsp.mp.microsoft.com and dl.delivery.mp.microsoft.com are still valid as they add more precise (and working) domains. Thanks for flagging! Update here: https://github.com/MHimken/toolbox/commit/e7752ec7f2ff2cfcbb27f1a650f355d535a12bf5


Update  stable diffusion example requirements

torchvision is needed for running the example.
nncf from source was needed when this example was created, but  has had a new release since.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Add 0.4.19 release notes

Description

@Czaki let me know if/when you would like me to have a pass at this? In the highlights, I think we should also add your follow-up PRs to the GPU labels work, in the same sentence/paragraph. I'm happy to have a pass once you are done pushing to it. 😊

@jni at this moment, This is just output from the script for generating release notes.
The text of highlight lives here https://github.com/napari/napari-release-tools/pull/3/files/b746c40d1d6f90a5a2e176ded612ff5eb1086961
I do not have any idea how it should look, now waiting on @melonora suggestions.
My idea is to wait with this PR and merge it just before making final release.

@Czaki could you cherry pick: https://github.com/napari/docs/pull/273
❤


Singleton lifestyle not works when using DynamicParameters

I Register my component with Singleton lifestyle. But when I change constructor initialization from simple to DynamicParameters, it resolves always new instance.

Since this hasn't been answered I'm closing this issue. @VitalickS if you have a working reproduction please submit it as a separate issue, or better yet, a pull request


TaskRun validation with duplicate params is incorrect

For this TaskRun and Task...
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: echo-hello-world
spec:
  params:
    - name: hi
      default: world
  steps:
    - name: echo
      image: ubuntu
      command:
        - echo
      args:
        - "hello $(params.hi)"
---
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: echo-hello-world-task-run
spec:
  params:
    - name: hi
      value: first
    - name: hi
      value: second
  taskRef:
    name: echo-hello-world

The admission webhook returns the error - validation failed: expected exactly one, got both: spec.inputs.params.
It's good that the error is caught in 0.11 (it was not in 0.10) however it is catching it for the wrong reason. The problem is not that input.params and params were both used, the problem is that a duplicate param was provided.

@skaegi the error message seems ok, expected exactly one is the "duplicate" error message I think. But the key is definitely wrong spec.inputs.params should be spec.params instead… :sweat:
/kind bug

yep -- you're right it's fine -- let me just see if I can generate a more helpful error.


Make storage POC

This is stacked on top of https://github.com/ligolang/contract-catalogue/pull/37 please look at the last commit only
What do you think of exposing those functions? I think exposing functions that help with writing storage can be helpful with writing tests, and, probably with some tweaks, to help writing storages for user contracts too.

Example of usage here: https://github.com/aguillon/permit-cameligo/commit/21c89177e8f1d72b39759cd69b305fe1c9f2998e#diff-65fc8f52b67e600f26acf2b5b4f4b6e8da9d985dd3b6cd4c23a78ce26f0e04e1

@Laucans Please tell me if you're ok with this: I want to generalize these functions to all implementations (JSLigo and Cameligo, extendable or not, and assets/NFT) to use them in permit-lib.

you mean more fa2-withPermit implmentation files , right ?

No I just mean that I want to add basic support for storage generation here, and add more stuff in permit-cameligo, e.g., https://github.com/aguillon/permit-cameligo/commit/21c89177e8f1d72b39759cd69b305fe1c9f2998e#diff-65fc8f52b67e600f26acf2b5b4f4b6e8da9d985dd3b6cd4c23a78ce26f0e04e1

I agree, this code is utilities and got a place in tests.

Superseded by #39.


[QUESTION] Pdf Type1 Fonts loading

Hi. I implement Pdf rendering with SkiaSharp and have trouble on loading Pdf Type1 Fonts(PostScript Program) on windows by SKTypeface.
Have you any decision?
Test's show's that HarfBuzz can load this type of fonts. But is it possible to Draw text with HarfBuzzFace and escape SkTypeface?

I had a quick look at this and it seems the c wrapper already has the needed functions to create a picture shade just the binding is missing the needed bits.
The C API is defined here:
https://github.com/mono/skia/blob/xamarin-mobile-bindings/src/c/sk_shader.cpp#L37
P/Invoke:
https://github.com/mono/SkiaSharp/blob/master/binding/Binding/SkiaApi.cs#L591
And the C# Binding is defined here: https://github.com/mono/SkiaSharp/blob/master/binding/Binding/SKShader.cs
If you can fork SkiaSharp and create a PR against current master after you added needed functions.

Greate,  but it was previus issue)

I had a quick look at this and it seems the C wrapper already has the needed functions to create a picture shader just the binding is missing the needed bits.
The C API is defined here:
https://github.com/mono/skia/blob/xamarin-mobile-bindings/src/c/sk_shader.cpp#L37
P/Invoke:
https://github.com/mono/SkiaSharp/blob/master/binding/Binding/SkiaApi.cs#L591
And the C# Binding is defined here: https://github.com/mono/SkiaSharp/blob/master/binding/Binding/SKShader.cs
If you can fork SkiaSharp and create a PR against current master.

DirectWrite doesn't support Type 1 typefaces so I don't think this will ever work. It is probably time to use a newer format. Looks like FreeType isn't supporting this aswell.

Ok. look's like that fonts requires to implement custom text extraction for mystic encodings from 90's)


filterResourcesWithEvents false set problem.

Hello
When I send the following command, the events are filtered, but when I send false, the events do not come back.
ec.setOption('filterResourcesWithEvents', 'true');
ec.setOption('filterResourcesWithEvents', 'false'); --- not working

@noneym You should pass booleans, not strings as the second parameter in setOption:
ec.setOption('filterResourcesWithEvents', true);
ec.setOption('filterResourcesWithEvents', false);

:) its my bad sorry vkurko
Thank you


Implement floating point API

Ref #144

I'm going to merge this now, but we will create an issue to have it fixed.


[$1000] Payment GH for PR review #25564

https://github.com/Expensify/App/pull/25564
For @situchan
Setting at $1000 because this PR started before we announced the price updates
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01c2340042e264da70
Upwork Job ID:<PHONE_NUMBER>504908800
Last Price Increase: 2023-09-15

Will have to be manually hired

Got it, thanks for the heads up.

We're still waiting on the deploy to prod so the timer hasn't started yet. I'll continue following along and update accordingly.

@situchan - I've hired you for the Upwork job, I'll check it tomorrow.

Hmmm, normally I don't see the checklist in this one-off payment GHs.
@situchan does it make sense for you to do the checklist here? If not let me know and I'll hide it but if it's expected for this feel free to do it and I'll take the reg test step as needed.

@thienlnam do we have new regression test step of new simplified global create menu in Testrail?

I've already created an issue to get them added https://github.com/Expensify/Expensify/issues/318720

Thanks.
@strepanier03 we don't need another regression test here

All right, this has been paid and the contract ended.
Thank you @situchan for being a member of this community!


Puzzle release

At the moment, it appears that puzzles will be organised by difficulty. Teams will initially only be able to see the easiest puzzles and once those are all solved, the next set will be available to them. Unclear exactly how many rounds there will be so it should be coded so that there can be any number of rounds.

Update: Puzzles will be grouped by uni and released in sets.


Add a post-install hook for Xrdp on RHEL?

This relates to https://github.com/FreeRDP/FreeRDP/issues/3645
After installing Xrdp, RHEL still needs
# firewall-cmd --permanent --zone=public --add-port=3389/tcp
# firewall-cmd --reload

Can we add a note or hook to make this more obvious to the end user?

This is a packaging issue. I don't think we should handle it in xrdp sources.

Please report this bug against
http://bugz.fedoraproject.org/xrdp
http://bugz.fedoraproject.org/freerdp
I don't think a package should change system-firewall without user knowing about, but if you file a bug We will find the best solution.

Reported in https://bugzilla.redhat.com/show_bug.cgi?id=1405172.

please add that informatiion into documentation, changes to system firewall can't be added in post install scripts.

I think it is the common knowledge for a system administrator.

Why not to the package documentation? README.Fedora for example.


Help with amend order on bitmex

Hi,
I created in org.knowm.xchange.bitmex.Bitmex interface the following method:
  @PUT
  @Path("order")
  BitmexPrivateOrder amendOrder(
      @HeaderParam("api-key") String apiKey,
      @HeaderParam("api-nonce") SynchronizedValueFactory<Long> nonce,
      @HeaderParam("api-signature") ParamsDigest paramsDigest,
      @FormParam("orderID") String orderID,
      @Nullable @FormParam("orderQty") BigDecimal orderQuantity,
      @Nullable @FormParam("price") BigDecimal price);

Then I used it in BitmexTradeServiceRaw but whenever I use it I get a 401 unauthorized... something like the signature is not good.
Does anybody can help me? I would provide a PR once it is working :)
Thanks
***Bye
*Piero

Already implemented on master :)


enhancementadd a session variable to control join reorder algorithm

Proposed changes

disable join reorder in nereids if disable_join_reorder is true.
add a session variable max_table_count_use_cascades_join_reorder to control join reorder algorithm in nereids. if dp hyper is used only when enable_dphyp_optimizer is true and the joined table count more than max_table_count_use_cascades_join_reorder, which default value is 10.

close #16699 close #16708
Problem summary
Describe your changes.
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.87 seconds
stream load tsv:          477 seconds loaded<PHONE_NUMBER>9 Bytes, about 149 MB/s
stream load json:         36 seconds loaded<PHONE_NUMBER> Bytes, about 62 MB/s
stream load orc:          70 seconds loaded<PHONE_NUMBER> Bytes, about 15 MB/s
stream load parquet:          28 seconds loaded 861443392 Bytes, about 29 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230215122508_clickbench_pr_97009.html

run buildall


Lookahead and lookback

I haven't looked into this too much yet, but if I am not mistaken the quote crate uses a neat trick to allow lookahead and lookback-ish matching on tokens, see:
https://github.com/dtolnay/quote/blob/278057d0d2e59c7de95d79d42e4934783d013e83/src/lib.rs#L672-L702
it might be nice to add this to the pattern section(or do a case study on the macro even?)

There is no a comment explaining this: https://github.com/dtolnay/quote/blob/31c3be473d0457e29c4f47ab9cff73498ac804a7/src/lib.rs#L664-L746


xSqlServerNetwork example file

Hi,
As promised added example of new resource usage.
xSqlServerNetwork was added in #20;

Hi @Arturas-K, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

@TravisEz13 thank you for your comments.
I have made changes you requested.

Thanks for your contribution!


Add EhCache changelog from 3.9.7 to 3.9.9

On the Github release page, the latest release of EhCache 3 is still 3.9.6, and it would be helpful to add the 3.9.7 to 3.9.9 changelog to help users troubleshoot problems.
With https://github.com/ehcache/ehcache3/releases as a reference.

Notice the https://github.com/ehcache/ehcache3/releases/tag/v3.10.0 . Therefore this issue is no longer needed.


[BUG] bold button briefly shows when note is first loaded

This is the bold button from the ToolTip plugin

this was a Milkdown issue, resolved


Include billing address in credit card struct

Add billing address to the credit card struct.

Thank you!


*: config capacity used ratio.

@qiuyesuifeng @disksing @shenli

LGTM

@siddontang I run make test a few thousands times on my local machine and could not reproduce the context timeout issue. Is there a way to reliably reproduce the context timeout?

LGTM


If referenced viewmodel is not a module, an exception will be thrown

Already fixed in earlier commits.


Fix spelling errors.

The lintian QA tool reported a spelling error for the Debian package build of 2.4rc0:

intialized -> initialized

Thanks!


Adding new example : dynamic simulation of PCB

In this PR I am adding a new example of a dynamic simulation (modal and PSD analysis) of a printed circuit board.
This example is inspired from Chapter 20 of the Technology Showcase Example Problems Manual.

Good!

Codacity check fails because of these:

but this matches what is been done in the files (and also I still get an error if I resolve this, telling me that the docstring should start at the first line...)

I'm fixing the codacy requirements. Minor shouldn't be enforced.
BTW, it's not required for merge, but it is annoying to see those red x's.

@pmaroneh, please see the changes made here to make the example more readable:
https://github.com/pyansys/pymapdl/pull/938/commits/0ec1211f665078810cb706bbeef879bc9e71cd6f


merge Date object

const obj1 = { date1: new Date() };
const obj2 = merge(obj1, { date2: new Date() });

console.log(obj1.date1.toISOString());
console.log(obj2.date1.toISOString()); // not working
console.log(obj2.date2.toISOString()); // not working

Fixed in v2.0.2.
Thanks for bringing the issue to my attention, @lacherogwu. Much appreciated.


Displaying Color Values for two attributes in Dataset explorer

While in the dataset explorer, when trying to do a comparison between predicted and ground truth, one has to switch which attribute is being expressed by the color value.
I'd suggest having a color value for the datapoint, and a boundary or halo color value, so that two attributes can be compared without having to manually switch.

I understand this as follows with this example screenshot:

The top right corner has a selection for "Color value". If I select "True Y" or "Predicted Y" I can't tell for which points the two differ, i.e., which points are the errors. @ilmarinen suggests adding an additional selection for "Halo color value" so that you can express multiple dimensions with the color for every point.


Fixes #627 - updated search control popup menu

Overhauled the <SearchControl> popup menu.
Defined logic for "ElementDefinition" vs "SearchParameter":
First, add a field definition for every ElementDefinition
Next, add each SearchParameter as long as it does not share a code (case insensitive) or display name
This fixes #627
Defined logic for multiple SearchParameters for one ElementDefinition
If there are zero SearchParameters for a column, then no filter icon and no search popup menu.
If there is one SearchParameter, then show the submenu inline
If there are multiple SearchParameters, then show a submenu selector, one item for each parameter:
Observation.value:

Patient.telecom:

Coverage increased (+0.02%) to 95.143% when pulling 9e15b5e9d7420399e91cd01cd9eac1599a5b1aa4 on cody-search-popup-menu-fixes into a3d444db1fd1d7e03c4ccc20a391f1c9d3eafcf3 on main.


updated secrets backend to localFileSystem.

@greg-seesaw and @atish-beehyv  I made a few changes here:

I added a mount on docker/docker-compose-local.yml where a user can place Airflow connections and their snowflake private key. This is set via in the AIRFLOW_LOCAL_CONNECTIONS_DIR and should be out of source control (to prevent pushing secrets/keys to github)
Updated the airflow local file system backend to be reference ./files/variables.json and ./files/connections.json. I couldn't get Airflow to retrieve secrets with ${AIRFLOW_HOME} as a prefix.
Added an example connection for a Snowflake connection

When I put my connections.json and private key in a local directory and set AIRFLOW_LOCAL_CONNECTIONS_DIR to that local directory, I can then launch local runner and run the health check DAG.

@greg-seesaw and @atish-beehyv I made a few changes here:
* I added a mount on `docker/docker-compose-local.yml` where a user can place Airflow connections and their snowflake private key. This is set via in the `AIRFLOW_LOCAL_CONNECTIONS_DIR` and should be out of source control (to prevent pushing secrets/keys to github)

* Updated the airflow local file system backend to be reference `./files/variables.json` and `./files/connections.json`. I couldn't get Airflow to retrieve secrets with `${AIRFLOW_HOME}` as a prefix.

* Added an example connection for a Snowflake connection

When I put my connections.json and private key in a local directory and set AIRFLOW_LOCAL_CONNECTIONS_DIR to that local directory, I can then launch local runner and run the health check DAG.

Hey @morrie-seesaw Any new steps to add before local runner start?
For me steps which I was following is not working now and getting error

@greg-seesaw and @atish-beehyv I made a few changes here:
* I added a mount on `docker/docker-compose-local.yml` where a user can place Airflow connections and their snowflake private key. This is set via in the `AIRFLOW_LOCAL_CONNECTIONS_DIR` and should be out of source control (to prevent pushing secrets/keys to github)

* Updated the airflow local file system backend to be reference `./files/variables.json` and `./files/connections.json`. I couldn't get Airflow to retrieve secrets with `${AIRFLOW_HOME}` as a prefix.

* Added an example connection for a Snowflake connection

When I put my connections.json and private key in a local directory and set AIRFLOW_LOCAL_CONNECTIONS_DIR to that local directory, I can then launch local runner and run the health check DAG.

Hey @morrie-seesaw Any new steps to add before local runner start? For me steps which I was following is not working now and getting error

@atish-beehyv try these steps:

Create a local directory outside of the repo
Add your Snowflake private key to this directory
Using the example connections json file I added, create a snowflake connection with your credentials. Be sure to include "./files/{name_of_private_key}.p8". Put this connection into the directory created in step 1.
Open a shell session in the local runner repo
Run export AIRFLOW_LOCAL_CONNECTIONS_DIR=name_of_local_directory.
Run ./mwaa-local-env start
Update the connection name in the health check dag to match the name is connections.json
Run the health check DAG

I made a small change to the docker compose file to avoid the error you are seeing. If the environment variable AIRFLOW_LOCAL_CONNECTIONS_DIR is not set, the local runner will default to  the example_connections directory in the repo.

@greg-seesaw and @atish-beehyv I made a few changes here:
* I added a mount on `docker/docker-compose-local.yml` where a user can place Airflow connections and their snowflake private key. This is set via in the `AIRFLOW_LOCAL_CONNECTIONS_DIR` and should be out of source control (to prevent pushing secrets/keys to github)

* Updated the airflow local file system backend to be reference `./files/variables.json` and `./files/connections.json`. I couldn't get Airflow to retrieve secrets with `${AIRFLOW_HOME}` as a prefix.

* Added an example connection for a Snowflake connection

When I put my connections.json and private key in a local directory and set AIRFLOW_LOCAL_CONNECTIONS_DIR to that local directory, I can then launch local runner and run the health check DAG.

Hey @morrie-seesaw Any new steps to add before local runner start? For me steps which I was following is not working now and getting error

@atish-beehyv try these steps:
* Create a local directory outside of the repo

* Add your Snowflake private key to this directory

* Using the example connections json file I added, create a snowflake connection with your credentials. Be sure to include `"./files/{name_of_private_key}.p8"`. Put this connection into the directory created in step 1.

* Open a shell session in the local runner repo

* Run `export AIRFLOW_LOCAL_CONNECTIONS_DIR=name_of_local_directory`.

* Run `./mwaa-local-env start`

* Update the connection name in the health check dag to match the name is connections.json

* Run the health check DAG

I made a small change to the docker compose file to avoid the error you are seeing. If the environment variable AIRFLOW_LOCAL_CONNECTIONS_DIR is not set, the local runner will default to the example_connections directory in the repo.

thanks it worked for me too.
So I removed connections and variables json file from docker directory which I added in previous commits. We will read from local system instead of airflow home directory.


Add log enrichment feature for seccomp

What type of PR is this?
/kind feature
What this PR does / why we need it:
Enriches seccomp audit logs with Kubernetes information, allowing SPO users to easily spot what workloads are missing specific syscalls on their profiles.
Which issue(s) this PR fixes:
Relates to #244
Does this PR have test?
Not yet
Special notes for your reviewer:

A new RBAC role was created to isolate log enrichment requirements as this may be split from the other components in a follow-up PR
The best approach I could find to map PID to Pods was using HostPID and reading the cgroup file. This is container runtime specific and currently only supports CRI-O.

Does this PR introduce a user-facing change?

Add seccomp audit log enrichment feature

I will update the deployment model document with a section for "optional components" I think this may be a good candidate for that given its privileges.
I could not find a lesser privileged approach for the PID->POD mapping, so had to enable HostPID, but really keen on hearing ideas on better way around it. @saschagrunert @cmurphy @JAORMX

I have made a few changes in order to broaden support by using /dev/kmsg instead of /var/log/syslog. Unfortunately, this version requires the container to run as privileged in order to have access to said device.
I propose we go ahead with this approach (plus fixing any other feedback) and then on the follow-up PRs:

Bring dependency code into the project
Improve testing
Decrease privilege requirements
Create security profiles to water tight the feature
Add documentation

/test all


[BUG]  paste password

CURRENT STATE

When pasting to password block on mobile it doesn't recognize the user account.

To Reproduce
Steps to reproduce the behavior:

Go to 'https://amethyst.teicor.com'
Click on 'Log In'
Paste your password from clipboard
Click on 'Log In'
See error

DESIRED STATE

Pasting password should collect the input and pass it to the login function.

Smartphone (please complete the following information):

Device: [iPhone 13 mini]
Browser: Safari

resolved in Amethyst PR #78 https://github.com/teicorian/amethyst/pull/78


fix: migrate KV data for #241

This is a prerequisite for #241.
Please review, @huai-jie.

LGTM!

Nit:

Could you temporarily disable incrementVisitsPerDay() on the index page?
Then re-enable it at https://github.com/denoland/saaskit/pull/241

Thanks!


Display children on landing page

references #6004
Displays cards for pages linked to the landing page

@gestchild there is a few conflicts.
Are we holding off on this review until we remove landing-pages?

yep, I'll close it


Datastore: querying in imported file at module scope fails with 401 Deadline Exceeded error

This error happens when executing a datastore query at module scope triggered by importing the module into another script. To reproduce make two files in the same directory together with a JSON service account credentials file. Notice where the datastore specific variables need to be set for the example to work.
test.py:
from main import main

if __name__ == '__main__':
    main()

main.py:
import os

from google.cloud import datastore

CREDENTIALS = 'YOUR-JSON-FILENAME-HERE'
PROJECT = 'YOUR-PROJECT-NAME-HERE'
NAMESPACE = 'YOUR-NAMESPACE-HERE'
KIND = 'YOUR-KIND-HERE'

PROJECT_DIR = os.path.dirname(os.path.realpath(__file__))
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = \
    os.path.join(PROJECT_DIR, CREDENTIALS)
ds_client = datastore.Client(project=PROJECT, namespace=NAMESPACE)

keys = []
query = ds_client.query(kind=KIND)
for entity in query.fetch():
    keys.append(entity.key.name)

def main():
    print('\n'.join(keys))

This will always fail with the following stacktrace:
File "test.py", line 1, in <module>
    from main import main
  File "/home/user/src/consult/test/main.py", line 11, in <module>
    for entity in query.fetch():
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 186, in _items_iter
    for page in self._page_iter(increment=False):
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 217, in _page_iter
    page = self._next_page()
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/cloud/datastore/query.py", line 498, in _next_page
    query=query_pb,
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py", line 134, in run_query
    return super(GAPICDatastoreAPI, self).run_query(*args, **kwargs)
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py", line 82, in _catch_remap_gax_error
    six.reraise(error_class, new_exc, sys.exc_info()[2])
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py", line 74, in _catch_remap_gax_error
    yield
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/cloud/datastore/_gax.py", line 134, in run_query
    return super(GAPICDatastoreAPI, self).run_query(*args, **kwargs)
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/cloud/gapic/datastore/v1/datastore_client.py", line 258, in run_query
    return self._run_query(request, options)
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/gax/api_callable.py", line 452, in inner
    return api_caller(api_call, this_settings, request)
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/gax/api_callable.py", line 438, in base_caller
    return api_call(*args)
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/gax/api_callable.py", line 376, in inner
    return a_func(*args, **kwargs)
  File "/home/user/src/consult/test/venv/local/lib/python2.7/site-packages/google/gax/retry.py", line 127, in inner
    ' classified as transient', exception)
google.api_core.exceptions.Unauthorized: 401 Deadline Exceeded

The error goes away if:

the query is moved inside of the main() function or
the code in test.py is merged into the bottom of main.py

Now, perhaps it is sloppy to run a query at module scope, but I think this should at least be documented here. In my case, the query was buried deep in functions, but the initial call was made at module scope.
OS type and version
Ubuntu 17.04
Python version and virtual environment information python --version
Python 2.7.13
google-cloud-python version pip show google-cloud, pip show google-<service> or pip freeze
google-cloud-datastore == 1.4.0

I'm trying to reproduce right now.

@dhermes Is it worth the effort?  The notion of doing a google.cloud API call at import time is borderline insane, and the "workarounds" just remove the insanity.

@expz I just tried this with a kind that had no entities and it did not time out, it just exited after printing nothing.
If I add 3 entities for that kind, then it did the following:
$ .../bin/python test.py
k123
k456
k789

The DEADLINE EXCEEDED is happening because the query is failing. It may be failing because:

There are too many results for the kind (this shouldn't happen though)
There is no connection to the web
The error is actually bad credentials (since a 401), but a "Deadline exceeded"

I'd recommend you debug the query independent of the import, and then go back to re-factoring the import-time side effect.
I am going to close this out since there is no actual issue with the library (as far as I can tell). I'm happy to continue discussing and potentially re-open if need be. Thanks for taking the time to file the issue either way @expz!

Thanks for trying out such an unusual issue. Your answer makes complete sense, but it does not match my experience on my machine. If I were you, I would have trouble believing it. I have trouble believing it, but I have reproduced it many times now in multiple virtual environments, and the success/failure is perfectly correlated with moving the query (unchanged) out of module scope. Even if I have not botched my analysis, I do not think there is a need to re-open, since I agree with @tseaver. It is enough to have it google-able.

@expz Can you run in Python 3.6 so we get a higher quality traceback (i.e. it will print the original exceptions that were caught and raised as different names)?

OK, I was able to reproduce in Python 2.7!

I just tried Python 3.5.3, and the error does not happen.

@dhermes feel free to reopen if you still have a notion of what needs to be fixed in google-cloud-datastore.

@tseaver

The notion of doing a google.cloud API call at import time is borderline insane

I couldn't find any trace of this inside google documentation, but maybe I didn't search well enough. Or is it something you worked out from your experience? If it's not the case can you please provide a link relating to your statement? Thanks in advance :D

@Armyke Import-time side effects are widely considered bad practice in Python, e.g.:

https://chrismorgan.info/blog/say-no-to-import-side-effects-in-python.html
http://pydev.blogspot.com/2016/11/python-import-world-anti-pattern.html


Does not support the Apple M1 arm64 platform

Describe the bug
I followed the instructions for uploading from linux, and it seems the linux (and alpine) binaries are referencing a dependency that's missing in most common linux images. I understand that this could be a problem with my images, but I imagine you want to either fix the binary or provide instructions given this fails for Debian, Ubuntu, and Alpine.
To Reproduce
Boot a debian container running bash:
docker run -it debian bash

Then, inside of that shell:
apt-get update && apt-get install -y curl
cd tmp
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -h

You will get the error:
/lib64/ld-linux-x86-64.so.2: No such file or directory

Expected behavior
I expect to run the codecov cli and see the help text
Screenshots
n/a
Additional context
I tried this on latest debian and stretch as well as Ubuntu and Alpine.

Thanks for reporting , @zenyui !
Can you provide the exact docker images and tags you tested with so we can reproduce ? The linux and alpine binaries are not interchangeable .

ping @zenyui

elaborating on my issue, here are steps to reproduce on both debian:latest and alpine:latest following your instructions.
reproduce on debian:latest
# start container
docker run -it debian bash
# inside of that container shell**
# install curl
apt-get update
apt-get install -y curl
# try to install codecov uploader
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
# run codecov
./codecov -t ${CODECOV_TOKEN}

This outputs:
/lib64/ld-linux-x86-64.so.2: No such file or directory

reproduce on alpine:latest
# boot shell
docker run -it alpine:latest sh
# then, inside of that container's shell
# install curl
apk add curl
# install codecov
curl -Os https://uploader.codecov.io/latest/alpine/codecov
chmod +x codecov
# run
./codecov -t ${CODECOV_TOKEN}

this outputs:
/lib/ld-musl-x86_64.so.1: No such file or directory

Ugg. Wonder when that broke.
➜  gh curl -Os https://uploader.codecov.io/latest/linux/codecov
➜  gh file codecov
codecov: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=2e882d60273a4031f72a88815a36cb574dc1090b, for GNU/Linux 2.6.32, stripped
➜  gh

That's supposed to be static, hence the error. 👀

@zenyui I have been unable to reproduce this error, following your exact instructions.  If you pin to a tag, do you get the same error? latest does not pin to a version, and I wonder if an older version is somehow cached over that tag.

@drazisil-codecov I'll test with a specific tag. Perhaps worth noting - I'm on an M1 MacBook

I'm on an M1 MacBook

Highly worth noting. I don't think we have any way to build for M1. Do any CI providers support that arch yet? 👀

CircleCI: No - https://support.circleci.com/hc/en-us/articles/360056461452-Apple-M1-Apple-Silion-Support-on-CircleCI

GitHub Actions: No - https://github.com/actions/virtual-environments/issues/2187

@drazisil-codecov to be clear - I'm running the commands inside docker containers on an M1 host, not directly on the host.
FWIW, I encountered this issue trying to configure your new uploader to run from inside a docker container, as that's how I prefer to configure my CI (so I can test on my machine ahead of submitting to the CI). I'm unblocked for now as I am running your uploader directly on the github actions host, but it would be great to figure out what's going on here.

https://github.com/codecov/uploader/issues/523
@zenyui Sure. I wasn't saying you were doing anything wrong. We don't support the arm64 arch is the issue. I have a plan for this, but I'm about to go on vacation for a bit, so likely expect some silence from me.
Thank you for the report and additional information.

@drazisil-codecov np, I've also encountered a few funny issues with the M1 at our company (we're a golang shop, and sometimes dependencies reach out to system c libraries, etc).
I'm curious - what is your uploader doing that is platform specific? isn't it written in js?

I'm curious - what is your uploader doing that is platform specific? isn't it written in js?

We are hard-coding node on, so it's a standalone static binary that should run anywhere, without the need to install node or other dependencies.

A year later and hitting this issue while trying to get going with Codecov. Our self-hosted GH Actions runners run on arm64 and x64 and produce a multi-arch manifest on Docker Hub. I'd like to be able to run Codecov to report on coverage in both images.
Is arm support for the uploader still on the roadmap?

Is arm64 support for the uploader still on the roadmap?

There is also #523 and no news for months. Although Apple M1 has been launched 2.5 years ago.

Not yet supported on CircleCI, but coming soon https://circleci.canny.io/cloud-feature-requests/p/support-new-m1-arm-based-macs

We released an aarch64 version of the uploader which should solve this case here. Let me know if this isn't the case.

Any updates here?
Once CircleCI drops support for Intel we'll be obligated to drop Codecov 🤷🏻

Going to handle this issue here https://github.com/codecov/feedback/issues/141
cc: @zenyui @mrmachine @AlexWayfer @Kylmakalle @NachoSoto

We have now moved our entire prod infra and github actions runners to Graviton 3, and this is a blocker for us using Codecov.


nested partials

Hello,
I'd like to use Nustache in combination with Razor. Razor would be responsible for most of my views, but I would use Nustache for specific templates that I wanted to render on both the client and server.
When I wire Nustache in as a secondary view engine:
    protected void Application_Start()
    {
        AreaRegistration.RegisterAllAreas();

        RegisterGlobalFilters(GlobalFilters.Filters);
        RegisterRoutes(RouteTable.Routes);
        ViewEngines.Engines.Add(new NustacheViewEngine());
    }

and then attempt to render any partials (either Mustache or Razor), it throws the following:
    The property 'PartialViewLocationFormats' cannot be null or empty.

Hi Christopher,
Sorry for taking so long to look into this.
I just tried to reproduce this and file. I checked in a new action/view called RazorWithPartialNustache in the Mvc3.Examples project and it seemed to work.
I did also do some updating, including changing the references to the MVC 3 version of System.Web.Mvc. Perhaps that fixed it?
If you used NuGet, I just pushed both Nustache and a new Nustache.Mvc3 package. Could you update to those and tell me if you still have this issue?
Thanks.

Pretty sure this works now so closing unless you find other issues.
By the way, I also just pushed support for dots in variable references. To access your model properties, you do {{Model.Foo}} now like with Razor.

Thanks! I'll test later this week.


Readability - retaliation explanation needs larger yellow box

I expanded the explanation of retaliation because it is helpful to have a clearer explanation if lengthier explantion in UpToCode rather than having to go to MassLegalHelp, but also added separate links to retalion by raising rent v. retalation by evicting a tenant - it is difficult to find this information on MLH and tenants who are experiencing one form of retaliation may not be able to find the info on MLH for the other from just one web page.
Because this info on UpToCode is lengthier it needs more room and I could not figure out how to expand the yellow box to encompass more text despite the fact that one of the first screens in the interview does have a larger yellow box.
I also gave that screen an id: "How UpToCode works"

The yellow retaliation box has been expanded to avoid the need for users to scroll.


Select dependent on another select

Hello everyone, how to implement the filtering functionality?
There is a solutions table:
-id
-title
....
There is a categories table
-id
-name
There is a subcategories table
-id
-name
-category_id
There is a table solution_subcategory
-solution_id
-subcategory_id
On the edit solution page I need 2 dropdown:
Which when selecting the first will load the second, or how to implement one?
Select Subcategory must be multiselect

   [
                'name' => 'subcategory_id',
                'label' => 'Subcategory',
                'type' => 'select',
                'entity' => 'subcategory',
                'attribute' => 'name',
                'pivot' => true,
                'tab' => 'Filters'
            ],

When you enter this code, an exception is thrown "There is no column with name 'subcategory_id' on table 'solutions'"
How to make 2 dropdowns, which the second will depend on the first and save in the solution_subcategory table

I "borrowed" this example from the Permission Manager:
            // two interconnected entities

            'label'             => trans('backpack::permissionmanager.user_role_permission'),

            'field_unique_name' => 'user_role_permission',

            'type'              => 'checklist_dependency',

            'name'              => 'roles_and_permissions', // the methods that defines the relationship in your Model

            'subfields'         => [

                    'primary' => [

                        'label'            => trans('backpack::permissionmanager.roles'),

                        'name'             => 'roles', // the method that defines the relationship in your Model

                        'entity'           => 'roles', // the method that defines the relationship in your Model

                        'entity_secondary' => 'permissions', // the method that defines the relationship in your Model

                        'attribute'        => 'name', // foreign key attribute that is shown to user

                        'model'            => "Backpack\PermissionManager\app\Models\Role", // foreign key model

                        'pivot'            => true, // on create&update, do you need to add/delete pivot table entries?]

                        'number_columns'   => 3, //can be 1,2,3,4,6

                    ],

                    'secondary' => [

                        'label'          => ucfirst(trans('backpack::permissionmanager.permission_singular')),

                        'name'           => 'permissions', // the method that defines the relationship in your Model

                        'entity'         => 'permissions', // the method that defines the relationship in your Model

                        'entity_primary' => 'roles', // the method that defines the relationship in your Model

                        'attribute'      => 'name', // foreign key attribute that is shown to user

                        'model'          => "Backpack\PermissionManager\app\Models\Permission", // foreign key model

                        'pivot'          => true, // on create&update, do you need to add/delete pivot table entries?]

                        'number_columns' => 3, //can be 1,2,3,4,6

                    ],

                ],

https://github.com/Laravel-Backpack/PermissionManager/blob/master/src/app/Http/Controllers/UserCrudController.php#L74
The attached is a copy of what it might look like with some roles/permission populated [obviously everyone else's may have differing outputs depending on the values in the tables].
Is this what you were looking for? (e.g. if I click fuel-seller then a bunch of related permissions get set and the tick boxes do too).

@lloy0076 Did not help, the error remained the same,
            [
                'label'             => 'Filter',
                'field_unique_name' => 'solution_subcategory',
                'type'              => 'select',
                'name'              => 'subcategories', // the methods that defines the relationship in your Model
                'subfields'         => [
                    'primary' => [
                        'label'            => 'Category',
                        'name'             => 'name', // the method that defines the relationship in your Model
                        'entity'           => 'category', // the method that defines the relationship in your Mode
                        'entity_secondary' => 'children', // the method that defines the relationship in your Model
                        'attribute'        => 'name', // foreign key attribute that is shown to user
                        'model'            => "App\Models\Category", // foreign key model
                        'pivot'            => true, // on create&update, do you need to add/delete pivot table entries?]
                    ],
                    'secondary' => [
                        'label'          => 'Subcategory',
                        'name'           => 'subcategory', // the method that defines the relationship in your Model
                        'entity'         => 'subcategory', // the method that defines the relationship in your Model
                        'entity_primary' => 'parent', // the method that defines the relationship in your Model
                        'attribute'      => 'name', // foreign key attribute that is shown to user
                        'model'          => "App\Models\Subcategory", // foreign key model
                        'pivot'          => true, // on create&update, do you need to add/delete pivot table entries?]
                    ],
                ],

            ],

Category model

Subcategory model

@lloy0076 Changed the type to checklist_dependency, now the error does not drop out, but the page is not loaded completely, the styles are lost, that is, the white background and the content without the connected styles

@tabacitu  can you tell me what the problem is, and what's my mistake?

Looking a bit more closely there's two separate issues here:

The checklist dependency isn't working as expected; and
Even if it were, it would probably not be saving/doing what you'd expect.

The first part is relatively easy. There are a few reports that the select styling is somehow broken by something but I haven't verified if this is the case for myself.
However, even if this did work it's not going to save as you'd expect. In fact, you'd have to intercept what it provided to the CRUD controllers and save it properly into the solution_subcategory table. There's no "select IDs somehow from these things and then save it into an entirely different table" edit field...
It may be easier to work with a custom field type but this would mean you'd have to set the select for part (1) up yourself.
Failing that, IF one got the checklist_dependency working, one would have to intercept the method(s) that save that dependency to correctly store the daa into the solution_subcategory table.

if you mean chained selects, it can be done using routes, when you click on a select dropdown, you get the value through Jquery, then you pass the value to the route .
Route::get('estaciones/get_comunas', function()
{
  $id = Input::get('id');
  return App\Region::with('comunas')->where('region.id',$id)->get();
});

@lloy0076 The problem is this instruction vendor\backpack\crud\src\resources\views\fields\checklist_dependency.blade.php
$primary_dependency['model']::with($primary_dependency['entity_secondary'])->get()

This code does not work further than this code
It is because of this breaks the style and further fields are not shown

@lloy0076 ontent.com/15788938/26872147-bed314c6-4b9f-11e7-9a15-d2786fdd1fe7.JPG)
pdated - I have the latest laravel and the crud

@lloy0076 Thank you Very strange, what could be the problem? At me even the permission manager does not work

@lloy0076 Here is my composer.json, try, I do not understand what can interfere
composer.zip

Hi @eddilou - I'm sure you have this figured out by now, so I'll close the issue. This was more of a StackOverflow question anyway, IMHO.
Cheers!

Sorry for popping in here now, but how was this solved, the chained selects?
since, if it has to be done like @amipax proposed, there would have to be a listener on the first dropdown, for picking up the value, passing it to the controller, and then populating the second dropdown, and I'm not sure how would that work with the whole CRUD system (I don't know actually, I'm still getting used to Backpack).

Hello everyone, I had a problem due to the fact that some vendor demanded php7 and because of this the crud was broken

@marko89kv  it works like a charm, note you have to make the select fields nullable, so the first select value is - .

@amipax where would you put javascript for a listener and the ajax call for the first field, and where for the second field? The second field, the one that receives that should probably be of "select2_from_ajax" type. I'm just missing the first part.

does anyone solved this?
how to use dependent selects ?

@tva3777 there's a PR with a complete solution here https://github.com/Laravel-Backpack/CRUD/pull/1484 - might get merged soon. Until then you can use the code there in your own project, as a custom field type.

Hi @eddilou
I have created a package. It may help you.
This package provides a 'dependantFieldOptions' field type for the Backpack for the Laravel administration panel. The 'dependantFieldOptions' field allows admins to load options from provided source through provided method depending on change in the parent/specific field.
The GitHub link: Here


Submissions: Fetch files with SHA1/MD5

Is your feature request related to a problem? Please describe.
Currenly, AssemblyLine allows searching by SHA256 on VirusTotal by specifying a Sha256Source. Some EDRs and other sources of data only provide SHA1/MD5 hashes. It would be great to have the option to submit a file by SHA1/MD5 hash as an alternative.
Describe the solution you'd like
Expand upon the existing submission config to add SHA1/MD5 hash collection functionality.
Describe alternatives you've considered
It's quite possible to obtain SHA256 hashes by looking up the SHA1/MD5 in other data sources (e.g. VirusTotal), but this becomes a quite costly for VirusTotal API quotas. I've been using VirusTotal's API to get and submit download URLs, but with the recent URLDownloader changes, it adds an extra file to the submission results which becomes quite a pain (two submissions of the same file have different root file hashes, and seeing the VT download URLs in alerts and whatnot is quite annoying)

This should be patched in the <IP_ADDRESS> release of Assemblyline.


Changed dev to development

Sorry, Am still learning About git/github.
Thanks for understanding.

@emmzzyhost
I understand, pretty good for your first time.
If you are interested in doing small things like this. I will suggest do it across all documentation, find typos, grammar mistakes and such.
Go through all docs file and find typo and other small mistakes.
Just add small things like this , so I can approve your PR.
I will close this PR, Looking forward to your future contributions.

Alright Boss. Thanks.


Exit status 70 error.

[INSERT OUTPUT HERE]
$ /usr/bin/xcrun /Users/Ankur/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.60.1/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_config20171006-11497-1y0g1ip.plist' -archivePath /Users/Ankur/Library/Developer/Xcode/Archives/2017-10-06/PhoebeMobile\ 2017-10-06\ 19.23.09.xcarchive -exportPath '/var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_output20171006-11497-lh37y7'

xcodebuild -exportArchive -exportOptionsPlist /var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_config20171006-11497-1y0g1ip.plist -archivePath '/Users/Ankur/Library/Developer/Xcode/Archives/2017-10-06/PhoebeMobile 2017-10-06 19.23.09.xcarchive' -exportPath /var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_output20171006-11497-lh37y7
2017-10-06 19:26:11.734 xcodebuild[14508:80191] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/PhoebeMobile_2017-10-06_19-26-11.733.xcdistributionlogs'.
2017-10-06 19:26:11.888 xcodebuild[14508:80191] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ff8e6ee5220>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(
"Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'org.lunascape.phoebetest' were found" UserInfo={NSLocalizedDescription=No profiles for 'org.lunascape.phoebetest' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'org.lunascape.phoebetest'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}"
)}
error: exportArchive: No profiles for 'org.lunascape.phoebetest' were found

Error Domain=IDEProfileLocatorErrorDomain Code=1 "No profiles for 'org.lunascape.phoebetest' were found" UserInfo={NSLocalizedDescription=No profiles for 'org.lunascape.phoebetest' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'org.lunascape.phoebetest'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
** EXPORT FAILED **
[19:26:11]: Exit status: 70
+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.60.1                  |
| export_method | app-store               |
| sdk           | iPhoneOS11.0.sdk        |
+---------------+-------------------------+
[19:26:11]: ▸     cd /Users/Ankur/Desktop/phoebe-mobile/ios
[19:26:11]: ▸     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/Ankur/.fastlane/bin/bundle/bin:/Users/Ankur/.fastlane/bin:/Users/Ankur/.fastlane/bin:/Users/Ankur/.fastlane/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
[19:26:11]: ▸     /usr/bin/touch -c /Users/Ankur/Library/Developer/Xcode/DerivedData/PhoebeMobile-fqukowgxvmqfrwawqqccyibdxejf/Build/Intermediates.noindex/ArchiveIntermediates/PhoebeMobile/BuildProductsPath/Release-iphoneos/PhoebeMobile.app.dSYM
[19:26:11]: ▸ ** ARCHIVE SUCCEEDED **
[19:26:11]:
[19:26:11]: ⬆  Check out the few lines of raw xcodebuild output above for potential hints on how to solve this error
[19:26:11]: 📋  For the complete and more detailed error log, check the full log at:
[19:26:11]: 📋  /Users/Ankur/Library/Logs/gym/PhoebeMobile-PhoebeMobile.log
[19:26:11]:
[19:26:11]: Looks like fastlane ran into a build/archive error with your project
[19:26:11]: It's hard to tell what's causing the error, so we wrote some guides on how
[19:26:11]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[19:26:11]: Before submitting an issue on GitHub, please follow the guide above and make
[19:26:11]: sure your project is set up correctly.
[19:26:11]: fastlane uses xcodebuild commands to generate your binary, you can see the
[19:26:11]: the full commands printed out in yellow in the above log.
[19:26:11]: Make sure to inspect the output above, as usually you'll find more error information there
[19:26:11]:
[19:26:11]: Looks like no provisioning profile mapping was provided
[19:26:11]: Please check the complete output, in particular the very top
[19:26:11]: and see if you can find more information. You can also run fastlane
[19:26:11]: with the --verbose flag.
[19:26:11]: Alternatively you can provide the provisioning profile mapping manually
[19:26:11]: https://docs.fastlane.tools/codesigning/xcode-project/#xcode-9-and-up
+------------------+------+
|      Lane Context       |
+------------------+------+
| DEFAULT_PLATFORM | ios  |
| PLATFORM_NAME    |      |
| LANE_NAME        | beta |
+------------------+------+
[19:26:11]: Error packaging up the application
+------+---------------------+-------------+
|             fastlane summary             |
+------+---------------------+-------------+
| Step | Action              | Time (in s) |
+------+---------------------+-------------+
| 1    | Verifying required  | 0           |
|      | fastlane version    |             |
| 2    | default_platform    | 0           |
| 💥   | gym                 | 194         |
+------+---------------------+-------------+
[19:26:11]: fastlane finished with errors
[!] Error packaging up the application
[INSERT OUTPUT HERE]

I have the same problem since, I guess, 2.60.0.

Have you tried to do what the folks over at https://github.com/fastlane/fastlane/issues/9589 do?

I did it now, and it works, thank you. After updating to the version containing #10345, that argument can be removed?

After adding (export_xcargs: "-allowProvisioningUpdates") to gym, I am still unable to run it. This is my errors
[10:51:00]: Generated plist file with the following values:
[10:51:00]: ▸ -----------------------------------------
[10:51:00]: ▸ {
[10:51:00]: ▸   "method": "app-store"
[10:51:00]: ▸ }
[10:51:00]: ▸ -----------------------------------------
[10:51:00]: $ /usr/bin/xcrun /Library/Ruby/Gems/2.0.0/gems/fastlane-2.61.0/gym/lib/assets/wrap_xcodebuild/xcbuild-safe.sh -exportArchive -exportOptionsPlist '/var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_config20171010-30492-1q21qc9.plist' -archivePath /Users/Ankur/Library/Developer/Xcode/Archives/2017-10-10/App\ 2017-10-10\ 10.50.52.xcarchive -exportPath '/var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_output20171010-30492-1yah8x4' -allowProvisioningUpdates

xcodebuild -exportArchive -exportOptionsPlist /var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_config20171010-30492-1q21qc9.plist -archivePath '/Users/Ankur/Library/Developer/Xcode/Archives/2017-10-10/App 2017-10-10 10.50.52.xcarchive' -exportPath /var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/gym_output20171010-30492-1yah8x4 -allowProvisioningUpdates
2017-10-10 10:51:00.896 xcodebuild[30712:2455975] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/gc/0p_tgxkx6wzg4j98zxc7dxbw0000gn/T/Pods-PhoebeMobile_2017-10-10_10-51-00.896.xcdistributionlogs'.
error: exportArchive: exportOptionsPlist error for key 'method': expected one of {}, but found app-store

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'method': expected one of {}, but found app-store" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found app-store}
** EXPORT FAILED **
[10:51:00]: Exit status: 70
+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.61.0                  |
| export_method | app-store               |
| sdk           | iPhoneOS11.0.sdk        |
+---------------+-------------------------+
[10:51:00]: ▸     cd /Users/Ankur/Desktop/phoebe-mobile/ios/Pods
[10:51:00]: ▸     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
[10:51:00]: ▸     /bin/chmod -RH u+w,go-w,a+rX /Users/Ankur/Library/Developer/Xcode/DerivedData/PhoebeMobile-fqukowgxvmqfrwawqqccyibdxejf/Build/Intermediates.noindex/ArchiveIntermediates/Pods-PhoebeMobile/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libPods-PhoebeMobile.a
[10:51:00]: ▸ ** ARCHIVE SUCCEEDED **
[10:51:00]:
[10:51:00]: ⬆  Check out the few lines of raw xcodebuild output above for potential hints on how to solve this error
[10:51:00]: 📋  For the complete and more detailed error log, check the full log at:
[10:51:00]: 📋  /Users/Ankur/Library/Logs/gym/App-Pods-PhoebeMobile.log
[10:51:00]:
[10:51:00]: Looks like fastlane ran into a build/archive error with your project
[10:51:00]: It's hard to tell what's causing the error, so we wrote some guides on how
[10:51:00]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[10:51:00]: Before submitting an issue on GitHub, please follow the guide above and make
[10:51:00]: sure your project is set up correctly.
[10:51:00]: fastlane uses xcodebuild commands to generate your binary, you can see the
[10:51:00]: the full commands printed out in yellow in the above log.
[10:51:00]: Make sure to inspect the output above, as usually you'll find more error information there
[10:51:00]:
[10:51:00]: Looks like no provisioning profile mapping was provided
[10:51:00]: Please check the complete output, in particular the very top
[10:51:00]: and see if you can find more information. You can also run fastlane
[10:51:00]: with the --verbose flag.
[10:51:00]: Alternatively you can provide the provisioning profile mapping manually
[10:51:00]: https://docs.fastlane.tools/codesigning/xcode-project/#xcode-9-and-up
+------------------+------+
|      Lane Context       |
+------------------+------+
| DEFAULT_PLATFORM | ios  |
| PLATFORM_NAME    |      |
| LANE_NAME        | beta |
+------------------+------+
[10:51:00]: Error packaging up the application
+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 💥   | gym                                 | 19          |
+------+-------------------------------------+-------------+
[10:51:00]: fastlane finished with errors
[!] Error packaging up the application

The error is gone. I am closing this issue.


Remove "Mac" from "Mac OS X"

The "Mac" prefix was dropped from "Mac OS X" in 2012; it's just called "OS X" now. This PR updates the name accordingly.

:+1:

Omg you're obsessed. :+1:

:ok_hand:


BUGFIX: Fix version check for MariaDB

sorry for not noticing sooner, but just had a use-case with a MariaDB database and found out that I had it wrong the first time...


update junod version - testnet

pending testnet relaunch on 2022-01-30

closing for now.. will probably relaunch with a new chain_id


Add alias search fallback to character()

fix #11
Because I couldn't easily control the vendored generator, I used external phf crate for the last commit.
If you don't like it, it can be replaced by other stuff using first 3 commits which actually populating alias data.
cc @DimitrisJim

Because I couldn't easily control the vendored generator

It's not vendored; feel free to change it

When I ran cargo run --release -- --phf, it generated different generated_phf to current one.
I am not confident to add a new database not breaking it.

Ah yeah, it's not deterministic

Why is it an issue, though? You could make it generate to src/generated_alias.rs and not commit the change to src/generated.rs.
Though it probably makes sense to replace the built-in perfect-hash with the phf crate altogether in a different PR. (We just need to check it doesn't come with size of perf drawbacks).

I didn't know it is not deterministic. I found db bugs here, so I will rewrite db part soon.

rebase on master but still using phf crate

@youknowone Looks like we're all done here. Am I forgetting anything?

The feature is done.
You may want to rewrite this patch using the internal phf implementation instead of phf crate


Series Season

Add feature to request for a specific season for TV Series, like the big bang theory season 10 or season 5 etc

The ability to select First, Latest, or All season(s) was added in v2.0. Use the setting sonarr_season_monitor_prompt=True to enable.
From v2.0 release notes:
Add option to prompt user to monitor first, latest, or all season(s) when adding a series to Sonarr (add sonarr_season_monitor_prompt=True to settings.py; default is False, same as prior functionality, monitor all seasons) (https://github.com/toddrob99/searcharr/issues/23)


Add a Gitter chat badge to README.md

passuf/WunderHabit now has a Chat Room on Gitter
@passuf has just created a chat room. You can visit it here: https://gitter.im/passuf/WunderHabit.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

added it manually


A3C-Doom:  worker_0 plot is lost

Dear
When using:
tensorboard --logdir=worker_0:'./train_0',worker_1:'./train_1',worker_2:'./train_2',worker_3:'./train_3'
worker_0 is not plotted

Hi Ibrahim,
Did you encounter an error in the worker_0 process? Otherwise it should certainly be plotting.

I have been having an issue that I think might be related/explain what you are seeing. I noticed when running the a3c doom code on 8-16 cpus, that sometimes one or two threads would not launch or at least were failing silently. The name of the thread, when printed from worker.work or other places, could be seen as being repeated or mixed up. So I would have two "1" threads or some other repeated index in the worker name.
When extending the code for personal use I ran into this repeatedly as my environment was much lighter and faster to start-up a worker. To fix the issue I added a simple sleep(0.5) (see code below). Now, when I print, from the worker.work, the name of the thread I no longer see repeated items and there is no longer a mix up of print locations and other bugs caused by the issue.
It appears workers were spooling up too quickly in my case and repeated or mixing up their context? I'm used to Scoop or Multiprocessing modules so I am unsure if this is a common issue with global scope and Threading?
for worker in workers:
        worker_work = lambda: worker.work(max_episode_length,gamma,sess,coord,saver)
        t = threading.Thread(target=(worker_work))
        t.start()
        worker_threads.append(t)
        sleep(0.5)
    coord.join(worker_threads)

Thanks for the suggesting DMTSource! I have incorporated the sleep line into the notebook.

I have added the sleep as follows:
    worker_threads = []
    for worker in workers:
        worker_work = lambda: worker.work(max_episode_length,gamma,sess,coord,saver)
        t = threading.Thread(target=(worker_work))
        t.start()
        worker_threads.append(t)
        sleep(0.5) # here is it
    coord.join(worker_threads)

worker_0 is in orange color

However, worker_0 seems to stop very early
Moreover, model and frames are not saved (the code for them is based on worker_0)

Regards

If plots are showing and all workers are alive and well with their respective names...until what appears to be step ~10(saving time).
Looks like there is trouble with the model saving as the "master" worker is making it to that point and then shutting down. If the crash is truly silent you might want to add some print statements to study how far the code is getting once it reaches the code block relevant to saving the model.
My ignorant guess is something like ffmpeg is causing the trouble as its a very external tool to this code, and saving checkpoint files should be trivial for Tensorflow despite the system. You could try commenting out the gif generation code if that is the case. I had trouble getting a working ffmpeg installation on my system the first time I ran the code as some versions threw errors(Ubuntu 14.04). But I was able to get it working once the issue was identified.

Possible cause:
After removing model and gif saving code, things worked fine!
Removed code:
                    if self.name == 'worker_1' and episode_count % 25 == 0:
                        time_per_step = 0.05
                        images = np.array(episode_frames)
                        make_gif(images,'./frames/image'+str(episode_count)+'.gif',
                            duration=len(images)*time_per_step,true_image=True,salience=False)
                    if episode_count % 250 == 0 and self.name == 'worker_1':
                        saver.save(sess,self.model_path+'/model-'+str(episode_count)+'.cptk')
                        print ("Saved Model")

Figure: (all threads are there) I think I have some error in saving!

Any clue?
Regards

Thanks DMTSource
I can save the model but not the frames

Hi Ibrahim,
Are you sure that you have both moviepy and ffmpeg installed?

Hi Arthur
imageio
print imageio.version
2.1.2
ffmpeg -version
ffmpeg version N-80901-gfebc862 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
libavutil      55. 28.100 / 55. 28.100
libavcodec     57. 48.101 / 57. 48.101
libavformat    57. 41.100 / 57. 41.100
libavdevice    57.  0.102 / 57.  0.102
libavfilter     6. 47.100 /  6. 47.100
libavresample   3.  0.  0 /  3.  0.  0
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100

I believe you will need imageio 1.6, and not 2.1 in order for the gif generation to work. Unfortunately they changed the encoder in 2.1 and broke the gif code I used. If you have a fix that works with 2.1, I would be happy to incorporate it.


[production] Creator of DOI not the correct user

I created a DOI for a registration, but the EZID page lists the creator as another member of the project:

That's interesting too -- @sloria path for delivering account info to EZID? Are we grabbing the wrong contributor name somehow?

@bnosek The Creator of the DOI will be the full name of the creator of the project (not necessarily the user who clicked "Create DOI...").
Should the behavior be changed?

That is probably sensible behavior.  Perhaps in the future, we can give the
user an option for who is named (assuming that it must be a single
person).  Fine for now.
On Sun, Apr 12, 2015 at 5:05 PM, Steven Loria<EMAIL_ADDRESS>wrote:

@bnosek https://github.com/bnosek The Creator of the DOI will be the
full name of the creator of the project (not necessarily the user who
clicked "Create DOI...").
Should the behavior be changed?
—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/issues/2455#issuecomment-92148257
.

Does it have to be a single person? Given that they're creating a preview
citation, that doesn't seem right.
On Sun, Apr 12, 2015 at 4:21 PM, Brian Nosek<EMAIL_ADDRESS>wrote:

That is probably sensible behavior. Perhaps in the future, we can give the
user an option for who is named (assuming that it must be a single
person). Fine for now.
On Sun, Apr 12, 2015 at 5:05 PM, Steven Loria<EMAIL_ADDRESS>wrote:

@bnosek https://github.com/bnosek The Creator of the DOI will be the
full name of the creator of the project (not necessarily the user who
clicked "Create DOI...").
Should the behavior be changed?
—
Reply to this email directly or view it on GitHub
<
https://github.com/CenterForOpenScience/osf.io/issues/2455#issuecomment-92148257

.

—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/issues/2455#issuecomment-92150654
.

Wonder if EZID allows for multiple creators? May be a limitation on their end, but we can look into that.

That would certainly be ideal for our use case.  All authors on the project
are listed.
On Sun, Apr 12, 2015 at 5:50 PM, LarryB<EMAIL_ADDRESS>wrote:

Wonder if EZID allows for multiple creators? May be a limitation on their
end, but we can look into that.
—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/issues/2455#issuecomment-92154389
.

I will look over the API documentation to see if there is any mention on
number of creators.
On Sun, Apr 12, 2015 at 7:52 PM, Brian Nosek<EMAIL_ADDRESS>wrote:

That would certainly be ideal for our use case. All authors on the project
are listed.
On Sun, Apr 12, 2015 at 5:50 PM, LarryB<EMAIL_ADDRESS>wrote:

Wonder if EZID allows for multiple creators? May be a limitation on their
end, but we can look into that.
—
Reply to this email directly or view it on GitHub
<
https://github.com/CenterForOpenScience/osf.io/issues/2455#issuecomment-92154389

.

—
Reply to this email directly or view it on GitHub
https://github.com/CenterForOpenScience/osf.io/issues/2455#issuecomment-92154467
.

Yes, multiple names are allowed.  It looks like they should be separated with ;

This is fixed. All contributor names will show up under creators now.


Add Nong Song

Song Name
CIIEPMA RMX
Artist Name
CIIEPMA
Source
Youtube
Youtube Link
https://youtu.be/Jf1ERgePgBE?si=gzbUsFEJtmy-WSRK
Direct File Link
No response
Song ID
945695
Start Offset [ms]
No response
Extra
No response

reject
replacing slaughterhouse's song with something completely unrelated


chore: enable using the plugin without .default

Enable using this plugin without property access like .default.
// const HTMLInlineCSSWebpackPlugin = require("html-inline-css-webpack-plugin").default;
const HTMLInlineCSSWebpackPlugin = require("html-inline-css-webpack-plugin");

Hi @dqn , It looks like a breaking change. Can it compatible with the old way ?

Hi @Runjuu. You're right, it's a breaking change.
If you can merge it, maybe this change should be merged into another branch, such as a develop branch, so that people who see the README of this repository are not confused.


Create new GitHub action for CodeQL

CodeQL adds code scanning for critical security issues. The results will be shown for project owners on
https://github.com/OpenRefine/OpenRefine/security.
Signed-off-by: Stefan Weil<EMAIL_ADDRESS>

CodeQL replaces the deprecated LGTM, see issue #2006.

Thanks for the contribution! It looks like the autobuild is using the command
mvn clean package -f "pom.xml" -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true

which fails when it can't find the tool genisoimage.
Replacing the autobuild with ./refine build may fix this, but I haven't tried it.

Replacing the autobuild with ./refine build may fix this, but I haven't tried it.

Let's try it. I pushed a commit with the suggested modification.

It seems to work now for the Java code, too. I get 80 security related items.

Note: The UI test failure is due to a flaky test which is failing across multiple branches/PRs.
The CodeQL CI failure due to the flagged issues is more problematic. It'd be a heavy lift to fix all the problems immediately, but super annoying to have to live with the CI going red when this is merged.

@stweil I've invited you to the organization in case you have any interest in fixing some of the reported issues.


NIFI-6019 Removes "trusted hostname" property

Changes included in this PR:

Removes "Trusted Hostname" property from InvokeHTTP processor
Adds HTTP header exclusion map and checks against same

Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit?

For code changes:

[x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[x] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

Ran tests using a flow on a prior version of NiFi connecting to https://google.com with the Trusted Hostname property set, then copying the flow to a version of NiFi with this PR applied. The expected bulletin was shown and the log message was present in the nifi-app.log file.

Ran contrib-check and all tests pass. +1, merging.


sokol_gfx.h: Partial buffer/image update

Currently, I'm not aware if there is a way to do partial updates with an image or buffer. What I'm looking for is something like the following:
void sg_update_buffer(sg_buffer buf, const void* data_ptr, int data_size, int start_index);

My use case is I have a large 2d texture like a texture atlas or tiled map which I only want to update a sub-region once per frame.
Is there already a way to do what I want with the current API?

I haven't come up with a good way to do partial image updates yet, currently the only solution is to maintain a complete copy of the image data in memory, accumulate partial updates into this with the CPU, and then do a complete sg_update_image().
This is basically what fontstash is doing to dynamically update the font atlas, it maintains a complete CPU-side copy of the font atlas, and sets a dirty flag to tell the backend API to update the font texture:
https://github.com/floooh/sokol/blob/57515a1c733f152e58d86ae14fd0a3a2bebd331a/util/sokol_fontstash.h#L1000-L1011
For buffers, there's an "append API", this allows to append new data to a buffer and interleave the data updates with draw calls using that new appended data. This is only useful for per-frame updated data though (it uses the MAP_WRITE_DISCARD strategy in D3D11).
Long term I've got some ideas how to clean up the data update functions (add a map/unmap API for transient per-frame data, and a copy/blit API for "persistent" uploads into buffers and images), but not today or tomorrow.


Move jax.nn.log_softmax to jax.scipy.special?

It's in SciPy now, so it seems like the logical place for it?

Yes, let's do this (both for softmax and log_softmax) though we should continue exposing them in jax.nn as well.
Would you like to prepare a PR?

(note the in-flight change to these functions in #20690; might be cleanest to wait until that is merged before moving any sources

Sure, I'm happy to do that.


Fix #15, WAL in archive mode when backup is off

WAL logs in archive mode will consume a lot more spaces and not useful
when backup is off. This fix add ability to switch WAL logs mode based
on the backup switch.

Thanks for the PR, @xcompass !


Update Groth16Verifier.sol: fix snarkjs public signals check bug

Fix snarkjs public signals check bug.
see https://github.com/iden3/snarkjs/pull/518

Can you provide more detail showing this is indeed a bug, and not a required check. If I understand correctly, the impact here of this extra check is extra gas usage. The impact of removing the check when it's required is critical soundness failure.

hi @nategraf, according to the risc0 stark_verify.circom file, there are only 5 output signals ( public witness ) passed to the Groth16 verifier, therefore only first 5 elements should be checked before ecPairing check. The line deleted is meant to check the non-existing 6th element of the array parameter, which obviously is to access to the uninitialized memory since the array itself only contains 5 elements as shown in the code.

Looks like this is almost certainly correct. Thanks @andrewcoder666 for bringing this! I'm going to do a bit more due diligence before merging this.


feat: add non-monotone RBSet.map; rename existing map to mapMonotone

The rename makes Lean more consistent with OCaml and Haskell, where the default Set.map is not monotone.

https://v2.ocaml.org/api/Set.S.html#VALmap
https://hackage.haskell.org/package/containers-0.6.7/docs/Data-Set.html#g:10

@digama0 pointed out that Finset also has separate map and image functions, with map requiring extra conditions (injectivity). I think that reasoning doesn't apply for RBSet as the non-monotone case is much more common, and RBSet.image would be a strange name.

Why would RBSet.image be a strange name? I think consistency in the API is valuable here.

I guess that while I've seen "image" a lot in maths, I haven't seen it used in a programming context. So it feels strange from that perspective.
Then again, I'm not sure where Lean stands on this point, so if we feel strongly about RBSet.image then I can revert the rename.

I reverted the rename.

awaiting-review

Coming from Haskell, I liked the original mapMonotone/map, but this may be bike shedding.  Otherwise, the function itself seems like it'd be a useful addition.

@semorrison What are your thoughts on naming consistency here?  Coming from a CS background mapMonotone/map seem more conventional to me.

Looking at it again, I agree map and mapMonotone are better, and the argument for consistency with Mathlib is quite weak.

... just when I started coming around to image. It seems like my opinion is phase-shifted from Scott's 😆
@joehendrix @semorrison I've reverted it back. Would you be happy to merge? I don't feel strongly either way, so feel free to chop off the final commit yourself if you change your mind again.

Thank you @joehendrix!