Add info about Netlify, convert .NOT_EDITED_HERE to YAML, other improvements

Describe the proposed changes

Per-PR checks with Netlify are now live, doc how they work in the README and CONTRIBUTING files
Convert .NOT_EDITED_HERE.txt to YAML for future automation, improve accuracy of file
Formatting improvements to PR template
Add brief doc about collaborating within a PR

Project version
n/a
Related issue
n/a
Related issue or PR in another project
n/a
Please take a look
@johndmulhausen you can work on your idea about redirecting the edit link to the source file for ref docs now. Let me know if Netlify stuff is accurate.

…improvements
Signed-off-by: Misty Stanley-Jones<EMAIL_ADDRESS>

Deploy preview processing.
Built with commit a200acb2da9a1f3f491c405728a00faf0d02fa41
https://app.netlify.com/sites/docker-docs/deploys/5820c61aa7e2d214389ce9ea

@mstanleyjones Thanks! But you need this .YAML file to live in _data!

Great work, @mstanleyjones, thanks :)


chatThreadClient.deleteMessage() allows any user to delete any other user's message

Package Name: @azure/communication-chat
Package Version: 1.0.1
Operating system: Windows
[ ] nodejs

version: 16.2.0

[ ] browser

name/version: Edge 92.0.902.78

[ ] typescript

version:

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
Any participant in a chat can delete a message sent by a different user. The SDK docs say that a user can only delete messages that they have sent. However, the SDK actually allows any participant to delete any message.
To Reproduce
Steps to reproduce the behavior:

Start with a chat thread with two participants.
Add a message from one chat participant
Attempt to delete the message from the chat thread client of the second participant.

Expected behavior
It should fail to delete the other user's message.

@JakeLokkesmoe  We are closing this for now, feel free to re-open if there are still any questions.

I would like to re-open this. i'm doing a POC app, and inside a thread, any use can delete any message, does not matter who's it is. can someone double check if it's the case?


Forecast notebooks

Notebooks for climatologyESP, ECCC forecasts and CASPAR hindcasts.
Does the extraction of the forecast, graph results and for the climatology + CASPAR hindcasts, does a forecast verification using the forecast evaluation WPS.

the ESP forecast works well for me? see here:
I changed nothing, just executed the code. Something else going on?

Closes #248, #247, #239


Have a slim version with the flash fallback and some JS code

For my other experiment, I need parts of webcamjs, but not the whole code. To avoid an unnecessary  fork and clustering, I wonder if you could split some code into a smaller npm module?
Just the flash fallback and some JS code for its event handling. So that I can reuse it somewhere else in another getUserMedia related project which already somes with it's own getUserMedia code.
And anyway, it's always good to split code into smaller reusable modules.

Ping?

Hey @binarykitchen,
I'm sorry, but I really don't want to split the library up.  It is important to me that I can include one single JS file, straight from the repo, and it all just works.  I don't want to have to use npm to piece it together.
You are of course more than welcome to take any parts you want and create your own module, with just the Flash piece.  It hasn't changed in years, so I don't think there is any risk of it getting modified from under you.  As long as Flash sticks around (which will probably be at least another year) I am confident the webcam code will still work with it.
Good luck, and sorry!

I understand. Still this is doable, and having pieces through npm modules is better. Modularity is awesome. And to have one single JS file, browserify is the answer.
Don't like the idea to fork and make my own modules. I ll think of something else then.

I apologize.  I understand modularity is great, but I see this as one single module.  And I really don't want to have to use npm or browserify to use it.  I like having it exist as one plain JS file.
Remember, GitHub has a fork button 😊 -- you can change this library however you want 😊
Sorry, and best of luck to you.

No problem, no hard feelings :)


Support Nested Json Data

Hi,
I realize for the nested data like this
{name: "Address.city", type: "text"},
Read is fine, but when submit actually it does not write into db, and sorting, filtering are not work in this case.
BTW, if support the nested column for nested fields will be better, but that is more stretch.
Thanks

Nested fields should work for reading and for writing. If it doesn't work it's a bug. The issue is not clear. The thing is jsGrid doens't write data to db since it's client-side control. Would be great if you could provide an example (jsfiddle demonstrating the issue would be appreciated).
Thank you!

Please see the example here:
http://jsfiddle.net/38mrv9tf/
I use the nested fields and the data table can read, but add, sort and filter do not work.
Thanks!

Jsgrid sorting is not working fine with nested data model...Please fix this bug ASAP.

@pramodachary, could you please open a separate issue for this and provide an example?

Hey
I am using v.1.5.2 and sort is not working when using dot notation, was it fixed on the newer version?
This is how my object looks like:
[
{
"id": 24,
"user_id": 1,
"allowed": true,
"plan": {
"id": 1,
"planName": "Christmas"
}
}
]
BTW, thanks for this great component

Any idea on how I can reconfigure jsGrid to recognize this json format?
{"ROWCOUNT":1,"COLUMNS":["ID","USER_ID"],"DATA":{"ID":[3],"USER_ID":["user1"]}}
I don't want to make another webservice for jsGrid if I don't have to.

@stevehn, it's a subject for a separate issue. A short answer would be: no need in a separate service, you always can remap data to expected format in the controller.loadData.


Service leftover after app is deleted

Create an app with a custom hostname published to a port in the app (i.e. -p thedadams.com:site:80)
Wait for app to be ready.
Delete the app

A service in the acorn namespace with the same name as the app will be leftover. Launching the app again with the same name will cause errors to appear in the controller such as
time="2023-04-01T21:41:06Z" level=error msg="error syncing '_t thedadams-site-2821127a-864/site': handler acorn-controller internal.acorn.io/v1, Kind=ServiceInstance: failed to update existing owned object acorn/thedadams-site /v1, Kind=Service for acorn-controller thedadams-site-2821127a-864/site, old subcontext [acorn-controller] gvk [internal.acorn.io/v1, Kind=ServiceInstance] namespace [thedadams-site-cf711a04-f7d] name [site]: services \"thedadams-site\" already exists, requeuing"

This issue was also seen when apps were deployed with published ports.
Tested with acorn version v0.6.0-113-g83b7b9f3+83b7b9f3
Deploy app - testp with  custom hostname published to a port in the app.
Deploy app - test  with  published port.
kubectl get service -n acorn
NAME    TYPE           CLUSTER-IP   EXTERNAL-IP                                  PORT(S)   AGE
testp   ExternalName   <none>       myweb.testp-6a24c04d-8c9.svc.cluster.local   80/TCP    2m57s
test    ExternalName   <none>       myweb.test-42be7a8d-734.svc.cluster.local    80/TCP    34s

Deplete the apps
~ % kubectl get service -n acorn
No resources found in acorn namespace.
ExternalName service gets deleted as expected.
Redeploying the same apps again  succeeds and no error messages relating to "failed to update existing owned object" is seen in controller logs.


[url_launcher] Status bar and Chrome's address bar are missing

I use the following url_launcher's version to open the links in my Flutter app:
url_launcher: ^6.1.5
I use the following code to do it:
var uri = Uri.parse(url);
    if (await canLaunchUrl(uri)) {
      print("Launch url: " + uri.toString());
      await launchUrl(uri);
    } else {
      throw 'Could not launch $uri';
    }

But, when call launchUrl then is being opening without address bar and status bar is missing as well. Please see:

If I just open Chrome not using my application and put the same address I see the status bar:

Hi @valerybodak-tag
If you want to open the webpage and see the status bar and the url you might want to add
mode: LaunchMode.externalApplication to your launch mode, so your function will look like this:
Future<void> _launchUrl(Uri url) async {
    if (!await launchUrl(url, mode: LaunchMode.externalApplication)) {
      throw 'Could not launch $url';
    }
  }

This will open the URL in Chrome or any other browser the user has installed.


[Bug]: java.io.FileNotFoundException on all games

All of the following criteria must be met

[ ] Full Latest.log file included. If no file exists then leave this unchecked and state so.

All of the following are optional to answer

[ ] Tried reinstalling the game.
[X] Tried reinstalling LemonLoader.
[X] Tried restarting device.

Describe the issue.
Every Game I try to patch any game, it fails on the same error. here is the error:
java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.melonloader.intaller/files/temp//dependencies/dex
Did you attach your log file?

[ ] Yes, I attached my log file to the text box above.
[X] No, I could not find a log file at /storage/emulated/0/Android/data/<package name>/files/melonloader/etc/Latest.log

You're running an outdated installer


Ignore CRD properties in ArgoCD sync

This PR teaches ArgoCD to ignore certain CRD properties when they are applied with the legacy CRD spec for OpenShift.

Without it, ArgoCD fails to properly sync the component manifests.
Closes https://github.com/vshn/k8up/issues/445
Checklist

[x] Keep pull requests small so they can be easily reviewed.
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
[x] Link this PR to related issues.

I've just tested this branch on a cluster with OCP3.11. The ArgoCD app is now all green :tada:
I'm going to spend a few minutes using the approach you suggested. If unsuccessful I'll leave it "hardcoded".

As briefly discussed, we're not going to spend the time now to engineer something sophisticated using recursion or anything similar.
We would revisit this topic when we can use ArgoCD with jqPathExpressions


Update reference-azure-machine-learning-cli.md

@j-martens : Thanks for your contribution! The author, @jpe316, has been notified to review your proposed change.

#sign-off

@j-martens: I'm sorry - only the author of this article, @jpe316, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off


refactor(replace NATS): add node operations and registration

Adds the grpc node operations, replaces the message bus for node-ops.
Adds the grpc registration server for the dataplane to register over grpc
Adds the corresponding test fixes and the deployer changes for the same.

Signed-off-by: Abhinandan-Pukait<EMAIL_ADDRESS>

@Abhinandan-Purkait before this can be merged please also change helm charts and the terraform in this repo and the helm charts in the mayastor PR (if not done already).

bors merge


Add funding option

See https://blog.opencollective.com/beyond-post-install/ for more details. Tested with npm 6.13.0.

You should go back to the default npm that ships with the Node.js version you are using :P
That being said, I'm in favor of this. I'll merge later and backport it to my v4-dev-xmr branch.

You should go back to the default npm that ships with the Node.js version you are using :P

Yeah yeah, I know, I'm already back on 6.12.0 😛


Fix iron man

Apparently we can't reuse connections with Iron Man; we have to make a new one for every single query.
Added a test_latency function, to see how long it takes to set up and tear down a connection. Currently only usable from the console, but could be added to the connectivity page.

From code review:
See if connection pool can have a connection ready to go when we need it, so we offload the setup time


Corelight SMB dashboard is broken

What are the steps to reproduce this issue?

Load corelight SMB dashboard

