Solution: Compability with react-custom-scrollbars

After a long discussion in #143 I also took a shot at this problem and arrived to the following solution:
import React, { Component } from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import { List } from 'react-virtualized';

const SCROLL_DIRECTION_BACKWARD = -1;
const SCROLL_DIRECTION_FORWARD = 1;
const SCROLL_POSITION_CHANGE_REASON_OBSERVED = 'observed';

const listStyle = {
  overflowX: false,
  overflowY: false,
};

export default class SmartList extends Component {
  _getScrollDirection(scrollTop) {
    const {
      scrollTop: oldScrollTop,
      scrollDirectionVertical,
    } = this.List.Grid.state;

    if (scrollTop !== oldScrollTop) {
      return scrollTop > oldScrollTop ?
        SCROLL_DIRECTION_FORWARD :
        SCROLL_DIRECTION_BACKWARD;
    }

    return scrollDirectionVertical;
  }

  handleScroll = ({ target }) => {
    const {
      scrollTop,
      scrollLeft,
    } = target;

    const { Grid: grid } = this.List;

    grid._debounceScrollEnded();

    const scrollDirectionVertical = this._getScrollDirection(scrollTop);
    const totalColumnsWidth = grid._columnSizeAndPositionManager.getTotalSize();
    const totalRowsHeight = grid._rowSizeAndPositionManager.getTotalSize();

    grid.setState({
      isScrolling: true,
      scrollDirectionVertical,
      scrollTop,
      scrollPositionChangeReason: SCROLL_POSITION_CHANGE_REASON_OBSERVED,
    });

    grid._invokeOnScrollMemoizer({ scrollLeft, scrollTop, totalColumnsWidth, totalRowsHeight });
  };

  List = null;

  render() {
    const { width, height } = this.props;

    return (
      <Scrollbars
        autoHide
        style={{ width, height }}
        onScroll={this.handleScroll}
      >
        <List
          {...this.props}
          ref={instance => (this.List = instance)}
          style={listStyle}
        />
      </Scrollbars>
    );
  }
}

You can see that I've pretty much rewritten the _onScroll method in https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/Grid.js#L1110
The simplest way to make this work will be to add a way to bypass the container node check in _onScroll.
@bvaughn what do you think?

I don't understand this comment on #143:

@bvaughn can you maybe add a second parameter to _onScroll that let you pass event from another container?

_onScroll (and _invokeOnScrollMemoizer) are private- not intended to be called by external code.
I guess Grid could be refactored to add a new handleScroll({ scrollLeft, scrollTop }) method that _onScroll calls internally but could also be called externally. This would avoid the node-check.

If you'd like to submit a PR I'll review it.

@bvaughn ah, yes, you're right about that one. brb 👍

@bvaughn I'm a bit concerned that test don't pass even without my changes 🤔

https://circleci.com/gh/bvaughn/react-virtualized

Did you yarn install or npm install ?

This is a fresh system, so I installed latest node an run npm install. And it failed too, yeah. Should I try yarn?

Use yarn install

@bvaughn 👌 Yup, it works now, thanks.

😅  Glad to hear

For anyone who struggles to understand handleScrollEvent and how it is related to the code snippet above, here how it all looks with the new method. @5angel tons of :+1: to you
import React, { Component } from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import { List } from 'react-virtualized';

const listStyle = {
  overflowX: false,
  overflowY: false,
};

export default class SmartList extends Component {
  handleScroll = ({ target }) => {
    const { scrollTop, scrollLeft } = target;

    const { Grid: grid } = this.List;

    grid.handleScrollEvent({ scrollTop, scrollLeft });
  }

  List = null;

  render() {
    const { width, height } = this.props;

    return (
      <Scrollbars
        autoHide
        style={{ width, height }}
        onScroll={this.handleScroll}
      >
        <List
          {...this.props}
          ref={instance => (this.List = instance)}
          style={listStyle}
        />
      </Scrollbars>
    );
  }
}

Hi, may I ask for help with solution from @alexpyzhianov? The method handleScrollEvent when fires and updates Grid component causes lags on scrolling. The method handleScrollEvent was bombed by scrolling events so I tried to reduce them by calling it only for scrolls of certain height. It wasnt so laggy, but still each call cause lag on scroll. Next step I tried was to call it in setTimeout to force run it in a new thread (I was desperated) - same result. Any ideas?

Maybe another solution, it works for me:
import React from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import { List, AutoSizer } from 'react-virtualized';

export class DemoList extends React.Component {
  handleScroll = (e) => {
    this.list.Grid._onScroll(e);
  }
  componentDidMount = () => {
    this.list.Grid._scrollingContainer = this.scroll.view;
  }
  render() {
    return (
        <AutoSizer>
          {({ height, width }) => (
            <Scrollbars ref={node => this.scroll = node} onScroll={this.handleScroll} style={{ height, width }}>
              <List
                className="virtual-list"
                {...this.props}
                ref={node => this.list = node}
                height={height}
              />
            </Scrollbars>
          )}
        </AutoSizer>
    );
  }
}

don't forget to override the style:
.virtual-list {
    overflow: visible !important;
}

@evercool @borovik96 I'm having a similar problem. Trying to use react-custom-scrollbars instead of ScrollSync to avoid lag problem but the onScroll callback is called for API updates as well so on scroll, the natural event fires, which I use to call scrollTop(y) on the partner Scrollbars instance, but then it triggers onScroll on the other instance and fires it back, etc etc. react-custom-scrollbars does not differentiate API events from user events unfortunately... Any ideas?

Can this technique be used with the table and would it let the headers be fixed and only scroll the data?

Maybe another solution, it works for me:
import React from 'react';
import { Scrollbars } from 'react-custom-scrollbars';
import { List, AutoSizer } from 'react-virtualized';

export class DemoList extends React.Component {
  handleScroll = (e) => {
    this.list.Grid._onScroll(e);
  }
  componentDidMount = () => {
    this.list.Grid._scrollingContainer = this.scroll.view;
  }
  render() {
    return (
        <AutoSizer>
          {({ height, width }) => (
            <Scrollbars ref={node => this.scroll = node} onScroll={this.handleScroll} style={{ height, width }}>
              <List
                {...this.props}
                style={{ overflowX: 'visible', overflowY: 'visible' }}
                ref={node => this.list = node}
                height={height}
              />
            </Scrollbars>
          )}
        </AutoSizer>
    );
  }
}

where did you get the height and width values?


HTTPS Support & documentation

Hi
Im really stummped as to how to get HTTPS working with this.
ITs not clear to me how to configure it with certs - and why do you even need certs here?
Why not just have the hostname be a URL with either https or http?
Currently getting these errors:
May 31 11:14:01 whaklljen01p collectd: [2019-05-31 11:14:01] Unable to get data from https://domain:8443/metrics/REDACTED_KEYl/metrics/ for metrics
May 31 11:14:01 whaklljen01p collectd: [2019-05-31 11:14:01] Error making API call (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)>) https://domain:8443/metrics/REDACTED_KEY/healthcheck/
May 31 11:14:01 whaklljen01p collectd: [2019-05-31 11:14:01] Unable to get data from https://domain:8443/metrics/REDACTED_KEY/healthcheck/ for healthcheck
Curl works no problem to the address above.

Hey @mattlawnz
Are you using the standalone collectd plugin or the SignalFx Smart Agent? We encourage users to use the the agent these days.
I believe one of your teammates also opened up a support ticket with our support team regarding the jenkins plugin. I would recommend you do the same, as you will probably get a faster resolution that route.
Anyway, the certs are optional and if not provided it looks like the client will try to connect via HTTP.
https://github.com/signalfx/collectd-jenkins/blob/master/jenkins.py#L161
https://github.com/signalfx/collectd-jenkins/blob/master/urllib_auth_n_ssl_handler.py#L11
What configuration are you passing through to collectd?

Hi
We are using the mart agent at present.
Yes, I see the ticket as well, and we were asked to create a self signed cert to test with.
this is our collectd jenkins config:
LoadPlugin python
<Plugin python>
    ModulePath "/usr/share/collectd/collectd-jenkins"
    Import jenkins
    <Module jenkins>
        Host "jenkins-ibm.domain"
        Port "8443"
        Username "303429"
        APIToken "REDACTED"
        MetricsKey "REDACTED"
        VerifyPeer "false"
        ssl_keyfile "/etc/ssl/certs/jenkins.key"
        ssl_certificate "/etc/ssl/certs/jenkins.crt"
        ssl_ca_certs "/etc/ssl/certs/comodo.ca-bundle"
        Interval 10
    </Module>
</Plugin>

As mentioned before, If we curl the URL then we dont get any issues.
I'll continue to work with support  on this as well.

This should be already resolved in release https://github.com/signalfx/signalfx-agent/releases/tag/v4.11.1
Here a yaml config snippet which worked for me:
   - type: collectd/jenkins       host: jenkins.yourdomain.com       port: 443       metricsKey: metrics       useHTTPS: true       enhancedMetrics: true


Unprivileged ping on Linux

Is there any way to ping with icmp or similar method without being root on Linux (and without setting sysctl)? if it's not already supported, can we add it?

As far as I know, the only way to ping is to use the ping command if you aren't root and don't have the sysctl flag set.

@hankbao
Thanks for reply :)
Eventually I used this crate: pinger
I'm not sure how, but it works without admin rights on macOS / Windows / Linux

Eventually I used this crate: pinger I'm not sure how, but it works without admin rights on macOS / Windows / Linux

They invoke the ping command and parse the output. If that works for you, then it's a good choice.


Fix font awesome css file.

Font awesome is not loaded anymore

this pull request solved.
https://github.com/rebelstackio/yakchat/pull/39

now with parceljs this issue is back only in the backoffice


fix: Updated appsmith_events.md and SECURITY.md

I have updated appsmith_events.md

Hey @cokoghenun  Please merge this 😄

Can't wait to be a part of this community


RD2: TDTM Caching Old List Resulting RD2 Schedule Update Fail

W-10518958
Critical Changes
Fixes the issue during RD2 bulk update with All or None set to false, 1 invalid record will cause other RD schedules to not update.
Changes
Issues Closed
Issue
Community Ideas Delivered
Features Intended for Future Release
Features for Elevate Customers
New Metadata
Deleted Metadata

