Karpenter stopped to provision new nodes

Version

Karpenter: v0.5.3

Kubernetes: v1.21.1
Expected Behavior

Karpenter provisions nodes as before
Actual Behavior

When a new pod has been created - Karpenter doesn't do anything
Steps to Reproduce the Problem

Actually I don't know
Resource Specs and Logs

Provisioner:
│ spec:                                                                                │
│   kubeletConfiguration: {}                                                                                │
│   labels:                                                                                │
│     only-amqp: "true"                                                                                │
│   limits: {}                                                                                │
│   provider:                                                                                │
│     apiVersion: extensions.karpenter.sh/v1alpha1                                                                                │
│     instanceProfile: ad-eks-c-NodeInstanceProfile                                                                                │
│     kind: AWS                                                                                │
│     securityGroupSelector:                                                                                │
│       aws:eks:cluster-name: ad-eks-c                                                                                │
│     subnetSelector:                                                                                │
│       kubernetes.io/cluster/ad-eks-c: '*'                                                                                │
│   requirements:                                                                                │
│   - key: kubernetes.io/arch                                                                                │
│     operator: In                                                                                │
│     values:                                                                                │
│     - arm64                                                                                │
│   - key: karpenter.sh/capacity-type                                                                                │
│     operator: In                                                                                │
│     values:                                                                                │
│     - on-demand                                                                                │
│   taints:                                                                                │
│   - effect: NoSchedule                                                                                │
│     key: only-amqp                                                                                │
│     value: "true"                                                                                │
│   ttlSecondsAfterEmpty: 120                                                                                │
│ status:                                                                                │
│   resources:                                                                                │
│     cpu: "0"                                                                                │
│     memory: "0"

Last logs with this provisioner:
2021-12-28T14:33:32.725Z	INFO	controller.provisioning	Batched 1 pods in 1.000444166s	{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}
2021-12-28T14:33:32.745Z	INFO	controller.provisioning	Computed packing of 1 node(s) for 1 pod(s) with instance type option(s) [t4g.medium a1.large c6gd.large c6g.large t4g.large m6g.large m6gd.large r6gd.large r6g.large a1.xlarge c6gd.xlarge c6g.xlarge m6g.xlarge t4g.xlarge m6gd.xlarge r6gd.xlarge r6g.xlarge a1.2xlarge c6g.2xlarge c6gd.2xlarge]{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}
2021-12-28T14:33:34.965Z	INFO	controller.provisioning	Launched instance: i-0b94bda4c1078a178, hostname: ip-192-168-98-4.eu-central-1.compute.internal, type: t4g.medium, zone: eu-central-1b, capacityType: on-demand	{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}
2021-12-28T14:33:34.983Z	INFO	controller.provisioning	Bound 1 pod(s) to node ip-192-168-98-4.eu-central-1.compute.internal	{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}
2021-12-28T14:33:34.983Z	INFO	controller.provisioning	Waiting for unschedulable pods	{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}
2021-12-28T14:33:35.983Z	INFO	controller.provisioning	Batched 1 pods in 1.000237359s	{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}
2021-12-28T14:33:35.983Z	INFO	controller.provisioning	Waiting for unschedulable pods	{"commit": "5047f3c", "provisioner": "kazoo-amqp-smb-eu-central-1"}

So today I scaled statefulset from 0 to 1 and a pod stays in pending forever.
It looks like Karpenter stopped to provision nodes for this Provisioner for some reason but there are no useful logs what happens.
If I restart Karpenter it will provision a node... so the spec for pods is correct and as follows:
...
  tolerations:
  - effect: NoSchedule
    key: only-amqp
    value: "true"
...
  nodeSelector:
    only-amqp: "true"
...

Do you have an idea why it happens? Currently only restarting Karpenter helps to solve this.

I haven't seen this before, but it's a big problem that shouldn't be possible. It sounds like you're describing some sort of deadlock. Can you enable debug logging kubectl patch configmap config-logging -n karpenter --patch '{"data":{"loglevel.controller":"debug"}}'  and attempt to reproduce?

Currently only restarting Karpenter helps to solve this.

This bit indicates to me that there might be a deadlock

Thanks, I’ve enabled debug logging.
When it happens again I will update the ticket with logs

Hey @Noksa, I reimplemented this to be a little more straight forward and less likely (fingers crossed) to contain bugs.

@ellistarn Thanks a lot :)
Hope we’ll never see this bug again!

Coming in 0.5.4


Put an if in powell2015.py to avoid  requiring matplot

First, print the result in the same way as other examples. In addition, if matplot is available, then plot; otherwise, if you want, print a message saying that the plot is skipped.

Hi Tom, thank you for the quick response. The README may need updating accordingly.

You are right, I will update that!


XX_httplib_push_all / push type mismatch

The function XX_httplib_push_all takes a len parameter of type int64_t, whereas the function push() takes an int parameter which is less than 64 bits on many architectures. A cast hides the potential danger of this.

Fixed in https://github.com/lammertb/libhttp/commit/f77e497a65919e0560ab244474ac54745a71d79f


Error while installing dependencies on PaperSpace - No module found: Torch (Using latest notebook)

Hello, I have an issue installing the dependencies for webui in Paperspace. This is the error I am getting. I am using the latest notebook:

ModuleNotFoundError                       Traceback (most recent call last)
Cell In [1], line 8
3 force_reinstall= True
4 # Set to true only if you want to install the dependencies again.
5
6
7 #--------------------
----> 8 with open('/dev/null', 'w') as devnull:import requests, os, time, importlib;open('/notebooks/mainpaperspaceA1111.py', 'wb').write(requests.get('https://huggingface.co/datasets/TheLastBen/PPS/raw/main/Scripts/mainpaperspaceA1111.py').content);os.chdir('/notebooks');time.sleep(3);import mainpaperspaceA1111;importlib.reload(mainpaperspaceA1111);from mainpaperspaceA1111 import *;Deps(force_reinstall)
File /notebooks/mainpaperspaceA1111.py:8
6 import fileinput
7 import ipywidgets as widgets
----> 8 from torch.hub import download_url_to_file
9 from urllib.parse import urlparse
10 import re
ModuleNotFoundError: No module named 'torch'
If you know what to do, let me know

Nevermind, found similar closed issue. Had to restart the machine


Not supported cpu AMD laptop

Hi could you please add support for AMD E1-1500 APU with Radeon(tm) HD Graphics
Gpu:Amd hd 7310

I believe your APU is to old/low spec. This only supports Zen based APU's through Ryzenadj.

I’m in agreement with you, if you can try ryzenadj and report back your findings maybe I’ll consider adding it
Get Outlook for iOShttps://aka.ms/o0ukef