What happens?
Many of the tiles are broken, they are looking for "resp" instead of "id.resp_h"
What were you expecting to happen?
not break
Any other comments?
May warrant out of band release
What versions of software are you using?
5.3.3

https://github.com/gravwell/kits/pull/131


Filter by demographics in roster view

From our April 27 call with the wonderful Healey teacher team:
"can we filter by different demographics?
"flexibility to group by demographics and performance levels"

We have this design from before. Not sure if we want to revisit it or work on a new concept.
https://github.com/codeforamerica/somerville-teacher-tool/issues/36

I'm thinking a little different. As I understand it, the checkmarks in the drop-down above would show/hide different columns of data. What about a "sort" function that reorders the rows according to whichever group the teacher is interested in? Something like this: http://tristen.ca/tablesort/demo/

I like it. Maybe something like this with dynamic grouping headers?

Yes - on the right track with a 'sort' function. We do want to be able to filter out columns as needed. We also would like to move data around to look at it from different angles and to have the flexibility to group students as need. Then if we could take data from a table and turn it into a graph, chart, etc. that would help us get a visual of trends/movement of data.
Thanks for your work on this! It is seriously taking shape!

Roster Current Status GIF

ToDo:

[ ] Add red warning dots to MCAS Warning results only for now as per conversation with @marimuraki and @AmirHadjihabib
[ ] Get feedback from Healey team about:

[ ] if red warning dots are useful and if so,
[ ] which data items should get red warning dots

[ ] Blow away the risk analysis code, since the educator is doing her/his own risk sorting now

Warning labels that pop

Feedback from Uri Harel on what should have a warning indicator: https://github.com/codeforamerica/somerville-teacher-tool/issues/52#issuecomment-99487128

Let's call this "Improve Roster" so that it encompasses warning labels and a legend as well as filtering/sorting. Then when it's done we'll turn to the student profile.

Make your own view

Sort columns

New look for warning bubbles

I like having the ability to filter and sort. Would the interventions be listed here also (to see where interventions are concentrated relative to performance)?

Hi @jsgeiser! Showing interventions would absolutely be the next step. @AmirHadjihabib is putting together a design to show what that could look like.

@jsgeiser @AmirHadjihabib Created a new issue for this next piece: #87

@jsgeiser Here is a version with interventions both on the Roster and the Profile. It would be great to hear your thoughts. You can comment directly on the design.
http://invis.io/TK2ZLZU97
Press "c" to comment and hold "shift" to see clickable areas.
Thanks!


How are you doing?

Just wanted to check how you were doing.
How are you doing?

doing good, thx for asking!
how are you?

I'm doing good, thanks for asking 😂.
Working hard on VS 2!


Material-UI Swipeable Drawer Does not translate smoothly

I'm trying to implement a Swipeable Drawer, the drawer is visible, the fade out transition is smooth as well, however, the drawer does not translate smoothly, The drawer slides in and out without any transition style applied to it( which should be applied). One interesting case is that in case the "openDrawer" state is set to 'true', during initialization, the drawer translates smoothly, but beyond that, the transitions of the drawer are not smooth.
Here's a CodeSandBox link: https://codesandbox.io/s/xenodochial-ritchie-owen9

The conditional rendering was the issue.


Throws weird error every time I try to connect to any SSH session

X  Command failed: icacls C:\Users\AIDENM~1\AppData\Local\Temp\f-2020727-20396-jzys60.hkb3h /grant:r battlestation-t\aiden:(R,W)
battlestation-t\aiden: No mapping between account names and security IDs was done.
SSH   X  Remote rejected opening a shell channel: TypeError: Cannot read property 'shell' of undefined

I've tried reinstalling but that doesn't help. Not sure what's going on here. Any help would be appreciated.

I'm getting the same error, happened after updating to the latest version (now 1.0.120)

I also got this error when using version 1.0.120.
I tried icacls command in powershell, and found that the problem may be the space of username.
my-computer/my name will be trimmed to my-computer/my, so icacls fails.
After some investigation, I found #2824 makes this error.
I can connect properly after I revert the changes.
Here is a quick workaround to revert the changes:

Edit terminus-1.0.120-portable\resources\builtin-plugins\terminus-ssh\dist\index.js (line 2614 ~ 2616)

// let sid = yield (0,child_process.execFile)('whoami', ['/user', '/nh']);
// sid = sid[0].split(' ')[0];
// yield (0,child_process.execFile)('icacls', [temp.path, '/grant:r', `${sid}:(R,W)`]);
yield (0,child_process.execFile)('icacls', [temp.path, '/grant:r', `${process.env.USERNAME}:(R,W)`]);

Restart Terminus
Now Terminus should establish SSH connection properly

Please post the output of whoami /user/ nh on your PC.

Please post the output of whoami /user/ nh on your PC.

PS C:\Users\Ray Cheng> whoami /user /nh
desktop-jrlk2q1\ray cheng S-1-5-21-4163148248-353001864-4251232444-1001

Should be fixed now in the nightly build - thanks!


Ability to have sort col by view

Support separating sort constraint for different views.

Looks good! Can be merged after all comments have been address @vuon9


godef-jump do not work if emacs was not run in terminal

Could not run godef binary

whereis godef
godef: /home/deterok/.local/lib/go/bin/godef

It's work if i have added this in init.el
(setenv "GOPATH" (concat (file-truename "~/") ".local/lib/go/"))
(setenv "PATH"
        (concat (getenv "PATH") ":" (concat (getenv "GOPATH") "bin")))