@jamesbsfdc Hey James, this is the fix for the RD2 Schedules not being updated correctly. We found out that the bug is originating from TDTM and it will occur to any trigger that is comparing new and old records. When performing any DML Update with All or None set to false and one of the record fail to update, the succeed record will get inconsistent result. In RD2 case both Change Log and Schedules will not get created. For Undeliverable Address, the checkbox will not sync up correctly. There are probably more places where the bug exist.
Currently we gate the fix behind a static variable so only RD2 gets the fix. The reason behind it is because the fix will affect everything TDTM. We can remove the gated variable once we are confident the change is good.

Thanks so much for all your work on this team!!

@davidmreed We're looking to merge this for the upcoming patch release, a release WI has also been created!

@lparrott Go ahead and merge at your leisure.


[QUESTION] How to Repair XFS RWX Volumes

Question

Suggest to use https://github.com/longhorn/longhorn/discussions to ask questions.
I know but I suspect it might have something to do with a bug or enhanced error reporting for RWX volumes.

I created RWX volumes and PVCs using XFS through the Longhorn UI.
The pod was successfully created and populated with some data, then I deleted the pod and used
spec:
   securityContext:
      fsGroup: 50000
      fsGroupChangePolicy: "OnRootMismatch"

Then the pod is never ready,and longhorn useing high cpu,  the pod description says:
Events:
  Type     Reason                  Age                   From                     Message
  ----     ------                  ----                  ----                     -------
  Normal   Scheduled               8m55s                 default-scheduler        Successfully assigned /static-temp to server2
  Normal   SuccessfulAttachVolume  8m45s                 attachdetach-controller  AttachVolume.Attach succeeded for volume "web-data"
  Warning  FailedMount             30s (x12 over 8m45s)  kubelet                  MountVolume.MountDevice failed for volume "web-data" : rpc error: code = Aborted desc = volume -web-data share not yet available
  Warning  FailedMount             5s (x4 over 6m53s)    kubelet                  Unable to attach or mount volumes: unmounted volumes=[web-data], unattached volumes=[web-data kube-api-access-g8njc]: timed out waiting for the condition

The logs are perfectly fine in the UI, and the volume status is also completely fine, I'm a bit lost here.
Then kubectl get pods -n longhorn-system -o wide tole me share-manager-web-data                    0/1     Error     0               4s
So I did kubectl logs -n longhorn-system share-manager-web-data and get this:
time="2022-12-09T12:54:28Z" level=info msg="starting RLIMIT_NOFILE rlimit.Cur 1048576, rlimit.Max 1048576"
time="2022-12-09T12:54:28Z" level=info msg="ending RLIMIT_NOFILE rlimit.Cur 1048576, rlimit.Max 1048576"
time="2022-12-09T12:54:28Z" level=debug msg="volume web-data device /dev/longhorn/web-data contains filesystem of format xfs" encrypted=false volume=web-data
E1209 12:54:30.295449       1 mount_linux.go:195] Mount failed: exit status 32
Mounting command: mount
Mounting arguments: -t xfs -o defaults /dev/longhorn/web-data /export/web-data
Output: mount: /export/web-data: cannot mount; probably corrupted filesystem on /dev/longhorn/web-data.

time="2022-12-09T12:54:30Z" level=warning msg="failed to mount volume" encrypted=false error="mount failed: exit status 32\nMounting command: mount\nMounting arguments: -t xfs -o defaults /dev/longhorn/web-data /export/web-data\nOutput: mount: /export/web-data: cannot mount; probably corrupted filesystem on /dev/longhorn/web-data.\n" volume=web-data
W1209 12:54:30.326291       1 mount_helper_common.go:133] Warning: "/export/web-data" is not a mountpoint, deleting
time="2022-12-09T12:54:30Z" level=debug msg="device /dev/mapper/web-data is not an active LUKS device: failed to run cryptsetup args: [status web-data] output:  error: exit status 4"
time="2022-12-09T12:54:30Z" level=fatal msg="Error running start command: mount failed: exit status 32\nMounting command: mount\nMounting arguments: -t xfs -o defaults /dev/longhorn/web-data /export/web-data\nOutput: mount: /export/web-data: cannot mount; probably corrupted filesystem on /dev/longhorn/web-data.\n."

I can see the block device on the host when the volume is mounted to the pod
xfs_info /dev/longhorn/web-data
meta-data=/dev/longhorn/web-data isize=512    agcount=4, agsize=1310720 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=0, rmapbt=0
         =                       reflink=0    bigtime=0 inobtcount=0
data     =                       bsize=4096   blocks=5242880, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

I cannot run xfs_repair :
xfs_repair /dev/longhorn/web-data
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair.  If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.

If I delete the POD, and then try to attach to host, this won't work because RWX volumes cannot cancel maintenance mode, which as far as I know is equivalent to spec.disabledFrontend = true.
So how can I fix this volume, thanks.
Environment

Longhorn version: v1.3.2
Kubernetes version: v1.24.8
Node config

OS type and version: RHEL 8.6
CPU per node: 12
Memory per node: 128G
Disk type: SSD
Network bandwidth and latency between the nodes: 10M

Underlying Infrastructure :Baremetal

If you want to repair RWX volume, you can

detach the volume
change the volume to a RWO volume
Then, fix the volume https://longhorn.io/kb/troubleshooting-volume-filesystem-corruption/#solution

BTW, I'm curious why you volume is corrupted. Any node abnormal shutdown or unstable network?
If it is reproducile, can you provide us the steps to reproduce?

Detach the volume
Change the volume to a RWO volume

I have read the docs, but no UI don't allow me change volume access type.

BTW, I'm curious why you volume is corrupted. Any node abnormal shutdown or unstable network? If it is reproducile, can you provide us the steps to reproduce?

I'm also confused, I'm just testing data import, so I mounted a volume to import some data, created and deleted pods several times. Then I use fsgroup to change user group, it stuck in pod creation.
The nodes and network are completely normal, and the display in the UI is also completely normal.

@InoryS
Thank you for the update. Let's keep the ticket opened. We will update the KB.

The doc has been updated.

Maybe you should state the log issue.


Non-actionable error when version catalog path is not fully specified as a dependency

Current Behavior
The current error is not helpful, in case a non-leaf element of a version catalog accessor is used as a dependency:
Cannot convert the provided notation to an object of type Dependency: org.gradle.accessors.dm.LibrariesForLibs$KotlinxSerializationLibraryAccessors@23b6e20e.
The following types/formats are supported:
  - String or CharSequence values, for example 'org.gradle:gradle-core:1.0'.
  - Maps, for example [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
  - FileCollections, for example files('some.jar', 'someOther.jar').
  - Projects, for example project(':some:project:path').
  - ClassPathNotation, for example gradleApi().

Expected Behavior
The error tells the user that an intermediate accessor was used, and hints that probably a specific dependency should be provided instead.
If there is just a few options, they should be shown to help users to get to the desired goal.
Context (optional)
I was trying to use version catalog accessors, and tried syncing the IDE without realizing I didn't finish navigating the accessor hierarchy.
This is currently very easy to do, because there is no in-IDE feedback -- the expected dependency is of type Object, so anything goes.
Steps to Reproduce
Create a version catalog file in the default location:
[libraries]
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version = "1.6.2" }

Use the library as a dependency, but omit the last accessor:

dependencies {
    implementation(libs.kotlinx.serialization) // missing the last `.json` part
}

Gradle version
8.8
Build scan URL (optional)
No response
Your Environment (optional)
No response

The issue is in the backlog of the relevant team and is prioritized by them.


Fix How Big is Too Big URL

How big is Too Big URL currently is set to
http://http://blogs.technet.com/b/exchange/archive/2015/06/19/ask-the-perf-guy-how-big-is-too-big.aspx
Should be - need to remove one of the 'http://'
http://blogs.technet.com/b/exchange/archive/2015/06/19/ask-the-perf-guy-how-big-is-too-big.aspx

checked in - v2.12


i18n(ja): Update configuration.mdx

Description

