How to use rocprofv2 to obtain the metrics supported by the current device.

How to use rocprofv2 to obtain the metrics supported by the current device.

Hi @hi20240217, internal ticket has been created to assist with your question. Thanks!

Hi @hi20240217,
To obtain the metrics for the current device, try running:
rocprofv2 --list-counters
The following is a sample output from the --list-counters option. The output has been truncated for explanation:
gfx1030:0 : SQ_WAVES
: Count number of waves sent to SQs. {emulated, global, C1}
block SQ can only handle 8 counters at a time

The fields in the output are:
gfx1030:0 - The GPU architecture and GPU ID (separated by colon). The GPU ID needs to be specified as there might be multiple GPUs in the system.
SQ_WAVES - The counter name. Typically, the first token before the first underscore is the GPU block name. Here, SQ is the block that is responsible for managing wavefronts and issuing instructions.
Here is some further documentation where you can also find more information: rocprofv2 Documentation. Hopefully that answers your question, thanks!


odo catalog

description to be updated by @kadel
Goal
Users should be able to use odo catalog command to list all operator-backed services.  They should be able to filter by name or by category/label
Example
$ odo catalog
TODO: Intro text (Include  goal as well as the steps that they are going to take ( including terminology ))

DisplayName: PerconaServerMongoDB
Category: Database
Description: Instance of a Percona Server for MongoDB replica set
Operator: Percona Distribution for MongoDB Operator
Resource: perconaservermongodbs.psmdb.percona.com/v1-11-0

DisplayName: PerconaServerMongoDBBackup
Category: Database
Description: Instance of a Percona Server for MongoDB Backup
Operator: Percona Distribution for MongoDB Operator
Resource: perconaservermongodbbackups.psmdb.percona.com/v1

DisplayName: PerconaServerMongoDBRestore
Category: Database
Description: Instance of a Percona Server for MongoDB Restore
Operator: Percona Distribution for MongoDB Operator
Resource: perconaservermongodbrestores.psmdb.percona.com/v1

DisplayName: Postgres Cluster
Category: Database
Description: PostgresCluster is the Schema for the postgresclusters API
Operator: Crunchy Postgres for Kubernetes
Resource: postgresclusters.postgres-operator.crunchydata.com/v1beta1

DisplayName: RedisEnterpriseDatabase
Category: Database
Description: Deploy a Redis Enterprise Database on an Operator managed  Redis Enteprise Cluster
Operator: Redis Enterprise Operator
Resource: redisenterprisedatabases.app.redislabs.com/v1alpha1

DisplayName: RedisEnterpriseCluster
Category: Database
Description: Deploy a Redis Enterprise Cluster
Operator: Redis Enterprise Operator
Resource: redisenterpriseclusters.app.redislabs.com/v1

to show only databases
odo catalog --category database

to show filter items that mention "maria" in name , description, operator or resource filed
odo catalog --search maria

note: the above example output was generated using following kubectl command

$ cat template
{{- range .items -}}
    {{ $item := . }}
    {{ range $item.spec.customresourcedefinitions.owned }}
        DisplayName: {{.displayName}}
        Category: {{$item.metadata.annotations.categories}}
        Description: {{.description}}
        Operator: {{$item.spec.displayName}}
        Resource: {{.name}}/{{.version}}
    {{ end }}
{{- end -}}

$ kubectl get csv -o go-template-file=template

Flags

--catagory show only operators in a given category (see an example for where category comes from)
--filter show only operators that have the given phrase in the information that odo is showing (displayName, category, description, operator, resource)
--namespace display services in a given namespace (and cluster-wide).

Command behavior and error states

If the command is executed in a directory with odo component (.odo/env.yaml exists and has namespace set). It should use namespace as defined there.
If the command is executed in a directory that is not odo component it should use the default namespace as set in KUBECONFIG unless --namespace is used.
It always displays operators that are installed cluster-wide.

@kadel the catalog command was removed in https://github.com/redhat-developer/odo/pull/5577, is the intent to add it back at some point?

@kadel the catalog command was removed in #5577, is the intent to add it back at some point?

