Slim Application Error: Basic auth not working properly

Why can't I authenticate with postman Basic Auth (username: root, password: t00r). The /open/test route works just fine
<?php
require '../../vendor/autoload.php';
$app = new \Slim\App();
$app->add(new \Slim\Middleware\HttpBasicAuthentication(array(
    "path" => "/close",
    "realm" => "Protected",
    "users" => array(
        "root" => "t00r",
        "user" => "passw0rd"
    )
)));
$app->get('/open/test', 'getOpen');
$app->get('/close/test', 'getClose');
function getOpen() {
    echo "Success Open";
}
function getClose() {
    echo "Success Close";
}
$app->run();

It is unclear from your report what is not working. Copy pasting the code you provided and running it seems to work as expected.
$ php -S <IP_ADDRESS>:8080 index.php

$ curl --include http://localhost:8080/open/test
HTTP/1.1 200 OK

Success Open

$ curl --include http://localhost:8080/close/test
HTTP/1.1 401 Unauthorized

curl --user root:t00r --include http://localhost:8080/close/test
HTTP/1.1 200 OK

Success Close

I tried it on localhost too, and there it works for me aswell. Only on an external IP it's not working. Did I forget to enable something?

https://github.com/tuupola/slim-basic-auth#security
If you are not using https you need to specifically set secure to false.
$app->add(new \Slim\Middleware\HttpBasicAuthentication([
    "secure" => false,
    "users" => [
        "root" => "t00r",
        "user" => "passw0rd"
    ]
]));

thank you very much. this solved the problem.

Great :)

If it helps, I had a similar problem on a shaerd hosting, I solved by adding SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 to .htaccess


Optional serde serialization feature for colours and styles & a minor fix for Windows

I added optional derives of serde's Serialize and Deserialize. The idea is to allow serialization of configuration structs that would themselves use serde.
Example usage:
#[derive(Serialize, Deserialize)]
pub struct Config {
  pub user_name_style: Style,
  pub highlight_colour: Colour,
}

Thanks! 👍

I released v0.12.0 a few days ago which includes this.


investigation into ArgoCD and Numaflow e2e testing

is there a document to share about this investigation?

is there a document to share about this investigation?

Yes, all included in the end of the e2e framework design document. Going to add a short summary per Hao's request to sum everything.
https://docs.google.com/document/d/16_de3AnGecPT-PQJQpVT05HOMQw3Wc6t7MxuRFbAcic/edit


Possible fix for issue with Github PR formatter commenting on wrong lines

Alright, this is to follow up to my previous pr: https://github.com/mmozuras/pronto/pull/72 and is an attempt to fix #39.
The issue is still the same: pronto has issues where you make commits/changes around the same sections of code, as it will actually pick up a line from it's last context, and not when it was added. This then calculates an incorrect position, and comments on a wrong line.
I'll admit this isn't be ideal behavior, as it will now comment on an outdated diff, but to me it is better than commenting on the wrong line.
What do you think?

@11mdlow sorry for taking so long to answer. Doing it the proposed way wouldn't work when there are multiple lines that are exactly same, right?

PRs https://github.com/mmozuras/pronto/pull/91 and https://github.com/mmozuras/pronto/pull/93 from @jhass seems to be better fixes for this issue.
@11mdlow thanks for the effort! :bow:


Map JDBC Decimal and Timestamp to the Parquet & Hive Sinks

JdbcSource -> toFrame -> [Hive|Parquet]Sink incorrectly maps Decimals to Strings and for TimeStamp it should convert to a bigint.
Note the the Oracle jdbc driver yields the type oracle.sql.TIMESTAMP which is not derived from javax.sql.TimeStamp however setting the sys property oracle.jdbc.J2EE13Compliant to true should yield a javax.sql.TimeStamp type.

Avro schema doesn't have a bigint, so not sure what to do here, unless we start to use Parquet Schemas directly instead of Avro schemas.

Yes in my opinion if we supported Parquet schemas directly then it provides the following benefits:

Native support for timestamps, e.g. Int96
Support for other logical types like Decimal which are encoded as fixed byte arrays
The Hive SERDE serialises from the native Parquet schema format and not from AVRO schema
Note there are some logical types in Parquet that I believe are not supported in Hive like Date and Time - these types could easily be promoted to Hive Timestamp - IMHO do this when mapping to a Hive/Parquet sink

Parquet documentation is non existent. Do you know of a list of types in the raw parquet schema.

This is sorted now.


Django

How to use this in Django ? I get error access denied using the usage example

Hi - for Django, you should just be able to put it within your views. It's been over a year since I've really looked at this, but https://github.com/vCra/Programdom is Django website that uses it. If you are able to give me some more info (a django access denied message doesn't sound related), then lmk


Register automatic execution per dataset

We currently register extractors to run on dataset and files at the dataset level. It would be useful to be able to register an extractor to automatically run for a specific datasets or file. Similar to what we do in v1 with spaces, but at the dataset level.
Some extractors have very specific uses and only work with very specific datasets. For example when setting up and automatic ingestion pipeline from sensors in the field, we might want to concatenate files or clean those up in a very specific way the moment they hit Clowder. This would be one way.

When the time comes, the elasticsearch documents are organized by ID and files store the dataset_id in their document.
Thus, one should currently be able to POST something like:
feed_example = {
    "name": "My Dataset Extractor",
    "search": {
        "index_name": "clowder",
        "criteria": [{"field": "_id", "operator": "==", "value": "DATASET_ID"}],
    },
}

We might need to expand on this a bit, but the basic functionality to associate with an individual dataset or even a specific file when it is updated are possible


Fix CI test command

@sam-osborne Can you merge this and then tag a new release, please?

@sam-osborne Can you merge this and then tag a new release, please?

@theodorejb - Just cut a new 3.0.1 release.


Suricata: Impossible to set a default action for a ruleset without downloading and updating all rules

Go to /ui/ids/#settings
Press (i) for one of the rulesets
In the modal window,  set the input filter to "Drop"
Hit "save changes"

At this stage, the filter column shows "drop" but nothing has happened as far as rules are concerned...

Click on the rules tab
Click on Apply

Action for those rules still hasn't changed.
The only solution is to go back to settings and to click on "download and apply". It shouldn't be necessary to update all rules to apply this change.
Best solution would be to: Apply the changes when the user clicks "Save changes" in the modal window
Next best thing would be to: Update all those rules when the user clicks on apply in the rules section