From: Cyberdyne @.>
Sent: Monday, February 21, 2022 1:14:08 PM
To: project-sbc/Power-Control-Panel @.>
Cc: Subscribed @.***>
Subject: Re: [project-sbc/Power-Control-Panel] Not supported cpu AMD laptop (Issue #20)
I believe your APU is to old/low spec. This only supports Zen based APU's through Ryzenadj.
—
Reply to this email directly, view it on GitHubhttps://github.com/project-sbc/Power-Control-Panel/issues/20#issuecomment-1047129740, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASZ4DJOHT3EU5OVKITHXQFDU4J6HBANCNFSM5O6XWLDA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Hi thank you very much for the reply when I tried running Ryzen adj it didn't want to run I will try tomorrow to run it again I didn't clearly understand what did you mean with report back your findings

RyzenAdj is a command line tool, you could try AATU or RMT to see if those work
Get Outlook for iOShttps://aka.ms/o0ukef

From: DragonFrizzy @.>
Sent: Monday, February 21, 2022 3:30:00 PM
To: project-sbc/Power-Control-Panel @.>
Cc: project-sbc @.>; Comment @.>
Subject: Re: [project-sbc/Power-Control-Panel] Not supported cpu AMD laptop (Issue #20)
Hi thank you very much for the reply when I tried running Ryzen adj it didn't want to run I will try tomorrow to run it again I didn't clearly understand what did you mean with report back your findings
—
Reply to this email directly, view it on GitHubhttps://github.com/project-sbc/Power-Control-Panel/issues/20#issuecomment-1047209784, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASZ4DJIX77KWEFZHO3CGKMTU4KOERANCNFSM5O6XWLDA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>

Okay now I understand ATTU won't work I tried it already and RMT won't work too and left Ryzen Adj but I'm sure it won't work too it means bad luck sadly

@project-sbc How about zen 2 apus like 4700u? Will you add support for it? RMT works fine on 4700u btw, just asking out of curiosity.

original CPU is not supported

Oh sure I’ll add that later
Get Outlook for iOShttps://aka.ms/o0ukef

From: Emre Erdem @.>
Sent: Saturday, March 12, 2022 12:10:36 PM
To: project-sbc/Power-Control-Panel @.>
Cc: project-sbc @.>; Mention @.>
Subject: Re: [project-sbc/Power-Control-Panel] Not supported cpu AMD laptop (Issue #20)
@project-sbchttps://github.com/project-sbc How about zen 2 apus like 4700u? Will you add support for it? RMT works fine on 4700u btw, just asking out of curiosity.
—
Reply to this email directly, view it on GitHubhttps://github.com/project-sbc/Power-Control-Panel/issues/20#issuecomment-1065921325, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASZ4DJILMONL5KPN6DIH5RDU7TFYZANCNFSM5O6XWLDA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>


Unable to find the paper link

I am unable to find the paper which has this code implementation.
Optimizing CNN for FPGA hardware

https://link.springer.com/chapter/10.1007/978-3-030-17227-5_2
Hi I hope you're still interested in the paper ^^ The paper can be found from the above link and its part of LNCS.

Thanks for sharing!


** new to github/programming (so might be a dumb question)** Module is pulling multiple duplicates for each Submission

Again, not sure how to ask a question....but I have been using the 'search_submissions' class and it is pulling multiple duplicates for each submission. Is there something I am doing wrong?

Hi, can you please provide the code you are running, pmaw version, the log output / result, and the expected output/result?


Replace Web Archive Links with RSpec Documentation

Description:
We no longer need to use web archive for rspec documentation. We can use the new site: http://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
The following PR changed the links throughout this repository to the web archive links when the documentation site went down
https://github.com/TheOdinProject/ruby_testing/pull/42
Acceptance Criteria:
Replace each of the web archive links with an updated link. If needed use the above PR to help see the original links.

I can do it.


The chosen event occurred in the past

I have lots of problems to schedule the cron job correctly. All the time I get message:
Runtime error: The chosen event occurred in the past; cannot wait a negative amount of time.

Which is funny, because I trigger event at 02:00, and sunrise is 08:51:11
Same goes for sunset: job scheduled at 12:00, sunset at 14:55.
Apparently, there are some problems when date is today.
I think it's obvious, if I wait for sunrise (without specific --date), I mean the next coming sunrise tomorrow morning. I can't process why this program assumes I care about sunrise which already happened today morning. Maybe some sort of --force flag will do?

Thank you @acejacek - I'm not sure I agree that it's obvious --date refers to the next time the event occurs. There are too many edge cases, in my opinion, and I don't like to make assumptions about people's use cases.
The simplest and least degree of assumption is for --date to be "today" if it is not explicitly mentioned. If you want to schedule it for a specific day, it couldn't be simpler to pass that to the --date parameter. In fact, even allowing the user to skip the --date parameter at all is a luxury; it would be most clear to have it as a required option.
I'll close this because I don't see any problem with the current implementation.


fix(bolt): require --all flag when not using filters for cluster commands

Changes

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1162  👈
#1161
#1160
#1159
#1158
#1157
#1156
#1155
#1154
#1153
#1152
#1151
#1150
#1148
#1147
#1146
#1145
#1144
#1143
#1142 : 1 other dependent PR (#1149 )
#1141
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @MasterPtato and the rest of your teammates on  Graphite


Taskbar Configurator app does not effect taskbar

Describe the bug
When applying settings through the TaskbarX Configurator it will not affect the taskbar, then running the taskbarX.exe application will only center the taskbar.
To Reproduce
Steps to reproduce the behavior:

Go to the configurator and make changes
Click on apply
observe how it does nothing
run the taskbarX.exe file
observe how it only centers taskbar

Expected behavior
the config actions take effect and my taskbar becomes customized
Desktop (please complete the following information):

OS: Windows 10 Home
Version 19043.1415
App Version <IP_ADDRESS>

Same issue with same OS and version.

Same issue with same OS and version.

Huh. It looks as if my Windows 10... activated itself? Which probably supersedes TaskbarX's configuration. While the icons are centered, opening new icons does not result in an adjustment in the icon centering.

I have the same problem, except I'm on windows 10 pro, 19044.1503

Same issue.
Version: Windows 10 Pro
Build : 19043.1526
App version : 1.7.6..0

I've got what seems like the same problem, but I've found that it only happens if I open the programs from the start menu; if I actually go to the folder in explorer (or a terminal) and run the .exe files from there it fixes it.
In my case, it behaves similarly to how #677 describes that issue, with the Configurator not working because pressing "Apply" crashes the TaskbarX process if either was opened using the start-menu shortcuts.
OS: Windows 10 Home
Build: 19043.1586
App Version: <IP_ADDRESS> (portable)

I've got what seems like the same problem, but I've found that it only happens if I open the programs from the start menu; if I actually go to the folder in explorer (or a terminal) and run the .exe files from there it fixes it.
In my case, it behaves similarly to how #677 describes that issue, with the Configurator not working because pressing "Apply" crashes the TaskbarX process if either was opened using the start-menu shortcuts.
OS: Windows 10 Home Build: 19043.1586 App Version: <IP_ADDRESS> (portable)

BRO TYSM ISTG YOUR AMAZING

No longer on windows 10, closing


Put into production

Q
A

Bug report?
[ ]

Feature request?
[ ]

Support request?
[ x ]

hi cocolabs,
Where is the config for setting up the port for project deployment?
When I type:

php app/console project:deploy --go prod

I have like return ::

root@mx:/var/www/dev/Symfony# php app/console project:deploy --go prod
Deploying on prod server with rsync  -azC --force --delete --progress -h --checksum --exclude-from="/var/www/dev/Symfony/app/config/rsync_exclude.txt" -e "ssh -p 22" ./ wedder@dev.test.fr:/var/www/dev/Symfony command
START deploy
ERR > ssh: connect to host dev.test.fr port 22: Connection refused
ERR > rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2]
END deploy
Deployed on prod server!

I work on another port than the 22

Hi @gonzasylv
You can change it here :  src/Cocorico/CoreBundle/Resources/config/config_dev.yml:16

Its ok , thanks.

Hi!  It happens to me that when deploying production with the command deploy that is in the doc it returns "rsync not found" I am using the image of Docker cocorico, I enter by sh to the container and run the deploy ... Anything idea?


Usage Xcode 9's recommended project settings causes warnings

New issue checklist

[X] I have reviewed the README and documentation
[X] I have searched existing issues and this is not a duplicate

General information

IGListKit version: master
iOS version(s): N/A
CocoaPods/Carthage version: 1.3.1
Xcode version: 9.0
Devices/Simulators affected: N/A
Reproducible in the demo project? (Yes/No): Yes
Related issues:

Debug information
When you start using Xcode 9 for a project and use IGListKit through Cocoapods Xcode suggests to use it's recommended settings for the Pods and your own project. if you apply these recommended settings. A few compiler warnings occur in the codebase. Especially, around the ListAdapter code:
/Pods/IGListKit/Source/Internal/IGListBatchUpdates.h:26:64: This block declaration is not a prototype

Already fixed in an existing PR #942. Closing ticket

These changes are not available in 3.1.1, when are you planning to release them?

@jazz-mobility wrapping up 3.2 now!
Sent with GitHawk


Space Travelers Hub: Kanban board setup

⚒  Workload Distribution ~ Kanban Board setup⚒

Setup React-redux project Kanban Board.
Distribute tasks between 3 contributors:

@ProgramKingAbel - Abel
@ghermaico135 - Michael
@sahlminkok - Sahal

Please find link to project here.

Hi team 😊,
STATUS: APPROVED! 🥇 💯

Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit: 🚀
Congratulations! 🎉
Highlights
✅ Project has met all the technical aspects you needed for this project. Keep rocking!
Cheers, and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


ActionSheet

Hi! First of all, thank you for this amazing lib of React UI Components!!
I've upgrade NB to version 2.0.12 but i can't put ActionSheet working :(
I've copy paste the example but it gives me the error: "undefined is not an object (evaluating '_nativeBase.ActionSheet.show')
Can you help me?
Best of all

ActionSheet has been added from v2.0.13.
Please upgrade and check.

That's it!
Thank you!


Include data key when lazy-loaded relationships are included

Resolves https://github.com/Netflix/fast_jsonapi/issues/357
When a relationship is listed under include:, it will add the data key to the record hash, allowing the included relationships to be reconstructed.

@kpheasey I've looked into the possible breaking change issues with the method params on record_hash, relationships_hash and Relationship#serialize, and none seem to be part of the standard public interface. It is possible that a deeply coupled use of the gem might be affected, but I think the fix this change is addressing is worth it. The alternative would be to make the new params non-breaking, but it would make these internal methods ugly. Tricky.
@dpikt Can you look into the conflict in the spec. Thanks.


"Attempt to invoke virtual method 'android.os.Parcelable android.os.Bundle.getParcelable(java.lang.String)' on a null object reference"

Occurs on:
Device: Samsung Galaxy Note 4 (SM-N910F)
OS: Lineage OS 16 unofficial by kevintm78, Build: lineage_trlte-userdebug 9 PQ2a.190305.002eng.kevint.20190312.063803 test-keys
Configuration: OS encrypted and rooted via su arm
AppOpsX version: 1.2.5
Description
Upon attempting to see the permissions of any app, AppOpsX will show the following error message:

Attempt to invoke virtual method 'android.os.Parcelable android.os.Bundle.getParcelable(java.lang.String)' on a null object reference

Steps to reproduce

Open AppOpsX
Tap on any app

Expected result
Seeing app permissions and being able to toggle them on/off.
What I've attempted to solve the problem

Reboot
Reinstall AppOpsX
Turn on Root compatibility mode in AppOpsX > Settings
Turn on ADB mode in AppOpsX > Settings

The problem puzzles me because I have used AppOpsX before and without problems, but at that time I hadn't encrypted the device. My prime suspect is the device encryption.

Apologies. I wasn't aware that turning on root compatibility mode requires a reboot. After the reboot, it works, although I cannot turn off certain permissions (WiFi / data access). But I suppose that is part of the workaround. I'm closing this report.


remove tenancy cmd from core

What changed?
Removed tenancy commands from core

Why was this change made?
Tenancy command should work as an additional plugin to the gitops binary

Thank you @alichaddad!
Some entries in go.sum needs to be refreshed because of the code removal.
Could you please re-run go mod tidy and re-push again?

Thanks @chanwit , it should be ok now

Ouch @alichaddad. It seems this PR requires another rebase.


Unable to install marketplace through the command given in docs

🔍 Is there already an issue for your problem?

[X] I have checked older issues, open and closed

ℹ Environment / Computer Info
- Spotify version: <IP_ADDRESS>2.g794acc0a
- Spicetify version: v2.25.3
- Location: India

📝 Description
the powershell command for downloading marketplace is not working
the uri: https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.ps1 cannot be reached
📸 Screenshots

Try using VPN because it's something with the connection from you to GitHub


conflict with ERROR macro definition on windows with visual studio 2015

In couchbase++h, following line has a conflict with macro ERROR.
enum State { STORE = 0, SUBMIT, DONE, ERROR };
In views.h, following definition has the same issue.
enum class StaleMode { OK, FALSE, UPDATE_AFTER };

What's problem with StaleMode: is it FALSE?


VS Code opens file from its cache, event file is newer on disc

Type: Bug
Open folder/project and select file.
Make some edits into the file, save it, close the file, but dont close the the VSCode.
Do commit and push. Edit file on another machine and also do a pull into the git. OR, edit a file with another editor locally, with  Sublime for example, doesnt matter how.
Now make a pull to get updates locally (I do git push/pull from external terminal). Return to VSCode and select a file to open it up.
When file is opened, it first loaded from disc, THAN editor window flashes and loaded a cached version of the file, at the same time file on dick also get overwritten with the cached version.
The result is, that latest changes from git is lost now... You can do an undo at this point to return a state of the file that was loaded before it flashed and reverted to cached version... but this is not efficient at all.
This is very old problem, theres lots of topics around about this, but now fix or any workaround, which is very sad.
VS Code version: Code 1.87.0 (Universal) (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:42:56.944Z)
OS version: Darwin arm64 23.0.0
Modes:

System Info

Item
Value

CPUs
Apple M1 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
3, 3, 3

Memory (System)
16.00GB (0.06GB free)

Process Argv
--crash-reporter-id 83a20eb0-f963-43f3-a689-58f14285e03c

Screen Reader
no

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

woocommerce
cla
1.1.0

vscode-great-icons
emm
2.1.102

vscode-wordpress-hooks
joh
1.3.0

theme-monokai-pro-vscode
mon
1.2.2

sftp
Nat
1.16.3

intellicode-api-usage-examples
Vis
0.2.8

vscodeintellicode
Vis
1.3.1

wordpress-toolbox
wor
1.3.15

JavaScriptSnippets
xab
1.8.0

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30986170
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
bf62j303:30959262
pydisww1:30991133
cppperfnew:30979542
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
ccp2r3:30958157
dsvsc020:30976470

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.87.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

@VSCodeTriageBot Same bug on latest version, tested.

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.87.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

@cklim2024 issue remains, as already updated to latest and tested

/gifPlease

@lszomoru
please check the gif
I open up a file, do edit. Than, open it in another editor and edit the file. And now, opening same file in the VSCode again, and it shows last edit state it had, not the latest version of the actual file...
Same happens when files is updated by GIT.

@lszomoru @mojodna @cklim2024
Hey! Any update on this issue?

@lszomoru @bpasero Looks like I found the issue, it is this extension: https://marketplace.visualstudio.com/items?itemName=Natizyskunk.sftp
Looks like its using some cache, and always reopens the file from its cache, no matter what, even if the local file is newer...
@Natizyskunk mby you can check the thread here and provide a fix in next release? :)

@gleb-pineparks, glad to hear that you were able to track down the root cause.


New Mastodon icon

along similar lines as the existing twitter, twitch, etc icons. like https://icons.getbootstrap.com/icons/mastodon/ but outline-only

Got it .. will work on adding it


KAFKA-2960: Clear purgatory for partitions before becoming follower

cc @junrao @guozhangwang

This seems OK to me, but it would be good to get input from someone who knows this code better.

@ijuma Thanks for the review. @junrao @guozhangwang Would you be able to take a look?

+1 on the change except a minor comment on the test.

Test looks much better now. Can you also test that delayed fetch requests are cleared?

Thanks, the patch LGTM.


warning: don't use v-if and v-for simultaneously

This issue is new for me.  Everything is still functional.  Just a console warning.


fix: bump xmldom

Resolves https://github.com/microsoft/botbuilder-js/security/dependabot/libraries/adaptive-expressions/package.json/xmldom/open

Pull Request Test Coverage Report for Build 658217120

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.01%) to 85.112%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

Totals

Change from base Build 646953005:
0.01%

Covered Lines:
18774

Relevant Lines:
21014

💛  - Coveralls


Changes to other attributes datatype after including C&SC grouping

This change is a consequence of the issue#20.
After including configuration-and-switch-control. The following attributes datatypes are changed to leafref pointing to a CASC instance. Apart from no.3 others are changed intentionally to avoid circular dependency.

S.No
Attributes
from
to

1
fc-switch/configuration-and-switch-control
string/later casc
/core-model:control-construct/core-model:forwarding-domain/core-model:fc/core-model:configuration-and-switch-control/core-model:switch-rule

2
fc-switch/internal-configuration-and-switch-control
string/later casc
/core-model:control-construct/core-model:forwarding-domain/core-model:fc/core-model:configuration-and-switch-control/core-model:switch-rule

3
casc-port/encapsulating-casc-port
/core-model:casc-port/core-model:uuid
/core-model:control-construct/core-model:forwarding-domain/core-model:fc/core-model:configuration-and-switch-control/core-model:casc-port/core-model:uuid

4
clock/encapsulated-casc
string/later casc
/core-model:control-construct/core-model:forwarding-domain/core-model:fc/core-model:configuration-and-switch-control/core-model:switch-rule

5
layer-protocol/configuration-and-switch-control
string/later casc
/core-model:control-construct/core-model:forwarding-domain/core-model:fc/core-model:configuration-and-switch-control/core-model:switch-rule

Discussion on the 5G-xhaul call on 15th of December 2021:

UML2YANG tool is having the neccessary code changes to support this datatype change.
We also generated a core-model and able to see the changes.
This will be available if we publish a new release of the core-model-1-4

As per the proposal in core-model#issue28  , the configuration-and-switch-control class shall be deleted.
If this proposal is decided , then in the UML2YANG tool , in the pruning-and-refactoring section, in the prune-and-refactor-core-model.xslt changes needs to be incorporated to revert the changes.

Proposal to the 5G-xhaul call on 28th of September 2022:
(issue #29 to be decided first)
The decision made on 15th of December 2021 is in conflict with a later decision in issue #28.
Decision made on 15th of December 2021 assumes that grouping configuration-and-switch-control is included, but in issue #28 has been decided to prune grouping configuration-and-switch-control from the modelling.
If in issue #29, would be decided (as proposed to the 5G-xhaul call on 28th of September 2022) to prune the following attributes from the modelling:

fc-switch/configuration-and-switch-control
fc-switch/internal-configuration-and-switch-control
casc-port/encapsulating-casc-port
clock/encapsulated-casc
layer-protocol/configuration-and-switch-control

this issue could just be closed.


GUVNOR-2336: Filtering by tags not working when Project Explorer is in Repository view

+1 to merge.

master: 470d20e9a132599f4a1618cbcfcf0f78132b048c


Trying to share non-existing file responds with empty body with http statuscode 404

Describe the bug
When trying to share non-existing file, ocis responses with empty  body and http statuscode 404.
But same request with oc10 returns meaningufl body and http statuscode 200
in oCIS
curl -X POST -u admin:admin https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares \
-d shareType=3 -d path=nonExisting

> POST /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.1
> Host: localhost:9200
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 27
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 27 out of 27 bytes
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 0
< Date: Fri, 12 Mar 2021 07:33:56 GMT
< Vary: Origin
<

In oC10
curl -X POST -u admin:admin http://localhost/core/ocs/v1.php/apps/files_sharing/api/v1/shares \
-d shareType=3 -d path=nonExisting

> POST /core/ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.1
> Host: localhost
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 27
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 27 out of 27 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Fri, 12 Mar 2021 07:35:31 GMT
< Server: Apache/2.4.41 (Ubuntu)
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 0
< X-Robots-Tag: none
< X-Frame-Options: SAMEORIGIN
< X-Download-Options: noopen
< X-Permitted-Cross-Domain-Policies: none
< Set-Cookie: ocd3fn3x61nb=4h2bod6k0eq9kv0mog0t04lcem; path=/core; HttpOnly
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-cache, no-store, must-revalidate
< Pragma: no-cache
< Set-Cookie: oc_sessionPassphrase=xXoFoA2Iq1rxF%2FQ7ayy1P5%2FyBZ6hGYfvfEsvd8NQQhOa2s5FxFItP2zFucCFnGJME6umQbTQtKac%2FJO1lvBUrZPblE0DbdMKZ8c9ZHkovMl4B4CAe%2Fc45uvMOcl%2FElWZ; path=/core; HttpOnly; SameSite=strict
< Content-Security-Policy: default-src 'none';manifest-src 'self';script-src 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'
< Set-Cookie: ocd3fn3x61nb=us37oh8elumduek343hu1p9nv0; path=/core; HttpOnly
< Set-Cookie: cookie_test=test; expires=Fri, 12-Mar-2021 08:35:32 GMT; Max-Age=3600
< Content-Length: 238
< Vary: Accept-Encoding
< Content-Type: application/xml; charset=utf-8
<
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>404</statuscode>
  <message>Wrong path, file/folder doesn't exist</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data/>
</ocs>

This is an example for ocs/v1.php (which has this sort of "odd" way that the HTTP status is 200 and the OCS status shows the "real" problem). OCIS needs to respond in the same way.
What happens for ocs/v2.php ?
Do oC10 and OCIS respond the same for a v2 sharing attempt?

in oc10
curl -X POST -u admin:admin http://localhost/core/ocs/v2.php/apps/files_sharing/api/v1/shares \
-d shareType=3 -d path=nonExisting -v

> POST /core/ocs/v2.php/apps/files_sharing/api/v1/shares HTTP/1.1
> Host: localhost
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 28
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 28 out of 28 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Date: Tue, 16 Mar 2021 10:08:29 GMT
< Server: Apache/2.4.41 (Ubuntu)
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 0
< X-Robots-Tag: none
< X-Frame-Options: SAMEORIGIN
< X-Download-Options: noopen
< X-Permitted-Cross-Domain-Policies: none
< Set-Cookie: ocd3fn3x61nb=irhs05m52ig71pcnk8eb9rnr36; path=/core; HttpOnly; SameSite=Strict
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-cache, no-store, must-revalidate
< Pragma: no-cache
< Set-Cookie: oc_sessionPassphrase=BnqPvZQ8a6kAL8EQcmKVFQiXI3l0%2BPvW8SIqgvvYSJyujtoe3kWq%2F4C6ripQRrPOW%2BoEJkgHA%2F47geUpoTsZRR7rQxH53tHn%2F4fM7jUEeELNdmIjVQSGlxVBsT6TPrn6; path=/core; HttpOnly; SameSite=Strict
< Content-Security-Policy: default-src 'none';manifest-src 'self';script-src 'self' 'unsafe-eval';style-src 'self' 'unsafe-inline';img-src 'self' data: blob:;font-src 'self';connect-src 'self';media-src 'self'
< Set-Cookie: ocd3fn3x61nb=65hdh6suarff51510a3cnc0oj8; path=/core; HttpOnly; SameSite=Strict
< Set-Cookie: cookie_test=test; expires=Tue, 16-Mar-2021 11:08:29 GMT; Max-Age=3600
< Content-Length: 238
< Content-Type: application/xml; charset=utf-8
<
<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>404</statuscode>
  <message>Wrong path, file/folder doesn't exist</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data/>
</ocs>

in OCIS
curl -X POST -u admin:admin https://localhost:9200/ocs/v2.php/apps/files_sharing/api/v1/shares \
-d shareType=3 -d path=nonExisting -v

> POST /ocs/v2.php/apps/files_sharing/api/v1/shares HTTP/1.1
> Host: localhost:9200
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.68.0
> Accept: */*
> Content-Length: 28
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 28 out of 28 bytes
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 0
< Date: Tue, 16 Mar 2021 10:10:01 GMT
< Vary: Origin

re-tested oCIS 1.12. still relevant

re-tested oCIS 1.19.1.
Now there is Not Found message.
v1.php: curl -uadmin:admin https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d shareType=3 -d path=nonExisting -vk
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>404</statuscode>
    <message>Not found</message>
  </meta>
</ocs>

v2.php: curl -uadmin:admin https://host.docker.internal:9200/ocs/v2.php/apps/files_sharing/api/v1/shares -d shareType=3 -d path=nonExisting -vk
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>404</statuscode>
    <message>Not found</message>
  </meta>
</ocs>

Closing here

TODO:

[ ] check owncloud-sdk tests

re-tested oCIS 1.19.1. Now there is Not Found message.
v1.php: curl -uadmin:admin https://host.docker.internal:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d shareType=3 -d path=nonExisting -vk
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>404</statuscode>
    <message>Not found</message>
  </meta>
</ocs>

v2.php: curl -uadmin:admin https://host.docker.internal:9200/ocs/v2.php/apps/files_sharing/api/v1/shares -d shareType=3 -d path=nonExisting -vk
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>404</statuscode>
    <message>Not found</message>
  </meta>
</ocs>

the above response is different from oC10:
<?xml version="1.0"?>
<ocs>
  <meta>
    <status>failure</status>
    <statuscode>404</statuscode>
    <message>Wrong path, file/folder doesn't exist</message>
    <totalitems/>
    <itemsperpage/>
  </meta>
  <data/>
</ocs>

Will there be any chance that oCIS will match to oC10's response in this case?
CC @phil-davis @individual-it @micbar

The differences seem to be:
a) "status" text is "failure" in oCIS and "error" in oC10.
b) "message" text is "Not found" in oCIS and "Wrong path, file/folder doesn't exist" in oC10
Maybe the "status" text will be important for a client - there might be a client that is doing some logic based on the text being "error" ?
But maybe the "message" text is not so important - clients are likely to just report the "message" text somewhere (in a log, on a UI...) - so the "message" text just needs to be sensible, not exactly the same as oC10.
Comments please...

https://github.com/cs3org/reva/pull/3279 should fix this particular case ... lets see ...

until reva is bumped: https://github.com/owncloud/ocis/pull/4716

TODO:

[x]  check owncloud-sdk tests ([tests-only] Bump ocis commitid owncloud-sdk#1161)

Related tests have been fixed.
Closing here!


Updates

Updates:
    - Codestyle: Updated for PEP8 compliance.
    - Update: Reports are now saved within their respective functions.
    - Update: Report2 (thread lengths): (i) column 'outlier' renamed to 'std_deviations_from_avg_category_len' and changed from boolean to string. Pending change to integer number of std deviations away, (ii) column 'avg_thread_length' renamed to 'avg_category_thread_length', (iii) column 'thread' changed to 'thread_name'.
    - Bugfix: report2 'thread_name': changed integer thread index to show thread name.
    - Update: Refactor thread counts: (i) iterates over threads, not indexes of thread list, (ii) re-uses thread dataframe subset.
    - Added: URL to report2

Updates:
zulip_report1_counts.csv
zulip_report2_thread_lengths.csv


Add a separate template for appended notes

With the new ability to append selections to existing notes, it would be useful to be able to format these differently in the target note. Since we're blindly dropping new text into an existing note, it would be useful to distinguish the new, appended text from the existing content in a special way. A separate template for appending would help a lot.

This should be the top priority, editing template in a small non interactive box lost in options is such a hustle ! @lynchjames we are counting on you !


#44 Bug - Make sure HealthKit is asking permission from user

I've added a call in HomeView for HealthKit authorisation request and on success called the stepsCount() to update values from HealthKit data.
While building, I noticed some files were missing, so I've added those in the PR. Let me know if you need me to remove those and push again.

@kritiagarwal13  Looks great! Thanks so much for adding those files in too! I noticed those files missing on my last PR too. Probably on issue on my end somehow. 😅 Looking into that next!


Fix encoding issue with weblogo file (#152)

Weblogo functions returns binary data for the logo which have to be writen to a file.
Since Python 2 and Python 3 handles differently binary data,  I had to re-write a little bit how we write the weblogo data into a  file.
Mainly, we have to open the output file as a binary and use the write function of the descriptor.

Thanks @HubLot


Add a parameter tolerance to IntentTEDPolicy configuration

Description of Problem:
Part of https://github.com/RasaHQ/research/issues/122
If we look at the distribution of similarity values predicted by IntentTED for a single intent, it would look something like this -

The blue bars show similarity values predicted for all input trackers where the intent install_rasa was the positive label.
The orange bars show similarity values predicted for all input trackers where the intent install_rasa was the negative label.
Currently, the threshold is taken as the minimum value from all blue bars denoted by the red vertical line. We want this threshold value to be slightly more "flexible" which can account for cases where the threshold value and the actual predicted value at inference are extremely close. For e.g., the threshold can be - 0.11325 and the predicted value can be - 0.11322. Such close cases did come up while evaluating the assistant on 3 different assistants and hence resulted in extra user events flagged by IntentTEDPolicy.
Overview of the Solution:

[ ] Account for extremely small differences between the threshold value and predicted similarity value at inference. If the difference is extremely small, the user event should not be flagged. How small differences are "ok" need to be investigated.
[ ] Add a parameter tolerance which is categorical in nature. This can accept 3 values - low, medium and high. The idea is that depending on the value of tolerance, we slide the red vertical line further to the left to reduce the number of user events IntentTEDPolicy flags.

@dakshvar22 this is blocked, since it looks like it doesn't make sense to work on it until IntentTED is merged?

It's one of the issues of the larger IntentTEDPolicy issue. So, it needs to be picked up again once the work on it resumes. I'll un-assign myself from this for now as I don't see that happening at least in the next sprint.


Fixes Incomplete fix for MichMich/MagicMirror#1507

Sorry, I realized after sending the PR that the problem wasn't actually an error, I was just malformed data.

Warnings

:warning:

Please include an updated CHANGELOG.md file.This way we can keep track of all the contributions.

  Generated by :no_entry_sign: dangerJS


Add support for SSH Certificates

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Is your feature request related to a problem? Please describe.
As far as I can tell, it doesn't appear that opnsense provides the ability to use custom SSH keys that are signed with SSH certificates. (see here on SSH certificates)
Specifically, I would like to be able to add something like this to the sshd_config (and also remove the existing HostKey entries):
HostKey /custom/dir/ssh_host_ed25519_key
HostKey /custom/dir/ssh_host_rsa_key
HostCertificate /custom/dir/ssh_host_ed25519_key-cert.pub
HostCertificate /custom/dir/ssh_host_rsa_key-cert.pub
TrustedUserCAKeys /custom/dir/trusted-user-ca-keys.pem

Describe the solution you like
What would be really nice is some way to change or hook into the sshd_config before it is written. I'm not familiar enough with opnsense to know if/how this problem is solved with other configuration files, but, ideally, it would be consistent with that method.
Describe alternatives you considered
Another possibility would be to put the keys and certificates in /conf/ssh/ and assume a specific format (i.e. ``*-cert.pubfor certificates) and automatically add theHostCertificateline if that file exists in/conf/ssh/. This doesn't solve the problem of removing unwanted HostKeyentries (as removed keys appear to be automatically regenerated) or addingTrustedUserCAKeys`.
Additional context
I'm happy to contribute, but I would like input on a good solution before doing anything.
Thanks!

hi @hbradleyiii
TrustedUserCAKeys support is likely the easier part, HostCertificate a bit harder, HostKey removal not really in the scope here as while it's unnecessary for this setup type it's also unnecessary to tackle it in this scope to begin with as it doesn't interfere.
All of this should go to the GUI as we don't support pluggable SSH server configuration.
Cheers,
Franco


actions do not work in starter storybook

Given code in src/stories/Touchable.js:
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';

import { Text } from 'react-native';
import { Touchable } from '../components/Touchable';

storiesOf('Touchable', module)
.add('with Text', () => (
  <Touchable onPress={ action("Can't touch this?") }>
    <Text style={{ color: '#FFF' }}>SUBMIT</Text>
  </Touchable>
))
.add('with no children', () => (
  <Touchable />
));

I do not see any action being reported when clicking the button in the storybook client's "action logger" pane.
RecordIt video of bug:
http://recordit.co/bKuLASDBcQ

@thurt It seems like action does not work if it is wrapper inside function.
This works.
<Touchable
      onActionsPress={action('Action 2 clicked')}
    />

This does not work
<Touchable
      onActionsPress={() => {action('Action 2 clicked')}}
    />


[Config] How to add variables/constants to rc

Is there a way to add variables to the config file?
Things like recurring numbers would be nice to declare once and use for any command where I want to change padding, sizing, grid etc.
Thanks

This is not possible in the current grammar.


Speed-up generate cluster image

The generate_cluster_image method is the most computationally intensive part when working with large data like mine (32 million data points). As already written in #282, the total time from circling a cluster to visualizing the highlighted cluster is 17 seconds for my data.
This PR reduces it by another 6 seconds, and thus together with PR #282 from 17 seconds to 6 seconds - which is a much better user experience.
The PR works beautifully on my data, but I'm a bit skeptical that it will work with other workflows. So it would require some testing on your part :-)
Please let me know your thoughts!
Best,
Thorsten

Tests are failing ^^ Lets see if I can fix it.

Alright! Now all tests pass and its still faster :-) What do you think?

Here are a script to evaluate the speedup:
import numpy as np
from skimage.util import map_array
from time import perf_counter

shape = (1,1024,1024)
total = shape[0]*shape[1]*shape[2]
NUM_LABELS=100000
input_data = np.random.randint(NUM_LABELS,size=total).reshape(shape).astype("int64")
from_values = np.arange(NUM_LABELS)
to_values = np.copy(from_values)[::-1]

def generate_cluster_image(label_image, label_list, predictionlist):
    """
    Generates a clusters image from a label image and a list of cluster predictions,
    where each label value corresponds to the cluster identity.
    It is assumed that len(predictionlist) == max(label_image)

    Parameters
    ----------
    label_image: ndarray or dask array
        Label image used for cluster predictions
    predictionlist: Array-like
        An array containing cluster identities for each label

    Returns
    ----------
    ndarray: The clusters image as a numpy array.
    """

    # label_list can be removed from method.
    predictionlist_new = np.array(predictionlist) + 1
    plist = np.zeros(np.max(label_image) + 1, dtype=np.uint32)
    plist[label_list] = predictionlist_new

    predictionlist_new = plist

    return predictionlist_new[label_image]

def generate_cluster_image_old(label_image, label_list, predictionlist):
    """
    Generates a clusters image from a label image and a list of cluster predictions,
    where each label value corresponds to the cluster identity.
    It is assumed that len(predictionlist) == max(label_image)

    Parameters
    ----------
    label_image: ndarray or dask array
        Label image used for cluster predictions
    predictionlist: Array-like
        An array containing cluster identities for each label

    Returns
    ----------
    ndarray: The clusters image as a numpy array.
    """
    from skimage.util import map_array

    # reforming the prediction list, this is done to account
    # for cluster labels that start at 0, conveniently hdbscan
    # labelling starts at -1 for noise, removing these from the labels
    predictionlist_new = np.array(predictionlist) + 1
    label_list = np.array(label_list)

    return map_array(np.asarray(label_image), label_list, predictionlist_new).astype(
        "uint32"
    )

t1 = perf_counter()
res_new = generate_cluster_image(input, from_values, to_values)
t_new = perf_counter() - t1
print(t_new)

t1 = perf_counter()
res_old = generate_cluster_image_old(input, from_values, to_values)
t_old = perf_counter() - t1
print(t_old)

print(f"Speedup {t_old/t_new}")

print(np.array_equal(res_new,res_old))

The new function is like 30x-35x faster.

Hey @thorstenwagner!

Thanks for the merge! One question: what do you want to happen if from_values and to_values are only a subset of the labels from label image?
Right now they are mapped to zero. But we can easily modify it so that they dont get changed?

I'm not sure what benefit that would have exactly? The cluster image is just supposed to show the data points that have been clustered in some way. It might also be a fringe case but if you just transfer the original label and the original label coincides with the cluster label you have misclassified objects. Other than that if you are interested in the unclassified labels you could just extract them from the table and process them separately.


Low priority feature request: add flag to remove XYZ axes from bottom left corner of save_screenshot

Personally I feel like saving just the shown objects should be the default behavior. I was surprised to see the additional elements.

Normally, one would have one canvas for the viewer and one canvas for the xyz axes.
However in webGL this means 2 WegGL contexts of a typical maximum of 16 in the browser. Since the viewer component also runs in jupyterlab, where each cell could have a different viewer, I combined cad view and xyz view into one canvas (threejs can define rectangles, i.e view ports, to show the right stuff).
Getting a screenshot in threejs means triggering update to draw the latest into the buffers and then store the canvas buffer as image. Since the xyz axes are part of the same canvas, they will be stored, too.
I think I can make the xyz axes and labels transparent before taking screenshot and then show them again afterwards. Need to check.


Styling

The website looks boring. It needs some styling

Alright, I will use materialize css to paint to live

@Snapster02 That sounds great :)

I'd love to take a shot at this


can‘t open/read file: check file path/integrity

Thank you for your work.
When I want to train the model using LasHeR dataset, some errors happen.
[<EMAIL_ADDRESS>global loadsave.cpp:244 findDecoder imread_('./LasHeR/TrainingSet/trainingset/girlwithredhat/visible/000131.jpg'): can't open/read file: check file path/integrity
It seems that the sampled frames cannot be successfully read though I have checked the data path.
I notice that you mentioned '# Note original filename is chaotic, we rename them' in your code.
Is there any problem with the filename?
Would you please tell me how can I solve this problem?
Thank you so much again.

Thanks for your reply! As you say, this error is caused by the chaotic names of the video frames. And I have solved it by writing a script to rename the sequences in the training set. Thank you so much.

Thanks for your reply! As you say, this error is caused by the chaotic names of the video frames. And I have solved it by writing a script to rename the sequences in the training set. Thank you so much.

Hi, I have the same problem when using LasHeR dataset, how did you solve it and can you provide your script? Thanks very much.

Hello, I have encountered the same problem. May I know how it was resolved


Cannot install WSL

I am trying to enable WSL. I am running a "lite" version of Windows 10.
Windows Linux Subsystem does not show in "Turn Windows features on or off"
Is there a way to install from an installation file, like it can be done for .NET Framework ?
When I try to enable, I get the following:
PS C:\Users\Administrator> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux         Enable-WindowsOptionalFeature : The specified package is not valid Windows package.
At line:1 char:1

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...

  + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
  + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

@brumeistern - By "lite" do you mean Windows 10 S?

No, I mean one of those "lite" version people build in order to use much less resources. My WinSXS folder is almost empty, meaning the resources were removed from the ISO. There is a file: microsoft-windows-netfx3-ondemand-package.cab used to install .NET Framework 3.5. I need something similar for WSL. Do you know anything like that ?

Hi @brumeistern, these 'lite' versions are not made by Microsoft and so we do not support them.
Additionally, currently you are only able to install WSL as a Windows optional component, we do not have any installer to enable it.
If you'd like to use WSL please switch to a supported version of Windows and then you'll be able to use the commands you had above. Thank you!


docs: Use vim.uv instead of deprecated vim.loop module

Still need to use vim.loop in order to support Nvim 0.9.


Uninitialized memory in rs2_project_color_pixel_to_depth_pixel

Required Info

Camera Model
D455

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win10

Kernel Version (Linux Only)
--

Platform
PC

SDK Version
2.50.0

Language
python

Segment
--

Issue Description
Python utility function rs2_project_color_pixel_to_depth_pixel defined here
https://github.com/IntelRealSense/librealsense/blob/af7510c8d58f70381056a758cd3f4553aa37fc69/wrappers/python/pyrsutil.cpp#L52
returns possibly uninitialized memory from line
https://github.com/IntelRealSense/librealsense/blob/af7510c8d58f70381056a758cd3f4553aa37fc69/wrappers/python/pyrsutil.cpp#L45
if the equivalent cpp function rs2_project_color_pixel_to_depth_pixel iterates through a trajectory that maps to all-zero depth values.
https://github.com/IntelRealSense/librealsense/blob/af7510c8d58f70381056a758cd3f4553aa37fc69/src/rs.cpp#L3772
This also happens in practice in my application.
Possible fix would be
std::array<float, 2> to_pixel{-1.0f, -1.0f};
or similar, indicating to the caller that no valid pixel could be found.

Hi @stefanhige  If you would like to suggest a code change to the RealSense SDK's implementation of the rs2_project_depth_pixel_to_color_pixel then you can submit a Pull Request (PR) that makes the suggested change to rs.cpp.
https://github.com/IntelRealSense/librealsense/pulls
If you require the change immediately then you could also create your own custom version of librealsense (either by downloading the source code, or by 'forking' librealsense onto your own GitHub account) and then edit rs.cpp and build the customized SDK.

Hi @stefanhige ,
Thanks for your contribution, your PR was merged 🥇
This issue can be closed.

Hi @stefanhige  May this issue be closed now that your PR has been merged?  Thanks!

Sure! Thank you.

Thanks very much @stefanhige for the update!


Fix Power supply exit FFDC collection

Tags: | Power_Supply_Error_Logging_Test_At_Runtime
-- | --
20180414 17:35:23.475 / 20180414 17:36:53.699 / 00:01:30.224
FAIL (critical)
Variable '${TEST_STATUS}' not found. Did you mean:     ${PREV_TEST_STATUS}

This failure is due to calling FFDC withing a func as part of the test execution and not as Teardown

https://gerrit.openbmc-project.xyz/#/c/10138/


Peer-to-peer-code-review-contact-form

-in the About me section, the languages section is overflowing I would suggest you adjust the width of the section to fit in the container.

-The get in touch button in the contact section does not align with the rest of the input forms. I suggest you change the left margin.

The "Get My Resume" button in the About section is not aligned correctly with the rest of the content.


ThemeableBrowserOptions is not working ios cordova platform  5.0.0

how to solve?

For me is working on cordova-ios 5.0.1 but not in cordova-android 8.+


⚠ Bofrost.lu has degraded performance

In 8dea308, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1238 ms

Resolved: Bofrost.lu performance has improved in 21a93bb after 44 minutes.


esbuild: 0.18.7 -> 0.18.8

Diff: https://github.com/evanw/esbuild/compare/v0.18.7...v0.18.8
Changelog: https://github.com/evanw/esbuild/blob/v0.18.8/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 239686 run on x86_64-linux 1

9 packages built:

esbuild
libsForQt5.bismuth (plasma5Packages.bismuth)
python310Packages.nbdev
python310Packages.nbdev.dist
python311Packages.nbdev
python311Packages.nbdev.dist
quarto
quartoMinimal
vscode-extensions.rust-lang.rust-analyzer

Result of nixpkgs-review pr 239686 run on x86_64-darwin 1

6 packages marked as broken and skipped:

libsForQt5.bismuth
plasma5Packages.bismuth
python310Packages.nbdev
python310Packages.nbdev.dist
python311Packages.nbdev
python311Packages.nbdev.dist

2 packages built:

esbuild
vscode-extensions.rust-lang.rust-analyzer


CORS Wild Card support in Azure

The azure portal api cors end point does not accept:

https://*.domain.com/

as a valid 'allowed origin'
A little red exclamation appears and says it must be in the format
[HTTP:HTTPS]://[www.]domain.[TLD][:portnumber]
https://stackoverflow.com/a/49943569/1586498 and aspnet/CORS#76 say that it is now supported in code.
I still can't get it to be a valid origin in the azure portal webapp api CORS form.

Previously asked @Rick-Anderson if there were docs on how to use that CORS feature of the Azure Portal. None so far.
Raised in https://github.com/dotnet/AspNetCore.Docs/issues/7167 but transferred to Azure Docs.

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

ID: dbcc24f0-9856-a7db-f229-c383e5e5c57d
Version Independent ID: 55d51b2a-c8fe-086e-a1c2-b0592f57967c
Content: Tutorial: Host RESTful API with CORS - Azure App Service
Content Source: articles/app-service/app-service-web-tutorial-rest-api.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@OzBob Thank you for your feedback! We will review and update as appropriate.

@OzBob Thanks for asking question! As its mentioned in the portal as below:
"To allow all, use "*" and remove all other origins from the list."

Let us know if further query.

@OzBob Since, we didn't here from you. We will now proceed to close this thread. If there are further questions regarding this matter, please let us know.

@SnehaAgrawal-MSFT the screenshot shows you typed:  *, and allowed all origins. Which is not what this Issue is about.
Please try again with the CORS rule:
https://*.azurewebsites.net
does it work for you?

@OzBob If I have understood right you want to enable CORS from Azure portal for "All origins", If so from portal you have to just type *  as shown in above screen shot, Also, please restart the web app once enabled CORS and then try again. Let me know.

@SnehaAgrawal-MSFT sorry - I chose a poor example
I wish to enable all subdomains from a chosen domain.
e.g.
*.google.com
or
*.mydomain.edu.au

@OzBob @SnehaAgrawal-MSFT  was there a solution for this?

@MattNewbill wild card is not supported on azure cors. i had to write custom cors logic to make my .net webapp to work.

@OzBob  thanks for the reply! I ended up doing it in terraform by adding all of the subdomains, which is really inconvenient but... oh well

Pls refer to this solution: https://github.com/dotnet/AspNetCore.Docs/issues/7167#issuecomment-1184556475


open the api hyperlink in new tab.

fixed by commit: https://github.com/cas-bigdatalab/rabbit-ui-web/commit/172d3b909cebb15fca45c43aa64fa969157beac8


Need help on how to specify the parameters for the contact model, or how to use customized contact model

Hi,
I am a researcher in mechanical engineering who is using Mujoco and ADAMS to simulate the collision process of a robot falling onto the ground. The robot comprises several rigid links (made of materials like  carbon fiber or aluminum) and springs. The main goal of using both software programs is to compare their results and validate the outcomes.
The biggest challenge I face is the difference in contact models used by ADAMS and Mujoco.
In ADAMS, the contact model is defined by the formula:
$\text{Impact}=\text{Max}\left(0, k\left(x_{1}-x\right)^{e}-\text{STEP}\left(x, x_{1}-d, c_{\max }, x_{1}, 0\right) \cdot \dot{x}\right)  : x < x_{1} $
where $x_1$ indicates the collision start, and $d$ (the penetration depth) specifies at which point the damping coefficient reaches its maximum. It seems that this equation can be roughly understood as $f = kx + c\dot{x}$, except that the power of $x$ is not equal to 1. As can be seen, this power leads to inconsistency in the units of the three terms. However, the documentation explains how to handle this issue by multiplying this term by a constant term such as ``$1000^2$''. In this way,  all three terms become unit of force, e.g., Newtons.
As for Mujoco, it uses an indirect way to calculate the acceleration under collision, where  one first specifies solimp: ($d_0,d_{width} , width, midpoint, power$) to determine a function called $d(r)$,  then specify solref: (-stiffness, -damping) to assign the so called "stiffness" and "damping". Then, the real acceleration $a_1$  can be given by
$a_{1} + d \cdot (b v + k r) = (1 - d) \cdot a_{0}$
where $a_0$ is the acceleration without considering the effects of the collision. If I understand it correctly, $d$ can be roughly regarded as a weight, considering that $a_1$ can be written in the form of a weighted sum, namely,
$a_{1} = d \cdot (-b v - k r) + (1 - d) \cdot a_{0}$
I have several questions in order to make the simulations in Mujoco and ADAMS behave similarly.

Is it possible to use a user-defined contact model in Mujoco to replace the default model? If so, how can this be done? I have barely found any relevant information on this topic so far, although it is mentioned in the attached website that this is possible. Since contact is one of the most essential components of Mujoco (as suggested by its name),  this function could be of interest by many users, at least for the sake of making comparisons with other tools.

Which contact model (ADAMS or Mujoco) is more suitable for simulating a robot with rigid links (e.g., carbon fiber, aluminum) colliding with different ground types (e.g., cement road,  gravel road, grassland, soil land, beach)?

How should I specify the relevant parameters for these cases? And generally, what are the differences (in terms of the collisions) between the simulation results produced by Mujoco and ADAMS?

I am puzzled by the relationship $b = {\text{damping}}/{d_{\text{width}}}$ and $k = {\text{stiffness} \cdot d(r)}/({d_{\text{width}}^2)}$, where $d_{\text{width}}$ and $d(r)$ seem dimensionless. This implies $b$ and $k$ should have the same units as damping and stiffness, respectively. If this is true, the units in the equation $a_{1} + d \cdot (b v + k r) = (1 - d) \cdot a_{0}$ seem inconsistent.

Additionally, when testing a simple cube falling from a given height onto the ground, we observed that the collision process remained the same regardless of the mass, which contradicts results from ADAMS.
We have also used mathematical software to solve the ODE function of a simple mass-spring-damper system oscillating vertically (subject to gravity) to double check the result, which, again, indicates that the mass should be relevant.  Although the latter experiment seems too simple for modeling collision, it demonstrates the fact that mass would make a difference even for such a simple dynamic process.
As a result, I'm not sure if the unexpected behavior in Mujoco is indeed correct, and whether it is caused by some mistakes we made when specifying the parameters, especially the stiffness and damping.  Although we found some references suggesting dividing stiffness and damping by inertia, it's unclear to us which inertia is meant, especially given that each rigid link has a six-dimensional inertia matrix which are hard to determine, and that we usually have many links connected to each other.

So how should we exactly specify the relevant parameters for solimp: ($d_0,d_{width} , width, midpoint, power$) and solref: (-stiffness, -damping) based on the stiffness (N/m), damping (Ns/m) and penetration depth (m)?   After checking the documentation many times and looking at a number of references, we still can't figure it out the relation between these physical quantities and the required parameters.

Reference: The webpage suggesting the possibility of using customized contact model for Mujoco: https://people.tuebingen.mpg.de/mpi-is-software/pam/continuous_integration/18.04/docs/pam_documentation/doc/C1_handle.html

No, though it can be added. No one has asked for this before, so I'm not sure it's as useful as you think.
I'm not familiar enough with ADAMS to answer that.
Ideally, you'd set these by doing proper System Identification.
MuJoCo normalizes by the contact inertia (inertia projected into the contact frame), so different masses have no effect on contact kinematics.
See 3.

For the system identification you mentioned, does this mean that one has to develop a physical prototype first? If so, this would be quite inconvenient when one is doing optimal design in Mujoco, as no physical prototypes are available yet. In my case, I have to run numerous simulations to find the best parameters for the robot to use.

If you are proposing using some simplified preliminary physical experiments to conduct system identification for the contact parameters, this can also be inconvenient in certain cases, especially when these parameters are also to be optimized. For example, in the optimal design of hopping robots, one may want to find the best parameters for the contacts, based on which one could update the materials to achieve better performance. It seems that this inconvenience would occur for any applications where the robot's performance highly depends on the contact parameters, and one may want to optimize these parameters (such as hopping robots, moon landers, and robotic machining/assembling operations).

In ADAMS and many other software, a simple contact model with relatively clear physical meanings is used; moreover, these models can be easily used by general users because their input only involves physical properties with clear units such as stiffness (N/m), damping (Ns/m), and penetration depth (m). So, is there a formula or some general (rough) rules on how to specify the parameters within solimp and solref based on those physical properties with clear units?

Actually, stiffness (N/m), damping (Ns/m), and penetration depth (m) are used in most cases and are often available in the literature. Moreover, these parameters should be generally sufficient to characterize the collision process. As a result, offering a way to convert these physical quantities to the parameters within solimp and solref would be quite useful, especially in the preliminary stage of a design job. Currently, I have no clue how to set the parameters of solimp and solref, even if I have the aforementioned physical quantities at hand.

Regarding "MuJoCo normalizes by the contact inertia (inertia projected into the contact frame)," I suspect that the contact inertia would change when the robot configuration changes, right? If so, does this mean that one has to update the parameters for solimp and solref manually? If so, how can the users determine their values? If not, it seems that one still can't directly specify the two parameters of solref as the physical properties stiffness (N/m) and damping (Ns/m) directly; otherwise, cubes with different masses would behave the same, which contradicts reality. So what can we do if we want to achieve realistic behavior?

If one has no choice but to do system identification to get a rough value for the parameters for solimp and solref, what parameters are to be identified, and how? Are there any references for this?

Personally, I think that offering an approach to use user defined models for the contact would be the most convenient and advantageous way to solve all the issues mentioned above.

In case some one is interested in the performance of the cube with different masses, below is the snapshot of the tests we made Based on a demonstration file from Mathematica. The initial displacement of the ODE is set to 0, while the initial velocity is set as 2 for all experiments. Then, we change the mass and conducted several different tests. The curves in the right bottom would be different for different masses, although it seems that the shapes seems to remain the same, with the ``sizes'' of the curves "zoomed" in both axes simultaneously.
I guess this is the reason why Mujoco chose to do the normalization, although it is not clear to me whether the same conclusion can be made for the more complex contact model in Mujoco.
Considering that the user would be interested in the realistic behavior in the simulations, personally I pro for the option of making the simulation mass dependent, or at least offer the users the option to choose it so, or offer the users a way to customize the contact model.


multiple connections on embedded instance

i am able to connect to neovim with multiple connections in the python client using the socket method. I have been unable to reproduce this when i embed nevim into my app.
(i just call the attach method with the same arguments and i think it embeds another instance). How do i get multiple connections my embedded neovim?

you mean you try to connect to the same instance from different python processes? What OS is this on?

@timeyyy what's the use case for this?

No the same python process, I'm on linux. I'm doing it for testing. I just thread my whole app and then connect to it (integration test), My current work around is to connect to a named pipe.
This isn't a major issue.

Using nvim --headless gave me exactly what i want. An invisble neovim instance i can connect to multiple times.


When a model has no yml, and is marked as private -> extra yml configs

Describe the bug

When I execute a create-group command, and dbt-meshify creates new yaml for a private model - it creates extra "config" and "columns" blank fields:

dbt-meshify operation create-group raw_vault

hey Grace! I believe I encountered this when developing #63 and made an edit to the function that filters out empty dictionary items to also filter out[] or {}
in main
in my pr

worked locally for me on the split command branch!


Readme clt update

This PR updates the README to include instructions for installing copilot-ops as a command line tool.

Beautiful


Monsters on water

I didn't know that monsters are able to spawn on water :P

I will be fixing the collusion detection thanks <3


Initial audit log implementation

Related issues
https://github.com/kyma-incubator/reconciler/issues/291

/test pre-main-reconciler-protecode-guard

/test pre-main-reconciler-protecode-guard


Curious if this should be resolved and whether it is effecting anything

Been trying to get the GUI started (separate issue) but I'm curious if I should be concerned with this message and whether or not I need to do something to resolve it?

vor0220@vor0220-ubuntu:~/graphene-ui/cli$ npm start

<EMAIL_ADDRESS>start /home/vor0220/graphene-ui/cli
webpack; node ./bundle.js

[BABEL] Note: The code generator has deoptimised the styling of "/home/vor0220/graphene-ui/dl/lib/bytebuffer_3.5.4.js" as it exceeds the max of "100KB".
[BABEL] Note: The code generator has deoptimised the styling of "/home/vor0220/graphene-ui/dl/src/common/dictionary_en.js" as it exceeds the max of "100KB".
Hash: b27871d6bf2cd6037f42
Version: webpack 1.8.11
Time: 6683ms
Asset     Size  Chunks             Chunk Names
bundle.js  1.42 MB       0  [emitted]  main
bundle.js.map  1.89 MB       0  [emitted]  main

181 hidden modules

WARNING in ../dl/lib/bytebuffer_3.5.4.js
Critical dependencies:
1:537-544 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ../dl/lib/bytebuffer_3.5.4.js 1:537-544

WARNING in ../dl/~/websocket/lib/BufferUtil.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/Release/bufferutil in /home/vor0220/graphene-ui/dl/node_modules/websocket/lib
@ ../dl/~/websocket/lib/BufferUtil.js 9:19-57

WARNING in ../dl/~/websocket/lib/BufferUtil.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/default/bufferutil in /home/vor0220/graphene-ui/dl/node_modules/websocket/lib
@ ../dl/~/websocket/lib/BufferUtil.js 11:19-57

WARNING in ../dl/~/websocket/lib/Validation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/Release/validation in /home/vor0220/graphene-ui/dl/node_modules/websocket/lib
@ ../dl/~/websocket/lib/Validation.js 9:21-59

WARNING in ../dl/~/websocket/lib/Validation.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../build/default/validation in /home/vor0220/graphene-ui/dl/node_modules/websocket/lib
@ ../dl/~/websocket/lib/Validation.js 11:21-59

I think it's fine it you are able to get working bundle

Fair enough. Though I am a tad worried that I am getting this call saying that because the process is over 100kb that it is deoptimizing....but for now it works. Until then I will close this issue.


Live Share login issue with browser callback

VSCode Version:
1.40.0
86405ea23e3937316009fc27c9361deee66ffbf5
x64
OS Version:
Mac OS Catalina 10.15.1

Steps to Reproduce:

Click Live Share to prompt browser window sign in
Sign in and authorize with GitHub
Redirected to "Visual Studio Live Share: Sign In Success"
However, "Starting collaboration session: Sign in to proceed" notification still shown in vscode and never signed in.

Tried the following:

Safari Version 13.0.3 and Google Chrome Version 78.0.3904.97
Fresh install of vscode after full uninstall https://stackoverflow.com/questions/42603103/how-to-completely-uninstall-vscode-on-mac
Removing the live share folder in .vscode/extensions and reinstalling Live Share.
Added // - "https://*.visualstudio.com" to the bottom of the list in \Trusted Domains

Happy to provide more info upon request, no visible error messages shown.

Can you please report directly against https://github.com/MicrosoftDocs/live-share


Unable to Change Default Password Using Helm Chart Deployment on GKE

Describe the bug
Whenever I try running the securityadmin.sh to apply the changes I made to the internal_users.yml file, it crashes mid-way through with exit code 137
To Reproduce
git clone https://github.com/opendistro-for-elasticsearch/opendistro-build
cd opendistro-build/helm/opendistro-es/
git fetch --all --tags
git checkout tags/v1.12.0
helm package .
helm upgrade --install elasticsearch opendistro-es-1.12.0.tgz --namespace=logging --values=../../../logging/values-opendistro.yaml

kubectl exec -it $(kubectl get pods -l app=elasticsearch-opendistro-es -l role=master -o jsonpath="{.items[0].metadata.name}" -n logging) -n logging -- bash
cd plugins/opendistro_security/tools
chmod +x hash.sh
./hash.sh ${NEW_PASSWORD}
# modify internalusers with hash passwords
./securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert ../../../config/root-ca.pem -cert ../../../config/kirk.pem -key ../../../config/kirk-key.pem

Expected behavior
I expected the securityadmin.sh script to run to completion.
Error
[root@elasticsearch-opendistro-es-master-0 tools]# ./securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert ../../../config/root-ca.pem -cert ../../../config/kirk.pem -key ../../../config/kirk-key.pem
Open Distro Security Admin v7
Will connect to localhost:9300 ... done
Connected as CN=kirk,OU=client,O=client,L=test,C=de
Elasticsearch Version: 7.10.0
Open Distro Security Version: <IP_ADDRESS>
Contacting elasticsearch cluster 'elasticsearch' and wait for YELLOW clusterstate ...
Clustername: elasticsearch
Clusterstate: GREEN
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index already exists, so we do not need to create one.
Populate config from /usr/share/elasticsearch/plugins/opendistro_security/securityconfig
Will update '_doc/config' with ../securityconfig/config.yml
   SUCC: Configuration for 'config' created or updated
Will update '_doc/roles' with ../securityconfig/roles.yml
   SUCC: Configuration for 'roles' created or updated
Will update '_doc/rolesmapping' with ../securityconfig/roles_mapping.yml
   SUCC: Configuration for 'rolesmapping' created or updated
Will update '_doc/internalusers' with ../securityconfig/internal_users.yml
   SUCC: Configuration for 'internalusers' created or updated
Will update '_doc/actiongroups' with ../securityconfig/action_groups.yml
   SUCC: Configuration for 'actiongroups' created or updated
Will update '_doc/tenants' with ../securityconfig/tenants.yml
   SUCC: Configuration for 'tenants' created or updated
Will update '_doc/nodesdn' with ../securityconfig/nodes_dn.yml
   SUCC: Configuration for 'nodesdn' created or updated
Will update '_doc/whitelist' with ../securityconfig/whitelist.yml
   SUCC: Configuration for 'whitelist' created or updated
command terminated with exit code 137

Relevant information
Using GKE 1.18.12-gke.1210 and Helm Chart version 1.12

@rileyhun I'm not able to reproduce the issue.
Please note that the hash.sh utility doesn't read the password after the command.
Can you attach the internal_users.yaml file here which is being loaded in the final step?

We are doing some "spring cleaning in the fall", and to make sure we focus our energies on the right issues and we get a better picture of the state of the repo, we are closing all issues that we are carrying over from the ODFE era (ODFE is no longer supported/maintained, see post here).
If you believe this issue should still be considered for current versions of OpenSearch, apologies! Please let us know by re-opening it.
Thanks!


How do you install this plugin for Phonegap Build?

I added this to my config.xml file:
<gap:plugin name="phonegap-plugin-push" source="npm"/>
Do I need to do anything else? It seems like the code is doing nothing. Again, I am using Phonegap Build.
Thanks!

You need to do the following also in your JS to initialise it
var pushNotifications = PushNotification.init({
android: {},
ios: {
alert: "true",
badge: "true",
sound: "true"
}
});
                PushNotification.hasPermission(function(data) {
                    //data
                });

                pushNotifications.on('registration', function(data) {
                    // data.registrationId
                });

                pushNotifications.on('notification', function(data) {
                    // data.message,
                    // data.title,
                    // data.count,
                    // data.sound,
                    // data.image,
                    // data.additionalData
                });

               pushNotifications.on('error', function(e) {
                    //e.message
                });

var push = PushNotification.init({
ios: {
alert: "true",
badge: true,
sound: 'false'
}
});
PushNotification.hasPermission(function(data) {
if (data.isEnabled) {
alert('isEnabled');
}
alert(data);
});
This is the code I have to run when a user presses a button, but the notification permission message doesn't come up. What am I doing wrong?

@shortnoticeapp read the following links and the next time you open an issue please fill out the issue template.
https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PHONEGAP_BUILD.md#phonegap-build-support
https://blog.phonegap.com/phonegap-7-0-1-now-on-build-and-it-includes-some-important-changes-89087fe465f5


Consider to redesign common address attributes (salutation/first-name/last-name)

Based on discussions in #250
http://www.siliconglen.scot/usability/courtesytitles.html
It raises valid questions regarding:

single name field, instead of splitting up first and last name
free, single text field, instead of fixed set of salutations/titles
deduce gender from title/salutation

From the meeting:
Which (engineering or business) problem do we have to solve here?
@whiskeysierra Could you propose a way how the guideline should be changed to cover your concerns?

Which (engineering or business) problem do we have to solve here?

I'd say it's a social one.

There are many cultures that don't have the concept of first and last name.
Salutation, if used correctly, is just for addressing the user. Mostly in written form. This doesn't have to be a fixed set of values. I don't see a reason to put people into boxes. Let them choose their title.
Asking for gender feels really weird to me. In particular I believe to remember that it's even illegal to require it if it's not needed to do your business. I'd argue we don't need it. What I can imagine would be a preference for collections (women, men, gender). That does not necessarily correspond to my gender, since I can buy stuff for my daughter or wife.

Those are my personal opinions. Changing the guidelines to represent them implies that product/business is backing this.

From the meeting: No immediate action identified.


Document new code analysis rules

Describe the issue or suggestion
Document any new, undocumented CA rules for .NET 9:
https://github.com/dotnet/roslyn-analyzers/blob/main/src/NetAnalyzers/RulesMissingDocumentation.md

Closing in favor of #41290.


Refactoring

This PR is essentially to reduce the size of the TaskController and TaskDAL files, as the TaskDAL file was getting over 2000 lines long and had some functions that could be logically separated into their own DAL's and Controllers.
The PR aims to change as little logical code as possible, and for the most part there is very little actual changes other than cosmetic. You will notice the in the end there was only a little over 200 changes.

Yeah I need to fix travis compilation before this PR is merged. (So today :) )


2.2

2.2 Create a document-term matrix from the preprocessed press releases and to explore top words (5 points)
A. Use the create_dtm function I provide (alternately, feel free to write your own!) and create a document-term matrix using the preprocessed press releases; make sure metadata contains the following columns: id, compound sentiment column you added, and the topics_clean column.
B. Print the top 10 words for press releases with compound sentiment in the top 5% (so the most positive sentiment)

C. Print the top 10 words for press releases with compound sentiment in the bottom 5% (so the most negative sentiment).
Hint: for these, remember the pandas quantile function from pset two.

D. Print the top 10 words for press releases in each of the three topics_clean

For steps B - D, to receive full credit, write a function get_topwords that helps you avoid duplicated code when you find top words for the different subsets of the data. There are different ways to structure it but one way is to feed it subsetted data (so data subsetted to one topic etc.) and for it to get the top words for that subset.
Resources:

Here contains an example of applying the create_dtm function: https://github.com/rebeccajohnson88/PPOL564_slides_activities/blob/main/activities/fall_22/solutions/09_textasdata_partII_topicmodeling_solution.ipynb

Are different count results acceptable here, Professor?

yep differences are fine since depend on preprocessing etc - thanks!


SpriteSample is crashing on launch

SpriteSample is crashing on launch for all configurations (arm/win32 debug/release).

This is a double-free that's hit when we drain the autoreleasepool upon initial app launch.  It appears to have been introduced by #1710; reverting commit deb99af6 fixes the crash.
Here's a stack that's causing a double-free:

GLKIT.DLL!+[GLKTextureLoader textureWithContentsOfFile:options:error:](objc_class * self, objc_selector * _cmd, NSString * fname, NSDictionary * opts, NSError * * err) Line 282	Objective-C++
SpriteSample.exe!-[SpriteClass initWithFile:effect:](SpriteClass * self, objc_selector * _cmd, NSString *) Line 44	Objective-C
SpriteSample.exe!-[Renderer initGLData:](Renderer * const self, objc_selector * _cmd, CGSize screenSize) Line 47	Objective-C
SpriteSample.exe!-[AppDelegate application:didFinishLaunchingWithOptions:](AppDelegate * const self, objc_selector * _cmd, id *) Line 57	Objective-C
UIKIT.DLL!UIApplicationMainInit(NSString * principalClassName, NSString * delegateClassName, unsigned int defaultOrientation, int activationType, objc_object * activationArg) Line 283	Objective-C++
UIKIT.DLL!ApplicationMainStart(const char * principalName, const char * delegateName, float windowWidth, float windowHeight, ActivationType activationType, IInspectable * activationArg) Line 158	Objective-C++
UIKIT.DLL!RunApplicationMain(Platform::String ^) Line 68	C++
UIKIT.DLL!DoApplicationLaunch(ActivationType activationType, Platform::Object ^ activationArg) Line 290	C++
UIKIT.DLL!_ApplicationLaunch(ActivationType activationType, Platform::Object ^ activationArg) Line 306	C++
UIKIT.DLL!UIApplicationLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs ^ args) Line 192	C++


refactor use of container struct from daemon

do existence check instead of get container
new connect method on daemon.

like #16966
@calavera @duglin @icecrime
The existence check on the outside could be considered redundant.

I'd prefer to remove the daemon.Exists() check since the function you're calling will do the exact same check (and return the exact same error) immediately anyway. I think it only makes sense to do this check in the API layer in cases where don't want to enter the daemon/impl layer for some reason (like there might be unwanted side-effects).

Updates based on comments, and a basic integration test.

LGTM if janky ever does its stuff :-)

ping @jfrazelle @vdemeester @runcom

rebased. builds were all working before the rebase.

of course. I try to add a test, and the test doesn't compile.

No good deed...  :-)

LGTM
ping @vdemeester @jfrazelle

Small question, other than that, looks good :wink:

LGTM 🐰


Update new-user-sample.md

Added line breaks to enable rich PowerShell highlighting.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azureadps-2.0/new-user-sample.md
:white_check_mark:Succeeded

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.

@rodejo are there any news on this PR?


Azure Functions Consumption plan support for custom domains

Adding Consumption plan as supported for custom domains for Azure Functions

@RicardoNiepel : Thanks for your contribution! The author, @cephalin, has been notified to review your proposed change.

#sign-off


@include is not working inside @embed

I have this code
@embed('inspinia.box')
	@section('title','Edit User')
	@section('content')
		@include('admin.users._form')
	@endsection()
@endembed

it is failing with this error message:
Call to undefined method Radic\BladeExtensions\Helpers\EmbedStack::make()
at  line:4
 2:   <?php $__env->startSection('title','Edit User'); ?>
 3:   <?php $__env->startSection('content'); ?>
 4:   <?php echo $__env->make('admin.users._form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
 5:   <?php $__env->stopSection(); ?>

until i fix this, this should work:
somewhere in some service provider's boot function, add:
$this->app['blade.helpers']->put('embed', \App\Overide\EmbedStacker::class);

Thank you
Unfortunately this fix doesn't work
it throws
Call to a member function start() on string

on code
 <?php app('blade.helpers')->get('embed')->start('inspinia._box'); ?>

the solution is add this method directly to Radic\BladeExtensions\Helpers\EmbedStack
class EmbedStack implements Stack {
...
    protected function make($view, $params=[]){
        return app('view')->make($view, $params);
    }

Can you make tests and add push this to the repository?

The EmbedStack class is used in blade views and replaces the $__env variable, which is the View factory instance. For some reason, i forgot to implement the contract. Its now fixed and it correctly implements the view factory contract.


Setup show view work by creating solr document and presenter mixins

Generators also updated to inject solr document and presenter mixins
including datacite mixins if datacite flag is passed.

The codeclimate issues are due to duplicated code in the generators which we could look at DRYing up later but I'm not really concerned with right now.

It is cool that codeclimate picks that sort of stuff up for you though


Solve lodash vulnerabilities

The detailed vulnerability is showed here https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-3721

Fixed in https://github.com/gruntjs/grunt-legacy-log-utils/pull/5


Allow to limit state to specified interfaces

This makes it easier to create a partial state to change.

Coverage decreased (-5.5%) to 79.13% when pulling d9401f31da4346b6db1c79bf3ec36f62b54fb588 on tyll:show_only into 426f61d4f0afb305e8a037347cfdfd53b1258541 on nmstate:master.

How do we proceed here?

Please leave only the filter patch without the tests in this PR.
We will take care of the tests later on, there are several issues with them.

I removed the tests from this PR.


[stable/traefik] Add NetworkPolicy

Signed-off-by: Sebastian Poehn<EMAIL_ADDRESS>What this PR does / why we need it:
Which issue this PR fixes

Deploys a NetworkPolicy if enabled. Needed in environments where network traffic is blocked by default.

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

@dtomcej


1-q GST sequences

Functions to change sequences
without fully recompiling. It works by changing the phase in DiAC pulses of the form
[Z(alpha), X90, Z(beta), X90, Z(gamma)]

"indeces" -> "indices" spelling
However this whole approach is really not ideal: it's fragile and specialized.  At this point why not just emit the APS2 instructions directly rather than compile in QGL and then parse?

Approach abandoned in favor of QGL.jl


⚠ Bofrost.at has degraded performance

In a00c968, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1135 ms

Resolved: Bofrost.at performance has improved in 53f76ee after 28 minutes.


Generate thumbnails command

Sorry, I f***ed up the rebase in PR #853 here is a new one

It's still bad. I think that you will need to create the following:

Create new temporary branch from your current develop.
Hard reset your develop with divio's develop
Cherry pick the commit from your temporary branch
Push your devlop with force in your github repo

Mhh, I already

hard reset to a clean commit (before my first commit)
force pushed
merged divio/develop
created a new commit and pushed
But I will try your suggestion later

@vstoykov Yay

@yakky I saw that you where ok with changes but the branch had conflicts. Now they are resolved.

@yakky Done


v6 FieldArrayTypeConfig does not have generic prop value

Description
The FieldArrayTypeConfig type does not allow for a custom props value like FormlyFieldConfig does.
Minimal Reproduction
https://github.com/ngx-formly/ngx-formly/blob/a44f2a50a581acdada4bab4803a755a857fa866c/src/core/src/lib/templates/field-array.type.ts#L8
Your Environment

Angular version: 13.3.0
Formly version: 6.0.0-beta.2

Additional context
My guess is this is an oversight, as I don't see why it couldn't be the same as FieldTypeConfig or FieldGroupTypeConfig.
https://github.com/ngx-formly/ngx-formly/blob/a44f2a50a581acdada4bab4803a755a857fa866c/src/core/src/lib/templates/field.type.ts#L5
I'm in the process of updating from 6.0.0-next.9 and taking advantage of the changes, but noticed this type wasn't updated so I have to extend FieldArrayTypeConfig instead like I have been (posted for reference), instead of using props.
https://github.com/dereekb/dbx-components/blob/4b0699c411f04d08982947f981993a87edbe2b46/packages/dbx-form/src/lib/formly/field/value/array/array.field.component.ts#L12

Could you please send a PR?

This issue has been fixed and released as part of v6.0.0-beta.3 release.
Please let us know, in case you are still encountering a similar issue/problem.
Thank you!

Thanks!


Plugins - support a 'willSave' hook

Background angelozerr/tslint-language-service#32.
The tslint language server extension should support an option to auto fix lint rules with a fixer before a file is saved. The plugin API should support a willSave method that a plugin can use to perform an operation like auto fixing before the document is saved. In addition there needs to be request that the TypeScript language client like VS Code can use to inform the TypeScript language server that the user is about to save a file.

I'd rather this was handled as part of a Format Document request. Modifying a file on save isn't really a user-apparent pattern.

@RyanCavanaugh doing this as part of the getFormattingEditsForDocument request makes good sense and it blends well with format on save support. However, what is missing, is that the request has a some context information whether it was triggered as part of a save or not. For the tslint example the user would not want auto fix on each format request but only on save.

Modifying a file on save isn't really a user-apparent pattern.

Support for 'format on save' or 'auto fix on save' are common and supported by many editors IDEs. The key is that this is done as a pre-save operation so that a file is not saved twice.

Can/should this be investigated soon?


Debug logging for TaskRunner

This is intended to be useful in debugging and otherwise operating
OkHttp in anger.

It would be great to add this to the retroactive logging in OkHttpClientTestRule.  Would be really helpful for debugging our CI test failures.

@yschimke Please take another look at the TestLogging.kt class; I made the duration formatting fancier.
Agreed on getting OkHttpClientTestRule to capture logs. But I wanna hold that for a follow-up change.

TestLogging

TaskLogger?

LGTM