(set-default 'godef-command (concat (getenv "GOPATH") "bin/godef"))

This is an issue with your environment. Your shell and your GUI session have different environment variables.
If you're using OS X, look into exec-path (see http://emacs.stackexchange.com/a/553 for example).
If you're using a different platform, ensure that your X session has the correct PATH set.


Fix wide character spacing

Fixes issue #1360.
Visual confirmation:

This should fix the italic, script, etc. unicode chars right?

Yep. Anything with a high surrogate \uD835.


[FLINK-35483][runtime] Fix unstable BatchJobRecoveryTest.

What is the purpose of the change
Fix unstable BatchJobRecoveryTest.
Brief change log
Verifying this change
This change is already covered by existing tests BatchJobRecoveryTest.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure


Set execution log name size to 255 to match filesystem limits

Filesystems typically support up to 255 characters as a filename, yet azkban itself imposes 128 characters. This might be quite limiting, especially when using deeply nested subflows.

The code suggests that the name represents flow name+job name. It's not a file name.
And the column value is not used.
See
azkaban.executor.JdbcExecutorLoader#fetchLogs
azkaban.executor.JdbcExecutorLoader.FetchLogsHandler
===
Did you run into issues with this limitation?
Why not go for 512 since this is varchar?

@hanny24 ping, are you still interested in working on this?

Close due to inactivity.


🪲 Bug Report - Use premium performance block blob storage for high performance workloads with ARG query

Describe the bug
For recommendation "Use premium performance block blob storage for high performance workloads" for storage accounts (https://azure.github.io/Azure-Proactive-Resiliency-Library-v2/azure-resources/Storage/storageAccounts/), it says "cannot-be-validated-with-arg" but if I run the following query I can see the tier, or does it refer to a different attribute?
Resources
| where type =~ 'microsoft.storage/storageaccounts'
| extend sku_name=sku.name, tier=sku.tier
|project sku_name, tier, name, kind

@pinyuko can you take a look at this?

We are able to see the tier, but we are not able to confirm whether the workload actually needs premium tier. @ejhenry , do you think we should directly list all storage accounts that are not using premium tier? Thanks!

We are able to see the tier, but we are not able to confirm whether the workload actually needs premium tier. @ejhenry , do you think we should directly list all storage accounts that are not using premium tier? Thanks!

Thanks for looking at this @pinyuko. As there is an additional step beyond checking the tier to determine what is appropriate for the workload, I think we should leave this as something that cannot be validated with ARG. We don't want to just pull all non-premium storage as that can result in incorrect recommendations.
@sihbher let us know if you think that sounds reasonable.

It makes sense now, thanks


FR: sort matchers on silences page

Currently matchers are not sorted on "silences" page. I ask to add sorting.
What did you do?
Create 2 silences with matchers:

instance=foo job=myjob alertname=InstanceDown
alertname=InstanceDown instance=bar job=myjob

Go to alertmanager silences page.
What did you expect to see?
Sorted matchers, like this:

alertname=InstanceDown instance=foo job=myjob
alertname=InstanceDown instance=bar job=myjob

What did you see instead? Under which circumstances?
Unsorted matchers:

instance=foo job=myjob alertname=InstanceDown
alertname=InstanceDown instance=bar job=myjob

Environment

Alertmanager version:
0.27.0 (0aa3c2aad14cff039931923ab16b26b7481783b5)

Prometheus version:
2.51.2 (b4c0ab52c3e9b940ab803581ddae9b3d9a452337)

@rc5hack sounds fine to me! Can you open a PR for this?


Fix Typo

Single character change: "send" should be "sends"

Docs Build status updates of commit f571457:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/about-character-mode-applications.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thanks!


[Enhancement] Single Sign-on support

Currently I use Authentik as a authentication provider. It would be great to add single sign-on support of some sort such as Oauth, Saml or proxy authentication header e.g. django REMOTE_USER middleware.

Actually should probably be opened on the frontend?

I like the idea, as this will make it easier to integrate SnyPy with an existing user base. Also it reduces the overhead of managing another password when SSO is in place.
I will repopen this as my guess is that this needs to be implemented also in backend, not only frontend.


Unable to get a search for extensions and install extension (XHR failed)

Type: Bug
When searching for extensions, it outputs an error:
XHR failed
VS Code version: Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:29:17.766Z)
OS version: CentOS Linux release 7.8.2003 Linux x64 3.10.0-1127.18.2.el7.x86_64 snap
Modes:
Sandboxed: No
console output
  ERR RequestService#request (browser) - error https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery Error: XHR failed
    at v.onerror (workbench.desktop.main.js:72:1428)
workbench.desktop.main.js:616   ERR Error: XHR failed
    at v.onerror (workbench.desktop.main.js:72:1428)
workbench.desktop.main.js:72          POST https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery net::ERR_CERT_AUTHORITY_INVALID

F1 > Open View > Shared
2023-02-03 11:32:11.620 [error] RequestService#request (browser) - error https://az764295.vo.msecnd.net/extensions/marketplace.json {}
2023-02-03 11:32:11.777 [info] Starting worker process with pid 12842 (type: fileWatcher, window: 1).

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz (8 x 4455)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: disabled_off

Load (avg)
2, 2, 2

Memory (System)
31.11GB (24.68GB free)

Process Argv
--no-sandbox --force-user-env --unity-launch

Screen Reader
no

VM
0%

DESKTOP_SESSION
cinnamon

XDG_CURRENT_DESKTOP
X-Cinnamon

XDG_SESSION_DESKTOP
cinnamon

XDG_SESSION_TYPE
x11

Extensions (15)

Extension
Author (truncated)
Version

Bookmarks
ale
13.3.1

vscode-eslint
dba
2.2.6

create-lib-structure
Den
3.0.3

gitlens
eam
13.2.0

beautify
Hoo
1.5.0

code-beautifier
mic
2.3.3

formate
Mik
1.2.1

vscode-todo-parser
min
1.9.1

vscode-remark
mrm
1.2.1

vscode-language-pack-ru
MS-
1.74.12140931

jupyter
ms-
2023.1.2000312134

jupyter-keymap
ms-
1.0.0

jupyter-renderers
ms-
1.0.14

vscode-jupyter-cell-tags
ms-
0.1.6

vscode-jupyter-slideshow
ms-
0.1.5

ERR_CERT_AUTHORITY_INVALID seems proxy related

Can you launch from the command line with the following flag --log-net-log=/tmp/netlog.json, perform the steps that lead to the above error and quit the application. Attach the generated netlog.json in this issue.

Can you launch from the command line with the following flag --log-net-log=/tmp/netlog.json, perform the steps that lead to the above error and quit the application. Attach the generated netlog.json in this issue.

The file looks unsafe for uploading it to the network. It contains some certificate files and other binary data

Hey @deepak1556 @chrmarti, this issue might need further attention.
@IgorNovozhilov, you can help us out by closing this issue if the problem no longer exists, or adding more information.

@IgorNovozhilov We have an additional tool now for diagnosing network issues:
Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1 > Network Proxy Test: Test Connection in VS Code?
If you cannot install the extension through the Extensions viewlet in VS Code, you can use the Download Extension link on the above linked page and then install the downloaded VSIX with F1 > Extensions: Install VSIX....

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


round np.ndarray instead of pd.Series

All tests passing

Ahh I see.  Do you have idea why the tests failed but the code generally ran?  I mean, why would the test fail?  Are there some added checks in numpy when pytest runs or something?  Any ideas?

@fscottfoti Not being too familiar with the codebase, I'm not really sure. But I have some thoughts.
You said the code generally ran? You mean you tested it locally? What version of pandas are you on? These issues seem to stem from pandas==0.18.0. For more information on this rounding bug, see here. I imagine it would fail if you call Developer.pick() (prior to the change I submitted).
I asked about this in pydata/pandas on Gitter, which is where I got the link above. Someone suggested using pd.Series(range(10).round() instead of np.round(pd.Series(range(10)).values), like in my change to developer.py.

I'm cool with using pd.Series.round on this one - what do you think?

I'm fine with that, too. Probably preferred.
The change would look like:
df['residential_units'] = (df.residential_sqft / df.ave_unit_size).round()
df['job_spaces'] = (df.non_residential_sqft / bldg_sqft_per_job).round()

Works for me.

Likewise.


GNU 9 compiler

is this working build with GNU 9?

All compilers that support c++20 can compile this source.

weird error

looks like i fixed it in the latest dicommit


Dependencies conflict debug support (local only)

typing for python < 3.7 only
Tox target dep-graph allows to debug dependencies conflict locally.

Pull Request Test Coverage Report for Build 44

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
48 unchanged lines in 4 files lost coverage.
Overall coverage remained the same at 98.662%

Files with Coverage Reduction
New Missed Lines
%

threaded/_base_gthreadpooled.py
3
100.0%

threaded/_gthreadpooled2.py
12
100.0%

threaded/_base_threaded.py
13
97.44%

threaded/_threaded2.py
20
100.0%

Totals

Change from base Build 42:
0.0%

Covered Lines:
295

Relevant Lines:
299

💛  - Coveralls


Crash when creating a new layout

I've gotten this error with both layouts that I have created.
My work-around is to launch the app again - it works fine.
Steps to reproduce:

Create layout
Save
Export
New Layout

Result:

Error dialog (file attached)

Setup:

Windows 10
App installed to C:\ProgramData\Anno.Designer
AnnoDesigner Version: 8.81

Logfile_AnnoDesigner.txt

You can try to update your presets (3.5 - > 3.8)

How?  Is there a readme or file to that process?
I'm familiar with git / dos / etc  If it is a matter of cloning the project and copying the presets files over, I can do that..

There should be all you need to know: https://github.com/AnnoDesigner/anno-designer/releases/tag/Presetsv3.8

@jonTucich Has your issue been solved?

Unfortunately, no.  I updated the preset files and still have the issue.

Can you send the new Logfile?

This time, I exited the app with ALT-F4 - I didn't use "File | New Canvas".
Logfile_AnnoDesigner.txt
As an aside, when I start the app, it asks if I want to download and install the new version.  But I already am on the new version.  Clicking either Yes or No just closes the dialog.  That might be related.
I have tried running the app as Admin, thinking it is a permission issue, but no change.

You said you updated the Presests.json : Loaded building presets version: 3.5.1
I also see you load files through a Dropbox directory
delete the directory C:\Users<Your name>\AppData\Local\AnnoDesigner
reinstall the 8.1 version do the following on the update msg :
Keep checking the version if you have the auto updater on, it can be the download is not work as it should be. Do this through the menu 'Tools > Preferences > Update Settings' push "Check for Updates" and then "Download presets ...."
Also copy the layouts o a local drive an not on a dropbox directory

Hi,
I still had the error.
I have followed your instructions:

deteled C:\Users\AppData\Local\AnnoDesigner
deleted c:\ProgramData\Anno.Designer
created c:\Applications\Anno.Designer
download & unzip Anno.Designer.v8.81.zip to c:\Applications\Anno.Designer
download & unzip (with overwrite Presets.and.Icons.Update.v3.8.zip to c:\Applications\Anno.Designer
moved saved files to C:\Users\jon\Documents\My Games\Anno1800

Launched App by clicking C:\Applications\Anno.Designer\AnnoDesigner.exe:

Was presented dialog that a newer version exists, do I want to download and install.

Selected 'No'

Was prompted to disable auto-update check

Selected 'Yes'

Changed 'Game Set' to only Anno 1800

Selected Road 1x5

Placed two 1x5 roads

Saved  'RoadTest'

Exported 'RoadTest'

Select 'File | New Canvas'

App displayed previous error and exited.

Restarted the application:

Was prompted to update

Selected no

Selected 'Tool | Preferences | Update Settings'

Noticed that 'Enable automatic check' is still enabled

Noticed that Presets Version was 3.8

Selected 'Check for Updates'

Dialog indicating new Preset Version available

Selected Yes

Application downloaded, installed, restarted

Checked Preset Version: 3.9

Performed above steps for "RoadTest" - error log attached.
Logfile_AnnoDesigner.txt
Thanks for your help on this.  Note that it doesn't prevent me from using your application.  I just have to restart after each layout, which isn't that bad.

What conserns me is this : System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
As user, do you have all rights in that directory ? (admin right on PC)
Can you try to save the layout on a directory like : C:\Layouts\Anno1800
You create that your self

It seems to be an issue with loading some data in the background and trying to apply it on an UI thread.
I will have a closer look at this.

@StingMcRay I had just created the C:\Users\jon\Documents\My Games\Anno1800 folder for this test.  I tried as you asked:

Created c:\AnnoLayouts
Start Anno Designer as Administrator (This is a personal laptop, I am the admin.)
Selected only Anno 1800 tileset
Added two 1x5 roads
Save as RoadTest-AnnoLayouts
Export as RoadTest-AnnoLayouts
File | New Canvas
: application errors and exits.
logfile attached.

:)
Logfile_AnnoDesigner.txt

It seems that it could already be fixed and part of the next version. This version could be available in the next couple of days.

@jonTucich Could you please give the newest version a try.
It is currently a pre-release: Anno Designer 9.0

Version 9 did not have an error.
To be safe, I had installed it to a different directory (.v9.0) and I renamed the configuration folder (.v8).
So this was a clean installation.
thanks for following up!


offline groceries app using sqlite database

I have added a playground sample that shows how to build a fully functional offline Groceries app using SQLite database.

@kumarandena can you create a gif using a phone instead of a tablet? otherwise we can't really display that gif - it's not the right size


NUMERIC Field failing with conversion from NoneType to Decimal is not supported

Saving data to NUMERIC Field failing with conversion from NoneType to Decimal is not supported

python 3.9
pandas 1.5.1

Stack trace

...........

df.to_gbq(project_id=self.client.project,
          File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas-1.5.1-py3.9-macosx-10.9-x86_64.egg/pandas/core/frame.py", line 2168, in to_gbq
gbq.to_gbq(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas-1.5.1-py3.9-macosx-10.9-x86_64.egg/pandas/io/gbq.py", line 218, in to_gbq
pandas_gbq.to_gbq(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas_gbq-0.17.9-py3.9.egg/pandas_gbq/gbq.py", line 1198, in to_gbq
connector.load_data(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas_gbq-0.17.9-py3.9.egg/pandas_gbq/gbq.py", line 591, in load_data
chunks = load.load_chunks(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas_gbq-0.17.9-py3.9.egg/pandas_gbq/load.py", line 240, in load_chunks
load_parquet(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas_gbq-0.17.9-py3.9.egg/pandas_gbq/load.py", line 128, in load_parquet
dataframe = cast_dataframe_for_parquet(dataframe, schema)
File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas_gbq-0.17.9-py3.9.egg/pandas_gbq/load.py", line 103, in cast_dataframe_for_parquet
cast_column = dataframe[column_name].map(decimal.Decimal)
File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas-1.5.1-py3.9-macosx-10.9-x86_64.egg/pandas/core/series.py", line 4539, in map
new_values = self._map_values(arg, na_action=na_action)
File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas-1.5.1-py3.9-macosx-10.9-x86_64.egg/pandas/core/base.py", line 890, in _map_values
new_values = map_f(values, mapper)
File "pandas/_libs/lib.pyx", line 2918, in pandas._libs.lib.map_infer
TypeError: conversion from NoneType to Decimal is not supported

Chaging dataframe field type to .astype('float64') works but then it fails with following error
is there any parameter to allow casting? or avid this error ?
Traceback (most recent call last):
File "/Users/xxxx/.local/lib/python3.9/site-packages/pandas_gbq-0.17.9-py3.9.egg/pandas_gbq/load.py", line 131, in load_parquet
client.load_table_from_dataframe(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/google_cloud_bigquery-3.3.5-py3.9.egg/google/cloud/bigquery/client.py", line 2628, in load_table_from_dataframe
_pandas_helpers.dataframe_to_parquet(
    File "/Users/xxxx/.local/lib/python3.9/site-packages/google_cloud_bigquery-3.3.5-py3.9.egg/google/cloud/bigquery/_pandas_helpers.py", line 672, in dataframe_to_parquet
arrow_table = dataframe_to_arrow(dataframe, bq_schema)
File "/Users/xxxx/.local/lib/python3.9/site-packages/google_cloud_bigquery-3.3.5-py3.9.egg/google/cloud/bigquery/_pandas_helpers.py", line 617, in dataframe_to_arrow
bq_to_arrow_array(get_column_or_index(dataframe, bq_field.name), bq_field)
File "/Users/xxxx/.local/lib/python3.9/site-packages/google_cloud_bigquery-3.3.5-py3.9.egg/google/cloud/bigquery/_pandas_helpers.py", line 342, in bq_to_arrow_array
return pyarrow.Array.from_pandas(series, type=arrow_type)
File "pyarrow/array.pxi", line 1033, in pyarrow.lib.Array.from_pandas
File "pyarrow/array.pxi", line 312, in pyarrow.lib.array
File "pyarrow/array.pxi", line 83, in pyarrow.lib._ndarray_to_array
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Rescaling Decimal256 value would cause data loss

Based on my understanding of these issues, this does not appear to be an issue with how the python-bigquery connector library is handling the data. It appears to be an issue with how the dependencies (pyarrow or pandas) are handling data conversion.
Going to close this as will not fix.


Pre-allocated contact buffer is full, physics state is invalid.

I encountered several warnings each time I run the dm_control.locomotion example as below:
W0827 .544679<PHONE_NUMBER>41536 core.py:299] Pre-allocated contact buffer is full. Increase nconmax above 100. Time = 0.0000.
W0827 .545073<PHONE_NUMBER>41536 core.py:85] Pre-allocated contact buffer is full. Increase nconmax above 100. Time = 0.0000.
W0827 .546310<PHONE_NUMBER>41536 engine.py:323] Physics state is invalid. Warning(s) raised: mjWARN_CONTACTFULL
And then the episode will terminate with time lasts 0.5s only. Such time is not expected obviously. There were similar problems about this on github. I've read some of them and followed their instructions. However, I failed to follow the variable to find where it was settled or changed, both in code or all .xml files.
So, where can I increase that? Or anyway else can solve this problem?

Would you be able to provide me with a code snippet (showing how you create an environment and step through it) that I can use to reproduce this issue?

Thx, it turns out the reason that episodes terminate quickly after launching viewer is that the author set the boolean contact_termination equals to True in dm_control/locomotion/tasks/corridors.py and the humanoid will fall in general without a rightful policy. So, this problem should have nothing to do with nconmax and I've solved it.
But the annoying warnings still produce after one statement but I can do nothing.
As for environment, I installed mujoco200 on ubuntu16.04 and dm_control by following your instructions. And created a new py file of which the code is just a paste of Quickstart on dm_control.locomotion(the link on mainpage).
And the warnings will appear after execute this statement:
env = basic_cmu_2019.cmu_humanoid_run_walls()

WARNING: Logging before flag parsing goes to stderr.
W0829 22:50:16.471426<PHONE_NUMBER>11840 core.py:299] Pre-allocated contact buffer is full. Increase nconmax above 100. Time = 0.0000.
W0829 22:50:43.107369<PHONE_NUMBER>11840 core.py:85] Pre-allocated contact buffer is full. Increase nconmax above 100. Time = 0.0000.
W0829 22:50:43.109909<PHONE_NUMBER>11840 engine.py:323] Physics state is invalid. Warning(s) raised: mjWARN_CONTACTFULL

事实证明，启动查看器后情节很快终止的原因是作者在_dm_control / locomotion / tasks / corridors.py_中将布尔型_contact_termination_设置为_True_，而类人动物通常会在没有适当政策的情况下_掉队_。因此，这个问题应该与nconmax无关，而我已经解决了。
但是在发表声明后仍然会产生恼人的警告，但我无能为力。
至于环境，我按照您的说明在ubuntu16.04和dm_control上安装了mujoco200。并在_dm_control.locomotion_（主页上_的链接）上创建了一个新的py文件，其代码只是Quickstart的粘贴。_
执行以下语句后将显示警告：
env = basic_cmu_2019.cmu_humanoid_run_walls()

警告：在标志解析之前记录到stderr。
W0829 22：50：16.471426<PHONE_NUMBER>11840 core.py:299]预分配的联系人缓冲区已满。将nconmax增加到100以上。时间= 0.0000。
W0829 22：50：43.107369<PHONE_NUMBER>11840 core.py:85]预分配的联系人缓冲区已满。将nconmax增加到100以上。时间= 0.0000。
W0829 22：50：43.109909<PHONE_NUMBER>11840 engine.py:323]物理状态无效。提出警告：mjWARN_CONTACTFULL

Hi,I meet the same warning as yours when I run the manipulot. Have you solved it? Or it maybe don't matter about the training?


Adopt GitHub Actions, bring in a number of script/Makefile improvements

Now that Travis CI is more or less on its way out, it's time to migrate to GitHub Actions.
This PR brings over the .travis.yml script into GitHub workflows, and adds a couple new things to help development.

littlefs now has a post-release script that will automatically create PRs for dependent repos when a release is published.
You can see the result of the post-release script being tested over here:
https://github.com/geky/littlefs-fuse-test-repo/pull/20
The way this works is every time a release is published, @geky-bot sends a repository_dispatch event to the littlefs.post-release repo. More info here:
https://github.com/littlefs-project/littlefs.post-release
The reason for this indirection is to let the post-release scripts move quicker without needing to update the core littlefs repo itself. This helps offset how fragile these sort of scripts can be.
The post-release script has been long overdue, and now hopefully littlefs-fuse will no longer be constantly out-of-date. That has been my bad.

CI now reports coverage info:

Note this coverage info is only collected on the tests ran in test.py. This provides an estimate of how many lines are covered by generally isolating tests. While it's true that the fuse tests cover a bit more, any bugs found in the fuse tests usually take more than a day to track down just because of the layers involved.
This should be useful for getting an understanding on how the test-to-code ratio is affected by new features/new tests/etc.

CI is now quite a bit faster, thanks to GitHub Actions. It now takes about ~1 hour + 25 minutes to run all tests permutations + geometries instead of the previous ~6 hours + 40 minutes.

Added code.py, a script for showing/comparing function-level code costs similar to Linux's Bloat-O-Meter. code.py can output the results to a .csv that can be used later to compare changes at the function level. The results for each CI run are uploaded as an artifact for the 90 day limit.
$ make code
./scripts/code.py lfs_util.o lfs.o
function                                size
lfs_dir_compact                         1400
lfs_dir_fetchmatch                      1064
lfs_file_rawopencfg                      576
lfs_file_rawwrite                        836
lfs_init                                 558
lfs_mount                                504
lfs_rename                               640
...
TOTAL                                  16644

Added coverage.py, a script for parsing lcov's .info files and showing coverage results at the function level. Just like code.py, coverage.py can output the results to a .csv that can be used later to compare changes at the function level. The results for each CI run are uploaded as an artifact for the 90 limit.
$ make coverage
./scripts/coverage.py tests/*.toml.info
function                                       hits/line
lfs_dir_compact                            77/81   95.1%
lfs_dir_fetchmatch                        91/108   84.3%
lfs_file_rawopencfg                        54/55   98.2%
lfs_file_rawwrite                          48/54   88.9%
lfs_init                                   43/48   89.6%
lfs_rawmount                               40/46   87.0%
lfs_rawrename                              44/50   88.0%
...
TOTAL                                  1510/1640   92.1%

Added the BUILDDIR to the Makefile, allows builds to use a separate folder for build outputs/results. This makes it much easier to compare builds with different compile-time configurations.
My favorite use of this is to run code.py in a while-inotifywait loop to see function-level changes in real-time:
while true ; do touch thumb/prev.csv ; make CC="arm-linux-gnueabi-gcc --static -mthumb" BUILDDIR=thumb code CODEFLAGS+='-d thumb/prev.csv -o thumb/prev.csv' ; inotifywait -rqe modify * ; done

function (0 added, 0 removed)            old     new    diff
lfs_dir_find_match                        60      72     +12 (+20.0%)
lfs_fs_parent_match                       88      96      +8 (+9.1%)
lfs_bd_cmp.constprop                     128     136      +8 (+6.2%)
lfs_dir_fetchmatch                      1064    1072      +8 (+0.8%)
TOTAL                                  16644   16680     +36 (+0.2%)

One quirk of GitHub Actions is that most of the workflows won't run until they are on the default branch, so no statuses until then. But I can at least copy the results from the CI log manually:

Code size
Code size (readonly)
Code size (threadsafe)
Code size (migrate)
Coverage

14512 B
5538 B
15322 B
16212 B
94.5% of 1743 lines

One quirk of GitHub Actions is that most of the workflows won't run until they are on the default branch, so no statuses until then. But I can at least copy the results from the CI log manually:

Code size
Code size (readonly)
Code size (threadsafe)
Code size (migrate)
Coverage

14512 B
5538 B
15322 B
16212 B
94.5% of 1743 lines

Updated with the "error asserts" configuration (https://github.com/littlefs-project/littlefs/pull/514):

Code size
Code size(readonly)
Code size(threadsafe)
Code size(migrate)
Code size(error-asserts)
Coverage

14512 B
5538 B
15322 B
16212 B
15212 B
94.5% of 1743 lines

Updated with the "error asserts" configuration (https://github.com/littlefs-project/littlefs/pull/514):

Code size
Code size(readonly)
Code size(threadsafe)
Code size(migrate)
Code size(error-asserts)
Coverage

14512 B
5538 B
15322 B
16212 B
15212 B
94.5% of 1743 lines


Android: fixed plugin initialization

Plugin initialization always calls audioManager.requestAudioFocus() in load().
This way any already playing application (Musicolet, Spotify, ...) is paused at application start, making the focus configuration option passed to configure() useless (configure() is caller after load()).

Is anyone in charge of merging this?


Add an option to run local development

Problem:
It is not convenient to set up the API server for local development,
for example, when developing the UI it is sometimes nice to have a way to connect to a local forklift-must-gather-api server.
What happen:
Currently the server is hard coded to use in cluster configuration files:
"/var/run/secrets/kubernetes.io/serviceaccount/token"
"/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"

Settings this files on a developer machine requires root access.
Suggested solution:
Allow to use local kubeconfig file ( default or using $KUBECONFIG ) using an environment variable flag.

var
description
default value

USE_KUBECONFIG
use local user's kubeconfig when fetching data from k8s server ("false"/"true")
"false"

For example:
PORT=9200 USE_KUBECONFIG=true go run pkg/must-gather-api.go

Ref: #11
Signed-off-by: yzamir<EMAIL_ADDRESS>

@fbladilo hi, tests fail on main too ... ( fails on my laptop too ) can I run tests locally ?

@aufi can we merge it?

Build error is unrelated, merging.


Project description is missing

We need to give a nice project description.

Updated description using developers.redhat.com product pages.


Update where

This PR resolves #(put issue number here).
PR Checklist
Please ensure that you have done the following:

[x] PR in from a fork off your branch. Do not PR from <your_username>:master, but rather from <your_username>:<branch_name>.
[x] If you're not on the contributors list, add yourself to AUTHORS.rst.

Quick Check
To do a very quick check that everything is correct, follow these steps below:

[x] Run the command make check from pyjanitor's top-level directory. This will automatically run:

black formatting
pycodestyle checkin
running the test suite
docs build

Code Changes
If you are adding code changes, please ensure the following:

[x] Ensure that you have added tests.
[ ] Run all tests ($ pytest .) locally on your machine.

[x] Check to ensure that test coverage covers the lines of code that you have added.
[ ] Ensure that all tests pass.

Documentation Changes
If you are adding documentation changes, please ensure the following:

[ ] Build the docs locally.
[ ] View the docs to check that it renders correctly.

PR Description
Please describe the changes proposed in the pull request:

Relevant Reviewers
Please tag maintainers to review.

@ericmjl

I am done making changes.  When you get time please provide any thoughts thus far, thanks.

Thanks for the feedback.  Do you like it so far? I do but I have a bias opinion. Lol
Sent with GitHawk

@jcvall we're always happy to chat :smile:.
I did a thing where I just pushed a change to the PR directly. That should address the comments I was suggesting. I noticed that you had resolved the conversations directly, but the changes requested were not reflected. That's no problem - I found a chunk of time where I could hack on the example directly, and also fix the issue causing Travis to fail.

Oh thought that it changed it automatically when I hit the Button.  You have been patient with me.  I plan on taking a course on git and github.  At the moment i really am learning from trial and error.
Sent with GitHawk

Oh thought that it changed it automatically when I hit the Button.

Ah! I see where the misunderstanding happened. No worries! Btw, trial and error has been super effective for my learning too :smile:. You've been contributing productively, and I'm thankful for that!


Remove unnecessary test

For reasoning, check: https://github.com/bigchaindb/bigchaindb/issues/251#issuecomment-254163317
Fixes: #251

Failing tests can be resolved by merging #685 into master, I guess?

:+1:


Trainer.fit stopped: max_epochs=1 reached. Epoch 0/0  ------------------ 2/2 0:00:15 • 0:00:00 6.37it/s pixel_AUROC: 0.000                                                              pixel_F1Score:                                                                  0.000

Describe the bug
E:\Andconda3\envs\yolov10-main\python.exe D:/shenduxuexi/anomalib/xunlian.py
dict_keys(['image_path', 'label', 'image', 'mask'])
torch.Size([32, 3, 640, 640]) torch.Size([32, 640, 640])
Trainer already configured with model summary callbacks: [<class 'lightning.pytorch.callbacks.rich_model_summary.RichModelSummary'>]. Skipping setting a default `ModelSummary` callback.
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
HPU available: False, using: 0 HPUs
`Trainer(val_check_interval=1.0)` was configured so validation will run at the end of the training epoch..
You are using a CUDA device ('NVIDIA GeForce RTX 3080 Ti') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\core\optimizer.py:182: `LightningModule.configure_optimizers` returned `None`, this fit will run with no optimizer
┌───┬───────────────────────┬──────────────────────────┬────────┬───────┐
│   │ Name                  │ Type                     │ Params │ Mode  │
├───┼───────────────────────┼──────────────────────────┼────────┼───────┤
│ 0 │ model                 │ PadimModel               │  2.8 M │ train │
│ 1 │ _transform            │ Compose                  │      0 │ train │
│ 2 │ normalization_metrics │ MinMax                   │      0 │ train │
│ 3 │ image_threshold       │ F1AdaptiveThreshold      │      0 │ train │
│ 4 │ pixel_threshold       │ F1AdaptiveThreshold      │      0 │ train │
│ 5 │ image_metrics         │ AnomalibMetricCollection │      0 │ train │
│ 6 │ pixel_metrics         │ AnomalibMetricCollection │      0 │ train │
└───┴───────────────────────┴──────────────────────────┴────────┴───────┘
Trainable params: 2.8 M
Non-trainable params: 0
Total params: 2.8 M
Total estimated model params size (MB): 11
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\trainer\connectors\data_connector.py:419: Consider setting `persistent_workers=True` in 'train_dataloader' to speed up the dataloader worker initialization.
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\trainer\connectors\data_connector.py:419: Consider setting `persistent_workers=True` in 'val_dataloader' to speed up the dataloader worker initialization.
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\loops\optimization\automatic.py:132: `training_step` returned `None`. If this was on purpose, ignore this warning...
E:\Andconda3\envs\yolov10-main\lib\site-packages\anomalib\models\components\filters\blur.py:91: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ..\aten\src\ATen\native\cudnn\Conv_v8.cpp:919.)
  output = F.conv2d(input_tensor, self.kernel, groups=self.channels, padding=0, stride=1)
WARNING:root:The validation set does not contain any anomalous images. As a result, the adaptive threshold will take the value of the highest anomaly score observed in the normal validation images, which may lead to poor predictions. For a more reliable adaptive threshold computation, please add some anomalous images to the validation set.
E:\Andconda3\envs\yolov10-main\lib\site-packages\torchmetrics\utilities\prints.py:43: UserWarning: No positive samples found in target, recall is undefined. Setting recall to one for all thresholds.
  warnings.warn(*args, **kwargs)  # noqa: B028
E:\Andconda3\envs\yolov10-main\lib\site-packages\torchmetrics\utilities\prints.py:43: UserWarning: No positive samples in targets, true positive value should be meaningless. Returning zero tensor in true positive score
  warnings.warn(*args, **kwargs)  # noqa: B028
`Trainer.fit` stopped: `max_epochs=1` reached.
Epoch 0/0  ------------------ 2/2 0:00:15 • 0:00:00 6.37it/s pixel_AUROC: 0.000
                                                             pixel_F1Score:
                                                             0.000
WARNING:anomalib.metrics.f1_score:F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
WARNING:anomalib.metrics.f1_score:F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
Restoring states from the checkpoint path at D:\shenduxuexi\anomalib\results\Padim\shuju\v8\weights\lightning\model.ckpt
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Loaded model weights from the checkpoint at D:\shenduxuexi\anomalib\results\Padim\shuju\v8\weights\lightning\model.ckpt
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\trainer\connectors\data_connector.py:419: Consider setting `persistent_workers=True` in 'test_dataloader' to speed up the dataloader worker initialization.
┌───────────────────────────┬───────────────────────────┐
│        Test metric        │       DataLoader 0        │
├───────────────────────────┼───────────────────────────┤
│        image_AUROC        │            1.0            │
│       image_F1Score       │    0.9433962106704712     │
│        pixel_AUROC        │            0.0            │
│       pixel_F1Score       │            0.0            │
└───────────────────────────┴───────────────────────────┘
Testing -------------------------------------- 2/2 0:00:10 • 0:00:00 0.10it/s

Process finished with exit code 0

Dataset
N/A
Model
N/A
Steps to reproduce the behavior
from typing import Any
import numpy as np
from matplotlib import pyplot as plt
from PIL import Image
from torchvision.transforms import ToPILImage
from anomalib import TaskType
from anomalib.data import Folder
from anomalib.data.utils import read_image
from anomalib.deploy import OpenVINOInferencer, ExportType
from anomalib.engine import Engine
from anomalib.models import Padim
if name == 'main':
datamodule = Folder(num_workers=8, name='shuju', root='shuju', mask_dir='mask/ng', normal_dir='good',
abnormal_dir='ng',
task=TaskType.SEGMENTATION, image_size=[640, 640])
datamodule.prepare_data()  # Downloads the dataset if it's not in the specified root directory
datamodule.setup()  # Create train/val/test/prediction sets.
i, data = next(enumerate(datamodule.val_dataloader()))
print(data.keys())
print(data["image"].shape, data["mask"].shape)
def show_image_and_mask(sample: dict[str, Any], index: int) -> Image:
    """Show an image with a mask.

    Args:
        sample (dict[str, Any]): Sample from the dataset.
        index (int): Index of the sample.

    Returns:
        Image: Output image with a mask.
    """
    # Load the image from the path
    image = Image.open(sample["image_path"][index])

    # Load the mask and convert it to RGB
    mask = ToPILImage()(sample["mask"][index]).convert("RGB")

    # Resize mask to match image size, if they differ
    if image.size != mask.size:
        mask = mask.resize(image.size)

    combined_image =Image.fromarray(np.hstack((np.array(image), np.array(mask))))
    return combined_image
# Visualize an image with a mask
image_with_mask = show_image_and_mask(data, index=0)

# 使用matplotlib显示图像
plt.imshow(image_with_mask)
plt.axis('off')  # 关闭坐标轴
plt.show()

model = Padim()
datamodule = datamodule
engine = Engine(task=TaskType.SEGMENTATION)
engine.fit(model=model, datamodule=datamodule)
test_results = engine.test(
    model=model,
    datamodule=datamodule,
    ckpt_path=engine.trainer.checkpoint_callback.best_model_path,
)

OS information
OS information:

OS: [e.g. Ubuntu 20.04]
Python version: [e.g. 3.10.0]
Anomalib version: [e.g. 0.3.6]
PyTorch version: [e.g. 1.9.0]
CUDA/cuDNN version: [e.g. 11.1]
GPU models and configuration: [e.g. 2x GeForce RTX 3090]
Any other relevant information: [e.g. I'm using a custom dataset]

Expected behavior
no have
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
Latest version
Configuration YAML
no have

Logs
E:\Andconda3\envs\yolov10-main\python.exe D:/shenduxuexi/anomalib/xunlian.py
dict_keys(['image_path', 'label', 'image', 'mask'])
torch.Size([32, 3, 640, 640]) torch.Size([32, 640, 640])
Trainer already configured with model summary callbacks: [<class 'lightning.pytorch.callbacks.rich_model_summary.RichModelSummary'>]. Skipping setting a default `ModelSummary` callback.
GPU available: True (cuda), used: True
TPU available: False, using: 0 TPU cores
HPU available: False, using: 0 HPUs
`Trainer(val_check_interval=1.0)` was configured so validation will run at the end of the training epoch..
You are using a CUDA device ('NVIDIA GeForce RTX 3080 Ti') that has Tensor Cores. To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision
F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\core\optimizer.py:182: `LightningModule.configure_optimizers` returned `None`, this fit will run with no optimizer
┌───┬───────────────────────┬──────────────────────────┬────────┬───────┐
│   │ Name                  │ Type                     │ Params │ Mode  │
├───┼───────────────────────┼──────────────────────────┼────────┼───────┤
│ 0 │ model                 │ PadimModel               │  2.8 M │ train │
│ 1 │ _transform            │ Compose                  │      0 │ train │
│ 2 │ normalization_metrics │ MinMax                   │      0 │ train │
│ 3 │ image_threshold       │ F1AdaptiveThreshold      │      0 │ train │
│ 4 │ pixel_threshold       │ F1AdaptiveThreshold      │      0 │ train │
│ 5 │ image_metrics         │ AnomalibMetricCollection │      0 │ train │
│ 6 │ pixel_metrics         │ AnomalibMetricCollection │      0 │ train │
└───┴───────────────────────┴──────────────────────────┴────────┴───────┘
Trainable params: 2.8 M
Non-trainable params: 0
Total params: 2.8 M
Total estimated model params size (MB): 11
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\trainer\connectors\data_connector.py:419: Consider setting `persistent_workers=True` in 'train_dataloader' to speed up the dataloader worker initialization.
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\trainer\connectors\data_connector.py:419: Consider setting `persistent_workers=True` in 'val_dataloader' to speed up the dataloader worker initialization.
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\loops\optimization\automatic.py:132: `training_step` returned `None`. If this was on purpose, ignore this warning...
E:\Andconda3\envs\yolov10-main\lib\site-packages\anomalib\models\components\filters\blur.py:91: UserWarning: Plan failed with a cudnnException: CUDNN_BACKEND_EXECUTION_PLAN_DESCRIPTOR: cudnnFinalize Descriptor Failed cudnn_status: CUDNN_STATUS_NOT_SUPPORTED (Triggered internally at ..\aten\src\ATen\native\cudnn\Conv_v8.cpp:919.)
  output = F.conv2d(input_tensor, self.kernel, groups=self.channels, padding=0, stride=1)
WARNING:root:The validation set does not contain any anomalous images. As a result, the adaptive threshold will take the value of the highest anomaly score observed in the normal validation images, which may lead to poor predictions. For a more reliable adaptive threshold computation, please add some anomalous images to the validation set.
E:\Andconda3\envs\yolov10-main\lib\site-packages\torchmetrics\utilities\prints.py:43: UserWarning: No positive samples found in target, recall is undefined. Setting recall to one for all thresholds.
  warnings.warn(*args, **kwargs)  # noqa: B028
E:\Andconda3\envs\yolov10-main\lib\site-packages\torchmetrics\utilities\prints.py:43: UserWarning: No positive samples in targets, true positive value should be meaningless. Returning zero tensor in true positive score
  warnings.warn(*args, **kwargs)  # noqa: B028
`Trainer.fit` stopped: `max_epochs=1` reached.
Epoch 0/0  ------------------ 2/2 0:00:15 • 0:00:00 6.37it/s pixel_AUROC: 0.000
                                                             pixel_F1Score:
                                                             0.000
WARNING:anomalib.metrics.f1_score:F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
WARNING:anomalib.metrics.f1_score:F1Score class exists for backwards compatibility. It will be removed in v1.1. Please use BinaryF1Score from torchmetrics instead
Restoring states from the checkpoint path at D:\shenduxuexi\anomalib\results\Padim\shuju\v8\weights\lightning\model.ckpt
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
Loaded model weights from the checkpoint at D:\shenduxuexi\anomalib\results\Padim\shuju\v8\weights\lightning\model.ckpt
E:\Andconda3\envs\yolov10-main\lib\site-packages\lightning\pytorch\trainer\connectors\data_connector.py:419: Consider setting `persistent_workers=True` in 'test_dataloader' to speed up the dataloader worker initialization.
┌───────────────────────────┬───────────────────────────┐
│        Test metric        │       DataLoader 0        │
├───────────────────────────┼───────────────────────────┤
│        image_AUROC        │            1.0            │
│       image_F1Score       │    0.9433962106704712     │
│        pixel_AUROC        │            0.0            │
│       pixel_F1Score       │            0.0            │
└───────────────────────────┴───────────────────────────┘
Testing -------------------------------------- 2/2 0:00:10 • 0:00:00 0.10it/s

Code of Conduct

[X] I agree to follow this project's Code of Conduct

What do you image masks look like? How do the output images look like?
If you cant show them: are you sure the groundtruth masks are correct?

My mask is correct, but it is very small because my industrial defects are very small

My mask is correct, but it is very small because my industrial defects are very small

The same case with me. Even we can't fine-tune or train the model more than 1 epoch. Do you know if there is any solution?

My mask is correct, but it is very small because my industrial defects are very small

The same case with me. Even we can't fine-tune or train the model more than 1 epoch. Do you know if there is any solution?

@krupeshp, if you are using Padim model you should not train the model more than 1 epoch. The model does not need any training or fine-tuning, it just needs 1 epoch to go over the dataset and extract the features.

I am closing this as I wouldn't categorize this as a bug. The issue seems very specific to the dataset. The Padim model passes the internal regression tests, and from the logs it looks like only the pixel-level performance is poor. It might be related to the dataset. If it is still an issue, we can continue in the discussions page. Also, a few examples of the dataset will help inform those discussions.


plugin(analytics-provider-segment): migration of analytics-provider-segment plugin to backstage/community-plugins workspace

Hey, I just made a Pull Request!
The analytics-provider-segment plugin from the janus-idp/backstage-plugins repository was migrated to the community plugins, The migration was performed by following the manual migration steps outlined in the Community Plugins CONTRIBUTING guide
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[x] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

cc: @04kash / @nickboldt

Should this live in the analytics workspace? https://github.com/backstage/community-plugins/tree/main/workspaces/analytics

Hmm yeah I think so too, WDYT @Fortune-Ndlovu ?

Thanks, @04kash, @awanlin!

Looks good! Just need to add a changeset

I see some unrelated commits as a part of this PR eg: https://github.com/backstage/community-plugins/pull/1896/commits/d89bfc23c62e5563648b171732ee848bbebdc89f, not sure how they got here


@Anthonysidesapps  http://www.w3.org/2005/Atom

[Enter feedback here]

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

ID: 9d8f4cb9-2629-1ea5-86b1-f74df9c5e86b
Version Independent ID: f320eb63-0320-769e-498c-b4dc008ce1ce
Content: Namespaces (C++)
Content Source: docs/cpp/namespaces-cpp.md
Product: visual-cpp
Technology: cpp-language
GitHub Login: @corob-msft
Microsoft Alias: corob

Closing, as this doesn't appear to be an actionable defect report.
@Anthonysidesappss, if you have an issue with the content on the page in question, could you elaborate on it for us? Thanks for taking the time to make the docs better.


update ET confirmation email body texts

@zaparka yes, here: https://github.com/ministryofjustice/fr-staffapp/blob/master/spec/mailers/public_mailer_spec.rb#L38-L52

@leoapost ok. can you write an email test then ?

I don't think we need tests for the email body texts. All we need is to make sure that the correct emails are getting triggered.


bool -> (int, float) and (int, float) -> bool implicit cast removed

Fix: #40249

Note that the following code will no longer work:
func _item_selected(idx: int) -> void:
    get_tree().debug_collisions_hint = idx & 0b01
    get_tree().debug_navigation_hint = idx & 0b10

Explicit conversion will be required:
func _item_selected(idx: int) -> void:
    get_tree().debug_collisions_hint = bool(idx & 0b01)
    get_tree().debug_navigation_hint = bool(idx & 0b10)

if we support implicit casting between boolean and numerical types than it also needs to support arithmetic operations too. the below line should be valid (it's not now).
dir.x = Input.is_key_pressed(KEY_A) - Input.is_key_pressed(KEY_D);

@ThakeeNathees Is this still desired? If so, this needs to be rebased on the latest master branch.

@ThakeeNathees Is this still desired? If so, this needs to be rebased on the latest master branch.

@aaronfranke done

@aaronfranke done

Sooo what's the status on this?

Sooo what's the status on this?

This is a compatibility breaking change, so I think it should be implemented as a GDScript warning instead. (I think this may already exists as "unsafe cast" or "unsafe assignment".)


BACKPORT: Add clarification to --privileged error message

A trivial backport of a trivial patch moby#33722 originally from Tom Sweeney clarifies the error message about incompatibility between --privileged and user namespaces.
Signed-off-by: Frantisek Kluknavsky<EMAIL_ADDRESS>

LGTM


Uninitialized variable

Checking the code with cppcheck program found two errors.

src/script.h:456 Uninitialized variable: nSize
Reading the document CWE-457: Use of Uninitialized Variable make me think maybe this is important error.

src/qt/gui.cpp:0 syntax error
This error point to line 0 that mean there is a syntax error into the code whish cppcheck cannot read.

The Uninitialized variable error resolved on this commit 589ac65


VCT

Hopefully Travis runs on this; if it doesn't I'm really stumped.

It does not appear to be running. We'll keep investigating this. Sit tight!


How to use this on Modular state

Very interested vuex plugin,
Can you tell me how to use this on Vuex module state?
Let's say I have something like this
const store = new Vuex.Store({
	modules: {
		user,
	}
}

const user = {
	namespaced: true,
	state: {
		userId: 0,
	}
}

Where should I place the emptyState mutation?

U can try to place emptyState in const mutations = {...} in every modules. I think it should work

Hey @rendyfebry
I haven't actually experimented with that. Can you try @AlexQuidditch 's suggestion. If it doesn't work I'll look into it further.


Issue wayland copy

There was an issue with copy paste under wayland, this seems to be fixed and it works great now. I compiled from the last commit . But all official builds for linux still have this bug. Could there be a new release with this fixed any time soon.

New release is currently blocked by #2438. Will arrive when things are ready.


fix: release unused memory in CNetMsgMaker::Make()

Issue being fixed or feature implemented
We reserve capacity for large messages in CNetMsgMaker::Make() but most messages are small yet we never release unused memory here. Discovered while debugging 28165 backport issues.
What was done?
How Has This Been Tested?
Breaking Changes
n/a
Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation
[ ] I have assigned this pull request to a milestone

How long these objects are alive? And how many of them can be alive at the same time?
4kb doesn't seems as big overhead.

@knst, when backporting bitcoin#28165, there's an assertion (source) to make sure that after data in queue is processed, the memory utilization is 0 (counter incremented when added to queue, decremented when removed from queue. This works as expected in Clang but causes Dash Core to crash with GCC.
With additional logging with bitcoin#28165, this is what it looks like.

Clang build:
2024-08-09T15:19:30.702137Z (mocktime: 2014-12-05T10:33:01Z) [httpworker.2] [net.cpp:153] [GetMemoryUsage] (PushMessage) net.cpp:4323 (node.m_send_memusage) static (56) + dynamic (4112) = 4168, msg_size=148
2024-08-09T15:19:30.702142Z (mocktime: 2014-12-05T10:33:01Z) [httpworker.2] [net.cpp:153] [GetMemoryUsage] (PushMessage) net.cpp:4324 (node.m_send_memusage) static (56) + dynamic (4112) = 4168, msg_size=148
2024-08-09T15:19:30.702147Z (mocktime: 2014-12-05T10:33:01Z) [httpworker.2] [net.cpp:4324] [PushMessage] node.m_send_memusage=4168, msg_memsize=4168, msg_size=148, msg_type=version
2024-08-09T15:19:30.702168Z (mocktime: 2014-12-05T10:33:01Z) [httpworker.2] [net.cpp:153] [GetMemoryUsage] (GetSendMemoryUsage) net.cpp:1022 (node.m_send_memusage) static (56) + dynamic (0) = 56, msg_size=0
2024-08-09T15:19:30.702226Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1034] [SocketSendData] (node.m_send_memusage) node.vSendMsg.size() = 1, node.vSendMsg[0].size() = 148
2024-08-09T15:19:30.702264Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:153] [GetMemoryUsage] (SocketSendData) net.cpp:1040 (node.m_send_memusage) static (56) + dynamic (4112) = 4168, msg_size=148
2024-08-09T15:19:30.702274Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:153] [GetMemoryUsage] (SetMessageToSend) net.cpp:972 (node.m_send_memusage) static (56) + dynamic (4112) = 4168, msg_size=148
2024-08-09T15:19:30.702280Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:972] [SetMessageToSend] (node.m_send_memusage) msg=version, size=4168
2024-08-09T15:19:30.702286Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1044] [SocketSendData] node.m_send_memusage = 0, it_pos=0
2024-08-09T15:19:30.702319Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1095] [SocketSendData] node.m_send_memusage = 0
2024-08-09T15:19:30.702332Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:153] [GetMemoryUsage] (GetSendMemoryUsage) net.cpp:1022 (node.m_send_memusage) static (56) + dynamic (0) = 56, msg_size=0
2024-08-09T15:19:30.702341Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1099] [SocketSendData] asserting node.m_send_memusage == 0

GCC build:
2024-08-12T09:06:54.135629Z (mocktime: 2014-12-05T10:33:01Z) [   msghand] [net.cpp:152] [GetMemoryUsage] (PushMessage) net.cpp:4313 (node.m_send_memusage) static (88) + dynamic (4112) = 4200, msg_size=148
2024-08-12T09:06:54.135638Z (mocktime: 2014-12-05T10:33:01Z) [   msghand] [net.cpp:152] [GetMemoryUsage] (PushMessage) net.cpp:4314 (node.m_send_memusage) static (88) + dynamic (4112) = 4200, msg_size=148
2024-08-12T09:06:54.135646Z (mocktime: 2014-12-05T10:33:01Z) [   msghand] [net.cpp:4314] [PushMessage] node.m_send_memusage=4200, msg_memsize=4200, msg_size=148, msg_type=version
2024-08-12T09:06:54.135654Z (mocktime: 2014-12-05T10:33:01Z) [   msghand] [net.cpp:152] [GetMemoryUsage] (GetSendMemoryUsage) net.cpp:1022 (node.m_send_memusage) static (88) + dynamic (0) = 88, msg_size=0
2024-08-12T09:06:54.135687Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1033] [SocketSendData] (node.m_send_memusage) node.vSendMsg.size() = 1, node.vSendMsg[0].size() = 148
2024-08-12T09:06:54.135701Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:152] [GetMemoryUsage] (SocketSendData) net.cpp:1040 (node.m_send_memusage) static (88) + dynamic (176) = 264, msg_size=148
2024-08-12T09:06:54.135733Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:152] [GetMemoryUsage] (SetMessageToSend) net.cpp:972 (node.m_send_memusage) static (88) + dynamic (176) = 264, msg_size=148
2024-08-12T09:06:54.135743Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:972] [SetMessageToSend] (node.m_send_memusage) msg=version, size=264
2024-08-12T09:06:54.135754Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1044] [SocketSendData] node.m_send_memusage = 3936, it_pos=0
2024-08-12T09:06:54.135788Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1095] [SocketSendData] node.m_send_memusage = 3936
2024-08-12T09:06:54.135801Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:152] [GetMemoryUsage] (GetSendMemoryUsage) net.cpp:1022 (node.m_send_memusage) static (88) + dynamic (0) = 88, msg_size=0
2024-08-12T09:06:54.135810Z (mocktime: 2014-12-05T10:33:01Z) [       net] [net.cpp:1099] [SocketSendData] asserting node.m_send_memusage == 0
2024-08-12T09:06:54.871872Z (mocktime: 2014-12-05T10:33:01Z) [       net] [stacktraces.cpp:528] [PrintCrashInfo] Posix Signal: Aborted
   0#: (0x55C6F5AF2B78) stacktraces.cpp:777  - HandlePosixSignal
   1#: (0x7FB2E8792420) sigaction.c          - ???
   2#: (0x7FB2E7BC100B) raise.c:51           - __GI_raise
   3#: (0x7FB2E7BA0859) abort.c:81           - __GI_abort
   4#: (0x7FB2E7BA0729) loadmsgcat.c:509     - get_sysdep_segment_value
   5#: (0x7FB2E7BA0729) loadmsgcat.c:970     - _nl_load_domain
   6#: (0x7FB2E7BB1FD6) <unknown-file>       - ???
   7#: (0x55C6F2C85B9D) net.cpp:1102         - CConnman::SocketSendData(CNode&) const
   8#: (0x55C6F2C8A76A) net.cpp:2240         - operator()
   9#: (0x55C6F2C8A76A) net.cpp:2240         - CConnman::SocketHandlerConnected(std::__debug::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int> > const&, std::__debug::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int> > const&, std::__debug::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int> > const&)
  10#: (0x55C6F2CA1461) net.cpp:2124         - CConnman::SocketHandler(CMasternodeSync&)
  11#: (0x55C6F2CA24CE) net.cpp:2400         - CConnman::ThreadSocketHandler(CMasternodeSync&)
  12#: (0x55C6F2CA28E9) std_function.h:292   - _M_invoke
  13#: (0x55C6F5D1289B) std_function.h:591   - std::function<void ()>::operator()() const
  14#: (0x55C6F5D1289B) thread.cpp:18        - util::TraceThread(char const*, std::function<void ()>)
  15#: (0x55C6F2BEB4EB) invoke.h:61          - __invoke_impl<void, void (*)(char const*, std::function<void()>), char const*, CConnman::Start(CDeterministicMNManager&, CMasternodeMetaMan&, CMasternodeSync&, CScheduler&, const Options&)::<lambda()> >
  16#: (0x55C6F2BEB4EB) invoke.h:96          - __invoke<void (*)(char const*, std::function<void()>), char const*, CConnman::Start(CDeterministicMNManager&, CMasternodeMetaMan&, CMasternodeSync&, CScheduler&, const Options&)::<lambda()> >
  17#: (0x55C6F2BEB4EB) std_thread.h:292     - _M_invoke<0, 1, 2>
  18#: (0x55C6F2BEB4EB) std_thread.h:299     - operator()
  19#: (0x55C6F2BEB4EB) std_thread.h:244     - _M_run
  20#: (0x7FB2E8602B03) <unknown-file>       - ???
  21#: (0x7FB2E8786609) pthread_create.c:478 - start_thread

This PR fixes that behaviour and allows for reintroduction of bitcoin#28165, a blocker for BIP324 work, to dash#6067.

How long these objects are alive? And how many of them can be alive at the same time?
4kb doesn't seems as big overhead.

The overhead of holding more memory than needed is small indeed and messages are alive only until they are sent so shouldn't be a huge issue from that point of view. The problem is that not releasing unused memory breaks memory accounting like @kwvg mentioned above. Also, shrink_to_fit() should do no reallocation in this case if I understand it correctly so we should have no overhead i.e. we just clean things up here a bit with no downsides.

The problem is that not releasing unused memory breaks memory accounting like @kwvg mentioned above.

Could you show how exactly memory is accounting?

The problem is that not releasing unused memory breaks memory accounting like @kwvg mentioned above.

Could you show how exactly memory is accounting?

check https://github.com/kwvg/dash/commit/aa3c25ddaa5c5bb6ac802b8de28cc1eb282ef00b


make search more prominent

What does this PR do?
Improve repo
Why is this valuable (or not)?
existing link does not make clear you can search

One way to make it even better might be this (perhaps even hunting down the visible link):

link to forked-repo


make error (Mac OSX)

MacBook-Pro-10:build chendi$ make
[  1%] Performing update step for 'catch'
Already up to date.
[  3%] No configure step for 'catch'
[  5%] No build step for 'catch'
[  7%] No install step for 'catch'
[  9%] Completed 'catch'
[ 14%] Built target catch
[ 16%] Performing update step for 'yaml-cpp'
Already up to date.
[ 18%] Performing configure step for 'yaml-cpp'
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/chendi/Desktop/Cornell/intern/IBM 2019/BlueStarTradingZoo/market_making_via_RL_code/rl_markets/build/ext/yaml-cpp/src/yaml-cpp-build
[ 20%] Performing build step for 'yaml-cpp'
[ 59%] Built target yaml-cpp
[ 75%] Built target googletest_project
[100%] Built target run-tests
[ 22%] No install step for 'yaml-cpp'
[ 24%] Completed 'yaml-cpp'
[ 29%] Built target yaml-cpp
[ 31%] Performing update step for 'spdlog'
Already up to date.
[ 33%] No configure step for 'spdlog'
[ 35%] No build step for 'spdlog'
[ 37%] No install step for 'spdlog'
[ 38%] Completed 'spdlog'
[ 44%] Built target spdlog
make[2]: *** No rule to make target ext/yaml-cpp/src/yaml-cpp-build/libyaml-cpp.so', needed by librl_engine.dylib'.  Stop.
make[1]: *** [src/CMakeFiles/rl_engine.dir/all] Error 2
make: *** [all] Error 2
I tried to fix the previous error about "make_unique" and ended up having this error.
I tried to search it online but found nothing. Can you help me make this work?
Best,
Di

How did you fix it? I would really appreciate it!


[86] Ignore [String] JWK parameters

Description
(Fixes #86)
This pull request provides a workaround for the x5c parameter, which isn't a String but an Array of Strings ([String]).
The current behavior is to throw an error when serializing.
Please note that this is just a workaround for #86 and does not do any certificate validation (as planned in #57).

Awesome!

Thanks for your contribution @xaverlohmueller from my side as well! 👏
Just FYI: A new version with the merged changes will be released during the day.

The 1.3.1 release is now live on CocoaPods! 🎉


Edit metadata definitions

Add ability to edit metadata definition.

May 16 clowder dev meeting notes -
There is some inconsistency with editing metadata definition if we already have some metadata using that. The reason, is it validates the existing data on 'Add metadata' button, it errors out if it can't validate.
Possible solution:

Try versioning of metadata defn
Use id instead of name to link metadata defn to metadata
Always show latest metadata versions on UI.

For now, I have disabled editing metadata if there is preexisting metadata.
I have cretaed separate task for metadata versioning #1095


Fix folder autocreation

See #15

Thank you for the contribution! It might take me after Christmas to try this out. Assuming that this fixes the issue without breaking things, it would be nice to have a regression test. Though, I am not sure if that's easily possible if the previous implementation worked with Greenmail (the dev mail server against which the tests run).

The issue looks related to the IMAP implementation of Office365, then I'm not sure how to test it with Greenmail
I'll have a look to add tests

I added a test for create_if_not_exists method
Is it that you expected?

Codecov Report

Merging #16 (80c9e2a) into main (59a5825) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   95.61%   95.63%   +0.02%
==========================================
  Files          23       23
  Lines         934      939       +5
==========================================
+ Hits          893      898       +5
  Misses         41       41

Impacted Files
Coverage Δ

dmarc_metrics_exporter/imap_queue.py
92.79% <100.00%> (-0.07%)
:arrow_down:

dmarc_metrics_exporter/tests/test_imap_queue.py
100.00% <100.00%> (ø)

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 59a5825...80c9e2a. Read the comment docs.

I made some minor changes, see fl42/dmarc-metrics-exporter#1. Please merge them if they look good to you and I will take care to merge them back to this repository and then doing a bugfix release.


[Azure Batch - Batch] API Review

New API Review meeting has been requested.
Service Name: Azure Batch - Batch
Review Created By: Bill Boris
Review Date: 10/15/2024 01:00 PM PT
Release Plan: 1471
PR: https://github.com/Azure/azure-rest-api-specs/pull/26381
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: Not Provided
Description: Azure Batch (existing service) is building a v2 of its entire service offering, with similar but not quite same concepts and functionality.
It is currently proposed that this reuses the same top level 'account' and Resource Provider, but splits under that (so there will be new RP entities and a whole new data plane endpoint).
We are looking for a design / architectural review meeting regarding:

Sign off on the high level plan (where the split should be made).
How to namespace, review and release data plane specs, SDKs and CLI tooling

We've had an informational meeting and been recommended to followup with this group.
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

Meeting updated by Bill Boris
Service Name: Azure Batch - Batch
Review Created By: Bill Boris
Review Date: 10/15/2024 01:00 PM PT
Release Plan: 1471
PR: https://github.com/Azure/azure-rest-api-specs/pull/30998
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: Not Provided
Description: Azure Batch (existing service) is building a v2 of its entire service offering, with similar but not quite same concepts and functionality.
It is currently proposed that this reuses the same top level 'account' and Resource Provider, but splits under that (so there will be new RP entities and a whole new data plane endpoint).
We are looking for a design / architectural review meeting regarding:

Sign off on the high level plan (where the split should be made).
How to namespace, review and release data plane specs, SDKs and CLI tooling

We've had an informational meeting and been recommended to followup with this group.
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

Meeting updated by Mark Young
Service Name: Azure Batch - Batch
Review Created By: Bill Boris
Review Date: 10/15/2024 01:00 PM PT
Release Plan: 1471
PR: https://github.com/Azure/azure-rest-api-specs/pull/30998
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: here
Description: Azure Batch (existing service) is building a v2 of its entire service offering, with similar but not quite same concepts and functionality.
It is currently proposed that this reuses the same top level 'account' and Resource Provider, but splits under that (so there will be new RP entities and a whole new data plane endpoint).
We are looking for a design / architectural review meeting regarding:

Sign off on the high level plan (where the split should be made).
How to namespace, review and release data plane specs, SDKs and CLI tooling

We've had an informational meeting and been recommended to followup with this group.
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

Meeting updated by Mark Young
Service Name: Azure Batch - Batch
Review Created By: Bill Boris
Review Date: 10/15/2024 01:00 PM PT
Release Plan: 1471
PR: https://github.com/Azure/azure-rest-api-specs/pull/30998
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: here
Description: Azure Batch (existing service) is building a v2 of its entire service offering, with similar but not quite same concepts and functionality.
It is currently proposed that this reuses the same top level 'account' and Resource Provider, but splits under that (so there will be new RP entities and a whole new data plane endpoint).
We are looking for a design / architectural review meeting regarding:

Sign off on the high level plan (where the split should be made).
How to namespace, review and release data plane specs, SDKs and CLI tooling

We've had an informational meeting and been recommended to followup with this group.
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here


Enhance certain button (Update/Edit/Delete/Cancel/etc.) placements for better UX

As ...
Nelly - Network Engineer
I want ...
To be able to see and quickly click any of the action buttons (Update/Edit/Delete/Cancel/etc.) on a form or table regardless of how long the form is or how many items are shown in the table.
So that ...
I don't need to scroll down to the bottom of the page to find the button.
I know this is done when...

I can edit a field near the top of the page on a Device and click Update without having to scroll
I can have a long table (e.g. 1000 items) and select 1+ item(s) and click Edit Selected or Delete Selected buttons without having to scroll
I can filter my items and do a bulk delete and not have to scroll to the bottom of the page to click Delete these # items button.

Optional - Feature groups this request pertains to.

[ ] Automation
[ ] Circuits
[ ] DCIM
[ ] IPAM
[ ] Misc (including Data Sources)
[ ] Organization
[ ] Apps (and other Extensibility)
[ ] Security (Secrets, etc)
[ ] Image Management
[X] UI/UX
[ ] Documentation
[ ] Other (not directly a platform feature)

Database Changes
None
External Dependencies
Unknown, but probably not since it's UI based.

Something like a sticky button that sticks to the top/bottom of the browser viewport comes to mind

Possible duplicate of #5318?

Possible duplicate of #5318?

Indeed. Thanks, I didn't find that one in my original search I guess.


DEBUG has been added and could be found at here
Thank you for taking the time to investigate what's going on.

Hi @Potat0000 apparently requesting the "fat manifest" when the container has only one platform results in the API sending whatever it wants.
The PR linked here should fix this.

Well actually the runners have an old version of curl so the changes in the PR don't work...I'll keep working on this

Just posting error here
Run<EMAIL_ADDRESS>Run result=$(base=pihole/pihole:latest image=devzwf/pihole-dot-doh:latest platforms=linux/amd[6](https://github.com/devzwf/pihole-dot-doh/actions/runs/4025251534/jobs/6918236624#step:2:7)4 /home/runner/work/_actions/lucacome/docker-image-update-checker/v1.2.0/docker.sh)
  result=$(base=pihole/pihole:latest image=devzwf/pihole-dot-doh:latest platforms=linux/amd64 /home/runner/work/_actions/lucacome/docker-image-update-checker/v1.2.0/docker.sh)
  echo "result=${result}" >>$GITHUB_OUTPUT
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
jq: error (at <stdin>:24[8](https://github.com/devzwf/pihole-dot-doh/actions/runs/4025251534/jobs/6918236624#step:2:9)): Cannot iterate over null (null)
Error: Process completed with exit code 5.

I've just pushed a fix to main, if you can confirm that it fixes your problems I'll cut a new release

Problem has been solved in my situation! Thank you so much!

same here
Thanks a  lot


Segfaults in Release builds using sleep_for

Testing our code on different platforms, we noticed that on some hardware for some tests we need a slightly larger stack size (hpx.stacks.small_size). However when increasing the small stack size one of the test started to systematically fail in release mode.
From our tests we extracted the failing case and reduced to the following minimal reproducible example, which also work only when the default value (0x10000) is used.
The problem was reproduced on different platforms and compilers (linux + gcc, mac + clang)
Expected Behavior
We expect it should work.
Actual Behavior
➜  build git:(bug) ✗ ./example
➜  build git:(bug) ✗ ./example -Ihpx.stacks.small_size=0x80000
{stack-trace}: 5 frames:
{what}: Segmentation fault: 11
...

See full_error.txt
Steps to Reproduce the Problem
#include <chrono>
#include <hpx/hpx.hpp>

int main_hpx(int argc, char** argv) {
  hpx::shared_future<void> shared_future = hpx::make_ready_future();

  hpx::future<void> last_task =
      shared_future.then(hpx::launch::async, [](auto&&) { hpx::this_thread::sleep_for(std::chrono::milliseconds(10)); });

  last_task.get();

  return hpx::finalize();
}

int main(int argc, char** argv) {
  return hpx::init(main_hpx, argc, argv);
}

Specifications

HPX Version: 1.4.0
Platform (compiler, OS): Apple LLVM version 10.0.1 on macOS 10.14.6

@albestro Could you post the full error message you're seeing, please? Also, does this happen with current stable as well?

@albestro Could you post the full error message you're seeing, please? Also, does this happen with current stable as well?

Sorry, please disregard the first request, I just saw the file you posted.

I've tried it with hpx 1.4.1 where it segfaults around here https://github.com/STEllAR-GROUP/hpx/blob/1.4.1/hpx/runtime/threads/policies/thread_queue.hpp#L147-L169

It seems the ifs are non-exhaustive and heap is a nullptr.
That moved to https://github.com/STEllAR-GROUP/hpx/blob/master/libs/schedulers/include/hpx/schedulers/thread_queue.hpp#L134-L154 on master

I confirm that on mac it fails with HPX 1.4.1 too.
 I think I know what's going on... Most likely the scheduler and whatever scheduled that thread aren't using the same definition of "small stack size" (one is the default, the other is the overridden small stack size). I'll fix it.

By the way, are you implying that the code actually works correctly in debug mode? I would've expected that assertion to fire in debug mode.

By the way, are you implying that the code actually works correctly in debug mode? I would've expected that assertion to fire in debug mode.

You'd be right if you were implying that!
As I suspected this is due to my changes, and as I suspected it's trying to create a thread with the default small stack size rather than the configured one. The reason this doesn't show up in debug mode is that the default small stack size in debug mode is the same as the default medium stack size. So in debug mode it ends up using the medium stack size heap for small stack sizes. That's kind of neat, but probably not intentional.
I'll fix this tomrrow with a small change, but now that this came up and I have #4542 in progress I'll make a bigger change for that issue. I think we'd be better off keeping the stack size as our enum for as long as possible and convert to a real stack size only at the very last moment. The scheduler itself knows the correct stack sizes so it's best to leave the conversion to the scheduler.

By the way, are you implying that the code actually works correctly in debug mode? I would've expected that assertion to fire in debug mode.

As you stated in your last comment, this problem was not there in debug mode, but just in release mode.
Just for supporting your findings.
Thanks for looking into that!