Update ja/reference/configuration.mdx.
diff (https://github.com/withastro/starlight/commits/main/docs/src/content/docs/reference/configuration.md?since=2023-09-01 and https://github.com/withastro/starlight/commits/main/docs/src/content/docs/reference/configuration.mdx?since=2023-09-01)

https://github.com/withastro/starlight/pull/447
https://github.com/withastro/starlight/pull/774
https://github.com/withastro/starlight/pull/709
https://github.com/withastro/starlight/pull/881
https://github.com/withastro/starlight/pull/869
https://github.com/withastro/starlight/pull/995
https://github.com/withastro/starlight/pull/742
https://github.com/withastro/starlight/pull/1102
https://github.com/withastro/starlight/pull/1144
https://github.com/withastro/starlight/pull/942

@HiDeoo Thanks for spotting it!


QUESTION: How to create the k8s users and groups to map to?

I'm new to kubernetes. I want to use my IAM roles to authenticate my users to the cluster. I see how to do this in the aws-iam-authenticator config using mapRoles like so:
mapRoles:
- roleARN: <my role ARN>
  username: some_k8s_user
  groups:
  - groups1
  - group2

For now I want users for:

cluster admin
deploy user (write access to a staging namespace)
dev user (read access to staging, write access to dev namespace)

I also know how to create the k8s user, but I don't understand the groups. Why do I need to specify groups if I'm already specifying a user? Also, how do I know what groups there are and which groups I want my users in?
Sorry if this is the wrong forum for this, and thanks for any advice you can offer.

In kubernetes you don't need to create the user/groups.  They are determined by an authenticator and just used by kubernetes, so any user/groups returned by your mappings will be 'created' and kubernetes will use those values.  To give permissions you can use rbac to create a role and then bind that role to a user or groups.  https://kubernetes.io/docs/reference/access-authn-authz/rbac/
The reason you would want to give a user groups is multiple users can be in a group and permissions given to that group instead of redefining permissions for individual users.  You also get some audit-ability in having a person as a user belonging to a group that has staging permissions instead of multiple people sharing a single deploy user.
To do what you want you can:

Create the mappings for IAM -> username/groups
Create roles for staging-writer, staging-reader, dev-writer (examples)
Bind the user or groups to the roles (examples)

So authenticator says who you are and RBAC (an authorizer) says what you are allowed to do.
If you have any other questions let me know.

Thanks for the reply. So I have two AWS roles called k8s-admin and k8s-user that I have in mapRoles like this:
mapRoles:
      - roleARN: arn:aws:iam::000000000000:role/k8s-admin
        username: k8s-admin
        groups:
          - system:masters
    - roleARN: arn:aws:iam::556767347111:role/k8s-user
        username: k8s-user
        groups:
          - system:masters

I have a ClusterRoleBinding for k8s-admin like this:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: k8s-admin
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: User
  name: k8s-admin

and this works fine, I can log in as this user with AWS creds. However, my other AWS role, k8s-user, I want to have more limited permissions. I defined two Roles and two RoleBindings, like this:
# This file defines:
# - staging-read role, allowing read access to the staging namespace
# - dev-all-access role, allowing all access to dev namespace
# - RoleBindings connecting this role to the k8s-user

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: staging-read
  namespace: staging
rules:
- apiGroups: ["", "extensions", "apps"]
  resources: ["*"]
  verbs: ["get", "list", "watch"] # You can also use ["*"]
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: dev-all-access
  namespace: dev
rules:
- apiGroups: ["*"]
  resources: ["*"]
  verbs: ["get", "list", "watch", "create", "update", "delete"] # You can also use ["*"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: k8s-user-staging-read-binding
  namespace: staging
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: staging-read
subjects:
- kind: User
  name: k8s-user
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: k8s-user-dev-all-access-binding
  namespace: dev
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: dev-all-access
subjects:
- kind: User
  name: k8s-user

And I can't even authenticate with it. when I run kubectl version I get this:
error: You must be logged in to the server (the server has asked for the client to provide credentials)

Am I writing my Roles/bindings wrong?
Do I need to restart the aws-iam-authenticator daemonset? If so, how?
And I'd like to set up my own groups, like mycompany:engineering. If I do that, do I define them in my  RoleBinding and then map the IAM role to it in the aws-iam-authenticator config?
Thanks for your help, I'm struggling with this today.

I got it to work! For anyone else finding this issue, here's what I did. In my configmap for aws-iam-authenticator, I set up a role like this:
mapRoles:
- roleARN: arn:aws:iam::000000000000:role/k8s-admin
   username: k8s-admin
   groups:
   - system:masters # this one worked fine
- roleARN: arn:aws:iam::556767347111:role/k8s-user
   username: k8s-user
   groups:
   - mycompany:engineering # this was my new one that I had trouble with

Then, in my RoleBinding, I did this:
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: k8s-user-dev-all-access-binding
  namespace: dev
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: dev-all-access
subjects:
- kind: Group
  name: mycompany:engineering # This is the link between k8s and the IAM role I mapped in the mapRoles bit

The part that made it work was that I did in fact have to rollout the aws-iam-authenticator DaemonSet. I did this by changing the resource requests slightly (20Mi to 21Mi).

@davidham => Just to understand, is the mycompany:engineering is an IAM group in AWS? Where exactly is this defined?

No, it's not an IAM group, it's a Kubernetes group. So the first snippet maps the k8s-user role to the mycompany:engineering group, and the second, the RoleBinding, maps the group to the Kubernetes dev-all-access role.

@davidham thanks, this worked for me. What I still don't understand is why you need to specify a username in the configmap? Seems like the username is irrelevant since it's going to get mapped to the group.

Not sure if it's a required field or not. But you're right in that the main mapping seems to be between the IAM role and the k8s group.

@davidham Thanks for this config, it helped me fix a very silly mistake of mine after hours of debugging :D
Was using kind:ServiceAccount in the rolebinding, instead of kind:Group which I guess for AWS IAM Authenticator is necessary to map the IAM user to a "group" not a service account. Sigh. Heavily undocumented stuff though.

No, it's not an IAM group, it's a Kubernetes group. So the first snippet maps the k8s-user role to the mycompany:engineering group, and the second, the RoleBinding, maps the group to the Kubernetes dev-all-access role.

Hi David, where you create this mycompany:engineering group?

@jansony1 that was the weird part, you don't actually create it anywhere, or I didn't anyway. You just specify it in these two k8s objects. You mapRole to the group name in one place, and then you use the same group name in the RoleBinding under subjects.

There are 2 parts to this; authentication and authorization. The authentication part is managed  by AWS and the authorization part is via an authorization plugin in k8s. When authenticated, the username and group is passed to k8s which is checked against RBAC.
as @davidham already pointed out you specify the group which is passed in the API request (as per aws-auth manifest) and  on successful authentication, it is validated against the RoleBinding.

Just want to leave a note for lost souls - I discovered through the aws-iam-authenticator logs that if your Roles include paths (and those would be visible in the ARN displayed in console - e.g. arn:aws:iam::12345:role/my/path/foo), you do NOT include the path in the configmap mappings. For example, in our aws-iam-authenticator configmap, the roleMapping had - roleARN: arn:aws:iam::12345:role/foo instead of - roleARN: arn:aws:iam::12345:role/my/path/foo

It saved my time after a lot of search in google.
where can i map users and groups in k8s for what we mentioned in aws-auth config map ?

Yes, I agree with @SudoBrendan. I too faced the same issue & once removed the path from the role ARN, it worked.

@davidham thanks, this worked for me. What I still don't understand is why you need to specify a username in the configmap? Seems like the username is irrelevant since it's going to get mapped to the group.

My question is same as kenske's (commented on Jun 5, 2019).
Q1: In the aws-auth configMap in the mapRoles part, is it mandatory to specify both username and groups arguments in one mapRoles entry?
In my project one example of mapRoles entry is like this:
mapRoles:
- rolearn: arn:aws:iam::11223344:role/Developer
  username: Developer
  groups:
  - eks-cluster-read-only-group
  - eks-developer-group

Q2: How to translate username and groups in this case from K8S perspective? So I am logging the AWS IAM Role Developer. This means I get the RBAC permissions assigned to both the K8S username Developer and the K8S groups eks-cluster-read-only-group  and eks-developer-group ?


Update Bazel Version

The latest version of bazel installed from homebrew is 0.9.0. The current maximum version of bazel in check_bazel_version.bzl is 0.8.99. This causes bazel builds to fail for devs using the latest version of bazel.

Seems the fix was merged already; closing.


Rename plugins to mixins

Renames plugins to mixins
Allows mixins to extend mixins
Updates documentation

@jamen LGTM. I'll merge this after #214. If you can come up with a better example to explain mixins with mixins, that would be a plus. 👍 👍 👍

@jamen With #214 out of the way, let's rebase this, improve the example and merge.
One more thing, the syntax in the docs to indicate array types changed from:
something[]
Array<something>

@dodekeract You'll recall https://github.com/hyperapp/hyperapp/issues/194 and https://github.com/hyperapp/hyperapp/issues/189.
I've been pretty much swaying towards mixins since the discussions begun. I think @zaceno's argument is sound too.
There's no need to rename plugins to mixins, but now it's the chance to do it, since 1.0.0 is just around the corner.

Rebased with master and updated the example.  It was hard for me to think of one that fit in a good amount of space, so hopefully this is good enough.  It just relies on the previous Logger example.

I think using a mixin on a mixin is better described as "compose" instead of "extend".  So I changed the description.

Just ran the example through the prettier too.  Was little errors.

@jamen Awesome! Thanks.

@jamen I invited you to join the org 🎉.
BTW I still want to make some tweaks, so I'll publish over the weekend.

@jbucaran Awesome, thanks! :smile_cat:
Yeah feel free.  Happy to wait for a good v1 release.

Nice work @jamen! I really like this change.


Wandb log

The purpose of this PR is to improve the logging of our current system. Previously, we had ROS nodes that stored data and created matplotlib plots when the run ended. However, this was fragile. Sometimes the plots didn't come out right, and we didn't have a nice way to zoom into the data.
Now, I have introduced wandb integration, which allows for interactive plots and easy customization of the visualization. This can significantly improve our ability to reproduce issues and improve our system.
https://wandb.ai/site
Log in with UBC Sailbot gmail (DM in Slack for the credentials).
Will store the data in interactive plots like this.

List out other things to log:

Cost function weights
Obstacle projection distance and extend time
Sailbot max speed, etc.

IDEA: Put all constants into a config.py file that all other code can import. Then all constants will be in one place to put into wandb.

Need to log in with wandb login info on Slack. General code still works without logging in, just will not log data to wandb


Library does not handle subscriptions to data/ChangeEvents

Although, I can subscribe to the generic CDC event data/ChangeEvents, when it receives the notification it's not able to handle it.
I am getting this error:
Connected to Pub/Sub API endpoint api.pubsub.salesforce.com:7443
Subscribe request sent for 100 events from /data/ChangeEvents...
Received 6 events, latest replay ID: 1762404
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: 3 INVALID_ARGUMENT: Schema validation failed. The schema ID can't be blank. rpcId: 08e6cf95-ce52-4389-8e26-e902caee0c17
    at callErrorFromStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client.js:193:76)
    at Object.onReceiveStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
    at Object.onReceiveStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
    at /Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/resolving-call.js:129:78
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client.js:161:32)
    at ServiceClientImpl.<anonymous> (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at file:///Users/aperez/Git%20Projects/current/ARC101/2024/grpc/node_modules/salesforce-pubsub-api-client/dist/client.js:1029:20
    at new Promise (<anonymous>)
    at #fetchEventSchemaFromIdWithClient (file:///Users/aperez/Git%20Projects/current/ARC101/2024/grpc/node_modules/salesforce-pubsub-api-client/dist/client.js:1028:12)
    at Object.callback (file:///Users/aperez/Git%20Projects/current/ARC101/2024/grpc/node_modules/salesforce-pubsub-api-client/dist/client.js:1012:76)
    at Object.onReceiveStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client.js:188:40)
    at Object.onReceiveStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
    at Object.onReceiveStatus (/Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
    at /Users/aperez/Git Projects/current/ARC101/2024/grpc/node_modules/@grpc/grpc-js/build/src/resolving-call.js:129:78 {
  code: 3,
  details: "Schema validation failed. The schema ID can't be blank. rpcId: 08e6cf95-ce52-4389-8e26-e902caee0c17",
  metadata: Metadata {
    internalRepr: Map(6) {
      'content-type' => [ 'application/grpc' ],
      'error-code' => [ 'sfdc.platform.eventbus.grpc.schema.validation.failed' ],
      'rpc-id' => [ '08e6cf95-ce52-4389-8e26-e902caee0c17' ],
      'type' => [ 'GetSchema' ],
      'date' => [ 'Fri, 31 May 2024 12:47:32 GMT' ],
      'x-envoy-upstream-service-time' => [ '62' ]
    },
    options: {}
  }
}

Node.js v20.12.2

I think problem is here
https://github.com/pozil/pub-sub-api-node-client/blob/40de44d379929126d1f621d0a0652201ceeb7a38/src/client.js#L565
because the response  does not have a schemaId.

Hi @eltoroit, thanks for reporting this error. Unfortunately, this is is not something that I can address at the client level as I can't modify the schema parsing logic.
In order to support data/ChangeEvents, we would either need:

a proto file update from the Salesforce product team to make schema ID optional (unlikely)
a schema ID to be sent from the server for those messages.

The reason why there's no schema ID on this channel is that it's a composite source that matches multiple schemas/objects. I had a similar issue with custom message channels: the schema ID wasn't mapped to a schema that we could retrieve because of its composite nature. However, we did have an ID so we could avoid the schema error and parse incoming events with some special logic.
I would open a bug on https://github.com/forcedotcom/pub-sub-api to request data/ChangeEvents schema ID support.


Lookup: add "no match found" behavior

We implemented the "no match found" text with a slot as opposed to a
prop anticipating future requirements to also show markup and/or links
when no results were found.
Bug: T265010

Updated to fix the typo and added Co-authored-by to mention @guergana in the commits.


Turn off cylc variant for ewok-env by default, but make sure we test building cylc regularly

Is your feature request related to a problem? Please describe.
The cylc packages introduce a lot of Python dependencies that make concretization and building difficult and lengthy in the unified environment. Nobody so far is using the spack-stack cylc installation.
Describe the solution you'd like
NRL has an interest in using cylc from spack-stack, but doesn't need the full unified environment. We want to make sure that we continue testing the build of the cylc packages, so maybe it's possible to add it to the neptune environment (as a variant or as default). Or found another way (a chained environment tested in CI?).
Additional context
n/a

PR https://github.com/JCSDA/spack-stack/pull/1191 disables the cylc variant for ewok-env in the unified-dev and skylab-dev templates. That's step 1 - we now need a way to test building cylc regularly elsewhere.

agree.. @fcvdb and I literally just started poking around with cylc today, to just help with other busy work tasks
hopefully can get some basic functional tests ready to help test the elsewhere cylc

Re-opening this since it was NOT resolved. Only the first part was done (turn off cylc variant by default). The second part (make sure we test elsewhere) is still missing.


Date picker format on get

Yes when 2 way binding to a input text box. the date picker format works fine when choosing a date. My date format shows as follow.  03-03-2017. But when retrieving Data json value it does not reformat.
2017-03-02T00:00:00. Is there a way to force it to keep the format when requesting data.?

Duplicate to #143


Make UpsertStyle = Standard the new default

In reference to #296

This was already done, but the Xml API comments weren't updated

Closed by https://github.com/JasperFx/marten/commit/f66afa57bd8d930ccdec8a998eea11b98d39486b


Fix some places where X509_up_ref is used

without error handling.
This takes up the ball from #11278
without trying to solve everything at once.
[extended tests]

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

Please make a different PR for 1.1.1 since this won't cherry-pick.

yeah, already at it.

1.1.1 version in #11852

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Pushed to master as e9e7b5d
Thanks!


Codegen should be resilient to param-type name collisions

If I have a type defined like this in IDL:
namespace Foo
{
  runtimeclass Package
  {
    static void DoSomething(Package Package);
  }
}

The generated consumption code causes a compile error because it looks something like this:
namespace winrt::Foo
{
  inline auto Package::DoSomething(Foo::Package const& Package)
  {
    return impl::call_factory<Package, IPackageStatic>([&](IPackageStatic const& f) { return f.DoSomething(Package); });
  }
}

This causes a compilation error because the template arg to call_factory is not namespace qualified, causing it to be mistaken for the function argument.
The fix is simple: qualify the template type and function params params to call_factory, just like the function params are already qualified in the enclosing method definition.
namespace winrt::Foo
{
  inline auto Package::DoSomething(Foo::Package const& Package)
  {
    return impl::call_factory<Foo::Package, Foo::IPackageStatic>([&](Foo::IPackageStatic const& f) { return f.DoSomething(Package); });
  }
}

I assume you mean:
static void DoSomething(Package Package);

Yes. Updated the issue.

Feel free to reopen if there's interest in exploring this further.


⚠ Samsung has degraded performance

In 0958819, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2176 ms

Resolved: Samsung performance has improved in 1442404.


App Update: Display Dialogue Box on Page View

As a user, I would like to be notified that a robot update is available as soon as I view the Robot Settings page.
Acceptance Criteria

If an app update is available, display the 'Update Available' dialogue box as soon as the user views the App Settings page.

Design

Can use the same dialogue box that we show when a user clicks the 'Update' button:
https://projects.invisionapp.com/d/main#/console/13154070/275374445/preview
^ this is the robot update dialogue box design, but you can just swap 'server' for 'app'

@mcous App update dialogue box user story.


End of sentence detected on abbreviations not starting with a capital letter.

e.g. etc. does not start with a capital. As do viz. and ca. and cf. and probably more.
Fix for #209 (couldn't reopen that one) assumed abbreviations would be with a capital.

Almost impossible to achieve this without confusing it with the end of sentence. However, when using an abbreviation, a normal space should be used etc.\  which doesn't trigger the end of sentence inspection.

Hm good point, I didn't know that but it's true.


fix: centos periodic

What this PR does / why we need it:
Fixes the problem with defaulting to ubuntu, which in turn prevents OS
autodetection (works only if the config variable is empty).
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
A bunch of centos periodic jobs has failed.
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

fix: Introduce dedicated terraform statis_os

/assign @xmudrii

/retest

/retest


how can fix the cors

i am sorry for my poor english
how can fix the cors?

Hi @luckyxiaomo
Issues pertaining to CORS can be resolved by creating a corresponding OPTIONS route that responds with an HTTP 200 for routes experiencing CORS related issues. Kindly check here to view an example.

thanks，but i selected the ktor ，because of its well-documented


Cannot Delete a Page

I wasn't able to delete page after creating it. I checked it on Chrome(Version 78.0.3904.70 - 64 bit) and Firefox (Version 70.0 - 64 bit).

Did you get a console error or something that maybe can help with troubleshooting this issue?

Did you get a console error or something that maybe can help with troubleshooting this issue?

I have the same error and see this in my console:

Deleting seems to be working fine. Seems like there's an error coming from the server? Check your logs and open a new issue in case you have an exception we can look at.


Add option to enable client authentication

Add option to make use of TLS client authentication using ACM certificates (certificate_authority_arns).

@angelabad if you're set on having the code look at whether variables are set in this fashion let me know and I'll amend the PR.
for_each = var.s3_logs_bucket != "" ? ["true"] : []

for_each = var.s3_logs_bucket != "" ? ["true"] : []

Hi, @ldejager, it sound good to me, you can use this approach to certificate arns.
Thanks!

@angelabad the changes have been made as requested.

@angelabad can you please review and provide feedback.

This is closed in this pr: https://github.com/angelabad/terraform-aws-msk-cluster/pull/21
Thanks


CTRL+C to interrupt LLDB's inferior process kills LLDB, too

When running a program on OS X with obi go --debug=lldb, pressing CTRL+C in the terminal to interrupt the inferior process and bring up the LLDB prompt doesn't work. Instead, CTRL+C seems to interrupt the inferior process and then terminates LLDB.
I've attached a small project generated with the cpp template. To reproduce the issue, run obi go --debug=lldb and interrupt with CTRL+C. The expected behavior is that the inferior process is interrupted and LLDB's prompt appears. The actual behavior is that LLDB is terminated.
The log looks something like this:
[localhost] Executing task 'launch_task'
[localhost] local:  lldb -- build/testo
(lldb) target create "build/testo"
Current executable set to 'build/testo' (x86_64).
(lldb) run
Process 23841 launched: '/Users/tjakubowski/tmp/testo/build/testo' (x86_64)
!!! Parallel execution exception under host 'localhost':
Process localhost:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/Cellar/obi/HEAD/libexec/vendor/lib/python2.7/site-packages/fabric/tasks.py", line 242, in inner
    submit(task.run(*args, **kwargs))
  File "/usr/local/Cellar/obi/HEAD/libexec/vendor/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run
    return self.wrapped(*args, **kwargs)
  File "/usr/local/Cellar/obi/HEAD/libexec/vendor/lib/python2.7/site-packages/fabric/decorators.py", line 181, in inner
    return func(*args, **kwargs)
  File "/usr/local/Cellar/obi/HEAD/libexec/lib/python2.7/site-packages/obi/task/task.py", line 206, in launch_task
    env.background_run(launch_cmd)
  File "/usr/local/Cellar/obi/HEAD/libexec/vendor/lib/python2.7/site-packages/fabric/operations.py", line 1185, in local
    (stdout, stderr) = p.communicate()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 796, in communicate
    self.wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1384, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt
Process 23841 stopped
* thread #1: tid = 0x10a4f01, 0x00007fff90e26db6 libsystem_kernel.dylib`__psynch_cvwait + 10, stop reason = signal SIGSTOP
    frame #0: 0x00007fff90e26db6 libsystem_kernel.dylib`__psynch_cvwait + 10
libsystem_kernel.dylib`__psynch_cvwait:
->  0x7fff90e26db6 <+10>: jae    0x7fff90e26dc0            ; <+20>
    0x7fff90e26db8 <+12>: movq   %rax, %rdi
    0x7fff90e26dbb <+15>: jmp    0x7fff90e217cd            ; cerror_nocancel
    0x7fff90e26dc0 <+20>: retq
(lldb) %                                                                        tjakubowski@

testo.tar.gz

I'm able to reproduce the issue, but I thought at one point in this worked as expected.

Idea: for local runs, obi should replace its process rather than forking + then execing. For local runs, by the time the application has started obi is done doing anything useful anyway, so it might as well let itself be replaced.


[Linguistics] Add meaning attribute (to words)

Just add another attribute (Concept) to words.

Interesting reading about NLU:
https://thegradient.pub/machine-learning-wont-solve-the-natural-language-understanding-challenge/

Added to concept, can be changed in the future


Something is cached for too long on the Info page

Upgraded from 0.7.x to 0.8.0
Restarted the uchiwa service on the server.
Logged into the uchiwa site again. On the Info page, the version displayed was still 0.7.x.
I've tried to logout / log back in, stop the service / start the service, close browser tab / reopen and relogin, etc. Nothing helped.
When I finally did a simple refresh in the browser, then the correct version 0.8.0 was shown in the browser. Sounds like something is allowed to be cached for too long in the browser.

This behaviour is expected (I don't know however the expected behaviour of your browser once it's closed/reopen) in order to avoid downloading the same static content and improve the user experience.
I've added some documentation about the upgrade process here: http://docs.uchiwa.io/en/latest/upgrading/

Also, the "All Datacenters" drop down menu on the front page was disabled for a while after the upgrade, and then it magically started working again. I assume this was also something cached for too long.
You'll have to strike a balance somewhere. The user experience is also negatively impacted by things not working properly.

I can totally understand, that's why I added some additional instructions on the documentation regarding the upgrade process.
I would gladly accept any PR that could prevent the need to perform a full page reload after an upgrade.


Task :spotlessJava FAILED when minimizing many different methods

I was running ASHE's RepositoryAutomationEngine, which minimizes many different methods within a set of given repositories. For many methods (it is very unlikely to check all in a dryrun when we let it run for 10+ minutes), we were experiencing the following error from Specimin:
14:14:47.642 [main] INFO  edu.njit.jerse.automation.AsheAutomation - Fully qualified method reference: org.checkerframework.dataflow.cfg.node.VariableDeclarationNode#equals(Object)
Task :spotlessJava FAILED
Step 'google-java-format' found problem in 'src/main/java/org/checkerframework/specimin/UnsolvedSymbolVisitor.java':
'com.sun.tools.javac.tree.JCTree com.sun.tools.javac.tree.JCTree$JCImport.getQualifiedIdentifier()'
java.lang.NoSuchMethodError: 'com.sun.tools.javac.tree.JCTree com.sun.tools.javac.tree.JCTree$JCImport.getQualifiedIdentifier()'
at com.google.googlejavaformat.java.RemoveUnusedImports.getSimpleName(RemoveUnusedImports.java:296)
at com.google.googlejavaformat.java.RemoveUnusedImports.buildReplacements(RemoveUnusedImports.java:278)
at com.google.googlejavaformat.java.RemoveUnusedImports.removeUnusedImports(RemoveUnusedImports.java:227)
at com.diffplug.spotless.glue.java.GoogleJavaFormatFormatterFunc.apply(GoogleJavaFormatFormatterFunc.java:58)
at com.diffplug.spotless.FormatterFunc.apply(FormatterFunc.java:32)
at com.diffplug.spotless.FormatterStepImpl$Standard.format(FormatterStepImpl.java:82)
at com.diffplug.spotless.FormatterStep$Strict.format(FormatterStep.java:88)
at com.diffplug.spotless.Formatter.compute(Formatter.java:246)
at com.diffplug.spotless.PaddedCell.calculateDirtyState(PaddedCell.java:203)
at com.diffplug.spotless.PaddedCell.calculateDirtyState(PaddedCell.java:190)
at com.diffplug.gradle.spotless.SpotlessTaskImpl.processInputFile(SpotlessTaskImpl.java:105)
at com.diffplug.gradle.spotless.SpotlessTaskImpl.performAction(SpotlessTaskImpl.java:89)
It appears during minimization, Specimin is expecting the proper Spotless formatting. Note that I was using the most current main branch.
If you experience the same issue when minimizing the given example, please mention below! Again, I was experiencing this on multiple different methods.

It appears during minimization, Specimin is expecting the proper Spotless formatting. Note that I was using the most current main branch.

This isn't quite the case: Specimin is expecting that Specimin itself is correctly formatted: the target class on which Spotless is failing is UnsolvedSymbolVisitor.java, which is one of Specimin's internal components.
There are at least two things wrong with this:

running Specimin should not trigger a run of Specimin's internal auto-formatter.
even if for some reason the auto-formatter were to run, it shouldn't fail.

The error message gives a clue about the second issue:
java.lang.NoSuchMethodError: 'com.sun.tools.javac.tree.JCTree com.sun.tools.javac.tree.JCTree$JCImport.getQualifiedIdentifier()'

This looks to me like a Java version problem; the error message led me to https://github.com/diffplug/spotless/issues/1819, which says that Spotless is using a method that was removed in Java 21. That issue is now closed, so we might be able to fix problem 2 by updating the version of the Spotless plugin that we're using. Alternatively, you could work around the problem in the short term by running with an older version of Java.

Fixed by #115.


hard drive labeled as unknown

My hard drive is labeled as unknown in the disk management program, what do I do?

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

ID: aed88c8d-c15e-9dad-4cf4-9cc92e625f41
Version Independent ID: 3ba55b69-bea2-a674-d08f-e93a03de1ffa
Content: Initialize new disks
Content Source: WindowsServerDocs/storage/disk-management/initialize-new-disks.md
Product: windows-server-threshold
Technology: storage
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

Thanks for your dedication to our documentation. If we have been unable to review your issue in a timely manner, we sincerely apologize for the delayed response. We have captured the informtion you have provided for review. We are closing this issue for now, but if you feel that it's still a concern, please respond and let us know. If you determine another possible update to our documentation, please don't hesitate to reach out again. #please-close


[Release branch.go1.16] runtime/mheap.go add 64 bytes padding to avoid cache line conflict

For #47831
add 64 bytes padding to avoid cache line conflict

@googlebot I signed it!
From: google-cla[bot] @.>
Sent: Monday, September 6, 2021 2:18 PM
To: golang/go @.>
Cc: Liu, Heyuan @.>; Author @.>
Subject: Re: [golang/go] [Release branch.go1.16] runtime/mheap.go add 64 bytes padding to avoid cache line conflict (#48208)
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.

What to do if you already signed the CLA
Individual signers

It's possible we don't have your GitHub username or you're using a different email address on your commit. Check your existing CLA datahttps://cla.developers.google.com/clas and verify that your email is set on your git commitshttps://help.github.com/articles/setting-your-email-in-git/.

Corporate signers

Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the Google project maintainer to go/cla#troubleshoothttp://go/cla#troubleshoot (Public versionhttps://opensource.google/docs/cla/#troubleshoot).
The email used to register you as an authorized contributor must be the email used for the Git commit. Check your existing CLA datahttps://cla.developers.google.com/clas and verify that your email is set on your git commitshttps://help.github.com/articles/setting-your-email-in-git/.
The email used to register you as an authorized contributor must also be attached to your GitHub accounthttps://github.com/settings/emails.

ℹ Googlers: Go herehttps://goto.google.com/prinfo/https%3A%2F%2Fgithub.com%2Fgolang%2Fgo%2Fpull%2F48208 for more info.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/golang/go/pull/48208#issuecomment-913374492, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVP5MOWQ7N2GSR67JR6ZSODUARMI5ANCNFSM5DPXEV3Q.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Add support for new 'TransactionOptions' field

Overview
Datastore has introduced two transaction options that can be passed when creating a transaction (BeginTransaction RPC):

A transaction can be declared read-only. A read-only transaction cannot modify data.
A read-write transaction can provide the ID of a previous transaction.

Rationale
Transaction Mode
Transactions can optionally be created in read-only or read-write mode. Specifying the mode of the transaction will allow for Datastore to perform future performance optimizations in upcoming changes.
A read-write transaction can read and modify entities. Read-write transactions that operate on the same data can conflict and suffer from reduced throughput due to contention.
A read-only transaction cannot modify entities; in return they do not contend with other read-write or read-only transactions. Using a read-only transaction for transactions that only read data will potentially improve throughput.
Transaction Retry
Read-write transactions may fail due to contention. A read-write transaction can be retried by specifying previous_transaction when creating the new transaction.
Specifying previous_transaction provides more information that can be used to improve throughput. In particular, if transactional operations A and B conflict, specifying the previous_transaction can help to prevent livelock.
Requirements
Users should be able to specify that a transaction is read-only when they create it.
When retrying a read-write transaction, the previous transaction’s ID should be included in the request.
If your client has a RunInTransaction method that takes a function and automatically creates and retries the transaction, then this method should handle setting the previous transaction ID. There is no need to expose the option to the user.
If your client requires that users retry themselves, then expose the option.
Suggested Test Plan
Unit Tests

When the read-only option is passed, the BeginTransactionRequest is
project_id:"project" transaction_options:<read_only:<> >
When the previous transaction ID “tid” is passed, the BeginTransactionRequest is
project_id:"project"
transaction_options:<read_write:<previous_transaction:"tid" > >
If you have a `RunInTransaction function, simulate a retryable failure to verify that previous_transaction is passed on retries.

Integration Tests

A read-only transaction can perform reads.
A read-only transaction fails if it attempts to write. This test currently fails against the production endpoint.

Resources

Public protos
Go implementation
C# implementation

/cc @jba


⚠ Secret Website 2 has degraded performance

In 42f294b, Secret Website 2 ($SECRET_WEBSITE_2) experienced degraded performance:

HTTP code: 200
Response time: 3916 ms

Resolved: Secret Website 2 performance has improved in 8514de2.


[1.21.1] Burn power doesn't work when a sub-power inside a multiple power type

The burn power functions correctly when used individually, but when used as a sub-power of the multiple power type it does not function. The power is recognized as displays in the powers list but does not function.

I can't reproduce this issue in Origins 1.13.0-alpha.9. Can you send your entire output log?

For the output log are you referencing latest.log? Here it is; I tried a couple more attempts after dumbing it down even further to try anything. For me I seem to not be able to get any multiple power itself to work like in Example 3.
I'm not sure what I am doing wrong but if it an issue on my side I apologize for that. I also tried using your example power and nothing happened for me. I am going to reinstall the mod as I'm not sure what's the disconnect.
Here are some of the things I've tried:

Example 1
{
	"type": "origins:multiple",
	"burn": {
		"type": "origins:burn",
		"interval": 20,
		"burn_duration": 6
	},
	"fire": {
		"type": "origins:self_glow",
		"condition": {
			"type": "origins:on_fire"
		}
	}
}

Example 2
{
	"type": "origins:multiple",
	"burn": {
		"condition": {
			"type": "origins:all_of",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:invisible",
					"inverted": true
				}
			]
		},
		"type": "origins:burn",
		"interval": 20,
		"burn_duration": 6
	},
	"effects": {
		"condition": {
			"type": "origins:all_of",
			"conditions": [
				{
					"type": "origins:exposed_to_sun"
				},
				{
					"type": "origins:invisible",
					"inverted": true
				}
			]
		},
		"type": "origins:stacking_status_effect",
		"min_stacks": 0,
		"max_stacks": 361,
		"duration_per_stack": 20,
		"tick_rate": 20,
		"effects": [
			{
				"id": "minecraft:mining_fatigue",
				"ambient": true,
				"show_particles": false
			},
			{
				"id": "minecraft:weakness",
				"ambient": true,
				"show_particles": false
			}
		]
	}
}

