Interpolation not working in extra_vars

I cannot currently use interpolation to inject values from terraform into extra_vars.
The provisioner currently throws a false error when attempting.
  provisioner "ansible" {
    connection {
      type = "ssh"
      host = "${aws_instance.master.private_ip}"
      user = "ec2-user"
    }

    plays {
      playbook = "${var.ansible_path}/playbooks/greenplum/server.yaml"
      extra_vars {
        variable = "${aws_instance.master.private_ip}"
      }
    }

    hosts = ["${aws_instance.master.private_ip}"]
    local  = "no"
    verbose = "yes"
    use_sudo = "yes"
    skip_install = "no"
    skip_cleanup = "yes"
  }

Error
Warning: module.name.null_resource.ansible-master: nothing to play

Error: module.name.null_resource.ansible-master: file ${var.ansible_path}/playbooks/application/server.yaml does not exist

This also doesn't work for "${var.variable}"

Definitely something to look at. I’ll try over the weekend.

With a tf file like this:
provider "aws" {
  region  = "eu-central-1"
  profile = "rad-admin"
}

## -- security groups:

resource "aws_security_group" "ssh" {
  name        = "ssh_access"
  description = "SSH access"

  ingress {
    from_port   = 22
    to_port     = 22
    protocol    = "tcp"
    cidr_blocks = ["<IP_ADDRESS>/0"]
    self        = true
  }

  egress {
    from_port   = 0
    to_port     = 0
    protocol    = "-1"
    cidr_blocks = ["<IP_ADDRESS>/0"]
  }
}

## -- machine:

resource "aws_instance" "bastion" {
  ami           = "ami-04d38f2458b0bb8df"
  count         = "1"
  instance_type = "t2.medium"

  security_groups = ["${aws_security_group.ssh.name}"]

  connection {
    user = "centos"
  }

  root_block_device {
    delete_on_termination = true
    volume_size           = 8
    volume_type           = "gp2"
  }
}

resource "aws_instance" "test_box" {
  ami           = "ami-04d38f2458b0bb8df"
  count         = "1"
  instance_type = "m3.medium"

  connection {
    user         = "centos"
    bastion_host = "${aws_instance.bastion.public_ip}"
  }

  security_groups = ["${aws_security_group.ssh.name}"]

  provisioner "ansible" {
    plays {
      playbook = "${path.module}/ansible/install-nginx.yml"
      extra_vars {
        variable = "${aws_security_group.ssh.name}"
      }
    }

    become = "yes"
    local  = "yes"
  }

  root_block_device {
    delete_on_termination = true
    volume_size           = 8
    volume_type           = "gp2"
  }
}

Using commit https://github.com/radekg/terraform-provisioner-ansible/commit/a846a5bf4b63e1115bb73a375eb41e5af5ed8235, I get the following result:
aws_instance.test_box (ansible): running local command: ANSIBLE_FORCE_COLOR=true ansible-playbook /Users/rad/dev/my/terraform-ansible-test/ansible/install-nginx.yml --inventory-file='/var/folders/1v/dzstxkjx10q76ky0c5qxp9br0000gn/T/temporary-ansible-inventory511737685' --become --become-method='sudo' --become-user='root' --extra-vars='{"variable":"ssh_access"}' --forks=5 --user='centos' --ssh-extra-args='-p 22 -o UserKnownHostsFile=/var/folders/1v/dzstxkjx10q76ky0c5qxp9br0000gn/T/21cbaeba-0ff4-4907-aade-25131dadb614 -o ConnectTimeout=60 -o ConnectionAttempts=10 -o ProxyCommand="ssh -p 22 -W %h:%p<EMAIL_ADDRESS>-o ForwardAgent=yes'
aws_instance.test_box (ansible): Executing: ["/bin/sh" "-c" "ANSIBLE_FORCE_COLOR=true ansible-playbook /Users/rad/dev/my/terraform-ansible-test/ansible/install-nginx.yml --inventory-file='/var/folders/1v/dzstxkjx10q76ky0c5qxp9br0000gn/T/temporary-ansible-inventory511737685' --become --become-method='sudo' --become-user='root' --extra-vars='{\"variable\":\"ssh_access\"}' --forks=5 --user='centos' --ssh-extra-args='-p 22 -o UserKnownHostsFile=/var/folders/1v/dzstxkjx10q76ky0c5qxp9br0000gn/T/21cbaeba-0ff4-4907-aade-25131dadb614 -o ConnectTimeout=60 -o ConnectionAttempts=10 -o ProxyCommand=\"ssh -p 22 -W %h:%p<EMAIL_ADDRESS>-o ForwardAgent=yes'"]

This would indicate that the interpolation in extra_vars is working (with Terraform v0.11.8 as a dependency).
I'm going to close this issue, please report again, if it turns out that it actually does not work.


Issue with VirtualScroll and Images Popping In and Out

Implemented a simple VirtualScroll setup:
In my home.html:
<ion-navbar *navbar>
  <ion-title>Test 2</ion-title>
  <ion-buttons end>
    <ion-row>
      <ion-col width-50><button>Test</button></ion-col>
      <ion-col width-50><button menuToggle><ion-icon name="menu"></ion-icon></button></ion-col>
    </ion-row>
  </ion-buttons>
</ion-navbar>
<ion-content style="background:transparent; z-index:5;">
    <ion-list [virtualScroll]="items" [bufferRatio]="4" [approxItemHeight]="'500px'" [approxItemWidth]="'100%'" [approxHeaderHeight]="'0px'" [approxFooterHeight]="'0px'">
      <ion-item *virtualItem="#item">
        <ion-row>
          <ion-col width-50><ion-img [src]="item.avatarUrl" style="height:100px;"></ion-img></ion-col>
          <ion-col width-50><ion-img [src]="item.avatarUrl" style="height:100px;"></ion-img></ion-col>
        </ion-row>
      </ion-item>
    </ion-list>
</ion-content>

And in home.ts I create the list like this:
for(let i = 0; i < 2000; i++){
            let item = {
                title: 'Title',
                avatarUrl: 'url_for_random_img'+i,
                body: 'body'
            };

            this.items.push(item);
}

First Problem:
When the page loads, all the images are initially blank. They don't load until you start scrolling. Shouldn't the default behaviour be that it displays the first set?
 Only when scrolling stops does it instantly repalace this partially loaded image with the rest of the image. Since it happens so fast, I'm assuming that VirtualScroll knows it has an image there, but stops loading because you are still scrolling... Any way to change this? switching the entire photo in shouldn't be too taxing on the resources...
There is also some slight lag in getting new photos... perhaps previous calls are not being cancelled when they are no longer in view?
Here is a video of what Im talking about: https://www.dropbox.com/s/35vqxqmeh1wadwu/ionic2.0.0-beta25-VirtualScroll Issue 1.mp4?dl=0
Replicated this on both android and ionic serve through chrome...
Cordova CLI: 6.0.0
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:
Node Version: v4.2.6

ion-img actually seems completely broken in beta7.  No long loads any images outside of the initial view port for me.

This should be fixed in the next release. A large part of the problem is how ion-img didn't have overflow hidden on it.


Precompute symbolic Jacobian action

To apply the action of the Jacobian requires two steps:

Compute the symbolic action of the derivative of the all-at-once form.
Numerically assemble the action on a specific vector.

Currently we do both of these in JacobianMatrix.mult:
fd.assemble(fd.action(self.Jform, self.u), tensor=self.F)
fd.assemble(fd.action(self.Jform_prev, self.urecv), tensor=self.F_prev)

However, because the action is symbolic we can precompute this in JacobianMatrix.__init__ and reuse each time. This drastically reduces the time spent in JacobianMatrix.mult.
Demonstration for Galewsky with the following setup (exact numbers will vary in different cases):
mpiexec -np 8 python galewsky.py --show_args --ref_level 3 --nslices 4 --slice_length 1 --nwindows 8 --dt 1 -log_view :log.txt:ascii_flamegraph

When calculating the action at every Jacobian application the MatMult on the outer KSPSolve takes 13-15% of the total time, with the call to action taking just over a third of the time :

Zoom of MatMult:

When precalculating the action the MatMult takes ~1% of the total time:

Zoom of MatMult:

As well as removing the call to action, the time spent in assemble reduces too, mostly because of less time spent in firedrake.tsfc_interface.compile_form. I think when the action gets recalculated every time tsfc also recompiles the assemble kernel. When the action is precomputed, the majority (~60%) of the time spent in MatMult is spent in ParLoopExecute, as should be expected.

Oh blimey, I had no idea this symbolic action is so slow! Might be worth pointing out to the core Firedrakers (although it is a UFL thing).


[18.x]  WFLY-12144 Add support for configuring load-balancer with ranked routing

Jira
https://issues.jboss.org/browse/WFLY-12144
Proposal
https://github.com/wildfly/wildfly-proposals/pull/150
Requires
https://github.com/wildfly/wildfly/pull/12346 (subsystem version bump; included here)
preferably merged with
https://github.com/wildfly/wildfly/pull/11791 (server support for ranked)

Addressed the issues for now, the rest requires substantial refactor (custom resources, custom attribute definitions OptionAttributeDefinition, etc) which I can try to get in, but I don't see as holding this PR.

Prested by QE's @tommaso-borgato

@fl4via please have a look to be sure the added management API (i.e. new resources, attributes) is ok with you.

I put the missing-reqs label on this while the https://github.com/wildfly/wildfly-proposals/pull/150 document gets updated to cover the requirements for this bit.

Given #11791 has been merged now, rebased this branch with new integration tests, documentation and updated proposal.

retest this please

@jamezp Please let me know if anything is holding this up I can do.


[Awaiting Review] Translate tutorial-tic-tac-toe into Arabic

#464
Translating src/content/learn/tutorial-tic-tac-toe.md into Arabic

[x] From the 1st line to the 200th line.
[x] From the 201st line to the 400th line.
[x] From the 401st line to the 600th line.
[x] From the 601st line to the 800th line.
[x] From the 801st line to the 1000th line.
[x] From the 1001st line to the 1200th line.
[x] From the 1202st line to the 1400th line.
[x] From the 1401st line to the 1600th line.
[x] From the 1601st line to the 1800th line.
[x] From the 1801st line to the 2000th line.
[x] From the 2001st line to the 2200th line.
[x] From the 2201st line to the 2400th line.
[x] From the 2401st line to the 2600th line.
[x] From the 2601st line to the 2800th line.
[x] From the 2801st line to the 2960th line.

Done


Changed LastActive precision to 1 second.