@oparoz our "filter" option is a download filter option (applied on download, the original file doesn't exist in this case), so yes, you need to download the file again to get the latest version using your settings.
Maybe we could add a comment somewhere to make the current behaviour more obvious, but then again, the docs describe it quite clearly too (https://docs.opnsense.org/manual/how-tos/ips-feodo.html)

our "filter" option is a download filter option (applied on download, the original file doesn't exist in this case)

@AdSchellevis Hmmm. I don't follow. That ruleset was installed and logging alerts, so it shouldn't even need to be downloaded again.
And my main problem still stands. If there is no way around downloading the ruleset again, not all rulesets need to be updated when only one of them was affected by a change.
I've tried to tick only the one, but all rules were updated nonetheless.

@oparoz yes, its installed using your selection. so if you don't add a filter, its the original file, when you added a filter, its not... there's no way for the system to know what it should do, other then downloading again (it streams the data through the filter before saving to disc).
If you only want to download the changed files, you could do that in theory, although you probably will need quite some extra logic for that, and but to be honest, I don't see the big gain here (for an operation that's most of the time only done during initial setup).
In case you want to build this feature, feel free to create a pull request.

(it streams the data through the filter before saving to disc)

Ah, now I understand the technical reason for the behaviour.
The main reason I don't like downloads is that a Suricata reload used to cut-off connections, but doing some tests now didn't seem to disrupt the VPN connections, so maybe that point isn't valid any more.

I don't see the big gain here (for an operation that's most of the time only done during initial setup).

I was concerned about hitting the mirrors repeatedly when trying out things, but in retrospect it's far from being the same as ddosing a server since there will need to be a time period during which the change has to be monitored
Let's close this and if I encounter problems again with Suricata, I'll see if I can improve this area.
Thanks for the insightful replies.

@oparoz your welcome, glad that I could be of help here.


Load the organization list

Load the organization list each time the page is loaded and not only when the server start.
Fix a small bug in task monitoring
Fix a typo in energy unit

Thanks for the review.


Upload Events

Submit the information to the Events section.

Form will now submit events to events scheduled.
Removed 'artist' params from event controller. Will re-add in later iterations.


Add survey results article

I've written up a summary of the survey results. I initially planned on including a CSV of the raw response data, which would allow other people to further analyze it, but cleaning it up would require effort and I don't anticipate much interest anyways.

Yes, rasky reviewed the changes I made last time, despite me thinking his repository was inactive.

Yes, rasky reviewed the changes I made last time, despite me thinking his repository was inactive.


Ossrh 20885

@chrismattmann Please review my pom.xml so I can continue and publish it on sonatype

Why does the whole file need to be deleted and then added back? Can you make it only include the specie changes instead of the whole Pom.xml file

Sure I can. Will update in a few minutes. Also the maven package needs to be changed from edu.usc.cs.ir to edu.usc.ir will add both changes in the new pull request.


fix TestPermissionDenied should ignore darwin

fix TestPermissionDenied should ignore darwin
https://github.com/Homebrew/homebrew-core/pull/81904#issuecomment-887577465

Release Note
NONE

Originally i opened that PR. But in the end they were arguing on thing i didn't see on our repo..

Originally i opened that PR. But in the end they were arguing on thing i didn't see on our repo..

Yeah, I think the problem is caused by how the CI is building the application. The best approach is indeed to work on improving the test in order to make it OS agnostic by creating a file and setting some privilege to deny access. I created it some time ago and I did not consider the impact on other systems that can build the application.
I am opening a follow up issue to work on such improvement, in the while, we may even remove/comment the test in order to fix the problem described there.

We do expect an error there. More exactly a "permission denied" error as we are trying to access /root with no permission for it. We can work on refactoring the whole test and instead creating a real file with root permissions in another directory. The goal of the test is to fail (and not panic) with a permission denied error.

Yes, We do expect an error there. the true bug is that when run command go test ./... in darwin, we will get a error like
--- FAIL: TestPermissionDenied (0.00s)
    util_test.go:41:
                Error Trace:    util_test.go:41
                Error:          Expected value not to be nil.
                Test:           TestPermissionDenied

We do expect an error there. More exactly a "permission denied" error as we are trying to access /root with no permission for it. We can work on refactoring the whole test and instead creating a real file with root permissions in another directory. The goal of the test is to fail (and not panic) with a permission denied error.

Yes, We do expect an error there. the true bug is that when run command go test ./... in darwin, we will get a error like
--- FAIL: TestPermissionDenied (0.00s)
    util_test.go:41:
                Error Trace:    util_test.go:41
                Error:          Expected value not to be nil.
                Test:           TestPermissionDenied

I guess that's because Darwin won't return an error when trying to access /root/. I am not entirely sure how the Golang library is behaving when it comes to cross os file managment. I think we can give a try and create a file, setting the permissions, as I suggested in #2563, instead of assuming /root/ is privileged, as we're doing now.


cuda out of memory on RTX 24gb 3090

This is really interesting work! I tried to run it on a server with a 24gb 3090, and it runs into out of memory. Is a larger GPU needed? Please let me know what size GPU you are able to run it on.
Thanks

I also encountered the same problem and look forward to the author’s reply.

Same problem. Anbody can help?

I encountered the same error and solved. In my opinion, 'CUDA out of memory' error can be solved by just adding some arguments.(e.g. --gradient_accumulation_steps=1 --gradient_checkpointing)
The below link might be help:
https://github.com/huggingface/diffusers/issues/696

I have tested my solution on A30 (24GB GPU)：
(1) Preparation: reduce the image size like (change the command):
python3 scripts/stable_txt2img.py --ddim_eta 0.0 --n_samples 8 --n_iter 1 --scale 10.0 --ddim_steps 50  --ckpt ./models/stablediffusion/sd-v1-4-full-ema.ckpt --prompt "a photo of a bird" --H 256 --W 256
(2) Training: disable DDP in main.py like:
default to ddp
trainer_config["accelerator"] = "ddp"
Then, the Average Peak memory about 21589.97MB
Note taht, do not need to change the original command

I have tested my solution on A30 (24GB GPU only)：
Step(1) Preparation: reduce the image size like (change the command): python3 scripts/stable_txt2img.py --ddim_eta 0.0 --n_samples 8 --n_iter 1 --scale 10.0 --ddim_steps 50 --ckpt ./models/stablediffusion/sd-v1-4-full-ema.ckpt --prompt "a photo of a bird" --H 256 --W 256
Step(2) Training: disable DDP in main.py like: ---- # default to ddp ---- #trainer_config["accelerator"] = "ddp"
Then, the Average Peak memory about 21589.97MB Note that, do not need to change the original command
Step(3) Generation: reduce the image size like (change the command): python3 scripts/stable_txt2img.py --ddim_eta 0.0 --n_samples 8 --n_iter 1 --scale 10.0 --ddim_steps 100 --ckpt ./logs/round_bird2024-07-13T23-37-13_bird/checkpoints/epoch=000006.ckpt --prompt "photo of a sks bird" --H 256 --W 256

has the performance been affected ?


[FLINK-36769] support fury serializer for pyflink

What is the purpose of the change
Hi, community. Currently, in the batch verification scenario of our algorithm data, we use pyflink and encounter low transmission efficiency caused by low performance of pickle4-based encoding. After research, we decided to adopt Apache fury, a serialization framework based on pickle5 encoding. The implementation of fury in python will define the transmission buffer size in the protocol for transmission to improve the performance of large data transmission.
Related communications with fury community members can be found here
Brief change log
(for example:)

The TaskInfo is stored in the blob store on job creation time as a persistent artifact
Deployments RPC transmits only the blob storage reference
TaskManagers retrieve the TaskInfo from the blob cache

Verifying this change
Please make sure both new and modified tests in this PR follow the conventions for tests defined in our code quality guide.
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (100MB)
Extended integration test for recovery after master (JobManager) failure
Added test that validates that TaskInfo is transferred only once across recoveries
Manually verified the change by running a 4 node cluster with 2 JobManagers and 4 TaskManagers, a stateful streaming program, and killing one JobManager and two TaskManagers during the execution, verifying that recovery happens correctly.

Does this pull request potentially affect one of the following parts:

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

Documentation

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

@flinkbot run azure


Make BlockStorage.{load,saveBlock} not nothrow

They are only used in one place each, as they should,
and we trigger an HLT if they are to return false anyway.

Green

Green


Use  instead JSON - Done

Hi, I'm new here. It's a great audio player, but I have one problem. I'm trying to build a playlist, but to work properly, I need to use  instead of JSON.  I try this method but it does not seem to work anymore:

Any ideas how can I do it?

Are you trying to use the actual HTML5 audio tag? AmplitudeJS creates the Javascript object representation of this tag for you.

Closed due to inactivity


update cluster config

update cluster config for mapq_recalc to avoid memory probs with "norm"

completed with commit 4353c306e8ea362104aa443a21f2c260f690ca23


[LPC15XX] Fixed µs_ticker implementation

Re-wrote µs_ticker implementation to use SCT3 instead of RIT in order to fix a serious rollover bug at 1:11:34 (#1699).

In regards to the Travis CI failure, it would seem that the GCC toolchain only implements void __disable_irq() not int __disable_irq(). The integer version returns whether or not interrupts were already disabled, preventing nested critical section calls from re-enabling interrupts too soon. This is a problem that exists throughout the mbed library, and should really be investigated at some point.

In regards to the Travis CI failure, it would seem that the GCC toolchain only implements void __disable_irq() and not int __disable_irq(). The integer version returns whether or not interrupts were already disabled, preventing nested critical section calls from re-enabling interrupts too soon. This is a problem that exists throughout the mbed library, and should really be investigated at some point.

We added core_util_critical_section_enter/exit that shall be used

@0xc0170 - I was not aware of this, PR has been updated.

LGTM

cc @toyowata

@neilt6 Thank you very much for this PR.  The code looks good to me.
I have tested this with few example projects using Ticker with PwmOut and could not see any problem at all.


🕷[BUG/CRASH/GLITCH] ...Unable to see or choose dialogue options when using mod

Hi there,
I’m in love with what you have achieved here, so thanks very much for your efforts.
Unfortunately when using the mod, I can no longer see or select dialogue options during cutscenes.
Is this normal?
Thanks

Can you include what versions you're using, which level you are in and what cutscene you're talking about, and some screenshots would help.

V.0.2.0 (although the issue has remained with every update for me.)
It happens with any interact-able conversation, such as this one at the club in Hong Kong. The dialogue choices should be at the bottom of the screen, but they’re not visible.
Is it a compatibility issue with the “Widescreen subtitle fix,” that comes as an option with the Deus Exe launcher? As soon as I play without the new renderer, the issue goes.
Thanks,

It's probably some kind of combination of settings.
Can you show a screenshot of your Deus Exe settings?
Mine are:

My settings, cheers.

I just used your exact settings, but still no subtitles/options visible at the bottom of the screen unfortunately

Same, I can't reproduce your issue:

Do you have any modifications to your rtx.conf? Can you try reinstalling it from a package?

I have reinstalled all 3 steps of the process, but no change i'm afraid

When you press ALT+X and then developer settings, and then 'Reset Settings', do all the visuals reset? (for the worse? Don't click save or you'll have to replace your rtx.conf)

Also, do you have any other mods or renderers installed? (Or had installed before)?

When I reset settings via Alt+X, the visuals do reset for the worse sadly - I didn't save. I have used Deus Ex revision in the past, but applied follwoed your mod instructions after a fresh install. I turned the brightness way up just to make the screenshot clearer. Thanks

Hmm, still can't reproduce it.
When you're in a conversation that's supposed to have black bars, can you open the Remix menu (Alt+X) and browse to "Game Setup", and then categorize all black textures (and textures containing text) as 'UI Textures', and see if the UI pops back in?

If that fixes it, can you attach your rtx.conf, your DeusEx.ini and System.ini files? (If you're using Deus Exe, they're in the \My Documents\Deus Ex\System folder, otherwise it's the Deus Ex game System folder).

Issue cannot be reproduced, and no reply from user. Closing issue, feel free to reopen!


Improve the problem checking for the daemon-reuse test

I found this test, which could use some help when it comes to problem checking.
In addition, I've made the buildOperationFixture protected, so other tests could fetch the build operations coming in without the need to make the fixture themselves.

The merge queue build has failed. Click here to see all failures.

The merge queue build has failed. Click here to see all failures.

The merge queue build has failed. Click here to see all failures.

The merge queue build has failed. Click here to see all failures.

Done it with @donat in a pairing session

The merge queue build has failed. Click here to see all failures.

The merge queue build has failed. Click here to see all failures.

The merge queue build has failed. Click here to see all failures.


The sound suddenly lowers automatically after a while!

When I click on the YouTube link and watch the video, the sound suddenly lowers after a while. I think this is a bug. I would appreciate it if you could fix it. Thank you!

Thanks


InfluxDB 2.0.4 version missing "plist" files via "brew" installation

I'm currently using MacOS Big Sur 11.0.1 version and following the installation tutorial on your website.
Installation works:
brew install influxdb
The second step, to have launchd command:
ln -sfv /usr/local/opt/influxdb/*.plist ~/Library/LaunchAgents
Won't work, because there's not a single "plist" type file into the folder, indeed:
ls /usr/local/opt/influxdb/*.plist
no matches found: /usr/local/opt/influxdb/*.plist
The problem persists even if I delete everything and launch brew reinstall influxdb.

The influxdb formula is community-maintained. I'd open an issue against Homebrew/homebrew-core


Timeout from downloadFile

Hello again. I am implementing receiving messages via updates. I need to download message attachments, but periodically I get a timeout, after which I cannot receive new updates. Tell me how to solve this problem.

This is a problem in your code. TDLib requests has no timeouts.

Can telegram itself return timeouts to requests?

This can't affect downloadFile.


[Android] presentPaymentSheet Dialog not open in android

Describe the bug
[Android] presentPaymentSheet Dialog just open one second & close it automatic in android
You can see video : https://drive.google.com/file/d/1aL8GhOSA1J0TZoZiDGyLJe6DAOc_yAxe/view?usp=sharing
To Reproduce
Steps to reproduce the behavior:

Go to 'initPaymentSheet success without any error '
Click on 'click  pay button for presentPaymentSheet dialog'
See error : return this error  {"code":"Failed","message":""} by presentPaymentSheet

Expected behavior
I need to payment using google pay using this library
Desktop (please complete the following information):

OS: Mac os catalina
Version [master and 1.0.2]

Smartphone (please complete the following information):

Device: [Redmi Note 7S]
OS: [9]

Additional context
=> My code integration below step
step 1: First initPaymentSheet success without any error
const fetchPaymentSheetParams = async (cartDetails:any) => {
const reqNew = {
  venueId,
  totalFeeCost: cartDetails?.totalCost,
  totalCost: cartDetails?.totalCost
}
// backend api call for get payment intent for stripe dialog
const { data } = await cartIntentPayment(reqNew);

setPaymentIntents(data.paymentIntent);
setCustomers(data.customer);

const { error } = await initPaymentSheet({
  customerId: data?.customer?.id,
  paymentIntentClientSecret: data?.paymentIntent?.client_secret,
});
if (!error) {
  console.log("initPaymentSheet success ");
  setLoading(true);
}

}
step 2: visible google payment button & click on it
const openPaymentSheet = async () => {
    try {
      var secretKey = paymentIntents.client_secret;
      const { error } = await presentPaymentSheet({ clientSecret: secretKey });

      if (error) {
        console.log('Error in openPaymentSheet ' + JSON.stringify(error));
      } else {
        console.log(`Success: `, 'Your order is confirmed!');
      }

    } catch (error) {
      console.log("error in stripe in google pay " + error);
    }
  }

step 3 : Payment sheet dialog open just 2-3 second  & its close automatic with below error
       {loading && Platform.OS === 'android' && <PaymentGoolePayButton
              onPress={ openPaymentSheet }
              customStyles={{ marginBottom: 20 }}
            />}

======== error after press PaymentGoolePayButton button ===========
{"code":"Failed","message":""}

What's the value of var secretKey = paymentIntents.client_secret;? That needs to be the same as the value for data?.paymentIntent?.client_secret

Closing out as stale. Feel free to reopen with the above details.


Support for SpatiaLite

https://www.gaia-gis.it/fossil/libspatialite/index

As per Jon's observations, this would mean having to break SQLite compatibility.  We're implementing relevant features directly in Mimir... this should allow us a bit more flexibility with optimization and cross-backend GIS compatibiliy.


Unable to deploy Packageserver on Kubernetes

Type of question
Deployment OLM on kubernetes 1.18
Question
What did you do?
I want install OLM with 'customizing OLM installation' method.
What did you expect to see?
The packageserver installation by his CSV in a olm namespace.
What did you see instead? Under which circumstances?
Currently the catalog-operator and olm-catalog are OK :
k get pods -n olm
NAME                               READY   STATUS    RESTARTS   AGE
catalog-operator-7476959cd-qrlzx   1/1     Running   0          52m
olm-operator-847b79bd86-vvf2c      1/1     Running   0          27m
But the packageserver csv is failed :
k get csv
NAME            DISPLAY          VERSION   REPLACES   PHASE
packageserver   Package Server   1.0.0                Failed
I have this errors :
- lastTransitionTime: "2020-07-22T16:56:34Z"
    lastUpdateTime: "2020-07-22T16:56:34Z"
    message: apiservice.apiregistration.k8s.io "v1.packages.operators.coreos.com"
      not found
    phase: Pending
    reason: APIServiceResourcesNeedReinstall
  - lastTransitionTime: "2020-07-22T16:56:34Z"
    lastUpdateTime: "2020-07-22T16:56:34Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-07-22T16:56:35Z"
    lastUpdateTime: "2020-07-22T16:56:35Z"
    message: 'install strategy failed: cannot get RoleBinding with a NullRoleBindingNamespaceLister'
    phase: Failed
    reason: InstallComponentFailed
  - lastTransitionTime: "2020-07-22T16:56:41Z"
    lastUpdateTime: "2020-07-22T16:56:41Z"
    message: apiservice.apiregistration.k8s.io "v1.packages.operators.coreos.com"
      not found
    phase: Pending

I don't understand what NullRoleBindingNamespaceLister means?
Environment

operator-lifecycle-manager version: 0.15.1

Kubernetes version information:

k version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2-0-g52c56ce", GitCommit:"592b165660fbf31430b78575e311837d6e73514f", GitTreeState:"clean", BuildDate:"2020-07-13T19:06:44Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:51:04Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}.

Kubernetes cluster kind:

Additional context
Bellow the my-values.yaml file used for installing the OLM :

installType: upstream
# sets the apiversion to use for rbac-resources. Change to `authorization.openshift.io` for openshift
rbacApiVersion: rbac.authorization.k8s.io
# namespace is the namespace the operators will _run_
namespace: olm
# watchedNamespaces is a comma-separated list of namespaces the operators will _watch_ for OLM resources.
# Omit to enable OLM in all namespaces
watchedNamespaces: olm,dbms1,dbms2
# catalog_namespace is the namespace where the catalog operator will look for global catalogs.
# entries in global catalogs can be resolved in any watched namespace
catalog_namespace: catalog-operator
# operator_namespace is the namespace where the operator runs
operator_namespace: operator
# Add
imagestream: false
writeStatusName: '""'
writePackageServerStatusName: ""

# OLM operator run configuration
olm:
  # OLM operator doesn't do any leader election (yet), set to 1
  replicaCount: 1
  # The image to run. If not building a local image, use sha256 image references
  image:
    ref: quay.io/operator-framework/olm@sha256:2c389d2e380c842cbf542820ad4493249164302ddf0e699b0a37105d234e67ee
    pullPolicy: IfNotPresent
  service:
    # port for readiness/liveness probes
    internalPort: 8080

# catalog operator run configuration
catalog:
  # Catalog operator doesn't do any leader election (yet), set to 1
  replicaCount: 1
  # The image to run. If not building a local image, use sha256 image references
  image:
    ref: quay.io/operator-framework/olm@sha256:2c389d2e380c842cbf542820ad4493249164302ddf0e699b0a37105d234e67ee
    pullPolicy: IfNotPresent
  service:
    # port for readiness/liveness probes
    internalPort: 8080
package:
  replicaCount: 2
  image:
    ref: quay.io/operator-framework/olm@sha256:2c389d2e380c842cbf542820ad4493249164302ddf0e699b0a37105d234e67ee
    pullPolicy: Always
  service:
    internalPort: 5443
    securityContext:
          runAsUser: 1000
catalog_sources:
- rh-operators

I found my problem. It's because of watchedNamespaces parameter in my my-values.yaml file. If i delete this entry, it works.
Is it normally? Is this parameter is deprecated?
Thanks

@yeplaa Yeah, I was able to reproduce this as well using OLM's master branch when I specified a custom watchedNamespace helm value:
git diff doc
diff --git a/doc/install/local-values.yaml b/doc/install/local-values.yaml
index 7b47f2a94..9ac927af9 100644
--- a/doc/install/local-values.yaml
+++ b/doc/install/local-values.yaml
@@ -2,6 +2,7 @@ installType: upstream
 rbacApiVersion: rbac.authorization.k8s.io
 namespace: olm
 writeStatusName: '""'
+watchedNamespaces: olm,dbms1,dbms2
 catalog_namespace: olm
 operator_namespace: operators
 debug: true

And ran make run-local to deploy OLM using those helm chart values. It's unclear to me whether this is something we'd like to support, but looking at the OLM Operator codebase, it looks like we're correctly passing each individual namespace when building up informers and listers, but the registration logic either has a bug and the lister is attempting to access an empty field, or something else is going on. I would recommend continuing to deploy OLM using the default watch namespace configuration while we figure out whether this behavior is still supported or not.
cc @njhale who likely knows this space the best.


Docs search

This PR adds search functionality to the documentation. The basic architecture of this feature works as follows.

Before the app arrives in the browser all of the markdown files are compiled into a single index.json file
On load of app in the browser a webWorker is launched who grabs the index.json file
Individual queries are sent to the web worker for search.

This addresses #528

Ah this is so cool! I'm in the process of creating some sort of project allowing us to bootstrap our documentation website, this will definitely belong in there.
I'll review and accept, dunno how much time it will take to port react-vis to it

I'm in the process of creating some sort of project allowing us to bootstrap our documentation website, this will definitely belong in there.

I've been thinking about a project like that! I think a bootstrapping thing could be cool, but I feel like this who structure could be extracted into a gitbook like framework. I imagine such a structure being something analogous to a react component that accepts a JSON list of pages (delimited by section) and style props, and requires the user to keep all of their markdown in a single place. Were i to name to this something, it would be DocsBuilder.

Pardon my wording, it's actually not only a scaffolding tool but also more like a create-react-app sort of thing, abstracting all the configs and base stuff like the redux provider and routes. I'm gonna add you to the repo


Fix minor style issues and platform component

Changes proposed ✍

Fix margin around Profile title in Profile page - Task
Fix cursor pointer in users list - Task
Fix platform/channels icons in Community Help Center - Task

Made a reusable component for platform
Use component throughout application

Screenshots (front-end changes only)

Checklist ✅

[x] Label appropriately with type:feature 🚀, type:enhancement ✨, type:bug 🐞, or type:documentation 📜.
[ ] Tests are passing.
[ ] New backend functionality has been unit-tested.
[ ] Environment variables have been updated

[ ] Front-end: frontend/.env.dist
[ ] Backend: backend/.env.dist, backend/.env.dist.staging, backend/.env.dist.staging.
[ ] Configuration docs have been updated.
[ ] Team members only: update environment variables in Password manager and update the team

[ ] API documentation has been updated (if necessary) (see docs on API documentation).
[ ] Quality standards are met.
[ ] All changes have been tested in a staging site.
[ ] All changes are working locally running crowd.dev's Docker local environment.

Perfect! Thanks for addressing my comments
Merging and deploying to staging


Fix page preview

This is a service now ticket.

Can you include the service now ticket number in either the PR title or in your comment?


Please update your commit message and push it again:

git commit --amend
git push --force

Thanks for the contribution @arg7! and sorry for the late review.


VW MQB: Can't initiate auto lane change with comfort turn signal

Describe the bug
The VW port is using the instantaneous state of the turn signal stalk switch to feed CarState.[left|right]Blinker. Apparently other ports are setting the blinker state True for the entire duration of automated comfort blinking.
How to reproduce or log data
Touch the turn stalk momentarily, and openpilot is only momentarily willing to enter an auto lane change state.
Expected behavior
It would seem (#21130) the expectation is for openpilot to allow auto lane change entry during the comfort blink period, a few seconds after a momentary touch of the turn signal stalk.
Device/Version information (please complete the following information):

Dongle ID: 7aae592fc08e895f
Route: 7aae592fc08e895f|2021-06-04--22-46-03
Timestamp: tested 536 seconds into the drive
Version: current-ish master with other car port/tuning tweaks
Car make/model: 2018 Volkswagen Golf R

Opened an issue because this is being tracked for other cars, and while I know how to fix it, I can't fix it right away.  I'm headed out of town shortly and won't be near my car for several days to test or respond to concerns.
BO_ 870 Blinkmodi_02: 8 XXX
 SG_ Left_Turn_Exterior_Bulb_1 : 25|1@0+ (1,0) [0|1] "" XXX
 SG_ Right_Turn_Exterior_Bulb_1 : 26|1@0+ (1,0) [0|1] "" XXX
 SG_ Left_Turn_Exterior_Bulb_2 : 27|1@0+ (1,0) [0|1] "" XXX
 SG_ Right_Turn_Exterior_Bulb_2 : 28|1@0+ (1,0) [0|1] "" XXX
 SG_ Comfort_Turn_Signal_Active : 37|1@1+ (1,0) [0|1] "" XXX
 SG_ Turn_Signal_State : 23|2@1+ (1,0) [0|1] "" XXX

CM_ SG_ 870 Left_Turn_Exterior_Bulb_1 "Probably front";
CM_ SG_ 870 Right_Turn_Exterior_Bulb_1 "Probably front";
CM_ SG_ 870 Left_Turn_Exterior_Bulb_2 "Probably rear";
CM_ SG_ 870 Right_Turn_Exterior_Bulb_2 "Probably rear";
CM_ SG_ 870 Turn_Signal_State "Looks like 0 inactive, 1 comfort right, 2 comfort left, might be 3 for hazards?";


Hide a particular row in appendgrid

Hi,
A query,
The build in-code supports hiding of a particular column ,is there a way to hide a row say row number 2 by passing row number??
Also is there a way to get display name of columns ( not the actual name)??

Hi siddhant749,
I tried to implement this feature previously but got some issues on calculate the row number (first column) and it may break 3rd party validation plugin when the rows are hidden.
If you really want to do so, you can try the following code:
function showHideGridRow(uniqueIndex, visible) {
  // Please change the following `tblAppendGrid` if you are using another table ID
  if (visible) {
    $('#tblAppendGrid_Row_' + uniqueIndex).show();
  } else {
    $('#tblAppendGrid_Row_' + uniqueIndex).hide();
  }
}

Hope it can help :)


[COOK-3836] Revoke all previous privileges before granting

https://tickets.opscode.com/browse/COOK-3836

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

Since the CLA hasn't been signed in over 6 month for this PR I'm going to close it out at this point.  If the author would like to sign the CLA feel free to open up the PR again.


[FEATURE] Add Keyboard shortcuts

Add keyboard shortcuts for Create New File/Folder, close active files, and delete files.
ctrl+n -> New file
ctrl+shift+n -> New folder
ctrl+w -> close active tab

@haxzie can i take this ?

Sure, go ahead @nishanb


feat: Enable Zitadel Integration for API Authentication

Summary | Résumé
Most of the work was ported from Bryan's original PR #3908. The only change made was in the management of Zitadel's admin key.
Flow
https://github.com/user-attachments/assets/a354eee0-af30-4dba-a036-fa80aea0af90
Machine Service Accounts
1 Form = 1 Account

Test instructions | Instructions pour tester la modification

Switch on the feature flag for Zitadel
Go to Settings > API Access
Click Generate Key

Unresolved questions / Out of scope | Questions non résolues ou hors sujet
TBD
Pull Request Checklist
Please complete the following items in the checklist before you request a review:

[ ] Have you completely tested the functionality of change introduced in this PR? Is the PR solving the problem it's meant to solve within the scope of the related issue?
[x] The PR does not introduce any new issues such as failed tests, console warnings or new bugs.
[x] If this PR adds a package have you ensured its licensed correctly and does not add additional security issues?
[ ] Is the code clean, readable and maintainable? Is it easy to understand and comprehend.
[ ] Does your code have adequate comprehensible comments? Do new functions have docstrings?
[ ] Have you modified the change log and updated any relevant documentation?
[ ] Is there adequate test coverage? Both unit tests and end-to-end tests where applicable?
[ ] If your PR is touching any UI is it accessible? Have you tested it with a screen reader? Have you tested it with automated testing tools such as axe?

We could create a ticket for it unless you want to tackle it now

I'd like to see a happy path working in staging, and then we can focus on stabilizing the code. What do you think?

We could create a ticket for it unless you want to tackle it now

I'd like to see a happy path working in staging, and then we can focus on stabilizing the code. What do you think?

Sounds good to me! As long as we do not forget about it :)


DOC: demonstrating use of pyamg.smoothed_aggregation_solver

For #264.

Both PyAMG and AMGCL turn out to be easy to use build effective preconditioners for skfem.utils.solver_iter_krylov, analogous to skfem.utils.build_pc_*.
This simple extension of ex09 (solving the Poisson problem in a cube) does not attempt to assess the relative merits of the two implementations of AMG, it just shows how they may be used in scikit-fem.

Fixes #264.


Unity sdk non complaint warning from playstore

Your app includes SDK com.unity3d.ads:unity-ads or an SDK that one of your libraries depends on, which collects personal or sensitive data that includes but may not be limited to Advertising ID, Android ID identifiers. Persistent device identifiers may not be linked to other personal and sensitive user data or resettable device identifiers
According to the information provided by your SDK provider, you may consider upgrading to 4.0.1. Please consult the SDK provider for further information.

any update on this?

new update has arrived


[Fix] Logging settings in tracker as none

Problema: estamos loggeando los tracks, quedan visibles en consola.
Solución: log level en NONE.

Codecov Report

Merging #640 into develop will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff            @@
##           develop     #640   +/-   ##
========================================
  Coverage    27.49%   27.49%
========================================
  Files          231      231
  Lines        16950    16950
  Branches      1479     1479
========================================
  Hits          4661     4661
  Misses       11792    11792
  Partials       497      497

Impacted Files
Coverage Δ

.../mercadopago/px_tracking/utils/HttpClientUtil.java
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Fix arithmetic benchmark

In #752 it was noticed that it no longer finishes for width values more than 1. It turns out it happens because world.contexts() creates a new execution and record identifiers greater than 0 will block forever.
I also included running it in CI so we don't let it rot

CI is failing because of Rust 1.71 release. #755 should fix it


Allow switching compilation toolchain in tests.

This is a hack allowing me to CC=clang tox -e... to workaround Python
3.5 and 3.6 compilation issues when building pyenv interpreters in
pex/testing.py (similar to?) the one detailed here:
https://bugs.python.org/issue27987

The issue looks like so:
$ ~/.pyenv/sources/3.5.6/Python-3.5.6/python -mensurepip
Segmentation fault (core dumped)
$ coredumpctl -1
TIME                           PID  UID  GID SIG     COREFILE EXE                                                    SIZE
Wed 2021-06-02 09:43:23 MDT<PHONE_NUMBER> 1000 SIGSEGV present  /home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/python 3.4M
$ $ coredumpctl debug -A "-batch -quiet -ex 'bt 5'" 145413
           PID: 145413 (python)
           UID: 1000 (jsirois)
           GID: 1000 (jsirois)
        Signal: 11 (SEGV)
     Timestamp: Wed 2021-06-02 09:43:23 MDT (6min ago)
  Command Line: /home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/python -mensurepip
    Executable: /home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/python
 Control Group<EMAIL_ADDRESS>          Unit<EMAIL_ADDRESS>     User Unit: vte-spawn-a45c49ef-24a8-4704-a10b-1c086f9673b4.scope
         Slice: user-1000.slice
     Owner UID: 1000 (jsirois)
       Boot ID: 22c623b771744ccfb4f9c0e9b97862aa
    Machine ID: c8b6b48c23a840ee862c8d2983461941
      Hostname: gill
       Storage: /var/lib/systemd/coredump/core.python.1000.22c623b771744ccfb4f9c0e9b97862aa.145413.1622648603000000.zst (present)
     Disk Size: 3.4M
       Message: Process 145413 (python) of user 1000 dumped core.

                Stack trace of thread 145413:
                #0  0x00007f882575179c n/a (/home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/build/lib.linux-x86_64-3.5/_ctypes.cpython-35m-x86_64-linux-gnu.so + 0xb79c)

[New LWP 145413]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/python -mensurepip'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f882575179c in PyCFuncPtr_new (type=0x5608b3abe0e8, args=0x7f88257c95f8, kwds=0x0) at /home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/Modules/_ctypes/_ctypes.c:3463
3463	    self->thunk = thunk;
warning: File "/home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/python-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/python-gdb.py
line to your configuration file "/home/jsirois/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/jsirois/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
#0  0x00007f882575179c in PyCFuncPtr_new (type=0x5608b3abe0e8, args=0x7f88257c95f8, kwds=0x0) at /home/jsirois/.pyenv/sources/3.5.6/Python-3.5.6/Modules/_ctypes/_ctypes.c:3463
#1  0x00005608b275f425 in type_call (type=0x5608b3abe0e8, args=0x7f88257c95f8, kwds=0x0) at Objects/typeobject.c:890
#2  0x00005608b270573a in PyObject_Call (func=0x5608b3abe0e8, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2166
#3  0x00005608b27bcea0 in do_call (nk=<optimized out>, na=<optimized out>, pp_stack=0x7ffe16f51aa0, func=<optimized out>) at Python/ceval.c:4989
#4  call_function (oparg=<optimized out>, pp_stack=0x7ffe16f51aa0) at Python/ceval.c:4785


VSCode Unable to Recognise default "program" in launch.json

VSCode Version: 1.3.1
OS Version: Windows 7 Professional

Steps to Reproduce:

Create a new Console Application using the powershell script:
function New-ConsoleApplication {
    param (
        [string]$Path,
        [string]$Name,
        [bool]$Open,
        [bool]$Run
    )

    New-Item -Name $Name -Type Directory -Path $Path
    cd "$Path\$Name"
    dotnet new
    dotnet restore
    if ($Open){code .}
    if ($Run) {dotnet run}
}

New-ConsoleApplication -Name "ConsoleApplication" -Path "C:\Users\First.Surname\Source\" -Open $true -Run $true`

The folder structure and code is created, and it is opened in VSCode. The application executes and prints "Hello World!" to the PowerShell terminal.

PowerShell Output:
    Directory: C:\Users\Seb.Kotze\Source

    Mode                LastWriteTime     Length Name
    ----                -------------     ------ ----
    d----        02/08/2016     16:06            ConsoleApplication
    Created new C# project in C:\Users\Seb.Kotze\Source\ConsoleApplication.
    log  : Restoring packages for C:\Users\Seb.Kotze\Source\ConsoleApplication\proj
    ect.json...
    log  : Writing lock file to disk. Path: C:\Users\Seb.Kotze\Source\ConsoleApplic
    ation\project.lock.json
    log  : C:\Users\Seb.Kotze\Source\ConsoleApplication\project.json
    log  : Restore completed in 2514ms.
    Project ConsoleApplication (.NETCoreApp,Version=v1.0) will be compiled because
    expected outputs are missing
    Compiling ConsoleApplication for .NETCoreApp,Version=v1.0

    Compilation succeeded.
        0 Warning(s)
        0 Error(s)

    Time elapsed 00:00:01.5621203

    Hello World!

In VSCode, click Debug or Ctrl + Shift + D, then press F5
Select .NET Core as the environment - launch.json is opened - then press F5 again

No task runner configured

Select Configure Task Runner - select .NET Core - tasks.json is opened
Press F5 to launch

launch: launch.json must be configured. Change 'program' to the path to the executable file that you would like to debug.

open launch.json
Program is given by : "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>"
Changing this to the physical path of the .dll resolves the issue, but VSCode complains that :

Relative paths will no longer be automatically converted to absolute ones. Consider using ${workspaceRoot} as a prefix.
Path to the application dll or .NET Core host executable to launch. Example: '${workspaceRoot}/bin/Debug//<project-name.dll>' where:
: (example: 'netstandard1.5') This is the name of the framework that the app is being built for. It is set in the project.json file.
: (example: 'MyApp') The name of the project being debugged.

@sebasijan do you still see this issue with vscode 1.4? If you keep using the ${workspaceRoot} do you end in this situation every time you try to start debugging?

@isidorn After trying the above steps in 1.4.0 it seems to be working fine (I can see the program output in the console after pressing F5).

I'm getting this exact same error on v1.7.1 on macOS 10.11 (El Capitan).  I'm extremely new to macOS so maybe I don't have something configured correctly. When I execute dotnet run from the terminal, it works fine.  But after going through the VS Code automatic steps of adding a launch.json and tasks.json, I get this message when I try to debug through VS Code.

@gmsDave make sure your program attribute is launch.json is has a correct absolute paht - or is using ${workspaceRoot}. If the problem still occurs I recommend to file it to the C# extension since the launching of your program is done on the extension side
https://github.com/OmniSharp/omnisharp-vscode

It was set to ${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll> but even setting program to the exact path, /Users/daveslinn/desktop/dotnet/bin/debug/netcoreapp1.0/dotnet.dll, was still giving the same error, "launch: launch.json must be configured. Change 'program' to the path to the executable file that you would like to debug.".  I will head over to OmniSharp and re-post there.

"configurations": [
        {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
            "args": [],
            "cwd": "${workspaceRoot}",
            "stopAtEntry": false,
            "externalConsole": false
        },

launch.json
For "program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",, you must find and paste in the exact path of the dll file like ${workspaceRoot}/bin/Debug/netcoreapp1.1/project1.dll in order to hook the debuger up. In this case, what's the point of having the wildcard placeholder anyway?
Dear coordinator, the real issue here is the project kick-starting process is way too tedious for a console project.
You see, to start the project, we have to go through following steps:

We can only put bin folders in root folder. If we need more than one project -> Open more than one new windows, instead of creating multiple sub-folder in the same workspace.
Run dotnet new
Run dotnet restore
Choose debug page on sidebar, click on run button, and select launch.json profile to ".net Core"
Click on Set task runner, but it only generate a default file, apperently there is nothing to set.
Paste the exact path of main dll to program attribute of configuration of launch.json, as being said, otherwise the debugger won't work.
Start Debugging

What we really want:

New folder
Run dotnet new in it.
Start Debugging

I wonder if it is possible. Is this the wrong place to report the issue?

@qiansen1386 please file this feedback against the c# extension as this can be improved on their side
https://github.com/OmniSharp/omnisharp-vscode

@isidorn Thanks

Still happening in 1.10.2 !  very poor "getting-started" experience:  I am following the Microsoft getting started tutorial here: https://docs.microsoft.com/en-gb/aspnet/core/tutorials/your-first-mac-aspnet

For anyone still hitting this issue.

Open up your Program.cs file before starting to debug.
Opening any .cs file fires the C# extension.
The extension will then ask if it can load build assets . Hit Yes.

It may take a few seconds to load Omnisharp
It only asks this if the launch.json and tasks.json haven't already been added to the project.

Then the extension will configure your launch.json and tasks.json for you.

For those interested there is an issue tracking this behavior.


FindTextInFiles doesn't support comma-separated globs with {}

Try extension with:
const disposable = vscode.commands.registerCommand('extension.helloWorld', async () => {
	const results: string[] = [];
	const glob = await vscode.window.showInputBox({ prompt: 'Glob pattern' });
	await vscode.workspace.findTextInFiles({ pattern: 'foo' }, {
		include: new vscode.RelativePattern(vscode.workspace.workspaceFolders![0], glob!),
	}, r => results.push(r.uri.toString()));
	vscode.window.showInformationMessage(JSON.stringify(results));
});

...and a workspace with files a/hello.txt and b/hello.txt both containing foo. Entering a glob for a/*.* or b/*.* will work, but {a/*.*, b/*.*} will return no results.
{a/*.*, b/*.*} is a valid glob and should work

I believe that the main reason that this happens is because of a performance optimization that we make with text search here:
https://github.com/microsoft/vscode/blob/6d0d2dc6b3f28386ce7cd4a8b5d54d4777380cba/src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts#L498
We need to find a way to support {} (no nesting, since ripgrep doesn't support it) while keeping this optimization


Typing /tpacancel with no playername specified should cancel all outgoing requests.

The red error message is from just typing /tpacancel; I expected it to say "Must specify the player you are teleporting to", or just make it cancel every single ongoing teleport requests if you don't specify.

I'll probably make it cancel the only active one, as when there's multiple, it should show a choice menu


Fix close tag regexp

Hi
<EMAIL_ADDRESS>compiler is broken. Example:
<tag>
  <form>
    <input type='text' />
    <button>submit</button>
  </form>
</tag>

compiles:
riot.tag('tag', '<form > <input type=\'text\'></form> <button>submit</button> </form>', function(opts) {

});

Two </form> generated.
This caused by CLOSED_TAG RegExp. /<([\w\-]+)([^\/]*)\/\s*>/ matches <p/> but <form> <input type='text' /> is also match. This pattern is name = 'form', attr = "> <input type='text' " (https://github.com/muut/riotjs/blob/e98178bbd3a7ea3462c952bfe6ad991f6a03111e/lib/compiler.js#L58-L65). So compiled result is above.
This PR is fixing this problem.

:+1:

I'm viewing this PR too late :(
I have it like this on the current compiler which (also) fixes this issue.
Thank you!

I checked 2.0.8 works. :+1:


Set the docker image tag to run

This pull request makes possible to run a specific Home Assistant docker image tag sending a variable to the script. If the variable is not sent, the version included in .hass/config/.HA_VERSION file will be used as the tag. Also, to generate the docker cache key, the aforementioned file will be used instead of the package.json.

coverage: 100.0%. remained the same
when pulling b723a4b7d1ede517f74d010d5fef0427c01cad17 on run_docker_image_tag_dynamic
into ebd6f452dca960044803e08becec7c7e2efbfd39 on master.


use springfox-swagger-ui in pom caused a springmvc CommonsMultipartResolver error.

springmvc with xml config project,not spring-boot project.
<dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.5.0</version>
        </dependency>

<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        <property name="maxUploadSize" value="1048576000"/>
        <property name="uploadTempDir" value="/tmp"/>
    </bean>

then the uploadTempDir properties /tmp cause an error
org.springframework.beans.PropertyBatchUpdateException: Failed properties: Property 'uploadTempDir' threw exception; nested exception is java.io.FileNotFoundException: ServletContext resource [/uploadTmp] cannot be resolved to absolute file path - web application archive not expanded?

I remove the ui pom dependent, and i use swagger ui from swagger-ui in webapp,no error display.

Is this swagger-ui library related? Not sure why adding a dependency would cause that


Windows Server version incorrectly specified

[Enter feedback here]
n/a
Windows Server version 1709

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

ID: 922b9c51-6a6d-1118-d2a2-6d485b222ce8
Version Independent ID: 6874cc89-a1f8-addd-430f-a4d6b7f89ae8
Content: Create a Windows container application on Service Fabric in Azure - Azure Service Fabric
Content Source: articles/service-fabric/service-fabric-quickstart-containers.md
Service: service-fabric
GitHub Login: @tomvcassidy
Microsoft Alias: tomcassidy

@schmidtaa
Thanks for your feedback! We will investigate and update as appropriate.


Add Drawer to a None-Main StoryBoard

Hi I'm launching a Storyboard that has a NavigationController inherited from your NavigationController like the code below , how can I initialize left or right controller ?
I've created a RightDrawerVC.swift controller with xib and want to show is as right menu
(I'm so new to ios developing & I've read your examples but there you have initialized them in delegate
which i'm launching something else there
`
let storyBoard:UIStoryboard = UIStoryboard(name: "someStoryBoard", bundle: nil)
let viewController2 = storyBoard.instantiateViewController(withIdentifier: "someStoryBoard")
    self.present(viewController2, animated: true, completion: nil)

`
I mean it seams I can just use this library if the drawer is gonna be added to very first Controller , if not how can I do it then ?

I finally Found out the solution after hours and I'll paste the code bellow and please add it to your documentation so other newbies like me wont get in trouble :)

add a NavigationController to your storyboard ( not always the starting storyboard)

create a Class for the NavigationController that extends NavigationDrawerController (Material)

create the left/right Controller's class

create left/right Controller's variable like let drawerVC = MainDrawerVC(nibName: "MainDrawerVC", bundle: nil)

let storyBoard:UIStoryboard = UIStoryboard(name: "MainStoryboard", bundle: nil)
let mainController = storyBoard.instantiateViewController(withIdentifier: "MainStoryboard")

let mainNavigationController = MainNavigationDrawer(rootViewController:mainController,rightViewController:drawerVC)
(Launch From a Controller that doesn't have a NavigationController to a Controller that does have a Navigation Controller)

self.present(mainNavigationController, animated: true, completion: nil)

it maybe obvious but took me hours to find it out , you may close this issue as its solved 👍

Hey :) I am happy you solved this issue, and if you join the Material Gitter it will be much easier for you to give good suggestions like this one. All the best!


Use case documentation needed: provisioning VM using libvirt

What do I need first? Do I need to write a playbook?
I'm looking to setup something like this:

It looks like currently infrakit supports CLI-based deployment using playbooks. Do I get it right?
So if I somehow create a playbook, I would be able to provision a libvirt-based instance?

First of all, I think I need to start libvirt plugin, right?
But it looks like it isn't available for some reason:
infrakit plugin start
INFO[10-11|04:02:06] config                                   module=cli/plugin url= fn=github.com/docker/infrakit/cmd/infrakit/plugin.Command.func2
Plugins available:
KIND                	EXEC
aws                 	inproc
combo               	inproc
digitalocean        	inproc
docker              	inproc
enrollment          	inproc
file                	inproc
gc                  	inproc
google              	inproc
group               	inproc
hyperkit            	inproc
ibmcloud            	inproc
image               	inproc
ingress             	inproc
inventory           	inproc
kubernetes          	inproc
maas                	inproc
manager             	inproc
oneview             	inproc
oracle              	inproc
packet              	inproc
pool                	inproc
rackhd              	inproc
resource            	inproc
selector/spread     	inproc
selector/tiered     	inproc
selector/weighted   	inproc
simulator           	inproc
swarm               	inproc
tailer              	inproc
terraform           	inproc
time                	inproc
vagrant             	inproc
vanilla             	inproc
vars                	inproc
vsphere             	inproc

This led me to assuming that this function didn't run for some reason:
https://github.com/docker/infrakit/blob/master/pkg/run/v0/libvirt/libvirt.go#L34

After trying to set a breakpoint it says No source file named pkg/run/v0/libvirt/libvirt.go.
So it means it isn't imported anywhere, right?
So I went to see where all providers are imported and look what I found:
https://github.com/docker/infrakit/blob/a10d75ee2d0a8992edf415630a47b0633b04b0b0/cmd/infrakit/providers.go#L5-L22
Git blame led to this: https://github.com/docker/infrakit/pull/872
So libvirt isn't built by default?
Looking back found this: https://github.com/docker/infrakit/pull/718
Along with instructions on how to build it with libvirt.

So, this is how I build infrakit with libvirt provider:
sudo apt-get install libvirt-dev
GO_BUILD_TAGS="libvirt builtin providers" make build/infrakit

And it works:
$ infrakit plugin start libvirt
...
$ infrakit plugin ls
INTERFACE           NAME                          LISTEN
Instance/0.6.1      libvirt/default               /home/john/.infrakit/plugins/libvirt

Now I need to figure out how to provide libvirt URI and then - how to start some instances, and then - how to configure those instances.

It looks like linuxkit can generate those files. Installed linuxkit like this:
wget https://github.com/linuxkit/linuxkit/releases/download/v0.6/linuxkit-linux-amd64 -O ~/bin/linuxkit
chmod +x ~/bin/linuxkit

Running it like this
linuxkit build --format kernel+initrd linuxkit.yml

where linuxkit is here:
https://github.com/linuxkit/linuxkit/blob/master/linuxkit.yml
Unfortunately, kernel 4.14.74 causes kernel panic when running in qemu. So I switched to 4.4.159
Now I need to solve the next problem: how to build those images and copy them to the remote libvirtd host (when using INFRAKIT_LIBVIRT_URIS=default=qemu+ssh://server/system). Maybe a simple NFS share for now?

We could perhaps extend the functionality from here https://github.com/docker/infrakit/tree/master/pkg/x/remoteboot ?

Not sure I understand. remoteboot looks like a PXE server. How does it help?
Currently I'm struggling to find steps needed to provision kvm instances according to some yaml file. And configure those instances with docker swarm/kubernetes.
Here's a list of problems I found along the way (some of them solved):

libvirt is not builtin to infrakit
providing libvirt remote URI is not documented (INFRAKIT_LIBVIRT_URIS)
default libvirt.yaml doesn't work
you have to build kernel and initrd using thirdparty tool (at least linuxkit integration is not documented)
you have to copy kernel and initrd on remote host is using remote libvirt URI (at least didn't find a way to copy automatically)
video device is not working for some reason
can't figure out how to specify random device
init section doesn't work (something with permissions for "metadata volume")
figuring out networking (should I use portforwarding, ip routing or something else to reach VMs)
what's linuxkit configuration to build images with docker installed
how to setup container orchestration (say, I want 3 manager and 7 worker VMs), what flavors/groups should I use
should I reach container orchestrator directly or through infrakit
should I install loadbalancer on metal, VM or container

I'm currently on step 7. It looks like something to do with libvirtxml

BTW VNC instead of video device working fine:
      Graphics:
      - Type: "vnc"
        AutoPort: "yes"
        Port: -1
        Listen: "<IP_ADDRESS>"
        Listeners:
          - Type: "address"
            Address: "<IP_ADDRESS>"

Ok, the problem with RNG is that vendored copy isn't updated for more than a year:
https://github.com/libvirt/libvirt-go-xml/commit/7ea44658ebbc28b44d53372502137ecd60caa975


NativeUpdate query missing alias assignment

Describe the bug
Using $none causes missing FROM-clause entry for table "d0" error in postgres as alias is not assigned
Reproduction
Call:
nativeUpdate(       DParent,       {         dEvent: {           $none: {             endAt: null,           },         },       },       {         endAt: new Date(),       },     );
Results in:
update "public"."d_parent" set "end_at" = '2023-11-24T10:09:54.482Z' where "d0"."id" not in (select "d0"."id" from "d_parent" as "d0" inner join "public"."d_event" as "d1" on "d0"."id" = "d1"."d_parent_id" where "d1"."end_at" is null)
Which is not valid sql query
What driver are you using?
@mikro-orm/postgresql
MikroORM version
6.0.0-dev.171
Node.js version
v18.17.1
Operating system
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Slack.
[X] The provided reproduction is a minimal reproducible example of the bug.

Same applies to other collection operations

Works, thanks!


Removing final keyword from FixedChannelPool

See #6037 additionally

Cherry-picked into 4.1 (f6b37a38bac6dbea5dd2282c68a0f41c456f67a2) and 4.0 (1b528de)


[4/N] Replaces DAG DB readers/writers with repo

Describe your changes and why you are making these changes
This PR replaces the DAG readers and writers usage with the new repo.
Related issue number (if any)
ENG 2052
Loom demo (if any)
Checklist before requesting a review

[ ] I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
[ ] I have performed a self-review of my code.
[ ] I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
[ ] If this is a new feature, I have added unit tests and integration tests.
[ ] I have run the integration tests locally and they are passing.
[ ] I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
[ ] All features on the UI continue to work correctly.
[ ] Added one of the following CI labels:

run_integration_test: Runs integration tests
skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

@cw75 I've been following the convention (based on a few Go resources) where for 2 letter acronyms (ID, DB) we capitalize, but for anything longer such as dag, we use the lowercase when its just on its own and xxxDAG in other situations.


upscaling with Real ESRGAN fails on CUDA platform

When DirectML is not available, upscaling fails:
2023-01-22T22:25:53.909984287Z /usr/local/lib/python3.8/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py:54: UserWarning: Specified provider 'DmlExecutionProvider' is not in available provider names.Available providers: 'TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider'
2023-01-22T22:25:53.909990197Z   warnings.warn(
2023-01-22T22:25:53.909993827Z exception calling callback for <Future at 0x7fd32e57b100 state=finished raised TypeError>
2023-01-22T22:25:53.909997797Z Traceback (most recent call last):
2023-01-22T22:25:53.910001297Z   File "/usr/lib/python3.8/concurrent/futures/_base.py", line 328, in _invoke_callbacks
2023-01-22T22:25:53.910005147Z     callback(self)
2023-01-22T22:25:53.910008527Z   File "/usr/local/lib/python3.8/dist-packages/flask_executor/executor.py", line 37, in propagate_exceptions_callback
2023-01-22T22:25:53.910012557Z     raise exc
2023-01-22T22:25:53.910015987Z   File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
2023-01-22T22:25:53.910019987Z     result = self.fn(*self.args, **self.kwargs)
2023-01-22T22:25:53.910023517Z   File "/usr/local/lib/python3.8/dist-packages/flask_executor/executor.py", line 29, in wrapper
2023-01-22T22:25:53.910027937Z     return fn(*args, **kwargs)
2023-01-22T22:25:53.910031247Z   File "/usr/local/lib/python3.8/dist-packages/flask/ctx.py", line 182, in wrapper
2023-01-22T22:25:53.910034907Z     return ctx.app.ensure_sync(f)(*args, **kwargs)
2023-01-22T22:25:53.910038297Z   File "/onnx-web/api/onnx_web/pipeline.py", line 122, in run_txt2img_pipeline
2023-01-22T22:25:53.910041987Z     image = upscale_resrgan(ctx, upscale, image)
2023-01-22T22:25:53.910045397Z   File "/onnx-web/api/onnx_web/upscale.py", line 152, in upscale_resrgan
2023-01-22T22:25:53.910048987Z     upsampler = make_resrgan(ctx, params, tile=512)
2023-01-22T22:25:53.910052367Z   File "/onnx-web/api/onnx_web/upscale.py", line 135, in make_resrgan
2023-01-22T22:25:53.910068437Z     upsampler = RealESRGANer(
2023-01-22T22:25:53.910072207Z   File "/usr/local/lib/python3.8/dist-packages/realesrgan/utils.py", line 70, in __init__
2023-01-22T22:25:53.910075977Z     model.load_state_dict(loadnet[keyname], strict=True)
2023-01-22T22:25:53.910079407Z TypeError: load_state_dict() got an unexpected keyword argument 'strict'

The request's provider is not being passed to the upscaling pipeline's inference session.

This was not just a CUDA issue, it was caused by renaming a keyword argument in https://github.com/ssube/onnx-web/commit/9d0a15900b8e2f1fcbe9c48a949ad32cc99a1f65, and should be fixed with https://github.com/ssube/onnx-web/commit/9bff64c7c9e1cad7440e6484550ff3a4006974bf


Edit CUE SDK get started guide

Update the CUE SDK as follows:

single page
step 1..n structure
other changes for consistency with Go SDK guide structure

Works for me @vikram-dagger I say let's see if in a PR, and we can fine tune. In general 1) less is better, 2) simpler is better, 3) we can always add stuff back in later.


Fix condition to enter renegotiation in SSLTransmission

This fixes an issue where the code will enter a handshake when a
connection is being closed. This change was also made in the Kafka class
which this class was based off of.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@06d8177). Click here to learn what that means.
The diff coverage is 33.33%.

@@            Coverage Diff            @@
##             master    #1301   +/-   ##
=========================================
  Coverage          ?   72.25%
  Complexity        ?     6328
=========================================
  Files             ?      457
  Lines             ?    36266
  Branches          ?     4592
=========================================
  Hits              ?    26204
  Misses            ?     8855
  Partials          ?     1207

Impacted Files
Coverage Δ
Complexity Δ

...java/com.github.ambry.network/SSLTransmission.java
70.37% <33.33%> (ø)
76 <0> (?)

Continue to review full report at Codecov.

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


Custom props in dreyevr

Hello!
I'm curious as to how to go about importing props on DReyeVR in scenario_runner, since I can't seem to locate the folder that scenario runner spawns objects from.
we have encountered this line of code in the scenario object_crash_vehicle.py: 'vehicle.diamondback.century' but we are not sure where these attributes comes from:
212   first_vehicle = CarlaDataProvider.request_new_actor('vehicle.diamondback.century', transform)

If you want to import static props, please check out our tutorial on how to add custom road signs to the world (as an example).
To answer your question more specifically, the vehicle.diamondback.century is a C++ "identification tag" that is used to spawn the particular vehicle rather than any meaningful file path. All these vehicles are housed in Unreal/CarlaUE4/Content/Carla/Blueprints/Vehicles/ and each blueprint has its own identification assigned to it so that you can filter the vehicles as .filter("vehicle.*") for example (this also applies to other actor types like these.
For DReyeVR, we use a specific vehicle identification for our vehicles that follows harplab.dreyevr_vehicle.* to distinguish between carla vehicles and DReyeVR vehicles.
Hope this helps!

I apologize for the late reply, I got distracted with other tasks.
We didn't succeed with importing custom props, but we found another solution.

Hi!! I went through the tutorial to add props. But while placing the prop, we need to open the project which is at C:\carla\Build\UE4Carla\0.9.13-dirty\WindowsNoEditor\CarlaUE4\CarlaUE4.uproject if I am not wrong. The issue is when I try to open it, it says missing c++ file, and I am not able to add prop :/

Ah ok, I figured out. Need to make all changes in C:\carla\Unreal .... \CarlaUE4.uproject. After that, in x64 native tools command prompt , run make package in the carla directory.


docker stop times out and kill rabbitmq

In rabbitmq-start, we starts rabbitmq-server with exec, which is correct if the command we starts handles SIGTERM. rabbitmq-server is another shell script, that does some logic and then starts rabbitmq itself. However, this time, it is not using exec, hence, Dockers signals wont ever reach the rabbitmq server itself.

Might be an idea to trap both SIGTERM and SIGINT, so you can ^c from within the container

@jleskovar updated pull-request so we will trap SIGINT to.

Might be better to add the rabbitmq-start logic to the rabbitmq-server script directly?

Just opened an issue upstream with RabbitMQ at https://github.com/rabbitmq/rabbitmq-server/issues/47.

Fix will be in the next RabbitMQ release.


Stark Ramsey experiment

Summary
This PR adds new experiment module qiskit_experiments.library.stark that will contain several experiments with Stark tone. Usually fixed-qubit frequency architecture such as one of IBM Quantum backend doesn't provide a control knob of qubit frequency. However, we can still scan qubit frequency by applying an off-resonant drive that causes the Stark shift on the qubit.
This PR adds the most basic experiment of RamseyXY, that characterizes the amount of Stark shift at certain drive amplitude. This is the important experiment module to characterize TLS in the vicinity of the qubit.
Details and comments
The test experiment result is available in 546871be-e200-469b-bba7-ae49aefc3c78. This experiment result was obtained with the following experiment code:
from qiskit_experiments.library import StarkRamseyXY

channel = backend.configuration().control((0, 1))[0]
exp = StarkRamseyXY(0, 0.1, backend)
exp.set_experiment_options(stark_channel=channel)

exp_data = exp.run().block_for_results()

Note that IBM backends update the channel frame with set_frequency or shift_frequency command. Thus one of control channel is assigned to the Stark drive channel not to mixup the qubit frame.

Thanks @wshanks for your review. After reading your review comment, I added two major changes.

Added dedicated tutorial for Stark experiment.
Reorganized module structure. The dedicated module qiskit_experiments.library.stark is now absorbed by qiskit_experiments.library.characterization. StarkRamseyXY is moved to ramsey_xy.

Thanks @coruscating for reviewing the doc. I don't plan to add any experiment code with this PR. Probably we can write some experiment manual with another follow-up PRs #1009 #1010 .  Note that Stark experiments require dynamics simulation with at least three-level system Hamiltonian. I don't want to introduce another useless mock backend just for writing a tutorial.

@nkanazawa1989 One possible solution is to mock some demo code without running it using the jupyter-input directive, then show a figure of what the expected output might look like on a real device, just like the example experiment you linked to in the PR description. I think the manual might be a bit unclear right now for new users since it mentions Stark experiments in Qiskit Experiments but doesn't show the name of the experiment class and an example run. It's fine with me either way whether you want to add that in this PR or in one of the follow-up ones.

Thanks, maybe jupyter-input directive is one of the solutions. If CI can access entry in the result db with public access level, we could load experiment data form there in a hidden cell (I prefer this solution). Anyways this experiment is not really interesting. I started with this experiment because this is very simple while it provides sufficient code example for a reviewer to understand the code structure of Ramsey experiments. The experiment result you will get with this experiment looks identical to RamseyXY experiment.

Even if the figure just looks like RamseyXY, I think a plot is better than no plot. When trying to use a new experiment, I find it helpful to have a reference for what the data should look like. For some of the qiskit-experiments experiments that have no manual, I come back to the repo and look up their PRs to find a reference. Also, @coruscating didn't mention it but she might partly have been asking because any image would be an improvement here :slightly_smiling_face: :

Thanks Will for the second review. In c3724ba I added new section to explain the pulse technique I employed, which shows a nice thumb nail and gives better understanding of the technique for users who are not familiar with it.

This is good to me now @nkanazawa1989. I pulled it out of the merge queue for now because I think you should update the PR description since that becomes the commit message.

Thanks Will for catching this. I updated the PR description as well.


mentioned messages aren't shown if topic is muted.

I just noticed that if someone mentions me in a message and I have the topic muted, the message isn't shown in the "Mentions" tab on zulip-mobile, whereas it is shown on the web app.

Thanks for reporting this! I think this is a duplicate of #3472, so I'm going to close this and follow up there. I think this is pretty important, so I'm going to mark it as a P1.


Strange behaviour of surface rendering transparency

🐛 Bug
Depending on the angle I'm looking at a surface, the surface opacity shows the surfaces behind it, or doesn't.
To Reproduce
View a surface layer, reduce the opacity, switch to 3D mode, and rotate it. See #672 for sample code to start viewing a 3D surface.

Agreed something seems off here - you edited your example in #672 to make it more minimal - but the original was something like this:
import numpy as np
from skimage import data, measure
import napari
import scipy.ndimage as ndi

image = data.binary_blobs(128, n_dim=3)
verts, faces, normals, values = (
    measure.marching_cubes_lewiner(image.astype(float), level=0.7)
)
labels = ndi.label(image)[0]
vertex_labels = ndi.map_coordinates(labels, verts.T, order=0).astype(int)

with napari.gui_qt():

    viewer = napari.view_surface((verts, faces, values))
    surf_layer = viewer.add_surface((verts, faces, vertex_labels),
                                    colormap='gist_earth')
    viewer.dims.ndisplay = 3

for which I see

Not quite sure what I'm expecting to see / what the desired behavior is or if this is a correct minimal example.
My comment in #683 is really about the z-ordering of objects, less about transparency, so might not be so relevant

Hi, just in case, checking this with a more recent main (e8c0f37b0252) and changing the example code at https://github.com/napari/napari/issues/673#issuecomment-552645941 for the following (using the skimage.measure.marching_cubes function instead of skimage.measure.marching_cubes_lewiner which is private now):
from skimage import data, measure
    import napari
    import scipy.ndimage as ndi

    image = data.binary_blobs(128, n_dim=3)
    verts, faces, normals, values = (
        measure.marching_cubes(image.astype(float), level=0.7)
    )
    labels = ndi.label(image)[0]
    vertex_labels = ndi.map_coordinates(labels, verts.T, order=0).astype(int)

    with napari.gui_qt():

        viewer = napari.view_surface((verts, faces, values))
        surf_layer = viewer.add_surface((verts, faces, vertex_labels),
                                        colormap='gist_earth')
        viewer.dims.ndisplay = 3

I got the following:

As far as I can tell, this is what's happening:

the bottom layer is irrelevant (remove it and you get the same behaviour)
the contrast_limits_range is set by default to (1, 5)
all vertices have a value of 1 except for those few colored blobs
thus with that colormap, everything results in black except those few colored blobs (if you change to an inverted one like gray_r, it will be ok)

This can be solved by calculating correctly the initial range like we do in images. However, you'd still get opaque blackness where data is, because we're not discarding fragments at the 0 of the colormap, but painting them black. To get them to be transparent, we need a similar thing to what we recently did in #4556 (which may require some vispy work, but nothing crazy).
There's an extra "issue" which is the camera-direction-dependent change in the shading due to the light; afaik that should not happen, but I'm not super familiar with that. Maybe @kevinyamauchi can chip in, I think he worked on that?


Register Vue Component as Renderer / Editor

As far as I can tell from the docs, the only way to register a custom renderer or editor is to pass in a function or register it globally. Alternatively we can create HotColumns that serve as editors and renderers. What I would really like to do is register a vue component as a renderer or editor. Is that possible?
I see that internally, when HotTable sees a component is wraps it up to meet the function definition https://github.com/handsontable/vue-handsontable-official/blob/master/src/HotTable.vue#L129. Could that be exposed or shimmed somewhere?
My desired experience would be something like this:

// import the .vue component
import LinkRenderer from './renderers/link';

Handsontable.renderers.registerRenderer('LinkRenderer', LinkRenderer);

Is something like that possible now, or could it be added?
Thanks!

Unfortunately, no.
We've tried hard to expose wrapComponent() function to enable few more use cases.
import LinkRenderer from './renderers/link';
import { wrapComponent } fron '@handsontable/vue';

Mentioned registerRenderer:
Handsontable.renderers.registerRenderer('LinkRenderer', wrapComponent(LinkRenderer));

Standard settings object:
<hot-table :settings={{ columns: [{ renderer: wrapComponent(LinkRenderer) }] }} />

And <hot-column> settings:
<hot-column :renderer={ wrapComponent(LinkRenderer) } />

But the code fragment you've already mentioned in the first line has a reference to HotTable instance:
https://github.com/handsontable/vue-handsontable-official/blob/6621371767ddf74b2224b54c85559551ed0595f3/src/HotTable.vue#L129-L132
We need it to cache components for virtual rendering and we have to keep them separately for each instance. Columns and rendereres may differ between instances. The main reason for cache is performance: we don't want to recreate Vue components on every Handsontable render.

What an incredibly thorough response, thank you!
I clearly don't have the same grasp on the codebase as you so this may be naive, but would an optional third parameter to getRedererWrapper work? We're either allowed to pass in our our LRUMap or you use the one on the $vm.

That might work. But would require some shared interface for LRUMap. I think we should start with gathering use cases first. Why the current implementation isn't working for you?

Sure, happy to elaborate.
I would like to have my template set up like this:
<hot-table :settings='hotSettings' />

but since I can't declare a Vue component as a renderer, I end up having to do something like this:

<hot-table :settings='hotSettings'>
    <template v-for='column in hotSettings.columns'>
        <hot-column v-if='column.type === "date"'>
            <date-renderer hot-renderer></date-renderer>
        </hot-column>

        <hot-column v-if='column.type === "link"'>
            <link-renderer hot-renderer></link-renderer>
        </hot-column>

        <hot-column v-if='column.type === "mention"'>
            <mention-renderer hot-renderer></mention-renderer>
        </hot-column>
    </template>
</hot-table>

You can see how quickly this explodes. With a couple of custom renderers and editors, it starts to get pretty messy and hard to reuse the functionality in a clean way. I suppose I could make my own custom-hot-table vue component that wraps all this up and kinda keeps it out of sight out of mind, but that's not my preference.
I have to say, handsontable is one of the most amazing pieces of OSS I've used, right up there with Vue and Laravel. It makes my life so easy. So please don't think I'm complaining! Just offering feedback.

Thanks! Feedback is always welcomed. This is a valid use case, I just don't have a solution yet.
Maybe @handsontable/vue could have its own global register. But again, we cache components per instance. So we would need to rewrite it a little bit to read it from instance. Problem is that renderer has Handsontable instance but not HotTable. Or does it? 🤔
For now, I wonder if that would work:
<hot-table :settings='hotSettings'>
      <hot-column v-for='column in hotSettings.columns' >
          <component hot-renderer v-is='column.renderer'></component>
      </hot-column>
</hot-table>

Ok, I've got an idea.
We could read HotTable instance (and rendererCache) from Handsontable instance:
getRendererWrapper: function (vNode: VNode): (...args) => HTMLElement {
        return function (instance, TD, row, col, prop, value, cellProperties) {
            const rendererCache = instance.HotTable.rendererCache;

This way, wrapped component has no hardcoded $vm instance. It would be possible register it globally like in the first comment:
Handsontable.renderers.registerRenderer('LinkRenderer', wrapComponent(LinkRenderer));

Handsontable then uses renderers as strings and handles the rest. I like that.
There are no additional arguments in the wrapComponent method. Nice.
We would need to link HotTable instance to Handsontable instance somewhere here:
https://github.com/handsontable/vue-handsontable-official/blob/6621371767ddf74b2224b54c85559551ed0595f3/src/HotTable.vue#L86-L87
But Handsontable would have to know about the wrapper, probably in handsontable.d.ts. I'm not sure if I like the idea that module inside knows about the wrapper module.

Your last suggestion seems awesome to me. Of course I can't speak to

But Handsontable would have to know about the wrapper, probably in handsontable.d.ts. I'm not sure if I like the idea that module inside knows about the wrapper module.

but should that prove workable, the solution seems great!
It's working just fine for now so think on it for a while, but this would be a nice improvement for me!

Any ideas how to register custom component as editor for specified cell (cellProperties.editor)?

Any ideas how to register custom component as editor for specified cell (cellProperties.editor)?

You can't. For the same reasons discussed above.

Has anyone else figured out how to do this? I couldn't get any of the snippets posted above to actually work, and am hoping something has changed since this was originally asked that would make this possible nowadays?

Hi @mismith
Unfortunately, we have not yet implemented the changes that @wojciechczerniak mentions above.
And we don't have them on our roadmap yet.

@mismith As the complexity of what I needed grew, I ended up abandoning the vue wrapper altogether and just using the standard HoT library, taking advantage of custom renderers where I needed them.
Clearly I'm not aware of your use case, but this has served me extremely well. I think the wrapper is quite nice for basic stuff though.

@aarondfrancis Yeah, I think I may just have to build the renderer is native DOM after all :(
I was hoping to be able to reuse some existing file upload logic (in Vue-land) instead, and was unsure whether the snippets above were just guesses/POC or whether they would actually function (albeit as hacks, presumably)


Continue improving "Run and Debug" experience

The "Run and Debug" experience with no launch.json and no open editor could be improved further. See notes from https://github.com/microsoft/vscode/issues/146338#issuecomment-1128248014. Also,

The last selected dynamic debug config should not be remembered - this can be fixed
Maybe, always show welcome view when not debugging?
Look at how to avoid activating some extensions when pressing Run and Debug
Can the package.json contrib point for initial configurations be deprecated in favor of dynamic configurations?

"Add Configuration" is not working when triggerKind is vscode.DebugConfigurationProviderTriggerKind.Dynamic.

Works fine for me, can you explain some more what happens? Didn't check but I think this would be "initial" triggerKind

I think "Add Configuration" will always create a launch.json, that is the idea of that command as far as I'm aware. So you want to run "Add configuration" to start debugging without a launch.json?

So you want to run "Add configuration" to start debugging without a launch.json?

Is that the same as what the Debug: Select and Start Debugging command does? If so, maybe there should be an additional entry here - one for creating the config, and one for running an automatic one without creating a launch.json?

I think "Add Configuration" will always create a launch.json, that is the idea of that command as far as I'm aware. So you want to run "Add configuration" to start debugging without a launch.json?

We want to start debugging without creating the launch.json, which using the Dynamic provider is doing that for us.
However, with Dynamic triggerKind, the Add Configuration is not working.

maybe there should be an additional entry here - one for creating the config, and one for running an automatic one without creating a launch.json?

I think that is right. An additional entry for creating the configs would be useful.

I think I'm not clear on which scenario you're trying to avoid by not registering for Initial?

I believe the scenario @elahehrashedi is referring to is this:

I create launch.json (manually or otherwise) and save it.
I want to add another configuration, so I either choose "Run/Add Configuration..." from the menu, or open launch.json and click the [Add Configuration...] button on the bottom-right.
VSCode shows a list of all "configurationSnippets" compiled from all extensions that provide these in their package.json.

I would have expected that if my extension registers a debug configuration provider with DebugConfigurationProviderTriggerKind.Dynamic, its provideDebugConfigurations method would be invoked to contribute to this list.
Between "initialConfigurations", "configurationSnippets", "DebugConfigurationProviderTriggerKind" (btw, is it an enum or bit flags?) and the fact that when starting debugging without launch.json, the first method invoked on the debug config provider is resolveDebugConfiguration, and only if that one returns a null, will provideDebugConfigurations be invoked, makes the story around debug configurations very confusing.   I don't know if this feature be rationalized at this point while keeping the API backward-compatible, but please at least document it!

@roblourens I ran into this problem revamping the debug configurations for the Microsoft PowerShell extension.
This button:

only pulls from the hardcoded JSON in configurationSnippets rather than what I provide in provideDebugConfigurations
A major advantage of having dynamic launch configs is that I would be able to discover an initial entrypoint, but still allow them to change it, rather than relying on ${file} or some other special variable.


Problem with "reachability distance" formula

Hi, i have read your code and i have to say that it is a beautiful code. but it seems to have a small problem at below line in lof.py file.
https://github.com/czhongyu/outlier-detection/blob/842e14d7c011951728888ec249b4077be3f8f8ec/lof.py#L48
I think it should be: rd += max(dis[index][i], dis[kdn[index][i]][-1])   (max instead of min)
I read some articals about this algorithm, and and they all seem to use max instead of min. For example in this artical: https://en.wikipedia.org/wiki/Local_outlier_factor
And i try to compare your result from your code with sklearn.neighbors.LocalOutlierFactor, when i change min to max, they give the same result.
And by the way, thank you for your great code.

@nguyenhuuthuat09
Thank you for your comments! That's very nice of you and it means a lot to me! ❤  As to your suggestion on using max instead of min, I couldn't agree more and I'll get to it right away!


is this abandoned?

There are several pretty critical bugs that are left open for a while, I wonder what is the plan to support this library. Searching for alternatives, this library has the most mindshare it seems

https://github.com/python-amazon-mws/python-amazon-mws
Come on over - there are a few of us actively developing this


Release: hwc-buildpack (11-28)

Release reminder for hwc-buildpack
The ideal release date window for this buildpack starts on: 11-28 and ends on 12-03.

See diff from latest version and validate if a release is required.
Make sure the latest commit on  has passed tests on the CI
Refer release instructions. (private link)

Closing in favor of https://github.com/cloudfoundry/hwc-buildpack/issues/204


Use HiveCatalogName to export S3 statistics without name conflicts

This fixes the problem of conflicting JMX keys for S3 statistics
when Hive and Iceberg connectors are loaded.

CI failed -- https://github.com/prestosql/presto/issues/3049

@MiguelWeezardo please force push to rerun CI.

@kokosing i liked the previous version (https://github.com/prestosql/presto/commit/325a8c6c59d0a452b5f31247c66cc689cf694215) much better.
Why not KISS?

Why not KISS?

I don't find this approach much harder than the previous one. Maybe it just require to know more details about guice. I see following issues with previous approach:

it requires to pass variable through constructors, it makes it a bit more difficult to maintain module classes. For example when you move this module you might need to update constructors.
it is opposite to guice
it is opposite to HiveCatalogName bean purpose. If we are not able to use it to access catalog name in guive then it means that HiveCatalogName is somehow broken.
this approach works well work for additional modules, so same thing is implemented in the same way across different modules.

@kokosing @findepi If tests pass, could one of you merge this? I don't have permissions for that.

@kokosing @findepi Tests failed twice with the same error:
com.github.dockerjava.api.exception.DockerClientException: Could not pull image: failed to register layer: Error processing tar file(exit status 1): write /usr/hdp/<IP_ADDRESS>-78/hive/hive.tar.gz: no space left on device
Is there anything I can do about this? Or should I just keep changing the commit timestamps and hope for the best?

Per https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources

14 GB of SSD disk space

I wonder if we were always close, or if something changed recently.

Merged, thanks!