Example 3
{
	"type": "origins:multiple",
	"1": {
		"type": "origins:self_glow",
		"condition": {
			"type": "origins:on_fire"
		}
	},
	"2": {
		"type": "origins:disable_regen"
	}
}

If you need me to try or send anything else over just say the word.


 With #6956 merged we can now clean this up
Testing Instructions

Closes TURBO-2190

I have no review. Just saying that we (us, the users) appreciate this.


Text Realignment

Overview
This issue serves as an addendum to recently closed issue #949. The newly added text should be realigned to look more visually appealing.
Action Items

[ ] Discuss with UI/UX regarding text alignment (potentially font size edits as well if it works better for the alignment)

Resources/Instructions

Here are some annotations for style reformatting.

SM

MD

LG

See #1034 for long term perspective.

Thursday, November 11th, 2021 Update:
Progress: I moved the instructions heading into the blue header. I also was able to add a breakpoint styling for small
screens. Some styles may need to be modified to align the instructions below the blue header.
Blockers: None at the moment
Availability: I'll have a little time to work on this issue this Sunday
ETA: This issue should be resolved within a week

Monday, November 15th, 2021 Update:
Progress: No progress was made over the weekend; had unexpected things come up.
Blockers: None at the moment
Availability: I'll have some time Tuesday and Wednesday to work on this issue
ETA: Still striving for this Thursday to complete