The precision was a bit off. The miliseconds kept changing on each update-interval, even with no activity. See this update timeline in HA with update interval set to 10 seconds (this is just a 5 minute snippet of the timeline during the night):

New value on every update. The state value is the same, except for the miliseconds (since there was no activity during this period).
I changed the code to only change the reported value if it changed by more than 1 second. I believe this helps towards the intented use case for this sensor. Now, you should be able to make automations on value changed of this sensor.

That look great, thank you!


searching for transactions by address with a very large number of transactions is slow

this is graphql
query getAddressTransactions($address: String!) {
      transactions(
        limit: 100
        where: {
          _or:[
            { inputs: { address: { _eq: $address } } }
            { outputs: { address: { _eq: $address } } }
          ]
        }
        order_by:{
          includedAt:desc
        }
      ) {
        block {
          number
        }
        hash
    		fee
        includedAt
        inputs {
          address
          value
        }
        outputs {
          address
          value
        }
      }
}

{
 "address":"DdzFFzCqrhstmqBkaU98vdHu6PdqjqotmgudToWYEeRmQKDrn4cAgGv9EZKtu1DevLrMA1pdVazufUCK4zhFkUcQZ5Gm88mVHnrwmXvT"
}

It takes more than 10 seconds to return results,
Is there any other way to get the transactions of an address?

It's proportional to the number of transactions, and that address has 75483. We're aware of the issue, and will be looking to improve the performance in this area.

We're aware of the issue, and will be looking to improve the performance in this area.
Are there any updates to this? By the way, if I want to get latest 10 transactions of the account using  order_by: { block:{number:desc}}  along with the address summary it also increases the query time from 5 seconds up to 30 seconds even if the amount of transactions is too low (approx. 10-30)

Query example
query getAddressSummary($address: String!) {
   caTxNum: transactions_aggregate(
    where: {
      _or: [
        { inputs: { address: { _eq: $address } } }
        { outputs: { address: { _eq: $address } } }
      ]
    }
  ) {
    aggregate {
      sum{fee}
      count# caTxNum
    }
  }
  caTotalInput: transactions_aggregate(
    where: { inputs: { address: { _eq: $address } } }
  ) {
    aggregate {
      sum {
        totalOutput # caTotalInput
      }
    }
  }
  caTotalOutput: transactions_aggregate(
    where: { outputs: { address: { _eq: $address } } }
  ) {
    aggregate {
      sum {
        totalOutput # caTotalOutput
      }
    }
  }
  caBalance: utxos_aggregate(where: { address: { _eq: $address } }) {
    aggregate {
      sum {
        value # caBalance
      }
    }
  }
  caTxList: transactions(limit: 10
    order_by: { block:{number:desc}}
    where: {
      _or: [
        { inputs: { address: { _eq: $address } } }
        { outputs: { address: { _eq: $address } } }
      ]
    }
  ) {
    hash # ctbId
    includedAt # ctbTimeIssued
    fee # ctbFees
    inputs {
      # ctbInputs
      address # ctaAddress
      value # ctaAmount
      sourceTxHash # ctaTxHash
      sourceTxIndex # ctaTxIndex
    }
    outputs {
      address # ctaAddress
      value # ctaAmount
      txHash # ctaTxHash
      index
    }
    inputs_aggregate {
      aggregate {
        sum {
          value # ctbInputSum

        }
      }
    }
    outputs_aggregate {
      aggregate {
        sum {
          value # ctbOutputSum
        }
      }
    }
  }
}

That makes sense as it still has to get all the transactions first so it can order them. Even if the DB has an index applied.
A tip, make sure the device you're using has high IOPS. E.g, I tried using AWS and the IOPS was so slow that most queries timed out. The price to reserve enough IOPS for it to be usable wasn't worth it.

We're aware of the issue, and will be looking to improve the performance in this area.

Are there any updates to this? By the way, if I want to get latest 10 transactions of the account using  order_by: { block:{number:desc}}  along with the address summary it also increases the query time from 5 seconds up to 30 seconds even if the amount of transactions is too low (approx. 10-30)
Query example

query getAddressSummary($address: String!) {

   caTxNum: transactions_aggregate(

    where: {

      _or: [

        { inputs: { address: { _eq: $address } } }

        { outputs: { address: { _eq: $address } } }

      ]

    }

  ) {

    aggregate {

      sum{fee}

      count# caTxNum

    }

  }

  caTotalInput: transactions_aggregate(

    where: { inputs: { address: { _eq: $address } } }

  ) {

    aggregate {

      sum {

        totalOutput # caTotalInput

      }

    }

  }

  caTotalOutput: transactions_aggregate(

    where: { outputs: { address: { _eq: $address } } }

  ) {

    aggregate {

      sum {

        totalOutput # caTotalOutput

      }

    }

  }

  caBalance: utxos_aggregate(where: { address: { _eq: $address } }) {

    aggregate {

      sum {

        value # caBalance

      }

    }

  }

  caTxList: transactions(limit: 10

    order_by: { block:{number:desc}}

    where: {

      _or: [

        { inputs: { address: { _eq: $address } } }

        { outputs: { address: { _eq: $address } } }

      ]

    }

  ) {

    hash # ctbId

    includedAt # ctbTimeIssued

    fee # ctbFees

    inputs {

      # ctbInputs

      address # ctaAddress

      value # ctaAmount

      sourceTxHash # ctaTxHash

      sourceTxIndex # ctaTxIndex

    }

    outputs {

      address # ctaAddress

      value # ctaAmount

      txHash # ctaTxHash

      index

    }

    inputs_aggregate {

      aggregate {

        sum {

          value # ctbInputSum

        }

      }

    }

    outputs_aggregate {

      aggregate {

        sum {

          value # ctbOutputSum

        }

      }

    }

  }

}

Also, that query is very complex. I'd split it up into seperate statements and call them separately. It's easy enough for it to get choked if you ask it to do to much at once.

In my case there is no a lot of transactions on my addresses (around 1000), but querying for utxos_aggregate and getAddressTransactions takes a lot of time

hi, we nowadays get 10 sec queries even for addresses with 0 transactions
'{"query": "{ transactions ( limit: 25 where: { _or: [ { inputs: { address: { _eq: \"addr1q88teuwqrs04n6h68l5t0s54tgn2r0yr7hu5cslpzg75ejxmctnagnrgtk7kwwhn0x6xkrnk9sh2w6lqkf38etlqrzzqaf4qdf\" } } } { outputs: { address: { _eq: \"addr1q88teuwqrs04n6h68l5t0s54tgn2r0yr7hu5cslpzg75ejxmctnagnrgtk7kwwhn0x6xkrnk9sh2w6lqkf38etlqrzzqaf4qdf\" } } } ] }) { block { hash number } } }" }'


Break in a splitter

I can't stop a splitter before it end. For exemple I want te stop the splitter as soon as a result send me at true in order to get only one true iteration

An idea I had for this would be to generalize splitters into "map-reduce" operations.


Try using poetry

We can do it if you want to! I've updated everything to match poetry, I think it should work 😁 But I'm not attached to it either, I don't really care too much either way 👍

I will say though, I'm partial to make :no_mouth:

Yeah I think I'll close this PR and just write a make file for this repo 🙂


[DRAFT] refactor/generalize the touch gesture

Adding this issue after a conversation about improving the touch gesture with @edumeneses please elaborate/correct me
Right now it involves single touch values touchTop, touchMiddle, touchBottom, and touchAll (designed for the specific use case, in this case, the T-Stick)
Treat touch to a 1 DoF ?

rub
brush/swipe

Generalize to handle an array of touches ?

multi rub
multi brush/swipe

multiRub and multiBrush are currently initialized as fixed-sized array of [4], the logic can be updated to support dynamic arrays

What we have now is the touch-related gestures (rub and brush/swipe) extracted from a capacitive touch array of either discrete (0 or 1) or continuous normalized values (floats between 0 and 1). The descriptor was made for the T-Stick which has one of those capacitive sensing options.
This descriptor uses a simple 1 DoF blob detection algorithm that scans the array and creates blobs by reading the sequence of activated stripes (array positions). This allows us to have multi versions of those gestures as it keeps scanning the array and finding all blobs, their sizes, and position (mean point). The rub and brush gestures integrate each blob's position to get their "speed" in a value close to their speed in cm/s. That was fine-tuned based on the distance between stripes and the free values available for the leaky integration (i.e., there's room for improvement).
What I suggest is to separate blob detection and the brush/rub classes should use a single float to calculate.
We can make classes for multi-brush and multi-rub that rely on blob detection for the specific cases of an touch array

Closing as it is a duplicate of #18


Provide libquic.a definition to VIO::VIO()

Building with Clang 13 resulted in an undefined sybmol for VIO::VIO().
That is provided by libinkevent.a. Providing that after libquic.a so it
can find the symbol.
This closes #8686

[approve ci fedora]

Cherry-picked to v9.2.x


Does this really need to be a class? It sounds trivial / no-op:
class DecomposingRecordingPointPen(DecomposingPointPen, RecordingPointPen):


Apps not deleting

When I select to delete an "app" in the push notificaitons plugin, it says "unknown error".

This occurs with and without my code changes for the User-Level Permissions.

I have fixed this error. It was due to the path name in the index file as well as the query builder statements in the service file, the table names were not automatically getting the plugin name. So, I had to add this to them. Let me know how I can send this update to you. Thanks!

Can you open a Pull Request?

I sent you a pull request. Thanks!


Assembler refactors

Some refactors trying to simplify the data structures and API for the assemblers. See individual commit messages for details.
@thvdveld since you wrote the original code: Could you take a look? Is there anything I might have missed?
One thing that's wrong for now is the offset correction. Previously, the PacketAssembler was initialized when receiving the first fragment, with the right offset correction, and non-first fragments were discarded if they arrived first. The new API has only .get() which creates the assembler if it doesn't exist, so now non-first fragments will still be processed, but with the wrong offset correction. This is a problem, because only the first packet has enough info to learn the offset correction, right? Perhaps what we're supposed to do is decompress the headers before writing them to the assembler?

Perhaps what we're supposed to do is decompress the headers before writing them to the assembler?

That is actually the correct thing to do. I didn't do this in the beginning because then I would have lost information that it came from a 6LoWPAN message. However, I did it like that because it was all very new to me as well and didn't know better.
So, yes, we need to decompress it before adding it to the buffer. This will remove the complicated offset calculation I think.

The thing with decompress first is that the UDP emit function needs to change. Because the emit function needs all the UDP data etc.

I believe this is ready to go. Offset correction is gone :rocket:
@thvdveld what do you think?