Currently not. We removed all logic around creating operator-backed services from odo. TBH, the experience was not what we wanted it to be :-( I don't think that with the current state of the Operator ecosystem, we can make user-friendly CLI interface for installing operator-backed services. At some point, we will probably revisit this, but it is not in our short term list.


descargas 2020 broken (again)

Expected behaviour:
it downloads torrent properly.
Actual behaviour:
Steps to reproduce:
add this rss http://feeds.feedburner.com/descargas2020new
flexget execute
you will get:
2019-04-28 23:00 WARNING  urlrewriter   series_sigo     URL rewriting descargas2020 failed: Unable to locate torrent ID from url http://descargas2020.com/descargar-torrent/121574_-1556477420-55-pasos--blurayrip/
2019-04-28 23:00 ERROR    entry         series_sigo     Failed 55 Pasos  [BluRay Rip][AC3 2.0 Castellano][2019][] (None)
Config:
tasks:
  series_sigo:
    rss:
      url: http://feeds.feedburner.com/descargas2020new
      link: link
    all_series: yes
    seen: local
    regexp:
      reject:
        - PCDVD
    accept_all: yes
    thetvdb_lookup: yes
    no_entries_ok: yes
    set:
      filename: "{{title|pathscrub}}.torrent"
    download: /home/flexget/torrent/

Log:
2019-04-28 23:00 WARNING  urlrewriter   series_sigo     URL rewriting descargas2020 failed: Unable to locate torrent ID from url http://descargas2020.com/descargar-torrent/121574_-1556477420-55-pasos--blurayrip/
2019-04-28 23:00 ERROR    entry         series_sigo     Failed 55 Pasos  [BluRay Rip][AC3 2.0 Castellano][2019][] (None)
paste log output here

Additional information:

FlexGet version: 2.20.23
Python version: 2.7.13
Installation method: i don't remember
Using daemon (yes/no): no
OS and version: debian 9 x64
Link to crash log:

Hi,
Yes, me too.
But it seems it is not necessary the descargas2020 plugin anymore!!! The torrent is downloaded directly from the rss file.  Who can support us to change the yml?
Thank you in advance.

Hi,
a work around, replace:
https://github.com/Flexget/Flexget/blob/15e09295b51b525dbdf6902716cd36a2d5845aff/flexget/components/sites/sites/descargas2020.py#L49
with:
return False
(keep leading spaces on line 49)
In Debian Linux you will find this file in /usr/local/lib/python2.7/dist-packages/flexget.
Give me some time and I will publish a commit that will solve this the right way.

Hi,
Yes, me too.
But it seems it is not necessary the descargas2020 plugin anymore!!! The torrent is downloaded directly from the rss file. Who can support us to change the yml?
Thank you in advance.

In theory, inserting this on the task would had been enough:
disable: descargas2020
but I had tested it and is not working. disable plugin can not disable urlrewriters for now

I think there are some links that are download directly but others need to be parsed somehow:
For example (from the feed):
http://descargas2020.com/descargar/serie-en-hd/the-big-bang-theory/temporada-12/capitulo-19/
Need to be converted to:
https://descargas2020.com/download/121456_-1556254767-the-big-bang-theory---temporada-12--hdtv-720p-ac3-5-1.torrent
However, it isn't directly downloaded as a torrent neither have an id in it to do the conversion.
So maybe it needs fixing again.

Sorry, this is a different issue.
descargas2020 admin has placed the torrent url on an external server (https://pctnew.com/controllers/keypermiss/getDetails.php) and has obfuscated the javascript code that gets this url.
Seems that this plugin will be broken for a lot of time.

better open a new ticket.

My bad, plugin is ok, there is no issue in flexget.
The feed http://feeds.feedburner.com/descargas2020new has stopped working because of the web modifications.

Hello,
Feed https://descargas2020.com/feed is not working as http://feeds.feedburner.com/descargas2020new, because replacing it makes flexget config break. I confirm http://feeds.feedburner.com/descargas2020new is updated slowless than the new one, but its online.


performanceCounters/requestsPerSecond for RPS Scaling

Hi Everyone,
The current RPS Scaling example in the project uses a linux container (jsturtevant/metric-rps-example), that scales by reading from the performanceCounters/requestsPerSecond metric in the Microsoft Application Insights API.
We've tested the default code in the repo using this container, and the adapter is able to read performanceCounters/requestsPerSecond metrics from the API and scale perfectly.
However, when we use our own linux containers (so far .NET Core [Debian Linux] and JAVA [openjdk:11-jre-slim]), no performanceCounters/requestsPerSecond metrics are registered in Application Insights. No matter what time span or interval combinations are used, the Application Insights API returns Null. (We know this by browsing the Application Insights API Explorer... https://dev.applicationinsights.io).
This baffles us, since the container provided with this example is also a linux container, and it is sending performanceCounters/requestsPerSecond metrics to App Insights without any issues.

Is there anything special that has been done to this container to get it to send performanceCounters/requestsPerSecond data to Application Insights?
For clarity, according to the default code in the samples, is it the Code inside the container that sends telemetry to Application Insights, or is it Kubernetes?

Is there anything special that has been done to this container to get it to send performanceCounters/requestsPerSecond data to Application Insights?

No, the nodejs application insights library generates that value and sends it to App Insights.

For clarity, according to the default code in the samples, is it the Code inside the container that sends telemetry to Application Insights, or is it Kubernetes?

As mentioned in previous answer, The code that sends the data to App insights is in the container via the library.
This seems like the asp.net core library does not collect the rps or at-least not by the name performanceCounters/requestsPerSecond.  I am not familiar enough with the libraries or .net core to be able to say for sure.

Digging into the ASP.NET core app insights library a bit, and found a reference to RPS being a built in component  but did not find any docs on how to enable it.  It might be worth opening an issue there to find out how to configure it properly.  There are docs that say performance counters are only supported in full framework.

``


Add slim build support

Motivation
I was trying to use Alpine (node:10-alpine ~25mb), but after spending some time fighting with Glibc I saw that you are already aware that it does not seem to be possible. This was discussed here on #110 and #206.
The second-best option for me is slim images. While node:10 (the base image for cypress/base) is based on the full Debian (~330mb), there are node images available that come from Debian slim (45mb).
Additional info
I am also including the Cypress binaries. Although it makes the image much heavier, the binary will have to be downloaded anyway.
In my opinion, this is essential for proper CI. Downloading cypress after the application code is transferred to the container (with npm/yarn) adds time to the build that is not needed. Even if the image gets much heavier with Cypress already in it, it saves time in the end.
When using CIs that are based on docker, it is essential to build a docker image also for cypress. By using this image with slim and cypress already installed, I was able to reduce my build times by 50% (from 10 minutes to 5)
Proposed image naming
cypress/slim:10-4.0.2
Sizing
$ DOCKER_BUILDKIT=1 docker build -t cypress/slim:10-4.0.2 .
[+] Building 152.0s (6/6) FINISHED
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load build definition from Dockerfile                                                                                0.1s
 => => transferring dockerfile: 744B                                                                                0.0s
 => [internal] load metadata for docker.io/library/node:10-slim                                                                                11.3s
 => CACHED [1/2] FROM docker.io/library/node:10-slim@sha256:ce0b8ec37c669bb12da1683a265a2aa6f85cdd7a692d959f7c48e8c26cc37585                                                                                0.0s
 => [2/2] RUN apt-get update &&     apt-get install --no-install-recommends -y         libgtk2.0-0         libgtk-3-0         libnotify-dev         libgconf-2-4         libnss3         libxss1         libasound2         libxtst6         xauth         xvfb         wget         132.1s
 => exporting to image                                                                                8.4s
 => => exporting layers                                                                                8.4s
 => => writing image sha256:4b18f200e840dca65ccab68f4882ae5c893c856716b7ee1cf3283ecf47728361                                                                                0.0s
 => => naming to docker.io/cypress/slim:10-4.0.2

REPOSITORY                                                 TAG                     IMAGE ID            CREATED             SIZE
cypress/slim                                               10-4.0.2                4b18f200e840        30 seconds ago      847MB

Remaining work

[ ] Approval of the idea
[ ] Figure out why wget on the cypress download link fails certificate
[ ] Integration with CI
[ ] Build for more versions

 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.

I am not sure the image size has much to do with CI system UNLESS CI system does not cache images. For example GitHub Actions https://github.com/bahmutov/cypress-gh-action-included/runs/498639926?check_suite_focus=true just spends 1 minute to get the image cypress/included:4.1.0 up and running
GitLab CI takes 1 min and 22 seconds to pull cypress/included:3.8.3 image https://gitlab.com/cypress-io/cypress-example-included/-/jobs/421129280
So I don't think the size of the Docker image matters that much - it depends on the CI caching a lot more.

@bahmutov I'm on CircleCI and I agree, the image is often cached and pulling the image is usually fast.
That is one more point for having Cypress binaries embedded in the image. Downloading them in a separate step takes much longer than downloading a heavier image.

@fabiocarneiro like https://github.com/cypress-io/cypress-docker-images/tree/master/included ?!

@bahmutov Yeah. Although now is very obvious, I didn't realize included meant with cypress. I thought it was with browsers or something else. (Which is also true, since it extends from cypress/browsers)
The Slim option could still be a valid idea, but...
I'm very curious how your images can achieve 830mb with so many added layers, browsers, and when you start from 300 mb+. This one starting from 45mb, no browsers, and a single layer added is going to 850mb.

I have managed to achieve a whopping 3x smaller cypress base image. This is significant enough to validate for an additional officially supported image. I have only made a few changes to the current base image. The base image is 1266mb (docker inspect cypress/base:12 | grep Size) and the image below is 419mb.
Image size is often very important. Gitlab CI using shared runners doesn't quite cache effectively the image, especially if you are using your own built images (based on cypress base image you add additional libraries), also using DIND runners (docker in docker) which is quite popular, you don't get any caching of the images. I think a lot of bandwidth is wasted with docker images in these times.
FROM node:12.18.3-slim

RUN apt-get update && \
  apt-get install --no-install-recommends -y \
  libgtk2.0-0 \
  libgtk-3-0 \
  libnotify-dev \
  libgconf-2-4 \
  libgbm-dev \
  libnss3 \
  libxss1 \
  libasound2 \
  libxtst6 \
  xauth \
  xvfb \
  # clean up
  && rm -rf /var/lib/apt/lists/*

RUN npm install -g npm@latest && rm ./opt/yarn-v1.22.4/ -rf && rm /usr/local/bin/yarn
RUN npm --version

# a few environment variables to make NPM installs easier
# good colors for most applications
ENV TERM xterm
# avoid million NPM install messages
ENV npm_config_loglevel warn
# allow installing when the main user is root
ENV npm_config_unsafe_perm true

# Node libraries
RUN node -p process.versions

I have change the base image to the slim node one. I have also removed the Chinese fonts. I strongly believe this should be an optimized image with the most basic things, so chinese fonts shouldn't be included here, especially since they were bloating the image size with 100mb. I have also removed yarn as that's another thing that is extra and should not be in such an image.
Since this is such an easy change I think it could be easily added to the official ones. I have only marginally tested this image though. @bahmutov What do you say? Should I create a separate issue?

With this simple change managed to reduce my cypress-dind image from 2.1gb to 1.3gb.

This is a no brainer. What is the status of this PR?

I still need to build one of these slim images and try to run the full set of tests using it

@archfz You actually can go even further xauth is actually not needed as you can disable all Xvfb authentication.
As our CI tests will run in k8s cluster I'm going even further I'm splitting Xvfb into dedicated image based on alpine with size 26.8MB

Closing this as slim images are now supported with the merging of #597. If you need specific images, you can generate those and submit per the contribution guide.


2 items per row

Hi, thanks for this library.  How can I build an infinite list with 2 items per row?

Just half your length and render index * 2 and index * 2 + 1 in your render function.


feat: Improved Registy card and Registy page (single)

📚 Description
Improved Registry card and Registry page (single)

Fixed typography issues on the Registry card
Updated author URL to link to GitHub profile
Enhanced design of the Verified popup
Improved Header design on the Registry page
Refined Sidebar design on the Registry page

Added thousand separators for Total Runs
Set a minimum display value for Total Runs
Adjusted display format for source repo template (username/repo)
Resolved various small UI issues

 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.

Things seem to have lost alignment in the registry details page header


gocql: match the module name with replace path

We advise users to replace the module with:
go mod edit<EMAIL_ADDRESS>
However this fails with:
go<EMAIL_ADDRESS>parsing go.mod: unexpected module path "github.com/gocql/gocql"
go: error loading module requirements

Since go mod expects github.com/scylladb/gocql module and finds a
different name.
This PR fixes that.

reference https://scylladb-users.slack.com/archives/C2NLNBXLN/p1565624892489000


TypeError: Cannot read properties of undefined (reading 'forEach')

I upgraded to version 0.1.4 and still get this error when running tests.
C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:151
            parsed.pickle.steps.forEach(step => {
                                ^

TypeError: Cannot read properties of undefined (reading 'forEach')
    at C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:151:33
    at Array.forEach (<anonymous>)
    at Formatter.getPickleText (C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:149:20)
    at Formatter.getStepText (C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:144:27)
    at Formatter.createStepJson (C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:96:27)
    at C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:46:41
    at Array.forEach (<anonymous>)
    at C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:45:42
    at Array.forEach (<anonymous>)
    at C:\Users\hammonbu\git\smc-cypress\node_modules\cucumber-json-report-formatter\lib\formatter.js:32:23
An error was thrown in your plugins file while executing the handler for the after:run event.

The error we received was:

Error: node exited non-successfully
    at ChildProcess.<anonymous> (C:\Users\hammonbu\git\smc-cypress\node_modules\@badeball\cypress-cucumber-preprocessor\lib\add-cucumber-preprocessor-plugin.js:92:32)
    at ChildProcess.emit (node:events:527:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

Hi @bartonhammond ! Could you please provide your cucumber-messages.ndjson file?

Added the folder cucumber-json
cucumber-json.zip

This is w/  "cucumber-json-report-formatter": "0.1.4",
cucumber-json.zip

Hi @bartonhammond ! I've noticed that the provided messages.ndjson  doesn't have steps block in the last pickle. That's why it can't be parsed.

I think the reason for this exception is that this Feature file has multiple Scenarios and two of them have @focus .  These 2 Scenarios are in the middle, above the Scenario Manage Assessments pull standard costs for dismissed felony charge and fully disposed/sentenced Misdemeanor charge  - Non violations bureau  - this scenario is not processed since it doesn't have @focus.  The same w/ the following Scenario in the image above.  They are below the Scenarios that have @focus and thus do not have any Steps that were run.
Hope that helps

Closing the issue as not caused by this tool


schemas.stacspec.org cannot be reached

Hey,
It seems https://schemas.stacspec.org/ is down. Anyone else facing this issue?

Hi. I did hear about this too somewhere else. I am not involved directly with schemas.stacspec.org and I don't know who exactly is but I will look into it.

seems resolved!


Update support for HumanEval

What does this PR do?
Updated the support for HumanEval to compute the pass@k metric with n samples. This specifically, separates n and k, which were previously coupled together to have the same value. Now we can compute pass@k with n > k as is the case for implementations in other work.
What issue(s) does this change relate to?
N/A

Before submitting

[x] Have you read the contributor guidelines?
[ ] Is this change a documentation change or typo fix? If so, skip the rest of this checklist.
[ ] Was this change discussed/approved in a GitHub issue first? It is much more likely to be merged if so.
[x] Did you update any related docs and document your change?
[x] Did you update any related tests and add any new tests related to your change? (see testing)
[x] Did you run the tests locally to make sure they pass?
[x] Did you run pre-commit on your change? (see the pre-commit section of prerequisites)

Sure. Would it be acceptable to use the previous tests (https://github.com/mosaicml/composer/pull/2301?), update (set different values of pass_at_k)and post output of tests?

@mvpatel2000 @dakinggg, open to any more input. Otherwise, latest is passing tests and I've resolved other asks.


Fix up a few of the doccomments for the EnumFlags and Edge types

I'm going through the process of looking through our codebase to learn more about everything, and as I'm seeing random issues like this I'm fixing them.
In the case of EnumFlagsAttribute.cs we shouldn't have to go to a link to understand the context.
In the case of Edge.cs it was referencing what appeared to be an older naming of the type.

/azp run mrtk_docs


How to get images to show in "archives" page (or other timelines, e.g. tags, categories)? & How to get featured image?

I am trying to replicate some behavior in the demo site,
http://notes.iissnan.com/archives/
However, I do not know how to do so. I have tried searching other issues on this repository, however I'm having some difficulty understanding the posts in Chinese.
I agree and want to create new issue

[x] Yes, I was on Hexo Docs page, especially on Templates, Variables, Helpers and Troubleshooting.
[x] Yes, I was on NexT Documentation Site.
[x] And yes, I already searched for current issues and this is not help to me.

Expected behavior

I would like to make a photo gallery show up on the archives page timeline
I would like to make a "featured image" for my blog posts

Actual behavior
No photos appear in timeline
Additionally, I have no idea how to make a "featured image". I tried adding to the frontmatter
---
layout: post
featured_image: test.png
---

However, this did not do anything.
Steps to reproduce the behavior

hexo new post testgallery.md

---
type: "gallery"
layout: post
title: testgall
photos:
 - images/pasted-0.png
 - images/pasted-1.png
date: 2018-04-14 01:27:32
tags:
---
test page

Go to http://localhost:4000/my-site/archives/ -- no images appear
NexT Scheme:

[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini

What I really want to do, is to have a single "featured image" show up both on the index page and on the archives (timeline) pages. That is, a combination of being able to set a featured image in a post (maybe in the frontmatter), and have it show up in the archive with a picture thumbnail.
Is this possible?
Thank you very much for the beautiful theme.

NexT is rebased into organization repo.
If you want new feature, fix, or support, create new in NexT v6.x repo (desirable in English).
There is instructions on English or Chinese how to update from v5.1.x to v 6.x
You also may read this for details.


fix #1740 local module replacing global module

What kind of change does this PR introduce?
feature [Nice To Have]

Did you add tests for your changes?
No, I'll be glad if someone could help me or share an idea how to do it.

Summary
Fixes #1740

Does this PR introduce a breaking change?
No.

You may need to rebase the PR to get the binCases stuff.

@sokra thanks, I'll do it soon

You did something wrong. To rebase:

Make sure master points to the current master (git checkout master; git pull)
Switch to your branch (git checkout your-branch)
git rebase master
On conflicts, fix the file and add them. Than git rebase --continue
git push -f your-branch

@sokra I'll reopen PR, but from a branch and up-to-date master. Because that fork was edited directly in master, that's my fault sorry.


Add a span merger that merges spans read

allows for partially written spans to be merged while querying by selecting
the span with the longest duration.

See https://github.com/jaegertracing/jaeger-client-java/issues/231 for more discussion
Signed-off-by: Prithvi Raj<EMAIL_ADDRESS>

If I recall our conversations, we're going to use a "random value" as the hash so that we can save multiple spans with the same id. We need to figure out a way such that this is compatible with: jaegertracing/jaeger-client-java#231.

Similar, the idea is to kill span hash, and use a random number field to store all spans that arrive at the collector.

From my last conversation with @phal0r, we discussed having the clients emit a duration of 0 if the spans aren't complete so that we could circumvent having to add a new first class flag to the cassandra model so that query knows that the span is incomplete and can pass on the info to the UI. This PR is kind of at odds with that approach since if we emit multiple incomplete spans with 0 duration, we'll be randomly picking one rather than using the latest.

Hmmm, this is true, we can enhance the merge function to select the span with the most data to make it compatible with that approach. Note that we don't yet add this as part of the default standard adjusters, so we can iterate to make this compatible with an approach like that.
I created #729 for further discussion about this topic!

Coverage remained the same at 100.0% when pulling f6d115af4e188432bd8918ccfa339f4e9051cd42 on merge-on-read into cce04e79abd54e41f41e7ad583e48343b7010e4c on master.

@vprithvi what is the plan with this PR? Is it still needed?

This is subsumed by #979


Maximum sum circular subarray

This is the python implementation of the maximum sum circular sub-array problem under the category of Sub-Arrays.
Language - Python
It has been solved by using the Kadane's Algorithm.

The modified one is the final python file I proposed with a little change in the git-hub link as compare to the previous one.

This is not the way how you contribute to Open Source, first you need to create an issue and after you are assigned to that issue, finally your create a PR


Fix penalty bug with ./b webots game

Should fix https://github.com/NUbots/NUbots/issues/735

team_id is now updated in GlobalConfig.yaml on container startup using the env var passed too it.

Update Dockerfile naming convention

Tested playing a full game on my machine and it works. very nice!

Yeah there are tradeoffs, but I think x.Dockerfile is probably the way to go. This StackOverflow thread has some takes on both sides.


METAL-1114: featuregates: add metal jobs for test analyzer

Ensure we're looking at ipv6, ipv4, and dualstack metal techpreview jobs.

/lgtm
/approve
/hold
release the hold when you're ready.

/hold cancel

/hold
dualstack is categorized wrong in sippy

/lgtm

/hold cancel


Add script to get archive of cluster's log group

This is the initial check-in for a script that enables a user to extract
all of the logs in a given cluster's CloudWatch log group and create a
tarball of the extracted data. This allows for ease in attaching logs to
tickets.
Potentially useful enhancements include:

Allow for optionally deleting data from the s3 bucket that serves as
the intermediary between CloudWatch and the local filesystem.
Enable a user to specify that the data only be exported to s3 and not
downloaded to the local filesystem.

Signed-off-by: Tim Lane<EMAIL_ADDRESS>By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Nice job! 👍


factor::miller_rabin: Fix bug #1556

[x] Added testcases for the bug.
[x] Squashed it!  >:3

@tdulcet, could you confirm that factor produces the same output as the GNU implementation on 2..10⁸ with this fix?

Yes, I get the same output now for 2..10⁸:
$ time { seq 2 $(( 10 ** 8 )) | factor | sha256sum; }
b0f21acd0f9d4cfa81f3a828ffaa8f2b0a99eac30527142666705a54a461556b  -

real    1m18.101s
user    1m15.087s
sys     0m36.162s
$ time { seq 2 $(( 10 ** 8 )) | uu-factor | sha256sum; }
b0f21acd0f9d4cfa81f3a828ffaa8f2b0a99eac30527142666705a54a461556b  -

real    7m45.660s
user    7m50.180s
sys     0m11.295s

Thanks for fixing this so quickly!

@tdulcet Thank you for noticing (and reporting) the issue  :purple_heart:

🎉

FYI, this commit drops performance by roughly 50%.

Oh, joy  >_>'
makes a note to have a hard look in there, later.

@Arcterus Looks like the performance regression is fixed incidentally by #1554 : this fix causes more numbers (up to the entire basis) to be converted to Montgomery representation, which costs one double-width modular reduction, and that's really expensive on 128b numbers.
#1554 is not a complete fix, as this still causes a performance regression for instance above 2³².
I have ideas how to improve that (implementing Barrett reduction for Montgomery<u64>) but I would need to first set up a much better benchmarking hardness, so we can check this is indeed an improvement.

Ah, well that’s rather convenient.
We should probably set up benchmarking project-wide as I imagine other utilities could benefit from improved performance as well.

@nbraud No problem. Here is the Bash script I have been using to test and benchmark this and the GNU factor implementation, if it is helpful. I adapted part of it from the GNU factor tests. Some of the tests will not work until this supports numbers greater than 264.


"CreatePayment" is not a function

Describe the bug
When I use Native Payments and call CreatePayment method, scripts is fail.
To Reproduce
Steps to reproduce the behavior:
import PAYPAY from '@paypayopa/paypayopa-sdk-node';
import { v4 as uuidv4 } from 'uuid';
let merchantId = uuidv4()
let userAuthorizationId = params.get('userAuthorizationId');
let options = {
    merchantPaymentId: merchantId,
    amount: {
        amount: 10,
        currency: "JPY"
    },
    requestedAt:<PHONE_NUMBER>340,
    userAuthorizationId: userAuthorizationId,
    orderDescription: "Mune's Favourite Cake"
};

PAYPAY.CreatePayment(options, (response) => {
    console.log(response.BODY);
});

** Result: **
Response with status 500 in 49 ms.
Error during invocation:  TypeError: n.CreatePayment is not a function

Environment (please complete the following information):

Chrome browser

@TPGT00020 Thanks for raising the issue, this has been fixed and released in 0.9.1


MTKView framesPerSecond

Hi 👋
The configuration's framesPerSecond was not applied to the MTKView.
This pull request aims to fix that.

Thank you! I will create new release once will be near my laptop


I keep getting this error when I try and run code-server

./code-server: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by ./code-server) ./code-server: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.21' not found (required by ./code-server) ./code-server: /lib64/libstdc++.so.6: version 'CXXABI_1.3.9' not found (required by ./code-server)
I keep getting this error when trying to run it.

Same issue found in centos 7

I successful to update /lib64/libstdc++.so.6 and /lib64/libc.so.6
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/l/libstdc++-8.3.1-2.fc29.x86_64.rpm

wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/g/glibc-2.28-27.fc29.x86_64.rpm

rpm -ivh --force --nodeps libstdc++-8.3.1-2.fc29.x86_64.rpm glibc-2.28-27.fc29.x86_64.rpm

./code-server

rpm downloaded from:

https://fedora.pkgs.org/29/fedora-updates-x86_64/libstdc++-8.3.1-2.fc29.x86_64.rpm.html
https://fedora.pkgs.org/29/fedora-updates-x86_64/glibc-2.28-27.fc29.x86_64.rpm.html

CC @Multishifties for closure. Solved by workaround.

one workaround for centos/ubuntu distributions is to package code-server via conda and host it on anaconda's conda-forge, like electron.
then these issues with missing libraries will be gone for good.

I don't think using such is a good idea. Targeting across GLIBC instance can already be done via CI by providing multiple OSes instead.

I succeeded to run by upgrade /lib64/libstdc++.so.6 and /lib64/libc.so.6
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/l/libstdc++-8.3.1-2.fc29.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-common-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-2.27-38.fc28.x86_64.rpm
wget http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/28/Everything/x86_64/Packages/g/glibc-langpack-en-2.27-38.fc28.x86_64.rpm

rpm -ivh --force *.rpm

./code-server

rpm downloaded from https://pkgs.org/

Ran the commands above successfully, but now I get Aborted (core dumped).
My CentOS VPS doesn't support Docker, so I am trying to install this manually ...
Any advice on how to proceed? I can provide the dump file, if needed...

Please do NOT use Fedora packages on CentOS systems, you are risking your system with further breakages because CentOS is for production ready systems. Fedora is a rolling distribution that has no gurantee being production ready.


Capital search

Request and task filtering with all caps
For example, filtering with "HWB" would return something like this:
HelloWorldBen
LookHeyWheresBillyGoneTo

This doesn't seem to be working on staging, did you deploy after merging there?

@kwm4385 I pushed it to hs_staging, but forgot to deploy it. I'll do it again once I've addressed the other comments.

🚢

Okay I've actually correctly deployed it to hs_staging this time.


Move transactions protocol to its own crate

Move transactions protocol to its own crate.
polkadot companion: https://github.com/paritytech/polkadot/pull/5973
cumulus companion: https://github.com/paritytech/cumulus/pull/1661

This PR supersedes the previous #12198 as the history in that PR was messed up and fixing it would require force-pushing

bot merge

bot rebase

bot merge

after doing "bot merge" PR updated showing recently added "A1-onice" label; alas bot has already merged it...
@altonen why is this not ready for merge?

Yeah, I restarted the build a while back, not sure if it does anything but let's see. Also checking it locally


Allow movement of chess pieces - Backend

Task
Detailed Description

Users can move chess pieces
Beaten chess pieces are removed from the board and their removal is saved in the off-board
When a chess piece exists on the target location, it is beaten and removed
Movement validation is called. (And handled in #35 )

when it passes the move is ok
when it does not pass, the move is rejected

When the move is accepted, save to blockchain (#58 )

Associated story
Story: #25
Notes

Beaten chess pieces are removed from the board and their removal is saved in the off-board

why is this necessary? I cannot remember talking about that, it's not in the Python implementation either.


fix: data:null as HTTP request body

Fixes: https://github.com/customerio/customerio-ios/issues/134

:tada: This PR is included in version 1.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add support for Zhinx extension

This PR includes,

Added sign prefix functionality for Zhinx.
Updated instructionobject with respect to Zhinx instructions.

same here


🚀 Feature: Allow further filtering when using GetEntitiesByRefs

🔖 Feature description
Apart from filtering with references, it should be possible to also add EntityFilterQuery to the GetEntitiesByRefsRequest to filter even more of the wanted entities.
🎤 Context
I have a list of entity references but would like to filter some of those out based on annotation values. I could do it by getting the compoundEntityRef for each and make a massive filter query to getEntities but I don't think that's the best way to go. getEntities does not support filtering by reference as far as I am aware.
✌ Possible Implementation
This should be quite straight-forward as the catalog-backend service already supports adding filters to the entitiesCatalog.entitiesBatch call
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

Yes, nulls in the return array should be fine. Didn't check how the filtering is implemented in the db layer, but I don't think adding support for this slows things down, especially as it's optional.

One way to solve this I've used in the past was:
      const entityRefs = ['component:default/a', ...otherentities];
      const response = await catalogApi.queryEntities({
        // ...otherfilters
        filter: {
          'metadata.name': entityRefs.map(e => parseEntityRef(e).name),
        },
        limit: 100
      });

      const entities = response.items
      .map(e =>
        stringifyEntityRef({
          kind: e.kind,
          namespace: e.metadata.namespace,
          name: e.metadata.name,
        }),
      )
      .filter(e => entityRefs.includes(e));

but yeah #22845 looks nicer!


Example11_1.cpp

On the uri
https://github.com/PacktWorkshops/The-Cpp-Workshop/blob/88826e86fbae1808adf080231a306b455ab988da/Chapter11/Examples/Example11_1.cpp
you give the main function , but you do not have all the class and functions defined.  Can you update the file Example11_1.cpp
and before the main put all the things that are discussed in paragraphs "Creating a generic Queue" of chapter 11?
You say a lot of things in many pages, and the snippets of code are fragmented. ANd I cannot get them to work.
And I have a specific question : on page 431 you give
void push(const T& element)
{
if (queueDataEnd == memLimit)
resize();
append(element);
}
but when you prepare the contents of the file , I suggest you to type it as :
void push(const T& element)
{
if (queueDataEnd == memLimit)  resize();
append(element);
}
since the action of append() does not belong inside the if (and the way you have it will confuse people that are familiar with Python)

My mistake , the full file is accessible from
https://github.com/PacktWorkshops/The-CPP-Workshop/blob/master/Chapter11/Examples/Example11_1.cpp
and the link that I could see in the book was not getting me there at the full file, so I was confused


Implement :ED

:ed is a system command
e:\git\go-sqlcmd\cmd\sqlcmd>sqlcmd -S davidshi-2019 -X
1> ed
Sqlcmd: Error: ED and !!<command> commands, startup script, and environment variables are disabled.

Also, preserve blank lines from input.
Pre-fix:
e:\git\go-sqlcmd\cmd\sqlcmd>.\sqlcmd
1> select 100
2>
2>
2>
2>
2> select 200
3> :list
select 100
select 200
3>

ODBC:
e:\git\go-sqlcmd\cmd\sqlcmd>"C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SQLCMD.EXE"
1> select 100
2>
3>
4>
5>
6> select 200
7> :list
select 100

select 200
7>

With Fix:
e:\git\go-sqlcmd\cmd\sqlcmd>.\sqlcmd
1> select 100
2>
3>
4>
5>
6> select 200
7> :list
select 100

select 200
7>

Should we be disabling ed command if it is not an interactive session? It's unlikely that one would have ed in their sql script but should we be throwing error if that's the case?

The odbc sqlcmd allows ed during non-interactive runs.

Remember, sqlcmdeditor can be set to run some tool that automatically makes changes to the content of the file without any user input. So you could use it to run a perl or awk script etc.

@apoorvdeshmukh  or @stuartpa  do you have a working Linux or WSL instance to test this with? My WSL got broken with the Win11 upgrade.

@apoorvdeshmukh or @stuartpa do you have a working Linux or WSL instance to test this with? My WSL got broken with the Win11 upgrade.

I have WSL instance. Will test this.

On windows I do not see the interactive session being terminated after execution of SQL commands mentioned in editor via ed
git\go-sqlcmd>.\sqlcmd.exe
1> ed
1> select @@version
2> go

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Microsoft SQL Server 2019 (RTM-GDR) (KB5014356) - 15.0.2095.3 (X64)
        Apr 29 2022 18:00:13
        Copyright (C) 2019 Microsoft Corporation
        Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 22621: ) (Hypervisor)

(1 row affected)
1>

On WSL I see this getting terminated and there are some whitespace characters thrown
~/git/go-sqlcmd$ ./sqlcmd -S<IP_ADDRESS> -Usa
Password:
1> ed
Vim: Warning: Input is not from a terminal
1> select @@version
                   2> go

                                            ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                                                                Microsoft SQL Server 2019 (RTM-GDR) (KB5014356) - 15.0.2095.3 (X64)
                                                                                Apr 29 2022 18:00:13
                                                                                Copyright (C) 2019 Microsoft Corporation
                                                                                Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 22621: ) (Hypervisor)

                                                                                (1 row affected)
                                                                                1> ~/git/go-sqlcmd$


add the concept list

Can we have the concept list please also be added to conceepticon? It is quite nice to see that this is a dataset with cognates and full BIPA !

It is only missing the linking to Concepticon, Natalia and I did this a long time ago. I can the see the concept list is already there: https://github.com/concepticon/concepticon-data/blob/master/concepticondata/conceptlists/Walker-2011-100.tsv

Should already be in: https://github.com/concepticon/concepticon-data/blob/master/concepticondata/conceptlists/Walker-2011-100.tsv-metadata.json

we should remove ./etc/concepts.tsv and update the code too.

excellent, I was checking the datasets for lexicore...

this may not be a great candidate as the data looks problematic (Fernando O. de Carvalho has a paper he's writing on how dodgy it is).

Done https://github.com/lexibank/walkerarawakan/commit/c42edf0fe5a2b495e40f7137b3ad41a0eae34560.

Done https://github.com/lexibank/walkerarawakan/commit/c42edf0fe5a2b495e40f7137b3ad41a0eae34560.


feat(otlp-transformer): consolidate scope/resource creation in transformer

Which problem is this PR solving?
Resources and scopes creation are currently duplicated across all signals even though they're the same. This PR pulls them out into shared functions for all signals.
Replaces #4429

FYI @legendecas this is the stale #4429 with the changes I suggested to make the workflows pass.

I am fine with droppedAttributesCount since it exists in the proto. However, as the key attributes is optional, I think droppedAttributesCount could be optional as well.

@legendecas, ah sorry I took me a while to understand what you meant on the original PR. :sweat_smile:
As it's optional in the proto, and we don't set it to anything other than 0, we might as well leave it out, you're right. I pushed a commit to change this (56cf720). This way we also don't need to adapt the tests.


⚠ CrackingItaly has degraded performance

In 127839a, CrackingItaly (https://crackingitaly.to) experienced degraded performance:

HTTP code: 200
Response time: 8899 ms

Resolved: CrackingItaly performance has improved in 11ace9d.


Herbs generated project must born with gitignore file

I was thinking the herbs-cli could create a gitignore file inside the root folder of the project, excluding the usual node files like node_modules to be commited.

herbs new
...

A .gitignore file will exist in the root folder of the project.
The initial content of the file could be (just a suggestion):
### Node ###
# Logs
logs
*.log

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

sounds great. can we use the a standard .gitignore like https://github.com/github/gitignore/blob/main/Node.gitignore ?

sounds great. can we use the a standard .gitignore like https://github.com/github/gitignore/blob/main/Node.gitignore ?

Sure! The CLI could download it, in order to keep the project generation using always the up to date file provided by Github.

Sure! The CLI could download it, in order to keep the project generation using always the up to date file provided by Github.

Or just copy/paste it. I'm fine with it.

I was checking the git generator, the gitignore file is already in the templates, but is only created if you select yes as the answer to initialize a git repository. If I'm working with a monorepo approach, it will never generate a gitignore file to the project, since I'm not initializing a git repository again.


hey there

hi nnni. this is overlord cheese, a kid you used to talk to on discoird. I got sent to a wilderness therapy and am now at a tbs. im still into electronics and am currently reading a book on circuit analysis (well, more like pushing my way through it, its suuuper boring)
miss ya. everything else was blocked and i dont have much time so yeah this was the on;ly place i could contact you

Hi, glad to know you're doing okay! I've been wondering for a long time as well.
I don't really like to read books about circuits because it's all so much maths. The Art of Electronics is the only thing I would consider a good read, and there's a PDF version available online.
I hope everything works out fine and you will be active on Discord again.

I'll take what I can get with circuits right now, plus I don't mind math (all I lack in terms of know how is calculus, and I'll be learning that soon).
As for AOE, I've already asked my parents for it, and a PDF wouldn't work, cause, well... I don't really get to use screens. On that note, someday I will be on discord again but not anytime soon. Well, at least not consistently. it may be over a year before I can do that with the restrictions here.
...But I look forward to talking to you then
:)

No problem, see you then!
P.S. AoE 3 is like 50USD, you can probably get the second edition cheaper but wouldn't recommend it.


Navbar button gets pushed on second row because of form

I have a navbar with a bunch of buttons, a hidden form and a float right dropdown. Sometimes when loading the page the button named "Dropdown" will be rendered on a 2nd row and refreshing the page will either fix or break the button. Sometimes it's the opposite, the button is on the first row and refreshing the page will break it.
JSBIN: https://jsbin.com/guruzocafo/1/edit?html,output
Even though it should have no impact, declaring bootstrap.css before bootstrap.js seems to fix the issue.
I'm using a customized bootstrap with @grid-float-breakpoint set to 1px (I don't think this is related to the problem) version 3.3.5
jQuery 2.1.4
Stackoverflow post
http://stackoverflow.com/questions/33107792/bootstrap-navbar-button-gets-pushed-on-second-row

@Fatcrobe you're messed up with .collapseMenu. Why you override margin-right on your button?

@Fatcrobe you're messed up with .collapseMenu. Why you overwrite margin-right on your button?

@dkfiresky Not sure I understand what you mean, I defined my own margin-right to get the proper position. I tried removing the margin-right on .collapseMenu and still have the issue.

Removed margin-right on  .collapseMenu because it's not related to the problem.

Also, the weird thing is that sometimes it renders properly but once I refresh the page a couple of times it breaks. The opposite can happen too.

@Fatcrobe Please make your example into a JS Fiddle or JS Bin.

Tried this on CodePen and I can't see any unexpected behavior.

Hi @Murilirum!
You appear to have posted a live example (http://codepen.io/mur/pen/4451fb4b9c7348534363aaad0ce7a824.html), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:

line 24, column 13: W007: Found one or more <button>s missing a type attribute.
line 25, column 13: W007: Found one or more <button>s missing a type attribute.
line 26, column 13: W007: Found one or more <button>s missing a type attribute.
line 27, column 13: W007: Found one or more <button>s missing a type attribute.

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

 I just swapped them and the issue seems to be gone... anyone has an explanation?

I typically put my javascript in the footer but offhand I can't think of why that would adjust anything other than maybe browser caching causing you to not see changes made to the CSS until you modified the layout of the DOM.

Something I forgot to say is that when I opened my page sometimes the button would be in the correct place (single row) and refreshing the page multiple times would break it (would get pushed to 2nd row). Sometimes it would be the opposite, button is on 2nd row and then refreshing the page would fix it.

Something I forgot to say is that when I opened my page sometimes the button would be in the correct place (single row) and refreshing the page multiple times would break it (would get pushed to 2nd row). Sometimes it would be the opposite, button is on 2nd row and then refreshing the page would fix it.

What resolution was this at? RIght at the 559 breakpoint or something different?

Lower than 559
Right now I have my page opened and not able to reproduce the problem. Now with my page still opened I just moved the CSS to the footer and I hit refresh a couple of times and now the button is on the 2nd row.
Now if I increase the width of my window to higher than 559 the button dissapears and if I reduce my window width to lower than 559 the button re-appears but is on the 1st row (as you would expect)

I just moved the CSS to the footer
Is there a particular reason for doing this? I'd recommend CSS be loaded in the header and just the jQuery / bootstrap library be handled in the footer. You'd want the styles to be available to the tags before they are loaded rather than vice-versa.

I have my page opened and not able to reproduce the problem
I haven't seen any unexpected behaviour yet so I'm assuming this is then resolved - to some degree?

@Murilirum Try moving CSS files to the footer and see if you can reproduce.

@cvrebert How do I use those with a customized bootstrap?

@Fatcrobe No change was visible.

How do I use those with a customized bootstrap?

You can import external stylesheets. I prefer CodePen out of habit for presenting examples, and you can provide a URL for a stylesheet and it will then be available.

@Fatcrobe, @Murilirum position of <link> and


Storefront empty cart view error

Summary
Open empty cart

Expected result:
The nice message e.g. your basket is empty should be displayed
Steps to reproduce

Open cart without any products inside
https://demo.saleor.io/default-channel/en-US/cart/

A link to a reproduction repository
No response
Output from envinfo
No response

When testing fix please check following scenario:
Checkout token is not cleared after changing channel
Steps to reproduce the problem:
Go to channel-pln  and add item to cart
Change channel in URL to default-channel  and view cart again
Current result:
Checkout remains on the channel-pln  instead of being cleared for default-channel
Expected result:
Checkout is cleared after changing channel
OR
Checkout is saved per-channel (going back to channel-pln  would restore the old checkout)

seems they removed the cart completely:
https://github.com/saleor/react-storefront/pull/508

@jTiKey checkout gives the same functionality as the cart view, you can adjust quantities and add promo codes.
We will add mini cart instead in the future.


adding custom http headers

hello how can I add custom http headers to my request ?
(Some sites are only open with custom headers..)

??


Implement monitoring via Elasticsearch + Kibana

Currently, the only information we provide the user about the progress of their workflow is via logging. We would like to extend the information collected, and present this information in a more useful way. The goal of the monitoring system should be to provide an easy-to-understand overview of the current state of the workflow, and to help the user spot problems for faster debugging.
The approach we're proposing is to send information to an Elasticsearch database, and to build a kibana dashboard for viewing it. Sending the information to the database will happen in two places: in the main parsl process, and remotely, where the task is running. @yadudoc has started a sketch here that sends some simple information to the database from the main parsl process side, and includes a link to the Elasticsearch instance he's running, which you should use for testing. We should all brainstorm what kind of information will be most useful and collect it here, but to start out, very basic information is sufficient, for example: a table of the task ids and statuses; a plot of time vs number of tasks finished, hostnames tasks are running on, task runtime duration, etc. We do not currently have anything implemented for the remote side. The rough idea would be that you would implement some kind of wrapper, which would run around the main task, and send information back to the database. Here is an example of a simple wrapper, which you would, for example, hook up by replacing func on line 19 of the same file with app_wrapper(func). That wrapper could use a similar approach as what Yadu implemented to send information back to the database. At first, stuff like the task run time, hostname, etc, would be good. Eventually we'd want to add resource monitoring information like CPU usage, memory usage, disk usage, etc. This you could implement yourself using (probably) stuff like this, or maybe it would be worth checking out what's out there in terms of ready-made tools (a quick search brought up this, which looks interesting and has a built-in dump-to-elasticsearch.)
One thing we haven't thought out very well, but that needs to be addressed, is some sane way of differentiating between runs, and probably of resetting the database if you want to clear out old monitoring information.

@kylechard @danielskatz @mjwilde @yadudoc feedback appreciated if you have anything to add

I think the kibana docs give a good sense for what is possible with kibana, and here are some workflow-specific examples. Here is a non-kibana example from the Lobster workflow system which might help us with ideas for the kind of information that is useful to present.

thanks - this makes sense to me now.  I don't think I have anything to add at this point.

Relevant feedback from Slack from @reidmcy:

Is there any way to see what’s happening on aws nodes, live or after the run?
I want to know how much memory is being used so I know how many jobs can run simultaneously on a node


Can't navigate from default directory

Create new scene
Add node2d
add script to node (works fine)
reload scene
add new node2d
add script to node
Save a File dialog default to Roaming dir and trying to go to parent directory does not work

This issue is somewhat old and appears to be fixed by now. I could not reproduce it. If anyone still encounters this bug, briefly comment and it'll be reopened.


Adjust Layout to reduce Tab Overlap

reduce top margin on canvas
increase margin of top panel to push tabs down a bit

Related issue #15

Thanks for your contribution!


hook for keyboard down or when user start typing

Hi,
I am not sure if there is a hook here where I can track when user starts typing?
I have tried the following but doesnt work...
  const element = document.querySelector("#my-autocomplete-container");
  const id = "app-site-search__input";
  accessibleAutocomplete({
    element: element,
    id: id,
    confirmOnBlur: false,
    autoselect: true,
    source: customSuggest,
    templates: {
      inputValue: inputValueTemplate,
      suggestion: suggestionTemplate,
    },
  });
  // attach event listener
  let input_field = document.getElementById(id);
  // generate a debounced version with a min time between calls of 1.5 seconds
  let searchTerm = function () {
    console.log('searched'+ input_field.value)
  };
  input_field.addEventListener("input", searchTerm);

onConfirm only gets fired when user presses enter which is not what I want.

@cddodev you can most likely add this hook as another side effect to the source


[concurrency] Avoid capacity in Deque on OpenBSD.

Deque creates a new ManagedBuffer when growing the underlying storage for
its elements. It sets the capacity in the header object, however it
initializes that field with ManagedBuffer.capacity.
ManagedBuffer.capacity is marked unavailable on OpenBSD because
ManagedBuffer unavoidably depends on malloc introspection which is
unavailable on this platform.
Obviously, we could mark the whole class as unavailable, but we don't
need to do anything so drastic since it appears though that Deque doesn't
unavoidably need this introspection. Therefore, on OpenBSD, just use
minimumCapacity when creating a new ManagedBuffer when growing and
moving elements.

cc @phausler who authored the pr introducing Deque

Please do the needful on my behalf to merge. Thanks!

@swift-ci please smoke test

@swift-ci clean test Linux

@3405691582 This code comes from Swift Collections; if the OpenBSD port already supports SwiftPM, would you be willing to see if that package has any other issues on this platform?
This patch looks straightforward enough to apply there, but I wouldn't want to speculatively make changes without a means to test them.

@lorentey swiftpm is not completely fully baked on OpenBSD but I'm happy to give Collections a try when I next get a chance.


Watch tweets.toml in daemon instead of fixed delay

Not sure how to mitigate cascading (since we're also saving tweets.toml in the loop).

See the fix/watch-tweets.toml-instead-of-waiting branch (esp. https://github.com/nabijaczleweli/not-stakkr/commit/3f4604c5e96f55e2be12521200cf729c74d9cb89) for not-working (cascading) impl


Stable dependencies and a temporary fork of fs2-rabbit

Hi @gvolpe,
We are using fs2-rabbit in production and because of that we don't want to use unstable libraries which version 0.8 currently would force us to (cats-effect, fs2, and circe).  We have therefore forked your project in  https://github.com/ITV/fs2-rabbit.  That fork is basically the same thing as your project but with stable versions of the dependencies (and with #76 landed).
We don't want this to be a permanent solution.  Ideally you would provide a stable version of fs2-rabbit that we could use.
Thanks!

Hi @orium,
That's an unfortunate situation :disappointed: but I think that's the best for now.
We are all depending on a final cats-effect release (that has been delayed very much) and right now I don't have the time to maintain two different versions but I'd gladly make you a maintainer if you're interested, just drop me a line here or on Gitter.

Out of curiosity, what versions of cats-effect and fs2 are you using?
The 0.7 release is built on Cats Effect 1.0.0-RC and Fs2 0.10.4.

Out of curiosity, what versions of cats-effect and fs2 are you using?
The 0.7 release is built on Cats Effect 1.0.0-RC and Fs2 0.10.4.

Cats effect 0.10.1 and fs2 0.10.5.  Bumping the cats effect to 1.0 would force use to use an unstable http4s (0.19.0-M1), which we really don't want to do.

That's an unfortunate situation :disappointed: but I think that's the best for now.

I agree.    Fortunately this should not be a problem for too long since cats-effect 1.0 will likely be release in the next few weeks, then fs2 1.0 hopefully will not take too long after that.  Http4s should follow: in https://github.com/http4s/http4s/issues/1797 they say they want to release http4s 0.19 on fs2/effect-1.0 ASAP.
If everything goes well we should be able to kill or fork in the next few months :) :crossed_fingers:


Show paypload of a scheduled task

Please describe the feature you would like to see implemented.
Dont know if its possible, but it would be very cool if the paypload of a task could be display in a modal.

Queues by design does not allow showing the content. The only way could be to "consume" it and unserialize it, but that could break the message. I don't see a clean way to implement such stuff


Literal  block drops white-space

Markdown input:

(def newline-should-start
    :here)

Expected output (should work the same as a markdown code-block literal):
"
(def newline-should-start\n    :here)
"
Actual output:
"
  (def newline-should-start     :here)
"

I think this should be an upstream issue with markdown-clj?
On Sun, 5 Nov 2023 at 16:44, kimo-k @.***> wrote:

Markdown input:

(def newline-should-start
    :here)

Expected output (should work the same as a markdown code-block literal):
"(def newline-should-start\n :here)"
Actual output:
"  (def newline-should-start :here)  "
—
Reply to this email directly, view it on GitHub
https://github.com/borkdude/quickblog/issues/72, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACFSBTYGZKABIP3WWNB33TYC6X4NAVCNFSM6AAAAAA66NKOI6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TOOBUGM3TEOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Looking over markdown-clj, I think you're right:
https://github.com/yogthos/markdown-clj#limitations
I guess that means quickblog is incompatible with cljs-showcase when it comes to multiline code snippets. I wonder what workarounds are possible. Would you consider making the markdown parser pluggable in quickblog?

I'm open to that, but I don't know any markdown parser that is bb compatible other than markdown-clj


 They changed the compression library after the DLC to zstd instead of zlib, but you can easily fix it by running the game once, just get to the menu so it updates your regulation file in the save.

Now i have this Problem with my Save file i can opend yesterday

post the save

https://drive.google.com/file/d/1KntRBW23E1DmTMAx2J4NvZ5XA-QzsI2s/view?usp=drivesdk

And i can Not add items to it

Im having issues too when importing a PS4 save to PC...
When i open the PC file after importing im getting this error:

the ps4 save:
https://drive.google.com/file/d/13XnR-Ju5SVkv9pvEjKhSocKE7gHjxtC_/view?usp=sharing

Now i have this Problem with my Save file i can opend yesterday !

I've got the same issue, need a save?
I'm running it on linux so I am manually building the latest release.

I Need only my ps4 Save to be edited
But i can Not add items to it
If i Click on a item to add nothing Happens

Some News @ClayAmore

@Buxata hey can u edit my save file ?


Update registries sync status after sync from registry action

Issue: AAH-1094
UI part of issue AAH-1094. Fixed backend here #1056 (merged).
With fixed backend registry sync status is now showing correctly, but it doesn't get updated after the sync from registry action. We have to manually reload the page to see the result. This PR fixes the status and keeps fetching registries until the status is completed.

I think we should merge queryRegistries and updateRegistries...
both use ExecutionEnvironmentRegistryAPI.list, both set items, itemCount, loading,
but right now, changing the page or reloading the page won't make the list autoupdate, so it works only after pushing the sync button, not when seeing a syncing task.
What about something like...
diff --git a/src/containers/execution-environment/registry-list.tsx b/src/containers/execution-environment/registry-list.tsx
index b1ea942..8bddf1b 100644
--- a/src/containers/execution-environment/registry-list.tsx
+++ b/src/containers/execution-environment/registry-list.tsx
@@ -434,34 +434,24 @@ class ExecutionEnvironmentRegistryList extends React.Component<
     );
   }

-  private queryRegistries() {
-    this.setState({ loading: true }, () =>
-      ExecutionEnvironmentRegistryAPI.list(this.state.params).then((result) =>
+  private queryRegistries(noLoading = false) {
+    this.setState(noLoading ? null : { loading: true }, () =>
+      ExecutionEnvironmentRegistryAPI.list(this.state.params).then((result) => {
+        const isAnyRunning = result.data.data.some((task) => ['running', 'waiting'].includes(task.last_sync_task.state));
+
+        if (isAnyRunning) {
+          setTimeout(() => this.queryRegistries(true), 5000);
+        }
+
         this.setState({
           items: result.data.data,
           itemCount: result.data.meta.count,
           loading: false,
-        }),
-      ),
+        });
+      }),
     );
   }

-  private updateRegistries() {
-    ExecutionEnvironmentRegistryAPI.list(this.state.params).then((result) => {
-      const isAllCompleted = result.data.data.every(
-        (task) => task.last_sync_task.state === 'completed',
-      );
-
-      if (!isAllCompleted) setTimeout(() => this.updateRegistries(), 500);
-
-      this.setState({
-        items: result.data.data,
-        itemCount: result.data.meta.count,
-        loading: false,
-      });
-    });
-  }
-
   private deleteRegistry({ pk, name }) {
     ExecutionEnvironmentRegistryAPI.delete(pk)
       .then(() =>
@@ -495,7 +485,7 @@ class ExecutionEnvironmentRegistryList extends React.Component<
             </Trans>
           </span>,
         );
-        this.updateRegistries();
+        this.queryRegistries(true);
       })
       .catch(() => this.addAlert(t`Sync failed for ${name}`, 'danger'));
   }

@himdel rewritten to your solution, much nicer and working good, thanks :+1:

(adding this to a few recently updated PRs…) We need CI in this repo that enforces this, but for now please:

Add a line to at least one of your commits that says Issue: AAH-#### (in the future it is best to be the first commit as it gets included in the initial PR description by default)
Ensure when merging that the Issue: AAH-#### is part of commit message via the “Squash ‘n’ Merge” description

Added Issue: AAH-1094 to the latest commit description


[metadata]: Analyze all metadata of externally orchestrated S3 buckets using REST API

** Issue/Feature Description:

Analyse metadata of externally orchestrated S3 buckets using REST API:

[ ] The scope of this task is to analyse all metadata of s3 buckets.
[ ] How can we aquire these metadata
[ ] For AWS cloud
[ ] For GCP cloud
Why this issue to fixed / feature is needed(give scenarios or use cases):

How to reproduce, in case of a bug:
**Other Notes
Please prepare google doc for this task

@amitdn2005 Please take a look of this task


Fix issue about disabled labels of LinkPager

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

sr-only is bs-4 code and does not exists in bs-5 (https://getbootstrap.com/docs/5.0/migration/#helpers). Furthermore it's not default any more according docs.

Ah, forgot to check it, but your code is missing > symbol on this line https://github.com/yiisoft/yii2-bootstrap5/blob/master/src/LinkPager.php#L105

fixed, ty


[engine] Refactor and adjust APIs in engine/framework

[x] Rename lib to framework @liuzix  #5826
[ ] Rename BaseMaster, BaseWorker and BaseJobMaster to appropriate names. @gozssky
[ ] Investigate a solution for splitting the bases into MasterDriver, WorkerDriver, etc., and MasterAPIs, WorkerAPIs, etc. @liuzix
[ ] Simplify framework managed states to Running, Finished and Failed. @maxshuang
[ ] JobMasters should be able to UpdateConfig. @maxshuang
[ ] Add StopImpl as a callback. @gozssky

@liuzix  name after the item means owner? Right?

@liuzix name after the item means owner? Right?

Yes


Unit Testing shows flawed test example

this test:
test('should fail if user does not accept terms', async () => {
  const user = {
    id: 1,
    name: 'Rich Haines',
    email<EMAIL_ADDRESS>    acceptTermsAndConditions: false,
  }

  prismaMock.user.create.mockRejectedValue(new Error('User must accept terms!'))

  await expect(createUser(user)).resolves.toEqual(
    new Error('User must accept terms!')
  )
})

tests this function:
export async function createUser(user: CreateUser, ctx: Context) {
  if (user.acceptTermsAndConditions) {
    return await ctx.prisma.user.create({
      data: user,
    }) // ALWAY THROWS, DUE TO THE MOCK
  } else {
    return new Error('User must accept terms!')
  }
}

This line
prismaMock.user.create.mockRejectedValue(new Error('User must accept terms!'))
lets the test succeed no matter which path the execution goes. If the code gets changed in some way that ctx.prisma.user.create actually gets executed, the test would suggest that the guard is still intact although it isn't.

After testing this myself, it appears the test behaves correctly as is. I did decide to change the user.create mock to simply do nothing as it doesn't matter in this scenario how the query behaves.


Error on reinstall

Describe Your Problem:
Reinstalling due to SD card failure in Hoobs raspberry pi.
Installed plugin and connected to TV.  Error in logs. Power button not doing anything in Apple Home app.
Logs:
21/08/2023, 17:09:56Hisense Tv Remotenow BridgeHiSenseTVERRORAn error occurred while fetching inputs: TypeError: Cannot read properties of null (reading 'join')
Show the Homebridge logs here, remove any sensitive information.

**Plugin Config:**
{
    "platform": "HiSenseTV",
    "devices": [
        {
            "id": "HiSenseTV",
            "name": "HiSense",
            "ipaddress": "<IP_ADDRESS>",
            "macaddress": "80:CB:BC:83:9B:9E",
            "sslmode": "custom",
            "sslcertificate": "~/cert.cer",
            "sslprivatekey": "~/key.pkcs8"
        }
    ]
}
```json
Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

Plugin Version:2.0.0
Homebridge Version:  NA - Hoobs
Node.js Version:  v16.20.0
NPM Version:  8.19.4
Operating System:  Hoobs - Raspberry Pi

Hey @gjlamb !
Have you paired the TV after reinstalling?

Yes.  Get the code successfully to pair.
Found a closed issue so moved cert files from ~/ to new folder in plugin directory.  Chmod 777 directory and files for good measure.  Same error.

On 21 Aug 2023, at 5:26 pm, Alessio Moiso @.***> wrote:
Hey @gjlamb https://github.com/gjlamb !
Have you paired the TV after reinstalling?
—
Reply to this email directly, view it on GitHub https://github.com/MrAsterisco/homebridge-hisense-tv/issues/50#issuecomment-1685792928, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMCBWUNJ4E5QQZ2C4SSP6MDXWMEQTANCNFSM6AAAAAA3X55AKI.
You are receiving this because you were mentioned.

Do you have other logs around the type error one?

Thats all the log I see in Hoobs console.  If theres another location from RPi system I can get them

Could you try using the Python script directly? Does it work?

Is there documentation on command examples?On 24 Aug 2023, at 5:25 pm, Alessio Moiso @.***> wrote:
Could you try using the Python script directly? Does it work?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

The authorize command runs finesudo python3.9 hisensetv.py <IP_ADDRESS> --authorize --ifname wlan0 --certfile ../keys/cert.cer --keyfile ../keys/key.pkcs8I tried this if that’s what you were @.:/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin$ sudo python3.9 hisensetv.py <IP_ADDRESS> --key menu --certfile ../keys/cert.cer --keyfile ../keys/key.pkcs8[2023-08-24 17:46:51,374] [INFO    ] SSL context created with cert file (../keys/cert.cer) and private key (../keys/key.pkcs8)Traceback (most recent call last):  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 61, in get_mac_address    interface = netifaces.ifaddresses(ifname)ValueError: You must specify a valid interface name.During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv.py", line 6, in     main.main()  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/main.py", line 125, in main    tv = HisenseTv(  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 116, in init    self._mac = get_mac_address(network_interface)  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 64, in get_mac_address    raise HisenseTvError("Unknown network interface: " + ifname)hisensetv.HisenseTvError: Unknown network @.:/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin$ Sent from my iPadOn 24 Aug 2023, at 5:25 pm, Alessio Moiso @.***> wrote:
Could you try using the Python script directly? Does it work?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Yes, you can find the documentation of the Python script here.

Looks like it does work from @.:/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin$ sudo python3.9 hisensetv.py <IP_ADDRESS> --get volume --ifname wlan0 --certfile ../keys/cert.cer --keyfile ../keys/key.pkcs8[2023-08-24 17:55:09,507] [INFO    ] SSL context created with cert file (../keys/cert.cer) and private key (../keys/key.pkcs8)[2023-08-24 17:55:09,509] [INFO    ] Network interface MAC Address: 1e:6f:97:19:3c:e7{    "voice_type": 2}Sent from my iPadOn 24 Aug 2023, at 5:51 pm, Alessio Moiso @.> wrote:
Yes, you can find the documentation of the Python script here.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Can you invoke it with --get sources?

No @.***:/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin$ sudo python3.9 hisensetv.py <IP_ADDRESS> --get sources --ifname wlan0 --certfile ../keys/cert.cer --keyfile ../keys/key.pkcs8[2023-08-24 17:59:09,303] [INFO    ] SSL context created with cert file (../keys/cert.cer) and private key (../keys/key.pkcs8)[2023-08-24 17:59:09,305] [INFO    ] Network interface MAC Address: 82:cf:77:df:34:81Traceback (most recent call last):  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 207, in _wait_for_response    return self._queue[topic].get(block=True, timeout=self.timeout)  File "/usr/lib/python3.9/queue.py", line 179, in get    raise Empty_queue.EmptyThe above exception was the direct cause of the following exception:Traceback (most recent call last):  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv.py", line 6, in     main.main()  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/main.py", line 141, in main    output = func()  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 54, in wrapper    return func(self, args, kwargs)  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 573, in get_sources    return self._wait_for_response(topic=self._our_topic)  File "/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin/hisensetv/init.py", line 209, in _wait_for_response    raise HisenseTvTimeoutError(hisensetv.HisenseTvTimeoutError: failed to recieve a response in 10.000sSent from my iPadOn 24 Aug 2023, at 5:58 pm, Alessio Moiso @.> wrote:
Can you invoke it with --get sources?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Looks like the TV isn't responding to the command, which is what causing the plugin to fail. Not much that we can do there: have you tried restarting the TV?

I did a restart this morning after an update.
No problem.  I think this model has never really worked well with the
plugin.  Best I could get was power but haven’t been able to get that
either lately.
On Thu, 24 Aug 2023 at 6:07 pm, Alessio Moiso @.***>
wrote:

Looks like the TV isn't responding to the command, which is what causing
the plugin to fail. Not much that we can do there: have you tried
restarting the TV?
—
Reply to this email directly, view it on GitHub
https://github.com/MrAsterisco/homebridge-hisense-tv/issues/50#issuecomment-1691209592,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMCBWUMDD3DC5HF5TBQRQ53XW4DTDANCNFSM6AAAAAA3X55AKI
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Greg Lamb
e: @.***
t: +61 419 222661 (WhatsApp)
p: PO Box 602, Broadway, NSW 2007 Australia

The plugin doesn't work if it cannot get the list of sources. That's definitely something we could improve: I don't have an HiSense TV anymore, so I can't really make changes to the plugin as I wouldn't be able to test it anymore, but I'd be happy to support you doing this change.

Happy to gather info and test but I’m not a coder so couldn’t do it myself.Sent from my iPadOn 24 Aug 2023, at 6:12 pm, Alessio Moiso @.***> wrote:
The plugin doesn't work if it cannot get the list of sources. That's definitely something we could improve: I don't have an HiSense TV anymore, so I can't really make changes to the plugin as I wouldn't be able to test it anymore, but I'd be happy to support you doing this change.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

I'll leave this issue open, then. Let's hope somebody can pick it up 😊

@gjlamb do you still have the tv?
If yes, I upgraded the plugin you could install the latest beta version. I am interested in if the plugin still crashes for you.

Will close as stale :)
if any problems arise just let me know.


'CENTER_OFFSET_OF_MAP', (30.0, 0)

Hi, I am very impressed by your great open-source work.
I want to ask you how you got the (30,0) for the  center_offset.
center_offset=self.dataset_cfg.get('CENTER_OFFSET_OF_MAP', (30.0, 0)),
Thank you in advance.

This is a hyperparameter and I just set it empirically.

Got it!
Thank you for your reply.


Correct option type for UDP encapsulation port

It seems to me that the type for SCTP_REMOTE_UDP_ENCAPS_PORT is checked as the struct, sctp_udpencaps, and not an int as described in the documentation.
https://github.com/sctplab/usrsctp/blob/279a68fd6f5b8b913bd19ca99342f5f3e285a6fe/usrsctplib/netinet/sctp_usrreq.c#L7346

Thanks, you are right.


Dolphin "Unable to create io-slave. klauncher said: Unknown protocol 'baloosearch'."

Describe the bug
A clear and concise description of what the bug is.
When running dolphin on plasma5, getting this error:
Unable to create io-slave. klauncher said: Unknown protocol 'baloosearch'.

/cc @ttuegel
To Reproduce
Steps to reproduce the behavior:

Open dolphin
Select "Search for -> Document"
Observe error

Metadata
Please run nix run nixpkgs.nix-info -c nix-info -m and paste the result.

system: "x86_64-linux"
host os: Linux 4.19.69, NixOS, 19.09pre191505.7d5375ebf4c (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2.2
channels(root): "nixos-19.09pre191505.7d5375ebf4c"
channels(mbauer): "nixpkgs-19.09pre191265.c4adeddb5f8"
nixpkgs: /home/mbauer/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: dolphin
# a list of nixos modules affected by the problem
module:

It looks like adding kdeFrameworks.baloo to systemPackage fixes it.

cc @nyanloutre

There is also a similar bug with Kmail if you don't include Akonadi in system path.
Something must have changed in the way binaries are found.

We should make sure that dolphin puts baloo in propagatedUserEnvPkgs; actually, anything that provides a kservice should.


[AnVIL Catalog] Hard code GREGoR consortia workspace sizes

For reasons, Terra can't give us the workspace size of the GREGoR workspaces for now.
We are requested to hardcode the values.
Could you update the workspaces on the catalog with the associated sizes? Thanks!
AnVIL_GREGOR_RELEASE_01_GRU: 59.43 TB
AnVIL_GREGOR_RELEASE_01_HMB: 6.22 TB
I think we can do this when reading in the datasets json.

Done


nixos/wg-quick: add AmneziaWG support

Description of changes
Censorship-resistant VPN based on wireguard.
https://amnezia.org/
Depends on #331598 and #331582.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@averyanalex , is this still draft, or could it be merged?

@averyanalex , is this still draft, or could it be merged?

Still a draft. I should add amneziawg-specified options. Maybe it worth it to create separate config options, not extending wg with type = amneziawg? Or keep it as is, but how to properly add conditional options, which exists only when type is amnezia?

@averyanalex , is this still draft, or could it be merged?

Still a draft. I should add amneziawg-specified options. Maybe it worth it to create separate config options, not extending wg with type = amneziawg? Or keep it as is, but how to properly add conditional options, which exists only when type is amnezia?

Maybe I'm missing something from the amneziawg docs but it doesn't seem to me that a normal wg client is compatible with a normal amneziawg server and vice-versa. If so, wouldn't a new package be a better idea?

Good work! Can I integrate your changes in my PR crediting you by Co-authored-by?
Sure, go ahead.

Good work! Can I integrate your changes in my PR crediting you by Co-authored-by?

Sure, go ahead.

Unfortunately, due to my studies, I didn't have time to finish my work, and it's worth closing this PR and working on https://github.com/NixOS/nixpkgs/pull/360866 instead. I will try to review it soon and give comments.

I decided to finish this PR (i.e. because many people subscribed to it). I think it is ready for merge/review.


ci: goreleaser to manage release of gofish fish food

closes #50

Codecov Report

Merging #85 (3409040) into main (c8dae9e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #85   +/-   ##
=======================================
  Coverage   80.62%   80.62%
=======================================
  Files          24       24
  Lines        1182     1182
=======================================
  Hits          953      953
  Misses        188      188
  Partials       41       41

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8dae9e...3409040. Read the comment docs.


Documention/Links on how to contribute

I have been using this plugin to build my apps for several years. I need to add support into my product for building with Notarization and possibly using a newer JDK than Java8.
It would be great if you had a document on how to contribute to your project or links on how to make changes to a plugin that is located locally instead of pulling from maven.

I would recommend switching to TheInfiniteKind/appbundler and using Gradle's integration with ant since this project is no longer maintained.


Analyzer fails to detect use of initializing formal in closure signature.

This regression test fails:
language/regress_26855_test/4
class C {
C();
C.f4(int g(this.x));  /// 4: compile-time error
}

https://codereview.chromium.org/2178123003

https://github.com/dart-lang/sdk/commit/f8c32c5ea1a7f7ce0786af3c30a8f70d01b361f0


Fix lastFetch status calculation.

Was previously milliseconds/seconds when calculating whether to display the message about reporting failures.

Current coverage is 74.22% (diff: 0.00%)

Merging #1325 into master will not change coverage

@@             master      #1325   diff @@
==========================================
  Files           184        184
  Lines          5567       5567
  Methods           0          0
  Messages          0          0
  Branches        853        853
==========================================
  Hits           4132       4132
  Misses         1120       1120
  Partials        315        315

Powered by Codecov. Last update a6785af...62521f3

@herder or @ryanjbaxter can one of you explain why this changed?

lastFetch is calculated using milliseconds, but clientConfig.getRegistryFetchIntervalSeconds is specified in seconds. So lastFetch was always on the order of a 1000 times too large, which made the "Eureka discovery client is reporting failures to connect to a Eureka server" always show up.
I'd be happy to write a test for this, but I'm not sure how... :)

@spencergibb exactly what @herder said.  At least that was my interpretation of the code when I looked at it.

Thanks guys for the explanation. This snuck in to Brixton as well.


Add nuts-rs's metric adaptation

nuts-rs is a Rust implementation of NUTS that is wrapped by nutpie for use in PyMC. It has a novel metric adaptation approach, described as:

In a first window we sample using the identity as mass matrix and adapt the step size using the normal dual averaging algorithm. After discard_window draws we start computing a diagonal mass matrix using an exponentially decaying estimate for sqrt(sample_var / grad_var). After 2 * discard_window draws we switch to the entimated mass mass_matrix and keep adapting it live until stop_tune_at.

On Mastodon, @aseyboldt shared the following plot:

On Slack, he explained:

This shows the effective sample size divided by the total number of gradient evals (during warmup + sampling), for 200 and 1000 warmup steps and nutpie and stan (with a diagonal mass matrix), for different models

The models were selected from posteriordb. In general, this seems to outperform Stan's metric adaptation and also work well for more models. It also seems to allow for much shorter warm-up phases.

There's also a work-in-progress paper here explaining the theory behind the method: https://github.com/aseyboldt/covadapt-paper/blob/main/main.pdf

Thanks, @aseyboldt for the pointers! I'll check back in if I get lost. Btw, I was scanning your draft of the paper, and it seems like a really nice contribution. I'm excited to read the finished version.

The mass matrix is initialized using the gradient (https://github.com/pymc-devs/nuts-rs/blob/main/src/adapt_strategy.rs#L267)

Why this particular initialization choice? Sometimes $J^TJ$ for Jacobian $J$ is used to approximate the Hessian, which would correspond to using the square of the gradient; if the target distribution is IID Gaussian and the initial point is drawn from the same distribution, then the expected value of this initialization is the true inverse covariance matrix.

That's a good question, initially I was using the square of the gradient. From some experiments I'm pretty sure that that just doesn't work in practice though (but verification of that would be great ;-) ).
My motivation for 1/abs(grad) was that if we initialize the gradient variance using grad ** 2, and the draw variance using ones, the mean will be sqrt(1 / grad^2) = 1/abs(grad). I guess we can also interpret is as a regularized estimate.
So unfortunately I don't really have a good theoretical answer, more of a "that's what turned out to work well"...

@sethaxen Someone also asked on the stan slack, and I made a small notebook for comparing those with a diagonal normal posterior: https://gist.github.com/aseyboldt/46ce8a0967026fd3b7ae11a53c884975

@aseyboldt that was me :+1:
I performed the same experiment that you did, just for a standard normal target and for varying numbers of dimensions. From my experiment and from your experiment it seems to be clear that the question which initialization method you would expect to perform better will depend strongly on the posterior via the number of dimensions and (in this simple example) on the condition number of the (true) covariance matrix. In my experiment as well, the squared gradient "performed" much worse (higher condition number), due to the implied sampling frequency of the condition number.
I wonder whether the amount of regularization has to depend on the number of dimensions, or whether one would want to use some hierarchical model, or whether one might want to sample a few additional points (from the initialization distribution) to get a better "feel" for the distribution of the gradients.

one might want to sample a few additional points (from the initialization distribution) to get a better "feel" for the distribution of the gradients.

Maybe it would make sense to use pathfinder to get to the typical set first, then do the metric adaptation from initialization points from the typical set?

@nsiccha I still think looking at a standard normal is a bit misleading. It is I think quite normal that the initial mass matrix gets worse with increasing dimension, as the condition number is looking at the max and min eigenvalues, and with more dimensions there are just more variables that you could scale incorrectly. This also happens if you initialize using the identity and vary the true (diagonal) covariance.
With the code from the notebook and $log(\text{true sd}) \sim N(0, 1)$:

So both initialization methods get worse when n_dim increases, but in both cases using the gradient to initialize is better.
I think more important is what happens in real world posteriors. And there I observed that initializing with the grad avoids a phase very early in sampling where the step size is very small and tree_size very big, so where we do a lot of gradient evals for very little change in position.
@mike-lawrence

Maybe it would make sense to use pathfinder to get to the typical set first, then do the metric adaptation from initialization points from the typical set?

Yes, running pathfinder or advi (which is also pretty straight forward to do using the fisher distance by the way) might improve things further I think. There is also quite a bit of relatively low hanging fruit with generalizing this to low rank updates to the mass matrix (see for instance an experiment that I think could be simplified quite a bit here: https://github.com/aseyboldt/covadapt) or non-linear transformations of the posterior (normalizing flows etc).

@aseyboldt

I think more important is what happens in real world posteriors.

Absolutely. I've also realized that the dependence on the dimension is lower than I thought, or rather is less important for posteriors further from a standard normal. The above experiments still give you the "pseudo-theoretical" justification for why to initialize the way you do: Depending on the posterior, the grad-initialization performs best in expectation. :tada:

Sounds like a job for posteriordb

Thanks @aseyboldt and @nsiccha for this discussion! When I have a chance I'd like to play with some of these metric initialization experiments to build some intuition for why this works.

There is also quite a bit of relatively low hanging fruit with generalizing this to low rank updates to the mass matrix (see for instance an experiment that I think could be simplified quite a bit here: https://github.com/aseyboldt/covadapt) or non-linear transformations of the posterior (normalizing flows etc).

Yeah it feels like there's something here. Pathfinder similarly uses a low-rank-update matrix for the metric, but it tends to not do well when the Hessian of the negative log density is not everywhere positive definite. I wonder if some of the ideas of both methods could be unified/generalized.

Sounds like a job for posteriordb

:100: This is the way to go for benchmarking. FYI, there's a Julia wrapper: https://github.com/sethaxen/PosteriorDB.jl. BridgeStan.jl should be registered soon, and then I have some code I'll release in a package that converts a PosteriorDB.Posterior to a LogDensityProblem, which will make benchmarking with AdvancedHMC, DynamicHMC, Pathfinder, and others much easier.

Sounds like a job for posteriordb

@mike-lawrence That's where the plot in the description comes from :-)

100 This is the way to go for benchmarking. FYI, there's a Julia wrapper: https://github.com/sethaxen/PosteriorDB.jl. BridgeStan.jl should be registered soon, and then I have some code I'll release in a package that converts a PosteriorDB.Posterior to a LogDensityProblem, which will make benchmarking with AdvancedHMC, DynamicHMC, Pathfinder, and others much easier.

I'm excite :eyes:

Discussion on Stan Slack for any of the Julia folks not in the Stan Slack.


Compare to mtail?

https://github.com/google/mtail
In terms of metrics types and parsing ability, can you give a brief comparison in README?

I'm excited to see the tool! I knew it for the first time.
I haven't used it yet, so I cannot make a comparison. Welcome any comments.

Here's a quick stab, I could be wrong as well as I've not directly used mtail but I've heard it mentioned quite a bit and I think I understand how its meant to be used.

Option
Route

Operation
fluent-plugin
Runs as part of fluentd and offers metrics (for prometheus).

Operation
mtail
Binary runs separate from fluentd and offers metrics (for prometheus). Does not utilize fluentd.

Configure metrics
fluent-plugin
Use standard fluent config and terminology, e.g. tags, filter, match

Configure metrics
mtail
Use Regular expressions.