ignore when required variable was already added to selection

Added new test where the User from Accounts can have a ProductConfiguration and ProductBookmark
matched by the username field instead of id. The bug fix is to ignore if a required variable was already added.
Closes #6993  (in this specific format)

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

Thanks for creating this PR ... I will soon have a look.

I will get this one in next week .... we have one massive PR that we need to merge first.


Lang: write discriminator at beginning of ix

closes https://github.com/project-serum/anchor/issues/1703

ready for review but still a Draft PR because docs need to be updated after review

ready for review but still a Draft PR because docs need to be updated after review


Question regarding the validation process to pick the best model

Hi, I find that the validation is done every epoch on the test set with only the current novel class annotations. However, it seems like the model will always be saved regardless of whether the validation mIoU gets better or not. That makes the validation totally in vain. Do you notice this problem? I think it was a legacy issue from MiB's code. Looking forward to your reply. Thanks.

I don't do early stopping.
You can use this option https://github.com/arthurdouillard/CVPR2021_PLOP/blob/main/argparser.py#L146 to have on validation and find the best hyperparameters.


4.0-milestone-2:  Dependent module resources not included in the processor classpath

The java plugin in gradle-4.0-milestone-2 does not include the dependent module resources in the processor classpath. As a result, the compiler can't find annotation processors declared by using a META-INF/services file in the resources of the annotation processor jar file (for ServiceLoader).
This used to work in 3.5.
Expected Behavior
The processor classpath should include the resources of all dependent modules.
Current Behavior
3.5 used to include the dependent module's jar file in the processor classpath. 4.0-milestone-2 seems to include the classes directory instead, which does not contain resources.
Context
Declaring annotation processors so that the compiler can load them using ServiceLoader is a convenient and well documented technique. If unavailable, I'd have to declare all my annotation processors explicitly, even if they don't require any options.
Steps to Reproduce (for bugs)
In my case, I have an autoservice module with an annotation processor declared under META-INF/services. In 3.5, the processor classpath contains auto-service/build/libs/auto-service.jar, but in 4.0-milestone-2 it's auto-service/build/classes/java/main.
Your Environment
Gradle 4.0-milestone-2