I think emit_header needs some work in src/wire/udp.rs. It needs to be able to correctly calculate the checksum (and needs the data for that). Other than that I think this is ready indeed.

Hmmm, if it's just for decompressing the packet for further internal use we should be able skip calculating+reverifying the checksum I think. I'll take a look.

It sets the checksum to 0, then later when processing the decompressed UDP packet, checksum 0 is treated as correct due to not present.. This is why the tests and everything was already passing.
I think it's the behavior we want: not generate the checksum, not check it.
The only weird thing is that if you do tell emit_header to calculate the checksum, it won't do it right because the UDP payload is not written yet. I've simply changed it to not be able to, and clarified in docs that it's for internal-packet-use only.

bors r+

bors r+


Create Button Component

As a developer, I need to create a new button component so that I can get an important component in the library as it is empty now.
The button must have multiple variants, sizes, and have crisp styling and transitions.

Created version one of button. It includes an onClick function, primary, secondary, and link variants. Has small, medium, and large sizes.


Track the TCT alongside the NCT

This commits the TCT root alongside the NCT root to the JMT state, and stores the TCT in the sidecar non-consensus storage in RocksDB. It prints the TCT root every block to debug! level tracing.

This is now rebased relative to the latest main branch and addresses the changes above. Look good to you @hdevalence?


[RHOAIENG-2404] Replace simple deprecated PF selects with SimpleSelect

Towards RHOAIENG-2404
Description
Updates SimpleDropdownSelect to SimpleSelect using the PF Select component rather than Dropdown. This provides the checkmark indicators for the current selection in the menu items.
Replace simple usages of PF Select component with SimpleSelect.
How Has This Been Tested?
Manually tested
Updated Cypress tests
Test Impact
The following components are effected:

Resources -> Sort type select and sort order select
Model Serving -> click on a model name: Time range and Refresh interval select drop downs.
Data Science Projects -> select a project -> permissions tab:
Add user -> username selector
Add group -> group name selector
Data Science Projects -> select a project -> workbench tab -> create a workbench:
Image Selection
Version selection
Container size
Environment variables -> Add variable:
Select environment variable type
Select environment variable type -> secret -> either -> select one
Data Science Projects -> Launch Jupyter -> select container size

Request review criteria:
Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

I noticed the checkmarks aren't getting set in the Select menus under permission settings:

Fixed.

Tested all referenced areas to be working.

/lgtm
/approve


parser error of abaplint.json should give an issue

think this is fixed, but need to test

not fixed


[Enhancement] Support function-kcl to obtain parameters from external ConfigMaps

We typically discourage functions from talking to the API server directly to load additional inputs (e.g. from a ConfigMap). Ideally Crossplane mediates all interactions of the function. This means that folks don't need to worry about configuring the function's RBAC permissions. It also means a function could be deployed outside of a cluster in future and still work fine.
Can you share more about what you want to achieve by loading parameters from a ConfigMap?

Thank you! At present, this is not a real scenario demand. Thank you for providing the information. I will close this issue. 🤗


fix: Null reference exception when pressing clear button in FluentAutocomplete

🐛 Bug Report
Pressing the clear button of the Fluent autocomplete results in a null reference exception.
💻 Repro or Code Sample

Using the example on the documentation page for the fluent autocomplete
Running it using FluentUi 4.7.2
Select an item from the list
Press the clear button