@cesar1000 thanks for the report. I need a bit more information. From what I read, I suppose that you have a dependent project which is an annotation processor. So, somewhere, you have the annotation processor path which has a dependency like project(':my-annotation-processor'). If, for that, you are using the compile configuration:
compile project(':my-annotation-processor')

then you are effectively adding the annotation processor on the compile classpath, which will end up in the classes directory being added, and will explain what you see. It would be better to separate your annotation processor from the compile classpath, for example by defining an apt configuration:
configurations {
   apt
}
dependencies {
   apt project(':my-annotation-processor')
}

then wire the annotation processor path:
compileJava {
    options.annotationProcessorPath = configurations.apt
}

let me know if it helps.

then you are effectively adding the annotation processor on the compile classpath, which will end up in the classes directory being added, and will explain what you see.

That should only happen if the project providing the processor uses the java-library plugin. If it uses the java plugin, then we've broken something.
Nevertheless Cédric is right that annotation processors are better modeled explicitly, because they are quite different from normal compile dependencies and need a runtime to work.

@cesar1000 would you mind creating a small reproducible example on GitHub? That would really help us resolve this issue.

I'm using the java plugin and I'm adding my annotation processors using compileOnly, which is indeed adding it to both the processor path and the class path. I will add an annotationProcessor configuration (similar to the Android plugin) to make annotation processors explicit when using the java plugin (why not making that available in the plugin by default, by the way?)
However, it looks like there's a regression in 4.0. When running on 3.5, this is what I get in the command line:
-processorpath
/Users/cpuerta/workspace/twitter-android/lib/core/util/compiler/auto-service/build/libs/auto-service.jar
-classpath
/Users/cpuerta/workspace/twitter-android/lib/core/util/compiler/auto-service/build/libs/auto-service.jar

This is what I get, however, when running on 4.0-milestone-2:
-processorpath
/Users/cpuerta/workspace/twitter-android/lib/core/util/compiler/auto-service/build/classes/java/main
-classpath
/Users/cpuerta/workspace/twitter-android/lib/core/util/compiler/auto-service/build/classes/java/main

The jar files contain the resources, but the classes directory does not. Let me try to repro in a small project.

why not making that available in the plugin by default, by the way?

We will, just need to fit this in with all the other priorities :)
Is the lib/core/util/compiler/auto-service also using the java plugin?

Let me try to repro in a small project.

That would be great.

Ah, my bad: of course, I had switched to the java-library plugin, which publishes class directories instead of jar files. Using the java plugin for my annotation processors does the right thing: the jar file containing the resources is published and downstream modules can use the resources to load the annotation processor. This is independent of whether I use a new annotationProcessor configuration (which I will do!).
This looks like a bug though, since the clients of the annotation processor module should be able to see the resources without regard to whether it's using the java or java-library module. Is this behavior intended?

It's not a bug, it works as expected. A Java Library doesn't "publish" class directories, it has several variants, which are selected based on the consumer configuration. The "compile classpath" configuration wants to use the "classes directory", so Java Library gives it the class directory.
If you use a different configuration (apt, for example), then if you say nothing it will choose the default configuration, which should be the jar.

Ah, sounds good. Let me try that.

Also to add some more context to @melix answer: If you don't explicitly specify your annotationProcessorPath even though you have processors, we shut off compile avoidance, which will make your build slower. So having a dedicated configuration for processors and setting the annotationProcessorPath is very important for compile speed.

Closing as working as designed. The annotation processing concerns are explained in the user guide.

Thanks for the tip, @oehme!
My concern with the "compile classpath" configuration in java-library is that it's not obvious that it doesn't bring resources into the classpath. The use of a service loader is not limited to annotation processors, and it seems to me that regular projects that publish services for the service loader won't be able to use java-library. Is that the case, or is there a usage pattern we should follow in that case?

@cesar1000 Compilation should never depend on resources, the compiler only reads .class files.

The use of a service loader is not limited to annotation processors, and it seems to me that regular projects that publish services for the service loader won't be able to use java-library. Is that the case, or is there a usage pattern we should follow in that case?

I think you're thinking of runtime usage here, in which case you should use runtimeClasspath, which will contain the jar.

Yeah, makes sense! Thanks for all the answers. I switched all our annotation processors to a new configuration, as suggested.


Design a webpage to show sticky notes using CSS

@prasad353-dev  Can u assign me this issue

i want to work on this


Tuple unpacking

We need a way to unpack tuples and add them to the stack. The following is the proposed syntax:
( 1 2 3 ) unpack

( 1 2 3 ) :tpl var
tpl unpack

Both of the examples above would give the following result. The values 1, 2 and 3 would be added to the stack — in that order.

this can now be done with the case function like
(1 2 3) { ((. . .)) {} } case  # 1 2 3 is now on the stack, with 1 on top.
(1 2 3) { ((. .. ...)) {} } case  # 3 2 1 is now on the stack, with 3 on top.

there may still be value in having this as a function though.

That's very nice to know. I think we should still make the unpack command, since it looks cleaner in some sense.


Metric explaination

For each task in leaderboard there is only one overview score, while the generated result file contains dozens indicators such as:
mrr_at_1000
ndcg_at_1000
map_at_1000
precision_at_1000
recall_at_1000

how's the overview score calculated?
mrr_at_1000, mrr_at_500 - what's the last number stands for?

Please kindly help

overview score is an average of the individual task leaderboard scores
the number refers to how many top documents are considered for scoring

overview score is an average of the individual task leaderboard scores the number refers to how many top documents are considered for scoring

the number refers to how many top documents are considered for scoring - I'm trying to understand, are you saying that number is actually the top-k param in similarity search? so the bigger the number the better the hit rate?
For overview score, it's just one figure, but in the evaluation result file that are multiple indicators and each indicator concat with different numbers, how to calculate the overview score when I'm using my own dataset?

@imenelydiaker Thanks for such a detail reply, much appreciate.

@Jeru2023 seems like this is resolved so will close it.


proxy: Update trimTrailingEOL function to handle carriage return (\r)

It will fix the proxy parse issue in case user update the cert on windows and add blank line at the end of certificate. Unit test is also added for same.
fixes: #3785

should handle \r case also and replace it \n because that is again going to fail.

I was only trying to describe the situation  before your changes, imo it would be useful to have in the commit log.
I agree with the way you fixed it, fix trimEOL to fully remove EOL (ie both \r\n and \n). With trimEOL fixed, the regexp will also behave as expected. Without the fix, the string does not match the regexp expectations, and this causes the reported bug.

Not sure what happened, but the code was initially correct in https://github.com/crc-org/crc/pull/1443, and when moving it to a helper function, \r was lost :-/
After re-reading https://github.com/crc-org/crc/pull/1443#discussion_r468640042 I'm still unsure if removing the EOL at the end of the file is required, or if it's done because it's nicer?

Let's make use of the recently added pkg/strings package and add a shared helper. It's trivial, but we got it wrong once, better to implement it once and for all.

Added another commit to do that.

/lgtm
/approve


Create a testing contract for easier "full stack" testing

Closes #1401

I think we need a better name. Having a tests contract in a test as part of the tests is not super helpful. I don't have great ideas. We can go for any fantasy name or just "stateless" or "pure".

...would cyberpunk be alright here? I like cyberpunk.

...would cyberpunk be alright here? I like cyberpunk.

Absolutely


Issues Recreating Paper Performance

Problem:
The model is not reaching an MSE loss of 1.16 as described in the paper. The closest it has gotten is 2. Some Optuna tuned models reached 1.16 for the validation data, but the test loss was around 6 which implies some kind of issue with the data splits.
What am I trying:

When doing the data splits, I took the test set from the end of the dataset which means it might not have the same composition as the randomly created training and validation splits. As a result, I'm making the test set also randomized. This is also what the code from the paper does, randomly generating validation and training splits, and using the validation split as their testing set.
Looked at the model structure, and saw that they were using Global Max Pooling as well several Linear Layers after the encoders, so I added those in
Currently training a model with the best model parameters observed from Optuna hyperparameter tuning with these changes for 100 epochs.

Using Global Max Pooling and Linear layers after the encoders fixed the issues with model loss. There were a couple bugs with the split generation which were also fixed. Currently doing repeat trials to get a mean and standard deviation.


Inconsistent property names in 2.0 dev schema for headline vs body

For body we have
            "properties": {
                "name": {
                    "title": "Name",
                    "description": "The name identifying this body",
                    "type": "string"
                },
                "value": {
                    "title": "Value",
                    "description": "The body text identified with the above name.",
                    "type": "string"
                }
            }

but for headline we have
           "properties": {
                "name": {
                    "title": "Name",
                    "description": "The name identifying this headline",
                    "type": "string"
                },
                "text": {
                    "title": "Value",
                    "description": "The headline identified with the above name.",
                    "type": "string"
                }
            }

ie "value" vs "text". Shouldn't they be consistently named?

Maybe not?
The headline is a textline as a string.
The body can be anything. It can contain markup etc. We might still decide on the same property name. But I think the content can be very different.

Well, the description says "body text"... :-)

So if we change that to body content? The main issue, I think, is if we feel like indicating there is a difference, or at least a potential difference in format. Or if it is better to use the same property name. But if so I would use value for headline too.

My 5ct on that: ninjs 1.3 defines ^body_... as "The textual content of the news object." The text may be formatted differently (plain, HTML, XML).
So what's the goal for "body" in ninjs 2.0: to stick to text content in different formats or to open it to any kind of content, including images, video, audio - but that's covered by the renditions property.


Initial implementation of Tunernome

This is pretty much just the version of the tuner that was on the 2019 Swadge, but...

The LEDs don't flash a color for 1 second when changing settings. The idea is this will be shown on the screen instead.
Both up and down buttons work to cycle settings
Left exits to the menu
Right switches between tuner and metronome
Both submodes show tiny <EXIT             OTHER SUBMODE NAME > text at the bottom of the screen
There's a RADICAL menu image

Metronome is partially implemented too

The metronome bar draws correctly
Up and down buttons change BPS
BPS is printed to the screen
the LEDs flash as long as you stay close to 60 bpm

In addition, I unborkt the button definitions and swadge version! DDR has been updated with accurate button definitions too.
I also moved DDR in the menu so that the games are together, and the utilities/party tricks are together (colorchord, tunernome)

Menu image confirmed RADICAL.

Me likey. Holding the button to fast-change the BPM feels good. The pause button is nice too. The comments you leave when closing a bracket make it super readable. The tuner still needs some fleshing out, but I'm pulling the changes so far. Cheers!


Make custom dictionary an optional argument

Cleaner than having it defined in the body of the function.

Ok, the issue is the custom dictionary gets used pretty far down the line when you get the word stresses, so you can set the argument there, but then that's of limited use since you'd almost never interact with the module at that level.
Probably makes more sense to leave this until I roll all this up into a class?


How can I disable this plugin?

Since this plugin is unstable, I would like to be able to switch from GPU to CPU. Is it really possible to do this and how?

os.environ['DML_VISIBLE_DEVICES'] = "-1"


Azure Front Door - Origin Header - Case Sensitivity

Report
When the origin-header is for example: foo.Bar.com , instead of foo.bar.com in Azure Front Door (probably any other CDN aswell) you get the following exception:
2024-07-04T08:54:28Z    ERROR   LoggingMiddleware.RoutingMiddleware.StaticHandler       Not Found       {"routingKey": "//foo.Bar.com", "namespacedNameError": "PANIC=value method k8s.io/apimachinery/pkg/types.NamespacedName.MarshalLog called using nil *NamespacedName pointer", "stream": "<nil>"}
github.com/kedacore/http-add-on/interceptor/handler.(*Static).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/handler/static.go:36
github.com/kedacore/http-add-on/interceptor/middleware.(*Routing).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/middleware/routing.go:49
github.com/kedacore/http-add-on/interceptor/middleware.(*Logging).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/middleware/logging.go:42
github.com/kedacore/http-add-on/interceptor/middleware.(*Metrics).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/middleware/metrics.go:24
net/http.serverHandler.ServeHTTP
        net/http/server.go:3137
net/http.(*conn).serve
        net/http/server.go:2039

Expected Behavior
Request should be routed in a case insensitive way since domains are not case sensitive
Actual Behavior
Request route is case sensitive
Steps to Reproduce the Problem

Create an nginx ingress with httpscaleobject for foo.bar.com
Attempt to access the domain via foo.Bar.com (or set origin headers to foo.Bar.com)
404 not found with error in proxy

Logs from KEDA HTTP operator
2024-07-04T08:32:31Z    ERROR   LoggingMiddleware.RoutingMiddleware.StaticHandler       Not Found       {"routingKey": "//foo.Bar.com/health/", "namespacedNameError": "PANIC=value method k8s.io/apimachinery/pkg/types.NamespacedName.MarshalLog called using nil *NamespacedName pointer", "stream": "<nil>"}
github.com/kedacore/http-add-on/interceptor/handler.(*Static).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/handler/static.go:36
github.com/kedacore/http-add-on/interceptor/middleware.(*Routing).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/middleware/routing.go:49
github.com/kedacore/http-add-on/interceptor/middleware.(*Logging).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/middleware/logging.go:42
github.com/kedacore/http-add-on/interceptor/middleware.(*Metrics).ServeHTTP
        github.com/kedacore/http-add-on/interceptor/middleware/metrics.go:24
net/http.serverHandler.ServeHTTP
        net/http/server.go:3137
net/http.(*conn).serve
        net/http/server.go:2039

HTTP Add-on Version
0.8.0
Kubernetes Version
1.29
Platform
Microsoft Azure
Anything else?
No response

Hello,
The headers keys are case-insensitive by RFC, but the values must be treated as case-sensitive, so the header should be right. Are you setting the header origin or host? The interceptor routes based on host header (not origin), so if you don't provide host, the error is normal

@JorTurFer  Thanks for getting back to me , this seemed to work only after changing the value of: Origin host header on the azure portal , this seems to also populate the host header.  I think this can be closed since its the expected behavior. Let me know if you'd like me to document the entire FrontDoor <-> Aks setup for the scaler for future reference.

Let me know if you'd like me to document the entire FrontDoor <-> Aks setup for the scaler for future reference

If you can improve the docs adding this example would be nice! ❤ I think that for the moment, we can write it down in this page -> https://github.com/kedacore/http-add-on/blob/main/docs/integrations.md
we want to refactor the docs at any point, but for the moment it seems as the best place

@JorTurFer  - Pull request created Have a nice day!


Improve LCI parcelport and new performance tests.

This PR contains several changes/optimizations to the LCI parcelport

Optimize the case of pre-posting one receive for new header messages.
Add new progress type: pthread_worker.
Add the option of using multiple pinned progress threads.
Remove the option two_device.
Remove the option progress_thread_core.
Change the default configuration from putva to putsendrecv.

Flyby: Add new performance tests: pingpong_performance2.

Can one of the admins verify this patch?