🤔 Expected Behavior
Selection should be cleared.
😯 Current Behavior
Null reference exception with the following stack trace.
blazor.web.js:1  [2024-05-07T14:56:29.400Z] Error: Microsoft.JSInterop.JSException: Could not find 'focusOn' ('focusOn' was undefined).
Error: Could not find 'focusOn' ('focusOn' was undefined).
    at https://localhost:7060/_framework/blazor.web.js:1:734
    at Array.forEach (<anonymous>)
    at l.findFunction (https://localhost:7060/_framework/blazor.web.js:1:702)
    at b (https://localhost:7060/_framework/blazor.web.js:1:5445)
    at https://localhost:7060/_framework/blazor.web.js:1:3238
    at new Promise (<anonymous>)
    at y.beginInvokeJSFromDotNet (https://localhost:7060/_framework/blazor.web.js:1:3201)
    at gn._invokeClientMethod (https://localhost:7060/_framework/blazor.web.js:1:62841)
    at gn._processIncomingData (https://localhost:7060/_framework/blazor.web.js:1:60316)
    at connection.onreceive (https://localhost:7060/_framework/blazor.web.js:1:53957)
   at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
   at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args)
   at Microsoft.FluentUI.AspNetCore.Components.FluentAutocomplete`1.OnClearAsync() in /_/src/Core/Components/List/FluentAutocomplete.razor.cs:line 473
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

🔦 Context
This only seems to happen on a debug build.
https://github.com/microsoft/fluentui-blazor/assets/124144490/8926d686-5ca4-498f-a1dc-0fad56a22a4d
🌍 Your Environment

Windows 11
Microsoft Edge, Google Chrome, and Mozilla FireFox
.NET 8 Fluent Ui 4.7.2

Without seeing an example of reproducible code or a repo, we don't know how to do anything.
focusOn is a javascript method included in the FluentAutocomplete.razor.js file.
Can you reload the page via Ctrl+F5 (to clear the cache) or have you checked that you are developing using the "Interactive" RenderMode?

Closing due to inactivity.


More flexible parsing of fractional seconds

Currently, dateparser is somewhat inflexible in its parsing of fractional seconds (milliseconds, microseconds, etc.):
>>> print dateparser.parse('1/1/16 9:02:43.100000')
2016-01-01 09:02:43.100000
>>> print dateparser.parse('1/1/16 9:02:43.1')
None

43.1 is essentially equivalent to 43.1000000 so it would be nice if it parsed as well.

Related to #234


Mark transactions as imported in YNAB

This allows for transaction matching and makes the tool work like the official direct and file import features from YNAB. The format matches the official one, as it is described in their API docs. In the end it will look like this in the YNAB UI:

Unmatched transactions will be added like before, items that already have a matching transaction will be linked to the existing one. If YNAB ever officially starts supporting direct import from ING there should be no duplicates either, as we adhere to their ID format.
In theory this would also allow the tool to drop the state file - transactions with the same import id won't be added again, I tested this by re-running the tool after deleting the state file. If you want I can remove this logic, but I wanted to start with a minimal change and hear feedback from you.
I also switched the datetime usage to date, as I noticed that the returned values from the FinTS lib are Date objects, not Datetime ones.
Closes #117.

Hey Heiko, thank you so much for this PR, it looks great! 🙌
Sadly I can't test this right now because the YNAB API is having some issues with importing transactions (see YNAB Status), but I will try it out tomorrow.
It also seems like something is broken with the pipeline for PRs from forked repositories, going to check that out as well (though that's not a blocker to merge this).
Regarding the state file: I'd love to get rid of it, I think the best strategy would be to merge this, do a release and drop the state file in the next release. Otherwise people might get duplicate imports (one with the import_id and one without).

Tested it and it works great! Fixed the linter issues for you, will cut a release once this is merged. Thanks again 🙏

Awesome, thanks for the linter fixes & speedy release! I will try to submit a PR for removing the state file when I find some more time to work on this. The project is already a huge help for me as is now though. :)


link cannot be accessed

Hi Robin,
The below link cannot be accessed and have warning said that it is not a safe link.
UK census data can be accessed from several places including: https://census.edina.ac.uk/bds.html https://www.nomisweb.co.uk/census/2011
So do you have an alternative link or do you have other resources to find the data of West Yorkshire including GDP, resident density, average income of this region, etc..
Thanks in advance.
Binghong Zou

Hi Binghong, no I do not have other resources on GDP, resident density etc. I did show you how to get data with estimates of population here: https://github.com/ITSLeeds/TDS/issues/28#issuecomment-602740808
So closing this issue for now.


End-to-end example for DL training and inference using Spark 3.4 APIs

Hi @leewyang , thanks for the contribution, will verify on databricks

cc @anfeng @eordentlich

Failing markdown link check appears to be in unrelated files.


Apple scripts to Mute/Unmute from Touchbar for Macbook

Added apple scripts. You can create shortcuts directly from the touchbar to mute and unmute.

Known issues

Doesn't work from Github pull request page due to weird unicode
Doesn't work from Google meet page, because extension name changes to "Unmuted Has access to this site"


badja_extra_videos.zip doesn't seem to exist anymore

It appears that badja_extra_videos.zip doesn't seem to exist anymore.
I tried running wget http://mi.eng.cam.ac.uk/~bjb56/datasets/badja_extra_videos.zip and got connection timed out.
Manually visiting http://mi.eng.cam.ac.uk/~bjb56/datasets/badja_extra_videos.zip just loads forever.
is there a working mirror of these videos? also, is it necessary to use these particular videos, or can any animal videos like from YouTube be used? (Newbie here)

Ah yes -- it looks like our Cambridge hosting server is down. I've created a mirror which you can use.
You can use any videos you like -- you'll need to generate segementations and click keypoints, to generate equivalent input files to the examples.

Ah yes -- it looks like our Cambridge hosting server is down. I've created a mirror which you can use.
You can use any videos you like -- you'll need to generate segementations and click keypoints, to generate equivalent input files to the examples.


Speed up Copy task by 2-3X

For #3330

Kept original single-thread copy task for single-thread operation and added new TPL ActionBlock based parallel implementation.
All UTs pass with old and new implementations
See empirical time comparison numbers in table in Copy.cs. ~2X faster for SSD and ~3x for spinny disk.

In general I like this! The only thing we have to make sure of is how this works with large repos + /m and how it behaves in VS. @lifengl @cdmihai I know we've had issues before using too many threads when building in VS. Do you see an issue with this approach?
This may warrant a experimental branch so we can do a test insertion to VS and get some mileage on it.

Agreed wrt the possible ramifications. Since the copy calls are File.Copy() (synchronous, each holding a threadpool thread but mostly pended in the kernel on I/O waits) it can cause threadpool starvation at least until the TP manager decides it needs to inject more threads to the pool.
I selected int.MaxValue based on performance only, presenting the greatest possible list of simultaneous pending disk operations to the OS's kernel I/O scheduler; there are sweet spots at n=4 and 6 that are suitable while setting a maximum tax on the TP usage that should be fine to move to as a default if there are starvation problems.

One aside: We could move to manually implemented async I/O (async readfile with large buffers on the order of 256K-1M, then async write t o destination) for the copies, but there are advantages to keeping the (unfortunately synchronous) File.Copy() calls, as they directly map to a Win32 CopyFile() call which avoid kernel-user ring transitions copying partial file buffers around.
If there's ever a mapping from a hypothetical File.CopyAsync() that maps to CopyFile() with overlapped I/O then we'd get the best of both worlds.

VC and traditional CSProj still does some design time build inside VS, but I guess Copy task is likely very limited inside design time build, so using more threads might be less concern for this task than others (especially code used in project evaluation phase.) @svetkereMS, do you agree?
For this change, I have a few feedbacks:
First, it sounds a nice idea to make the task more efficient, and I do like the idea to use the ActionBlock, so throttling it is very easy.
I think you always want to retain the single thread function, and always use it when it only need copy one file.  I believe that is quite common to copy a single file, and the new implementation adds lots of overhead and requires two threads to do the work, which will regress the performance in that scenario.
It is always better to throttle the number of parallel tasks you create.  It is great to see the action block there.  Generally, I don't see a big benefit to use a number higher than the physical core on the machine, so maybe limit it to 4 threads will be a good default.  The thread pool is not very efficient to handle works generated in large busts.  The idle threads left can waste lots of time to spin CPU to wait new tasks, which no longer comes.  We saw those idle spinning consumes 30% CPU in some traces.  When you are using parallel, measuring and making a single function faster is not always the best way to improve the overall performance.  In the real usage scenario, there will be multiple msbuild nodes building multiple projects at the same time, plus the control node inside VS, so some usage/testing in a more complex scenario might help, (but it also makes it hard to measure the performance).  Otherwise, I will start with a smaller cap (4 sounds reasonable, instead of Int.MaxValue
I am not sure we want to change it to async, allocating a large buffer is tricky, because it will add memory/GC pressure to the project.  Those large allocations will be in LOH, and won't go away until Gen2 GC, so we need recycle them, and still need throttle the number of tasks in that case.  (We saw each of msbuild process reaches 2G memory allocation for some large solutions, and an aggressive allocation pattern might bring it down.)

For next iter, based on discussion above, moved to default parallelism == 4 or 6 (4 for # CPUs 4, 6 for >4).

@dotnet-bot test Ubuntu14.04 Build for CoreCLR please

I think I'm good with this. I was able to get a green perf run on the internal VS stuff. @rainersigwald you good with this going in?
One last thing though, could you add an escape hatch? Add it to Traits . Something like MSBUILDCOPYTASKPARALLELISM and use that value if it exists? The user could in theory set it to 1 to get the legacy behavior (or more likely set it to 1 to rule this out in perf issues that come up). If you're feeling more ambitious you could move MSBUILDALWAYSRETRY and MSBUILDALWAYSOVERWRITEREADONLYFILES there as well :)

@AndyGerlicher next iteration moves the env var check logic to Traits. (Or place it on EscapeHatches? I was unclear, but Traits seems like the better place.)

Leaving the AlwaysRetry and other flags in Copy.cs for now. Might move them over in another PR.


adds pointless projects/{{projectId}}/logs/winston_log property to logs when redirectToStdout is set to true

Environment details

OS:
Node.js version: 16.19.1
npm version:
@google-cloud/logging-winston version: 5.3.0

Steps to reproduce

create the following log:

const googleCloudLogger = new LoggingWinston({
  redirectToStdout: true,
})

deploy to cloud run
logs will then look like this:

you notice that it adds an additional logName property projects/{{projectId}}/logs/winston_log which adds noise to it and is even the first thing you see and therefore makes it hard to read the logs.
you also see that the real correct logName is also visible one level above

If we use useMessageField option set to false then logs are appearing fine in cloud run.

If we use useMessageField option set to false then logs are appearing fine in cloud run.
Are you using redirectToStdout: true? I get the logName added when using:

  redirectToStdout: true,
  useMessageField: false,

Hi @macrozone , could you try useMessageField and see if you are still running into this? useMessageField is used to control if "message" field is used to store structured, non-text data inside jsonPayload field when redirectToStdout is set.

Closing issue as settinguseMessageField to false will solve the issue here.

I'm having the same issue with useMessageField: false and redirectToStdout: true.

please re-open


[Bug]: Incorrect error msg for map constants

Description

const person = {name : "Joe", name : "Jack"};
Currently it gives invalid usage of finite literal: duplicate key 'name', spec did not mention about finite. It can be corrected to invalid usage of record literal: duplicate key 'name'.

const int|float|string mUnion3 = {a: 1, b: 2};
It gives incompatible types: expected ' {a: 1,b: 2}', found '(int|float|string)' which is wrong.

Steps to Reproduce
No response
Affected Version(s)
2201.7.0-stage
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

spec did not mention about finite. It can be corrected to invalid usage of record literal: duplicate key 'name'.

At the same time in the current spec a literal is interpreted as,
literal :=
   nil-literal
   | boolean-literal
   | numeric-literal
   | string-literal
   | byte-array-literal
numeric-literal := int-literal | floating-point-literal

Wondering "record literal" is the correct term now.

spec did not mention about finite. It can be corrected to invalid usage of record literal: duplicate key 'name'.

At the same time in the current spec a literal is interpreted as,
literal :=
   nil-literal
   | boolean-literal
   | numeric-literal
   | string-literal
   | byte-array-literal
numeric-literal := int-literal | floating-point-literal

Wondering "record literal" is the correct term now.

At moment we log invalid usage of record literal: duplicate key 'name' for the below example,
public function main() {
    var person = {name : "Joe", name : "Jack"};
}

It seems spec didn't mentioned such a record-literal

In the AST naming also we call BLangRecordLiteral which is an obsolete term.
I would like to make the error message shorter too. (Improves coders' error message reading time while convincing the meaning)
How about Invalid record: duplicate key 'name' found?

In the AST naming also we call BLangRecordLiteral which is an obsolete term.
I would like to make the error message shorter too. (Improves coders' error message reading time while convincing the meaning)
How about Invalid record: duplicate key 'name' found?

Agree

How about Invalid record: duplicate key 'name' found?

Correction: invalid {0} constructor: duplicate key ''{1}'' found

0 argument could either be record or mapping (as it is now already)

The current spec use "mapping constructor" term. However, since we already provide custom error for record vs mapping in this scenario, we can say  "record constructor" and "mapping constructor" which is more meaningful for the user?


RW access on ADMIN_READ_ONLY role

Expected vs actual behavior
User has access to only role ADMIN_READ_ONLY

expected: user has only RO access to organization objects
actual: user can add new user, can add new group and etc., user has RW access to all objects in organization

Steps to reproduce the bug

Install paralus via helm

   helm install myrelease paralus/ztka \
    -f https://raw.githubusercontent.com/paralus/helm-charts/main/examples/values.dev-generic.yaml \
    --set fqdn.domain="paralus.local" \
    -n paralus \
    --create-namespace

helm list -A
NAME      	NAMESPACE        	REVISION	UPDATED                             	STATUS  	CHART            	APP VERSION
myrelease 	paralus          	1       	2023-08-18 12:29:37.918723 +0600 +06	deployed	ztka-0.2.5       	v0.2.4

create user<EMAIL_ADDRESS>assign role ADMIN_READ_ONLY  to user<EMAIL_ADDRESS>login as<EMAIL_ADDRESS>try to create/delete new user (successful)
try to create/delete new project (successful)

Are you using the latest version of the project?
APP VERSION v0.2.4
What is your environment setup? Please tell us your cloud provider, operating system, and include the output of kubectl version --output=yaml and helm version. Any other information that you have, eg. logs and custom values, is highly appreciated!
k8s v1.26.2
helm v3.2.1
values file:
## This is an example values used to overwrite default values.yaml
## for deploying chart on a Kind cluster.

deploy:
  postgresql:
    enable: true

kratos:
  kratos:
    development: true

create user<EMAIL_ADDRESS>logs:
{"timestamp":"2023-08-22T08:51:12.573297319Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"admin@paralus.local"},"groups":["Organization Admins","All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:44890","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"User<EMAIL_ADDRESS>created","meta":{"username":"test@example.com"}},"type":"user.create.success","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:51:35.249017253Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"admin@paralus.local"},"groups":["Organization Admins","All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"User<EMAIL_ADDRESS>updated","meta":{"username":"test@example.com"}},"type":"user.update.success","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:51:35.249364236Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"admin@paralus.local"},"groups":["Organization Admins","All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"Role ADMIN_READ_ONLY added to user test@example.com","meta":{"roles_name":"ADMIN_READ_ONLY","username":"test@example.com"}},"type":"user.role.created","portal":"OPS","project":""}

work as user<EMAIL_ADDRESS>logs:
{"timestamp":"2023-08-22T08:53:06.156903733Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":null},"client":{"type":"BROWSER","ip":"","user_agent":"","host":""},"detail":{"message":"User login: test@example.com","meta":{"user":"test@example.com"}},"type":"user.login.success","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:53:26.801518205Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"Project new created","meta":{"project_name":"new"}},"type":"project.create.success","portal":"OPS","project":"new"}
{"timestamp":"2023-08-22T08:53:33.433977513Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"Project new deleted","meta":{"project_name":"new"}},"type":"project.delete.success","portal":"OPS","project":"new"}
{"timestamp":"2023-08-22T08:53:50.323386838Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"User<EMAIL_ADDRESS>created","meta":{"username":"new@ex.com"}},"type":"user.create.success","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:53:56.734298494Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"User<EMAIL_ADDRESS>deleted","meta":{"username":"new@ex.com"}},"type":"user.delete.success","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:53:56.734643654Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"User<EMAIL_ADDRESS>added to group Organization Admins","meta":{"group_name":"Organization Admins","username":"new@ex.com"}},"type":"user.group.deleted","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:54:03.146392331Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:36378","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"Group new created","meta":{"group_name":"new"}},"type":"group.create.success","portal":"OPS","project":""}
{"timestamp":"2023-08-22T08:54:19.710423712Z","version":"1.0","category":"AUDIT","origin":"core","actor":{"type":"USER","account":{"username":"test@example.com"},"groups":["All Local Users"]},"client":{"type":"BROWSER","ip":"<IP_ADDRESS>:44890","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0","host":"console.paralus.local"},"detail":{"message":"Group new deleted","meta":{"group_name":"new"}},"type":"group.delete.success","portal":"OPS","project":""}

(optional) If you have ideas on why the bug happens or how it can be solved, please provide it here

[x] I've described the bug, included steps to reproduce it, and included my environment setup with all customizations.
[x] I'm using the latest version of the project.

I installed paralus in the same version and configuration on another test cluster. Let's call it paralus2. And so on paralus2 the ADMIN_READ_ONLY role works correctly.
What is the difference between paralus1 and paralus2?
Gaitlab OIDC provider is configured on paralus1, 2 clusters are connected and custom roles are configured.
I still don't understand why ADMIN_READ_ONLY role doesn't work on paralus1.

@mslga I just gave it a try and admin read only users work as expected.
If you can eloborate your installation / configuration of paralus one instance where it was not working, we can further analyze the issue.

@mslga Not sure exactly what is going wrong in this case. Feel free to share if you've more information of your failing Paralus setup.

@mslga Quick check if have any additional information related to this issue.

Unfortunately I can't share the configuration as I had to delete the test server where the error was detected.
I really appreciate your attention to this problem, but it was not possible to repeat the error on a new server, so I think we can close this issue


cupy.prod misbehaves

Description
I use cupy.prod function but I find that its result is not equal with numpy.prod and the absolute difference is 8.
To Reproduce
import numpy as np
import cupy as cp

def run_np():
    a1 = np.array([[1, 1, 1, 1, -1, 76, -58, -1], [-31, -1, 0, 1, -69, 1, 1, -1], [93, 0, 1, 0, 0, 1, -1, 77], [-54, 57, 0, 1, 1, -1, 1, -1]], dtype="int64")
    a2 = np.var(a1, axis=0)
    a3 = np.prod(a2)
    return a2, a3

def run_cp():
    a1 = cp.array([[1, 1, 1, 1, -1, 76, -58, -1], [-31, -1, 0, 1, -69, 1, 1, -1], [93, 0, 1, 0, 0, 1, -1, 77], [-54, 57, 0, 1, 1, -1, 1, -1]], dtype="int64")
    a2 = cp.var(a1, axis=0)
    a3 = cp.prod(a2)
    return a2, a3

def test_np_cp():
    np_a2, np_a3= run_np()
    cp_a2, cp_a3 = run_cp()
    cp.testing.assert_array_equal(np_a3, cp_a3)

This is a test file compatible with pytest.
E           Max relative difference: 1.28072331e-16
E            x: array(6.24647e+16)
E            y: array(6.24647e+16)

Installation
Wheel (pip install cupy-***)
Environment
OS                           : Linux-5.15.0-94-generic-x86_64-with-glibc2.35
Python Version               : 3.12.3
CuPy Version                 : 13.3.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.26.4
SciPy Version                : None
Cython Build Version         : 0.29.36
Cython Runtime Version       : None
CUDA Root                    : /usr/local/cuda
nvcc PATH                    : /usr/local/cuda/bin/nvcc
CUDA Build Version           : 12060
CUDA Driver Version          : 12040
CUDA Runtime Version         : 12060 (linked to CuPy) / 12010 (locally installed)
CUDA Extra Include Dirs      : []
cuBLAS Version               : (available)
cuFFT Version                : 11002
cuRAND Version               : 10302
cuSOLVER Version             : (11, 4, 5)
cuSPARSE Version             : (available)
NVRTC Version                : (12, 1)
Thrust Version               : 200600
CUB Build Version            : 200600
Jitify Build Version         : <unknown>
cuDNN Build Version          : 8801
cuDNN Version                : 8900
NCCL Build Version           : 21602
NCCL Runtime Version         : 21701
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce RTX 4090 D
Device 0 Compute Capability  : 89
Device 0 PCI Bus ID          : 0000:A9:00.0

Additional Information
No response

I think this isa numerical error due to the computation order difference between NumPy and CuPy.
np_a3 = 6.246470223088043e+16
cp_a3 = 6.2464702230880424e+16

I think this isa numerical error due to the computation order difference between NumPy and CuPy.
np_a3 = 6.246470223088043e+16
cp_a3 = 6.2464702230880424e+16

@kmaehashi So, is this an expected behavior or an undefined behavior? How can I avoid this computation order difference?

@AnonymousPlayer2000 This is an expected behavior. NumPy also does not guarantee the order of operations.

@asi1024 OK, Thanks!


Exposing Vulkan 1.1 entry points.

Problem
Currently, gfx-backend-vulkan only exposes Vulkan 1.0 to the user. See here and here in particular.
Vulkan 1.1 has exposed subgroup operations (see also this presentation), which are very nice for compute applications in particular, but will also likely become prevalent in graphics applications in the near future. A gfx-hal user cannot currently access these, due to the hardcoded Vulkan 1.0 usage set by gfx-backend-vulkan.
@msiglreith informed me that spirv-cross is already capable of handling SPIR-V 1.3 (Vulkan 1.1), so in order to use subgroup operations through gfx-hal, I think this is the only blocker?
Solution
I do not have enough API design knowledge to suggest how one can expose Vulkan 1.1 to the user. My best guess would be using feature flags, so that feature flag vulkan loads Vulkan 1.0, while feature flag vulkan1.1 loads Vulkan 1.1. Then we could have for instance:
#[cfg(feature="vulkan")]
use ash::version::{DeviceV1_0, EntryV1_0, InstanceV1_0};
#[cfg(feature="vulkan1.1")]
use ash::version::{DeviceV1_1, EntryV1_1, InstanceV1_1};

(and similarly a cfg flag to set vk_make_version!(1, 1, 0) if vulkan1.1 is enabled?)
Conclusion
I am worried that this might be much more complicated than I am imagining it to be, but I am happy to implement to any solutions that are decided upon through discussion here.

Afaik ash has unified all the version variants, which currently means for us to use EntryCustom, Instance and Device. There should be no need for compile time distinction.


Update s3, sdk-core, sqs to 2.16.54

Updates

software.amazon.awssdk:s3
software.amazon.awssdk:sdk-core
software.amazon.awssdk:sqs

from 2.16.26 to 2.16.54.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, semver-patch

Superseded by #168.


合并更新

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style
[ ] Refactor
[ ] Doc
[ ] Other, please describe:

The description of the PR:
Other information:

1

1


Avoid to run localization when inserting the text layer

The text layer contains either some spans with the page text or some accessibility structural info.

I'll need a little bit of time to think through this, to fully convince myself that moving the textLayer-append won't cause any problems in some weird edge-case. (I think it should be safe, but just want more time to consider this.)
However, if we're doing this can/should the same be done for the structTree since I don't believe that it needs to be localized either? Obviously that one is less common, and generally contains fewer DOM-element, but nonetheless.
Finally, NullL10n also needs to be extended with these new methods to avoid issues in the standalone viewer-components.

Yes we can include the struct layer.
And I'll update the NullL10n when I'll rebase this patch on top of yours.
As you said the main difficulty is to be sure that we can move the appending: I pretty sure that it's safe but I'm not 100% sure.

The thing that worried me initially is how/if this could affect canceling of rendering, more specifically here:
https://github.com/mozilla/pdf.js/blob/898cc2e399e47ae70e08624a72852954030370b0/web/pdf_page_view.js#L689-L692
However, looking at the TextLayerBuilder it's clear that the div is created immediately and this patch only changes where it's attached to the DOM (thus this.textLayer.div still exists just as before):
https://github.com/mozilla/pdf.js/blob/898cc2e399e47ae70e08624a72852954030370b0/web/text_layer_builder.js#L49-L67
All-in-all, it seems that moving the append should indeed be safe.

/botio test

@calixteman After having converted the xfaLayer, I believe that I now understand why this failed various integration-tests above.
As far as I can tell, the problem in this PR is that we're appending the textLayer after enabling the highlighter and accessibilityManager, which doesn't work. I've just had an idea for fixing this without, hopefully, making the code too messy; mind if I "steal" this and submit a PR for testing?

Yes in the a11yManager we get the element bounds in order to sort the element belonging to the text layer.
So I thought about two things:

could we sort the elements in more lazy way instead of doing that unconditionally ?
could we just use the coordinates we've from the worker ? IIRC, at the end we just want to sort them so we don't need to have "real" coordinates.

I was thinking about that and then I had something else to work on.
For sure, you can steal this PR.

Yes in the a11yManager we get the element bounds in order to sort the element belonging to the text layer. So I thought about two things:
* could we sort the elements in more lazy way instead of doing that unconditionally ?

* could we just use the coordinates we've from the worker ? IIRC, at the end we just want to sort them so we don't need to have "real" coordinates.

It's likely that we could improve this, and worker-thread sorting would probably be more efficient (if possible). Given other recent changes that's perhaps not something that we want to land before releasing version 4, so there's probably no real rush here.
Regardless of future improvements of the TextAccessibilityManager-implementation we still need to ensure that a pending search operation is deferred until the textLayer is available in the viewer; however this has now been addressed in PR #17192 and we should thus be able to close this one.


[Bug] move run --args needs explanation in modules and scripts doc

🐛 Bug
Some feedback came in that if you try and follow along for https://developers.diem.com/docs/move/move-modules-and-scripts/ it's not obvious how you pass arguments into move run. We could make this more clear by adding an example showcasing move run --args.

This didn't update the docs did it? The commit only seemed to change the CLI --help string I thought.


docs: update badges on readme

:tada: This issue has been resolved in version 0.17.2 :tada:
The release is available on GitHub release :rocket:


Prevent _events creation on emit()

If an emitter doesn't listen to any events, it shouldn't set up structures for them when emit() / emitAsync() is called.
This simple optimisation improves performance in my use-case quite a lot. I have a lot of objects that rarely have events listeners installed on them, but they do emit events internally in many places for those who do. This simple addition optimizes for the most common case where they have nothing installed, without breaking any tests.
It even seems to have an impact on the benchmark test:
Before:
 npm run benchmark

><EMAIL_ADDRESS>benchmark /Users/lehni/Development/Lineto/EventEmitter2
> node test/perf/benchmark.js

EventEmitterHeatUp x 4,592,188 ops/sec ±0.69% (93 runs sampled)
EventEmitter x 4,502,165 ops/sec ±0.87% (93 runs sampled)
EventEmitter2 x 13,786,812 ops/sec ±1.02% (89 runs sampled)
EventEmitter2 (wild) x 9,030,553 ops/sec ±0.64% (92 runs sampled)

Fastest is EventEmitter2

After:
npm run benchmark

><EMAIL_ADDRESS>benchmark /Users/lehni/Development/Lineto/EventEmitter2
> node test/perf/benchmark.js

EventEmitterHeatUp x 4,571,509 ops/sec ±0.80% (91 runs sampled)
EventEmitter x 4,502,932 ops/sec ±0.90% (93 runs sampled)
EventEmitter2 x 14,033,599 ops/sec ±1.05% (90 runs sampled)
EventEmitter2 (wild) x 9,420,679 ops/sec ±0.62% (92 runs sampled)

Fastest is EventEmitter2

Hi! I don't have time to do a full review right now, but I'll to get on this by next Monday.
Would you mind pinging me on here if I don't get it done by then?
I'm thinking this should be sent out as a breaking change in case somebody out there is relying on the old behavior.

No worries! I'm happy to wait and will ping when I don't hear from you.

I guess it's time to ping you ;)

Thanks for the PR. Published it in 6.0.0

Thanks @RangerMauve!


Moving COMMONCONTROLS.11.2v0.2 into Policy Group 10

Common Controls Policy 11.2 will be moved into Policy Group 10 since 11.2 does not related to Google Marketplace, but rather API access.

Will be handled separately (not covered in PR https://github.com/cisagov/ScubaGoggles/pull/315) post Coast release.

@mdueltgen moved this to In-progress for tracking purposes.

@mdueltgen Do we know if this was ever handled?


Update recipe (some reorganization)

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged) 0 --> 1
[x] Reset the build number to 0 (if the version changed) NA
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

SUMMARY:
The three recipes (seqlike, weblogo, python-codon-tables) were managed by bioconda channel. Since the maintainers of seqlike wanted it on conda-forge, we ported all three libraries from bioconda channel to conda-forge channel, with permission from bioconda-core-team. The other two libraries (weblogo, python-codon-tables) are dependencies of seqlike.
NOTE: Once the transfer happens, the bioconda recipes of the three packages will cease to exist.
See (here) and (here)
cc: @dpryan79 (from bioconda team)

bioconda:seqlike recipe: https://github.com/bioconda/bioconda-recipes/blob/d41cdd4ae1ee428c612b12a52c96d530d238bb4e/recipes/weblogo/meta.yaml#L43-L44


tests: shell_flash: fix test case scenario

The previous test had two defects. First, the shell command was called
before the backend was initialized.
Second, the test compared the string from shell's backend buffer with
the reference string using strncmp function. This test result was very
susceptible to the time when it was performed because of data contained
in the buffer. Apart from the expected string, there was data like escape
codes needed to control the terminal.
To fix it, function strncmp was replaced by strstr, which
searches for the reference strings regardless of the characters
controlling the terminal.
Signed-off-by: Jakub Rzeszutko<EMAIL_ADDRESS>

This PR blocks #27342


RadiAID-dev: no COM-Port selectable

Probably because a different program was connected to the device. I'll close this issue.


No Snapchat-style Navigation??? (swipe to navigate)

most apps i've seen have intro or explainer screens, where new/logged-out users swipe to navigate through a small series of explainer screens, but i can't seem to find this feature any where in this library... TabNavigator can probably achieve this in a very hacky way, but not sure.
Am I overlooking this feature in the docs some where?

Nevermind, the library below facilitates this UX experience without ever involving navigation.
https://medium.com/the-react-native-log/implement-snapchat-like-swipe-navigation-declaratively-in-react-native-309e71229c89


Update Styling guide: add sentences explaining how to increase specificity of entries

I just gave it a go. ;-) I didn't know that i can do that from the browser and don't need to install software and clone everything locally first.

Hey, thanks for the addition. Since you're not particularly familiar with the tooling yet, I've made a few amendments for you, which I've explained below:

I've re-positioned, re-worded and reformatted your text a little bit, just so it makes a little more sense contextually and to avoid the lines in the source file getting too long.
I've removed the text about looking at the "accessible role" in the inspector as this isn't necessarily correct. You want to look at a widget's object type (so GtkButton --> button), name or classes for selectors, which is already detailed on the wiki.
I've 'squashed' your commits down into a single one, and reworded it to adhere to conventional commits. This ensures you'll be automatically credited in the changelog when the next version eventually goes out.

I've 'squashed' your commits down into a single one, and reworded it to adhere to conventional commits.

Thanks! I'll read up on those things.


Possible to use with mintlify?

Hi Anton,
We recently made the decision to use mintlify instead of Docusaurus, so I am trying to get Codapi set up for our new site. Unfortunately it didn't work after including custom css and js. Any ideas on how to make this work?
Best,
Justin

No ideas, sorry.

Custom JS is a feature available on the growth plan.

I'd rather not pay $400 just to test it. I hope you get some kind of support for that money, so I think you can open an issue, describe the symptoms (errors you get, etc.) — and maybe get some help from the Mintlify team.


Do not assume we are assembling to an ELF

This disallows things like the org directive, which are perfectly normal in other formats. It's better to just not specify, and give the user the option to add their format to the *_args variable, if they want.

Merged, thank you.


[openCypher compatibility] Can't use ASCENDING after ORDER BY

nGQL: MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASCENDING | LIMIT 5

openCypher:

MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASC | LIMIT 5

MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASC | LIMIT 5

MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASC | LIMIT 5

This is a compatibility problem. OpenCypher supports ASCENDING and DESCENDING, but nGQL for now don't.

MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASC | LIMIT 5

This is a compatibility problem. OpenCypher supports ASCENDING and DESCENDING, but nGQL for now don't.

MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASC | LIMIT 5

This is a compatibility problem. OpenCypher supports ASCENDING and DESCENDING, but nGQL for now don't.

ACK.

MATCH (v:player) RETURN v.age AS Age, v.name AS Name, id(v) as ID | ORDER BY ID ASC | LIMIT 5

This is a compatibility problem. OpenCypher supports ASCENDING and DESCENDING, but nGQL for now don't.

ACK.


Fixer for missing root namespaces in @expectedException

From https://github.com/symfony/symfony/issues/19237

I noticed this at the workflow component and decided to do a quick scan
Im talking about @expectedException \Exception vs. @expectedException Exception. Without use statements the latter works for phpunit but breaks editor click-throughs, at least phpstorm.
Searched with @expectedException\s+[^\\\s] with 34 results on master (not checked for use statements). Perhaps something to automate?
Not sure about this one :-)

I would be nice if we can force consistent behaviour, i.e. convert everything to use statements, or everything to FQCN's without use statements.

I would like this a lot :)
This fixer should be marked as risky I think, for example:
    /**
     * @expectedException UnexpectedValueException
     */
    public function testRegisterFixerWithOccupiedName()
    {
        a();
    }

when fixed to:
    /**
     * @expectedException \UnexpectedValueException
     */
    public function testRegisterFixerWithOccupiedName()
    {
        a();
    }

if a() would throw;
namespace My\Poor\Named\Exception;

class UnexpectedValueException extends \Exception
{
}

then the behavior is changed.

Well... if a() throws \My\Poor\Named\Exception\UnexpectedValueException it should be
@expectedException \My\Poor\Named\Exception\UnexpectedValueException
or
use My\Poor\Named\Exception\UnexpectedValueException
@expectedException UnexpectedValueException

PHPUnit does not read impors.
use My\Poor\Named\Exception\UnexpectedValueException
@expectedException UnexpectedValueException

That will expect UnexpectedValueException not My\Poor\Named\Exception\UnexpectedValueException.

indeed
<?php
namespace My\Poor\Named\Exception;

class InvalidArgumentException extends \Exception
{

}

class MyTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @expectedException InvalidArgumentException
     */
    public function testException()
    {
        a();
    }
}

function a()
{
    throw new \InvalidArgumentException();
}

this works.
Resolving the FQCN of the @expectedException class might be tricky though.

PHPUnit does not read imports.

Are you sure?! This affects symfony tests wich arent breaking currently :confused: or these are false positives right now.. which would be quit.. eh.. shocking.
One more thing; this also affects @throws but i havent checked for incorrect occurrences yet.

if you change
throw new \InvalidArgumentException();

to
throw new InvalidArgumentException();

you'll see that PHPUnit handles the exception without FQCN checking well

also, when possible (depends on PHPUnit version) I would suggest to use ->expectException

I don't think Sebastian has any plans to add this sort of thing to PHPUnit in the future.

To clearify, does this mean current tests are invalid?
I.e. is this test a false positive?

That test works because Symfony\Component\Asset\Exception\LogicException extends LogicException.

Exactly.. but this is not intended right afaik. I.e. a false positive... @fabpot  what about that?

https://github.com/symfony/symfony/pull/19243

From https://github.com/symfony/symfony/pull/19243

FQCN annotations from phpunit should be fully qualified (root namespace is optional, but pragmaticly prefered now for editors and is less error prone whenever phpunit alters (IMHO))
FQCN annotations from phpdoc can be fully qualified (with root namespace) or partial (with use statement)

My consensus so far..

partial is working? I dont think so

By "partial" i mean relative, i.e.;
namespace A;
use Foo\Bar\Partial;
//@return Partial (Foo\Bar\Partial)

or
namespace B;
//@return Partial (B\Partial)

vs
namespace C;
//@return \Root

This is valid PHP, ie. also how PHP7 return-types work. Based on the symfony testsuite i assumed @expectedException follows the same logic. For consistency i would say always declare the root namespace (\) for @expectedException (there can be no confusion also). But i dont really mind, i just think the tests should be fixed ASAP :)

By "partial" i mean relative, i.e.;

Well, really, you mean "aliased". That's what's actually going on.

Yes. Which reminds me.. does it need to resolve, eh, aliases, i.e.
use Foo\This as That;
//@expectedException That

This should probably never occur for @expectedException as your test will fail, but if the fixer is really generic it could be useful other FQCN annotations.

Big :-1: for using FQCN for other annotations.
for given example of @return - it's not needed. Strict typehinting in PHP7 (outside the comment) don't need to use FQCN as well, and mixing the notation in typehint and doctyping will not looks nice.
PHPUnit 4, as old enough, don't handle not-FQCN names in that annotation, but it also drops it in favor of ->expectException. So for that, if one want to make fixer to deal with phpunit annotation - go ahead, but I see no value in changing it for all annotations

but it also drops it in favor of ->expectException
url?

Anyway, $this->expectException(\InvalidArgumentException::class); should definitely be preferred. Forget the generic stuff, as expectedException cannot be compared to other annotations this way.
So indeed.. this is not a real codestyle fixer. However it could fixup your tests producing false unintended false positives. Do you see any value in that, or is out of scope for PHP-CS-Fixer?

url ?

https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions

As told before, checking if annotation for @expectedException is FQCN would be fine, but I'm against that part:

but if the fixer is really generic it could be useful for other FQCN annotations.

just let it be configurable and everybody will set up his own annotations, don't assume it for him, like changing @return annotation by default

configurable == generic imo. Ie. im not talking about 1 fixer that does everything, but a reusable fixer. But like i said, forget the generic stuff, its not my point.
For now, my concern is expectedExcception producing (unintended) false positives. However, technically we cant assume the user's intention;
use Foo\Something
//@expectedException Something

Is intended to work as "test for \Something" or "test for \Foo\Something"? Considering class \Foo\Something extends \Something.
And im not sure its a CS thingy anyway, however we could provide a fixer that resolves or removes the unneeded uses for @expectedException.

a fixer that resolves or removes the unneeded uses for @expectedException

resolve - like adding \ on the beginning - good
resolve - like guessing that you are using imported class and you should not rely on import - tricky and a lot of false positives
Conclusion: configure two things: annotations that are modified and way of modification (only add missing \ or resolve import as well)
remove - I don't get it, remove what ?

Which is... risky :)

Yes, we have risky fixers. Even with special flag that they are risky ;)

remove - never mind (UnusedUseFixer :)).

Yes, we have risky fixers. Even with special flag that they are risky ;)

I thought this was a little too risky ^^
How would you name the fixer?

In the end I would only add missing \ and not trying to resolve imported class to FCCN, as utests written that way shouldn't work at the first place (excepting inheritance cases).
What about PhpUnitExpectedExceptionAlwaysWithLeadingSlash ? name is long, but rule is very specific .

I agree with @keradus description on what the fixer should do.
PhpUnitExpectedExceptionWithDefaultNamespace
but I wouldn't down vote the other name suggestion  ;)

@ro0NL do you have plans to work on this?

also, when possible (depends on PHPUnit version) I would suggest to use ->expectException instead of annotation

I wouldn't advise it @ see https://github.com/sebastianbergmann/phpunit/issues/2074#issuecomment-183472385

No, im not ;-) point was the (unintended) false positives in the symfony codebase. By now, i hope they are aware of it.


libcudart.so.10.2: cannot open shared object file: No such file or directory

After I installed the cauchy-mult extension as indicated in the readme, I noticed I still get the warning
CUDA extension for cauchy multiplication not found. Install by going to extensions/cauchy/ and running python setup.py install. This should speed up end-to-end training by 10-50%
when importing the s4 model. By tracking down the warning message in the source code and trying the import
from extensions.cauchy.cauchy import cauchy_mult
directly, I found that the exception causing the failure is
libcudart.so.10.2: cannot open shared object file: No such file or directory
This is all in a fresh conda environment with pytorch==1.13.1 and cudatoolkit=11.7 (installed by default on the AWS AMI I'm using). It seems like a cuda mismatch issue (10.2!=11.7) but I've seen reading through other issues that the code has been successfully tested with Cuda 11.1 and 11.3 and I didn't see anywhere any specific requirements vis-a-vis cuda version <=11.3. I'm not sure where the 10.2 is coming into play, anyway.
The pykeops approach will probably be ok for my purposes but I wonder if there's a simple fix for this.
Thanks

Pytorch 1.13 has deprecated support for CUDA 10.2 (https://pytorch.org/blog/PyTorch-1.13-release/)
I'm actually trying to figure out the best way to deal with this myself, as I have some development environments still on CUDA 10.2. I tried installing pytorch 1.12 but ran into some issue (maybe unrelated). My working conda environment on this machine is still on pytorch 1.10 or 1.11 which still works fine.

Did you try first importing torch, having installed a version of the torch package for the same CUDA version?
For example, I have torch 2.0.0+cu118 installed and my CUDA kernel package (structured-kernels) was built with CUDA 11.8. If I just import structured_kernels, I get an error "ImportError: libc10.so: cannot open shared object file: No such file or directory" but if I import torch first, there is no problem.

@joecomerisnotavailable Have you been able to resolve anything or still having issues? I've since moved entirely off of CUDA 10.2, it's too outdated.
@jchia Now that you mention that, I think I've seen something similar when trying to import things in the repl. IIRC sometimes the import would fail the first time but work on the second. But if the extension is installed correctly the end-to-end training code should work


⚠ Turnos 24x7 has degraded performance

In 4c5ac8e, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 5952 ms

Resolved: Turnos 24x7 performance has improved in 1553533.


peer to peer code review

Hello @Doheera-kosi
Good job so far
Please merge your working branch with the development branch.

Task resolved successfully


How to copy arbitrary text from js

You haven’t written in the documentation how to make the text '123', for example, be copied to the clipboard from js, without html

https://github.com/zenorocha/clipboard.js/blob/master/demo/

Could you be more specific?
I don't see any way to copy an arbitrary text, without referering to any DOM element, in these exemples.
What Dieldore want to do doesn't seems possible for what I see.
Something like new ClipboardJS().copy("hello")

You can copy arbitrary text using
var clipboard = new ClipboardJS('.btn', {
        text: function() {
            return 'to be or not to be';
        }
    });

But it still needs a DOM element to trigger the copy.
I think what you're asking for is unfettered access to read the ClipBoard, without it being triggered by a user action.
I may well be wrong, but I'm guessing this is not possible due to the sandbox permissions (otherwise a rogue script could just copy potentially sensitive data and submit it via ajax)

I may well be wrong, but I'm guessing this is not possible due to the sandbox permissions (otherwise a rogue script could just copy potentially sensitive data and submit it via ajax)

It works with the following code (need to be improved, but works fine):
placeholder = document.createElement('textarea');
document.body.appendChild(placeholder);
placeholder.value = "to be or not to be";
placeholder.select();
document.execCommand('copy');
document.body.removeChild(placeholder);

execCommand which is the browser API we use behind the scenes, requires real user interaction, that's why we have DOM elements and events attached to it.


create ListManager + use it for FeaturedComponents

@calebjacob I needed to roll this out but please still review


Is this possible to see the results in txt or html format ? How to change the setting  for it.

I tried  SASjs for a while. It seems that the results from SAS were not shown in VScode. Is this possible to see the results in txt or HTML format?  How to change the setting for it ?

@hqgu - this feature is now available:  https://www.youtube.com/watch?v=QkLVXZRgU-M


Only Tensors of floating point and complex dtype can require gradients

openllm start chatglm
......
File "/opt/conda/lib/python3.10/site-packages/accelerate/big_modeling.py", line 108, in register_empty_parameter
module._parameters[name] = param_cls(module._parameters[name].to(device), **kwargs)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/parameter.py", line 36, in new
return torch.Tensor._make_subclass(cls, data, requires_grad)
RuntimeError: Only Tensors of floating point and complex dtype can require gradients
2023-06-25T07:11:30+0000 [ERROR] [runner:llm-chatglm-runner:1] Application startup failed. Exiting.

This has been addressed https://github.com/bentoml/OpenLLM/pull/60. I will wait for #68 to finish and will release a new version. Sorry fro the trouble

This has been fixed with 0.1.14


Merge dev_v3 into dev

It looks like dev branch first needs to have the main branch merged into it as I see some things from main not here.

Oh! Yeah, please do!On Oct 1, 2024, at 20:36, Peter Flook @.***> wrote:
It looks like dev branch first needs to have the main branch merged into it as I see some things from main not here.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were assigned.Message ID: @.***>


Typo in images

Shows 'Filewall' not 'Firewall' :)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 104eba32-c77e-b013-e161-ff616d16a0f7
Version Independent ID: 3bc27d0a-ef32-f5f6-4c85-fe8e2e45155e
Content: Hub-spoke network topology in Azure - Azure Reference Architectures
Content Source: docs/reference-architectures/hybrid-networking/hub-spoke.yml
Service: architecture-center
Sub-service: reference-architecture
GitHub Login: @EdPrice-MSFT
Microsoft Alias: edprice

@mundayn Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.


Adding user-agent-extra parameter to improve Log Analysis

User-agent is key parameter to improve Log Analysis. Previously, dbt-athena users were not able to differentiate boto3 calls from dbt-athena calls. Introducing the user-agent-extra parameter to the PyAthena/boto3 connections allow users to identify HTTP calls from dbt-athena
Example of new user-agent:
'User-Agent': b'Boto3/1.26.11 Python/3.7.10 Linux/4.14.296-222.539.amzn2.x86_64 Botocore/1.29.11 dbt-athena-community/1.3.1'

Thanks @nicor88, I just centralised this in a little util. Thanks for the feedback


Can't publish despite publishing profile existing

Describe the bug
Publish profile doesn't show up on Publish drop-down list despite being created
Version
1.4.0.nightly-233315
Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[x] macOS
[ ] Windows
[ ] Ubuntu

To Reproduce

Create new project
Create publishing profile and complete publishing
Go to publish UX and observe profile doesn't show up

Expected behavior
Publishing profile shows up to enable publishing
Screenshots
Publishing profile is created

**However, when on Publish it doesn't show up in drop-down list, only manage profiles **

Additional context

This looks like a state problem - the profile list hasn't been updated for some reason

Yeah it is a state problem. If you nav away and back then the dropdown populates with latest.
To repro you need to...

provision a new profile in the provision tab
wait for it to complete provisioning without naving around the app
Once it is finished provisioning you go to publish and the dropdown will not be updated with just created provision profile

At initial glance it seems that the botStatusList should update when provision s complete which should propogate down to the dropdown component but that does not seem to be happening as expected.
Testing is rather cumbersome as you have to provision a new profile each time to repro the state error but it does seem to be a rather simple state bug.


create Dockerfile for building binary and possibly packages using golang image instead of golang:alpine

To facilitate building for other platforms (that don't support new enough golang version, see #42 ) we should consider creating a Dockerfile that uses golang, not golang:alpine (due to musl libc vs. glibc incompatibilities) and builds the binary.
That Dockerfile could be used to create packages as well, then we could create a github action that will automatically build and publish packages of new builds.

I would go with goreleaser for building packages with GitHub Actions


Experimental debugger hangs when walking callstack on specific exception

The experimental debugger hangs in PTVS when trying to change call stack frames when stopped at an exception in my sample django app, I don't get the issue when stopping at other exceptions or changing stack frames in other areas of the same app.
Clone the repo using:
git clone -b debuggerbug_exception_callstack https://github.com/qubitron/stackoverflow-django
Start debugging using the experimental debugger, when it stops on an exception try to change the stack frame

@karthiknadig is this fix included in a6?

Yep!


Support for Elm language

Hi,
I am using tailwind with Elm for one of my projects.
Currently coc-tailwindcss doesn't support Elm and I was wondering if it could be added.
I am willing to do this myself but I can't really understand how to debug the extension.
I would be glad for any help to add the support.
Thanks

document here: https://github.com/neoclide/coc.nvim/wiki/Debug-language-server

It depend on the tailwincss config in project and languageid (the open file)
https://github.com/iamcco/coc-tailwindcss/blob/master/src/index.ts#L20-L58

Awesome, thanks :)
I will give it a shot with the debugger docs.


CI failed due to DockerHub outage

some example of CI failure
http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/mxnet-validation%2Fcentos-cpu/detail/PR-16490/1/pipeline
The latest status of DockerHub
https://status.docker.com/pages/533c6539221ae15e3f000031

tracked here on docker: https://github.com/docker/hub-feedback/issues/1897

looks like it's working now, will close it if my PR passed the CI


Add Albers Equal Area Projection and some test as per #2496

First take to add Albers Equal Area Projection to IRIS as per #2496.
https://github.com/SciTools/iris/issues/2496

This is looking really promising. I'm actually going to be taking a bit of a break for a number of weeks, so hopefully another @SciTools/iris-devs can help you along to get this over the finishing line.
Great stuff!

Looks great. Thanks @cvelascof. This should be in v2.1


Issues running GTN website locally on Mac

Hi, I was having issues with make serve and ended up doing a fresh clone of this repo. But when running make create-env (as here) I get the error
Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:
  - gxx=9
  - gcc=9

make: *** [create-env] Error 1

I'm guessing as there's no gcc9 (or g++9) for Mac in conda here https://anaconda.org/conda-forge/gcc ?
I'll try using GitPod in the meantime but does anyone know if/how I can get past this error?

Xref https://github.com/galaxyproject/training-material/pull/3156#issuecomment-1157642695

Hi yes! Same issue here, and tried it on 2 Macs (one that this used to work fine on and another fresh one) and both failed :(

I think @nekrut recently reported this as well. We should make a separate environment-osx.yml for conda to use conditionally


config merger fixes

The PR fixes bugs of config mergers

Codecov Report
Base: 38.90% // Head: 38.81% // Decreases project coverage by -0.09% :warning:

Coverage data is based on head (51b28a2) compared to base (0cd219f).
Patch coverage: 33.33% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2084      +/-   ##
==========================================
- Coverage   38.90%   38.81%   -0.10%
==========================================
  Files         616      608       -8
  Lines       36508    36350     -158
==========================================
- Hits        14204    14109      -95
+ Misses      20715    20665      -50
+ Partials     1589     1576      -13

Impacted Files
Coverage Δ

infra/conf/json/yaml.go
62.06% <0.00%> (-10.35%)
:arrow_down:

infra/conf/mergers/merge.go
0.00% <0.00%> (ø)

infra/conf/mergers/merger_base.go
9.37% <0.00%> (-0.31%)
:arrow_down:

infra/conf/merge/map.go
81.81% <75.00%> (ø)

app/proxyman/outbound/errors.generated.go
0.00% <0.00%> (-100.00%)
:arrow_down:

common/task/task.go
88.88% <0.00%> (-7.41%)
:arrow_down:

testing/servers/tcp/tcp.go
81.81% <0.00%> (-5.46%)
:arrow_down:

testing/scenarios/common.go
75.00% <0.00%> (-4.29%)
:arrow_down:

app/proxyman/outbound/handler.go
36.61% <0.00%> (-4.23%)
:arrow_down:

transport/internet/udp/hub.go
73.61% <0.00%> (-4.17%)
:arrow_down:

... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[5.8] Adds a check of all admissible Accept headers

Some API clients can send Accept headers in the format: */*, application/json.
Like:

I think that in the $request->wantsJson() method it is worth checking all transferred header values, and not just the first.

Please see #27992.

I understand what you mean. But in this case, the problem is a little deeper.
Some internal functionality uses this method and behaves not quite correctly:
https://github.com/laravel/framework/blob/10a2cbd8b39378ab2a243ffc228d78c553e3e7ea/src/Illuminate/Foundation/Exceptions/Handler.php#L188
In this case, this method ($handler->render(...)) will have to be completely rewritten in order to modify.
There are several solutions to this problem:

Close this PR. Since the base render method can be overridden.
Replace in this case the expetsJons() for accepts('application/json') and open new PR with this solution.
Apply this PR and fix problems that users have repeatedly encountered (including your link to #27992).

P.S. I think that the argument in #27992 is pretty weighty. Priorities are important, so solution number solution 3. (this PR) is not perfect.

No plans to change this on 5.8.


[Bug]: Recommended Chunk Shape doesn't take into account compound dtypes

What happened?
Dev tests are failing: https://github.com/catalystneuro/neuroconv/actions/runs/11567195585/job/32197117750
Tracked this down to an update with hdmf that uncovered these lines: https://github.com/hdmf-dev/hdmf/blob/dev/src/hdmf/backends/hdf5/h5tools.py#L1476-L1483
And our chunking recommendation based on the data shape here: https://github.com/catalystneuro/neuroconv/blob/main/src/neuroconv/tools/nwb_helpers/_configuration_models/_base_dataset_io.py#L263
Notice how in hdmf, if the data has a compound dtype, the shape is (len(data),), but in neuroconv the shape is always get_data_shape(data).
This throws an error when they mismatch in the case of a Caiman pixel_mask, which is a compound dtype in NWB.
The initial solution that I came up with was to load the NWB schema to figure out if a dataset is compound or not, but I was having some trouble finding the right code to load in the schema...
Steps to Reproduce
n/a

Traceback
No response
Operating System
Linux
Python Executable
Conda
Python Version
3.9
Package Versions
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] Have you ensured this bug was not already reported?

Update:
I figured out that I can use the builder's dtype (from io.get_builder(dataset)) to appropriately check for compound dtypes, BUT io.get_builder only works when the nwbfile is being read from disk -- it returns None when the nwbfile is in memory.

@rly, when you have a chance could you provide some guidance on this issue?
How can I get a builder from an in-memory nwbfile? Or, if that is too difficult, how can I get access to the schema for a given neurodata object?

@pauladkisson I do not totally follow what happened here. If I understand correctly, get_data_shape changed in HDMF and this broke something in neuroconv. What was the behavior of get_data_shape for compound data types before the change? Is this a bug in HDMF?
An in-memory (not yet written) NWB file has no builders until you call write. You can use HDMF internal functions to get the spec if you really need to:
import pynwb
manager = pynwb.get_manager()
manager.type_map.namespace_catalog.get_spec("core", "PlaneSegmentation").get_dataset("pixel_mask")

Another approach that may be more robust and which does not require knowledge of the spec, but does require knowledge of the pynwb object attributes:
import pynwb
from pynwb.testing.mock.ophys import mock_PlaneSegmentation

manager = pynwb.get_manager()
ps = mock_PlaneSegmentation()
manager.type_map.get_map(ps).get_attr_spec("pixel_mask")

After our meeting, we agreed that the way forward should be to just build the nwbfile, grab the dtype from the builder, and then figure out a mapping between the builder and the neurodata_objects that they correspond to.
manager = pynwb.get_manager()
builder = manager.build(nwbfile)
# figure out how to map to the neurodata_object in the builder
dtype = neurodata_object_in_builder.dtype


”Daneș” is listed in the drop-down menu

Description:
"Daneș" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Daneș" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Daneș, MUREȘ".


[D3D9]Dragon Nest Water is not displaying correctly

Software information
Dragon Nest
System information

GPU: Nvidia GTX 1050ti
Driver: 456.98
Windows 10
DXVK version: 1.8.1

Apitrace file(s)

https://drive.google.com/file/d/1daCTTV76LHC_Jxf_47L4iSmj4JAlHJo-/view?usp=sharing

Log files

d3d9.log: DragonNest_x64_d3d9.log

[without DXVK]

[with DXVK]

Can you try turning putting d3d9.allowLockFlagReadonly = False into your DXVK config (dxvk.conf in your user directory or right next to the games exe) and report back whether that fixes it?

Can you try turning putting d3d9.allowLockFlagReadonly = False into your DXVK config (dxvk.conf in your user directory or right next to the games exe) and report back whether that fixes it?

It did fixed, Thank you!

Reopening this so we can make it work out of the box.

Should be fixed out of the box now. Pls re-open if the issue comes back.


Final Builds

Is this a planned feature?
Having build orders or a couple of BO with the highest win rate on the app would probably make this app an essential for playing.
Is this something you'd consider doing in the future?


Extension Zigbee2Mqtt

Hello,
At the first time. Thank you for your great work.
I have an issue with "Save custom converter for Z2M". I have reinstalled Z2M and after that the extension doesn't work anymore. I think its because the format.
When I check the file exported :
const zigbeeHerdsmanConverters = require('zigbee-herdsman-converters');

const exposes = zigbeeHerdsmanConverters.exposes;
const ea = exposes.access;
const e = exposes.presets;
const fz = zigbeeHerdsmanConverters.fromZigbeeConverters;
const tz = zigbeeHerdsmanConverters.toZigbeeConverters;

const ptvo_switch = zigbeeHerdsmanConverters.findByDevice({modelID: 'ptvo.switch'});

....

But Z2M needs: (https://www.zigbee2mqtt.io/advanced/more/user_extensions.html#user-extensions-list)
class MyExampleExtension {
    constructor(zigbee, mqtt, state, publishEntityState, eventBus, settings, logger) {
        this.zigbee = zigbee;
        this.mqtt = mqtt;
        this.state = state;
        this.publishEntityState = publishEntityState;
        this.eventBus = eventBus;
        this.settings = settings;
        this.logger = logger;

        logger.info('Loaded  MyExampleExtension');
    }

    /**
     * This method is called by the controller once Zigbee2MQTT has been started.
     */
    start() {
        this.mqtt.publish('example/extension', 'hello from MyExampleExtension');

        // All possible events can be seen here: https://github.com/Koenkk/zigbee2mqtt/blob/dev/lib/eventBus.ts

        // Subscribe to MQTT messages
        this.eventBus.onMQTTMessage(this, (data) => {
            console.log(`Received MQTT message on topic '${data.topic}' with message '${data.message}'`);
        });
    }

    /**
     * Is called once the extension has to stop
     */
    stop() {
        this.eventBus.removeListenersExtension(this);
    }
}

module.exports = MyExampleExtension;

I don't know what can I do to make it works again.
Thank you so much for your help

Just a note for others. The configurator creates a converter, not an extensions


[PE-D] tadd differs from what is expected

In UG, tadd doesn't have the deadline parameter and is probably expected not to as its a todo. But the app requires the users to enter deadlines.

Labels: severity.High type.FunctionalityBug
original: Shruthi0310/ped#8

Fix in #233