@hkaiser Do you know why the build system compiled error: ‘memory_order_relaxed’ is not a member of ‘std::memory_order’? (For example, https://cdash.cscs.ch/viewBuildError.php?buildid=91788") I have already included the "atomic" header in the code.

@hkaiser Do you know why the build system compiled error: ‘memory_order_relaxed’ is not a member of ‘std::memory_order’? (For example, https://cdash.cscs.ch/viewBuildError.php?buildid=91788") I have already included the "atomic" header in the code.

I think using a simple std::memory_order_relaxed should do the trick.

@hkaiser I think this PR is ready to review.

bors merge


Error: failed to start a llama runner

Hello,
i tried to install ollama on my centos dedicated server but everything is working but when i try
[root@213-227-129-200 ~]#  ollama run llava
Error: failed to start a llama runner
i get this. what can i do?
-- Logs begin at Fri 2023-08-04 06:00:01 UTC, end at Fri 2023-12-15 18:45:42 UTC. --
Dec 15 15:33:10 213-227-129-200.cprapid.com systemd[1]: Started Ollama Service.
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: Couldn't find '/usr/share/ollama/.ollama/id_ed25519'. Generating ne
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: Your new public key is:
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGFFKiLz3PKkUtFK+Bj3gAJK7csulDh
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:33:10 images.go:737: total blobs: 0
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:33:10 images.go:744: total unused blobs removed: 0
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:33:10 routes.go:871: Listening on <IP_ADDRESS>:11434 (ve
Dec 15 15:33:10 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:33:10 routes.go:891: warning: gpu support may not be
Dec 15 15:34:10 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:34:10 | 200 |     178.535µs |       <IP_ADDRESS>
Dec 15 15:34:10 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:34:10 | 200 |  181.125375ms |       <IP_ADDRESS>
Dec 15 15:34:47 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:34:47 | 200 |      44.934µs |       <IP_ADDRESS>
Dec 15 15:34:49 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:34:49 download.go:123: downloading 200765e12836 in 39
Dec 15 15:35:27 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:35:27 download.go:123: downloading 64c2234f0395 in 7
Dec 15 15:35:36 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:35:36 download.go:123: downloading d5ca8c59f62d in 1
Dec 15 15:35:39 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:35:39 download.go:123: downloading 6c58ad369ad0 in 1
Dec 15 15:35:42 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:35:42 download.go:123: downloading 805db971dc64 in 1
Dec 15 15:35:49 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:35:49 | 200 |          1m1s |       <IP_ADDRESS>
Dec 15 15:37:09 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:37:09 | 200 |     175.861µs |       <IP_ADDRESS>
Dec 15 15:37:09 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:37:09 | 200 |    1.276939ms |       <IP_ADDRESS>
Dec 15 15:37:09 213-227-129-200.cprapid.com ollama[25174]: [GIN] 2023/12/15 - 15:37:09 | 200 |     831.562µs |       <IP_ADDRESS>
Dec 15 15:37:09 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:37:09 llama.go:403: skipping accelerated runner becau
Dec 15 15:37:09 213-227-129-200.cprapid.com ollama[25174]: 2023/12/15 15:37:09 llama.go:436: starting llama runner

Pumping this.

It looks like it may be timing out waiting for the model to be loaded into memory. This may mean you don't have enough resources, I'd suggest trying a smaller model.
We will also be merging a change soon that should no longer timeout, you can track the progress of that here: #1146

@webmastermario can you give the latest release a try (0.1.22)   If you're still having problems, please share the server log from the new version.

If you're still having problems with 0.1.22 or newer, please re-open.


Fix PyPI package

Hi @andersjohanandreassen and team :)
At Hugging Face we find Big-Bench super useful and we'd like to allow anyone to access, explore and use any task. An effort was already lead by the awesome @andersjohanandreassen and I 6 months ago but we couldn't integrate it into more advanced tools because we were using a custom version of the bigbench package (https://storage.googleapis.com/public_research_data/bigbench/bigbench-0.0.1.tar.gz).
Ideally it would be nice to have a maintained PyPI package for bigbench
I tried using the latest bigbench==1.0.0 but you can't install it with pip because of this error
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
bigbench depends on bleurt@ file://localhost//tmp/pip-install-6kgcmusl/bigbench_4fe88096f4584d27b319bf8129d87b1e/bleurt/bleurt-b610120347ef22b494b6d69b4316e303f5932516.zip#egg=bleurt

Could someone fix the bigbench version on PyPI ?

Hi @lhoestq,
@ethansdyer was the one working on this, but I'm not sure what the status is.
This is definitely something we also want, but last I heard there were a few technical issues that Ethan was trying to resolve. I'll follow up with him, and hopefully we can get this done!

Hi, I uploaded an alternative version on huggingface dataset: https://huggingface.co/datasets/metaeval/bigbench

Hi, any planned fix on this? Thanks.

@sileod  - thank you so much 🙏🙏🙏


Aegis Sonix plays wrongly Yessonix.xmus

SONIX.zip
Hi.I love your program and hope it is going to use more player soon.
The problem with this score is the main riff when repeating left a one second of silence between the loops.I checked on other programs it does work correctly (they probably use not IFF-SMUS plugin
Regards
Alex

Thanks for info,
The one second silence you hear, is because the song begins over and it start with one second silence. As I can see, there is nothing in the specification that have some repeat information. Even the original Sonix 2.0 on the Amiga have the silence when repeating.
Which other programs have you checked on. I would like to test it out. Maybe there is some secret information in the file I don't know about :-)

Hi.Tested it on BZR2 (blazer) and XMPlayer
And used also the real deal on winUAE (Sonic v2.0 on Amiga 1200 OS3.x
Regards,
Alex
PS:Usually I make video captures of what I find since I am almost on everyone forums or discord (bar,modland,demozoo and AMP)
Envoyé de mon iPhone
Le 1 déc. 2024 à 09:24, Thomas Neumann @.***> a écrit :

Thanks for info,
The one second silence you hear, is because the song begins over and it start with one second silence. As I can see, there is nothing in the specification that have some repeat information. Even the original Sonix 2.0 on the Amiga have the silence when repeating.
Which other programs have you checked on. I would like to test it out. Maybe there is some secret information in the file I don't know about :-)
—
Reply to this email directly, view it on GitHubhttps://github.com/neumatho/NostalgicPlayer/issues/129#issuecomment-2509630936, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BIIZYXZ3CQJMTHBFKOB7RNL2DLBTDAVCNFSM6AAAAABSY4NP6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBZGYZTAOJTGY.
You are receiving this because you authored the thread.Message ID: @.***>

I can hear it now. I though you were talking about when the song was looping. It sounds like some ADSR is running too fast. I will look at it.

This has been fixed now. The problem was that the player tries to reuse sample data, if two or more instruments uses the same sample. Instead of only sharing the sample, it shares the whole instrument including envelope, vibrato etc. information, which could be different. That's why it was played incorrectly.
If you want, you can try a developer build with the fix, which can be found here:
https://github.com/neumatho/NostalgicPlayer/actions/runs/12221247780


Change index fields for records

This adds 'Creator', 'Subject', and 'Collection' to the index fields for a record on the search results page.  It also reorders the fields.  It changes the source field for 'Type' from sourceResource.type.id to sourceResource.type.name.
To test locally, generate a test app and start jetty.  You may need to stop, clean, and config jetty first:
bundle exec rake jetty:stop
bundle exec rake jetty:clean
bundle exec rake jetty:config
bundle exec rake jetty:start
Index a sample record with a value for sourceResource.type.name.  In your rails console:
include FactoryGirl::Syntax::Methods
require 'dpla/map/factories'
agg = build(:aggregation)
agg.mint_id!('krikri_sample')
indexer = Krikri::QASearchIndex.new
graph =<EMAIL_ADDRESS>graph['sourceResource']['type']['name'] = "Image"
indexer.add graph
indexer.commit

I think this probably has some connection with how we want to address the indexing behavior in #93228766.

I'm fine with this, all said.


Write a TypeScript program to find volume of a cuboid

Description
Write a TypeScript program to find volume of a cuboid
Volume of a cuboid = Length × Width × Height
Length : 2
Width  : 3
Height : 4

Volume : 24

How to contribute

Save the solution in FindVolumeOfACuboid.ts file
Add FindVolumeOfACuboid.ts file in find-volume-of-a-cuboid folder

!assign

!assign

Hey @harshraj8843, this issue is already assigned to @harshraj8843 !!!
Please choose another issue.
Thanks for your interest in contributing to this project.

!assign me

Hey @harshraj8843, this issue is already assigned to @harshraj8843 !!!
Please choose another issue.
Thanks for your interest in contributing to this project.

!assign


Add image alt attribute to the from the top of the post contents

Description

e.g. Fixes #(issue)
Type of change

[] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update

How has this been tested

[x] I have run bash ./tools/test.sh --build (at the root of the project) locally and passed
[x] I have tested this feature in the browser

Test Configuration

Browser type & version: Safari v14.0.1
Operating system: MacOS Catalina v10.15.7
Bundler version: 2.2.7
Ruby version: 2.5.5p15
Jekyll version: 4.2.0

Checklist

[x] My code follows the Google style guidelines
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] Any dependent changes have been merged and published in downstream modules

I think I've already deleted the old PR...

I think I've already deleted the old PR...

I think I've already deleted the old PR...

GitHub does not allow anyone to delete a PR, event the owner of the repos  :)

I think I've already deleted the old PR...

GitHub does not allow anyone to delete a PR, event the owner of the repos  :)


MoltenVK 1.0.2/1.0.3 vs official LunarG Vulkan 1.1.73 Macos SDK..

Hi @billhollings @karl-lunarg  ,
first congrats on new variant of Vulkan 1.1.73 SDK binary release with Macos support..
I also see you keep doing releases (source code only) here on github (mainly every couple/3 weeks) with latest being 1.0.2 on release page but recent commit shows (https://github.com/KhronosGroup/MoltenVK/commit/9b871d02802d5abf10362b0947abc1a9f9c9aecf) "update MoltenVK version to 1.0.3"..
so question is how these differ?
any recommendation on what one is preferred to use?
thanks..

thanks..
that clarifies my doubts..


Note on future work for benchmarking

Added a note in the benchmark notebook regarding future work

Thanks!

Thanks!


Make dataset options still effective for juicefsRuntime

Ⅰ. Describe what this PR does
Keep mount options in dataset still effective, but it can be overwrited by fuse specified options
Ⅱ. Does this pull request fix one issue?

fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/test fluid-e2e

/test fluid-e2e


Wrong child transform exported

Describe the bug
Exporting node tree with parent of type empty outputs wrong child transform.
To Reproduce
Open provided example scene.
Export both nodes to gltf file.
Import back gltf file.
Expected behavior
Imported nodes should look exactly the same as original ones.
Screenshots

.blend file/ .gltf
hierarchy_bug.zip
Version

OS: Ubuntu 20
Blender Version 2.92.0 stable

This is #1083.

Closing this ticket, as we now have an option to export flatten tree (all object at root of scene), avoiding this issue


Pygh

https://tea.xyz/what-is-this-file

version: 1.0.0
codeOwners:

'0x261334D6D540a83fd84a1120A18B3274EfaB3d5D'
quorum: 1

Hi

Ok