Anonymous login not working in MQTT addon v3

After upgrade MQTT addon to v3 and Hassio to 0.81.6, the anonymous login is not working even if I change the "anonymous" : false to true.

There is some error report in HA forum:
https://community.home-assistant.io/t/mosquito-mqtt-update-v3-broke-my-hassio/76991/51

Same issue here.
I have numerous MQTT devices, all on a segregated internal network. I do not want to have the MQTT server be password protected or governed by an access control list of any kind.
After this update, setting "anonymous" : true has no effect, and devices seem to REQUIRE a username/pass to be in the ACL before it allows access to the broker.

ACL are currently by pass. I have no issue here with anonymous. Do you have save the config and press restart after the change on the add-on?

ACL are currently by pass. I have no issue here with anonymous. Do you have save the config and press restart after the change on the add-on?

Yes.
My configuration is:

"logins": [],
"anonymous": true,

I've restarted the add-on plenty of times and also have since upgraded to v4.
And still I get these errors:

1541828382: New connection from <IP_ADDRESS> on port 1883.
[ERROR] Auth error with DVES_USER
1541828382: Socket error on client , disconnecting.

I'm sure the client might be trying to say it has a user, but I don't care, and neither should the broker. In version 2 this was simply not an issue. I did not have any ACL defined, and anonymous was set to true and it "just worked". This is all in an internal segregated network, I do not want any type of authentication.
V3 and V4 appear have a much more strict definition of what "anonymous" means, so how do I make this new version functionally equivalent to V2?

Hi, seems  "anonymous": true, works, if you see: ACL denying access to client with dangerous client id "mosqsub/13224-subsonic" it is complainig about client id, where should be no slash.

Yes changing "anonymous": true works, but what would be a proper fix to change the client id naming schema?

Anonymous still looks to be non-functioning :(

Hi marc-gist,
I have the same issue, that my anonymous logins to mosquitto server are not working. Did you find some solution for you issue?
BR, Joe


YOLO model to deeplarnjs 0.5.0

Updating the YOLO MobileNet model to use 0.5.0.

This change is

Review status: 0 of 4 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


fix: null label fallback (release w/o name)

this undoes the suggestion in
https://github.com/prismicio-community/ruby-kit/pull/128/commits/d54dfecc727f5910e5b3e692496ae2aa1c968315 since it's fundamentally different behavior. fetch only fallsback to the second param if the key is missing. but there is a label key in our hash, so it returns nil, persisting the nil.downcase call. This makes it so the value properly falls back when nil.
It also doesn't downcase the id since that may actually be case sensitive.
I tested this fix against a codebase reproing the issue and all appears well.

This is an internal PR of the changes for our fork, separate from the upstream PR https://github.com/prismicio-community/ruby-kit/pull/129.
We're running this in Prod and the changes were reviewed, so I'm going to merge this. I was mostly wanting to ensure CI runs and passes against these changes.


pacaligo: adding support for pascaligo, http://ligolang.org

Summary
This PR adds the language definition for pascaligo, a layer 2 smart contract language for the Tezos blockchain.
http://ligolang.org

@DefinitelyNotAGoat Thank you for making this PR.
However, I have a little question: Isn't this language definition basically the combination of PascalLIGO and CameLIGO which are two languages with different syntax?
And a small note: the tests failed because components/prism-ligo.min.js isn't up to date. Rebuilding Prism should fix this issue.
I'll do the full review soon.

Thanks @RunDevelopment! So this is actually the pascaligo version so I will edit to make sure that's noted, rebuild and push.

Rebuilt, and pushed name changes to accurately reflect pascaligo.

@RunDevelopment thanks for the review.
I added some new changes to correct the issues. Let me know if you need anything else!

Thanks for the tips @RunDevelopment! I re-pushed new changes to reflect the change requests.

Nice!
Could please also take a look at the PR I send you?

I think this is ready.
Thank you for contributing @DefinitelyNotAGoat!


WFLY-10269 RemoteStore should use unresolved hostnames to accomodate dynamic environments

https://issues.jboss.org/browse/WFLY-10269

Asking some questions in https://issues.jboss.org/browse/WFLY-10269?focusedCommentId=13565130&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-13565130


Remove The Parser Hack For If-Let

The parser used to rewrite
if let x: T

into
if let x: T?

This transformation is correct at face value, but relied on being able
to construct TypeReprs with bogus source locations. Instead of having
the parser kick semantic analysis into shape, let's perform this
reinterpretation when we resolve if-let patterns in statement
conditions.

@swift-ci test

@swift-ci test source compatibility

@swift-ci test source compatibility release

Hm... so this is source breaking because we didn't catch
 if let _ = b ?? b {}

where b : Any before. Let's hope it passes source compat, because missing the error is a hole.

@swift-ci test source compatibility release

Build failed
Swift Test OS X Platform
Git Sha - f68cecd1f06b6a1e4f3183b8cb905d65ed666204

Build failed
Swift Test Linux Platform
Git Sha - f68cecd1f06b6a1e4f3183b8cb905d65ed666204

@swift-ci smoke test

@swift-ci smoke test

@swift-ci test Windows

@swift-ci test Windows

@swift-ci test Windows

⛵


[IRGen] Use memcpy for BitwiseCopyable archetypes.

Based on https://github.com/apple/swift/pull/69938 .  This PR adds two new commits.
Besides being an optimization, using memcpy directly rather than a value witness is required in order to interact with unaligned instances of such types: the value witness functions expect their arguments to be aligned.
rdar://96919870

@swift-ci please test

@swift-ci please test

Let's use the PR mentioned above https://github.com/apple/swift/pull/69938 that surfaces the protocol and adds a feature flag to discuss those aspects.

@swift-ci please test


DS-3136: Prevent the occurrence of internal server error while adding a bitstream to an item if the upload button is pressed without selecting a file

reviewed the code and tested it on @marsaoua machine.
+1

+1 via code review


[fix] File transport under stress hangs logger

I noticed in one of our project using winston3 that all our logging would stop after a few large (sometimes very large) log messages. The use of the file transport was the cause and it seemed like it was not draining correctly. Upon investigation I found that the drain mechanism seemed flawed by using a drain counter and not resetting it to zero when the drain event occurs.
Additionally the file transport would attempt to write to the stream after receiving the indicator to stop and wait for a drain event.
I have tested this against the examples provided by @juanda99 and @kramer65 mentioned in #1144 and they both seem to work although the @kramer65 code had to by slightly modified to allow the while(true) loop to give the event loop some time to breathe.
I know this transport has been particularly tricky to get right and I hope this helps but unfortunately as it stands now, winston3 rc5 still can get the file transport stuck leading to all logging getting stuck. I am trying to create an isolated test case although my attempts so far have not gone well.

Here is an example that using winston master should freeze fairly quickly as it is an extreme example.
https://pastebin.com/cZAikMTf

Thanks for adding the test. If @ChrisAlderson is 👍then this should be good to go.

Looks great! Thanks for the contribution. We could add one more test for the synchronous logging I have it below, you can add it @mempf or we can add it post-merge.
  it('should handle a high volume of large writes synchronous', function (done) {
    const logger = winston.createLogger({
      transports: [new winston.transports.File({
        filename: logPath
      })]
    });

    const counters = {
      write: 0,
      read: 0
    };

    const msgs = new Array(10).fill().map(() => ({
      counter: ++counters.write,
      message: 'a'.repeat(16384 - os.EOL.length - 1)
    }));
    msgs.forEach(msg => logger.info(msg));

    setTimeout(function () {
      helpers.tryRead(logPath)
        .on('error', function (err) {
          assume(err).false();
          done();
        })
        .pipe(split())
        .on('data', function (d) {
          const json = JSON.parse(d);
          assume(json.level).equal('info');
          assume(json.message).equal('a'.repeat(16384 - os.EOL.length - 1));
          assume(json.counter).equal(++counters.read);
        })
        .on('end', function () {
          assume(counters.write).equal(counters.read);
          done();
        });
    }, 10000);
  });

Added your synchronous test, nice catch with that one.

Looks good to merge @indexzero (travis check isn't passing because npm is having issues).

@mempf - Thanks for the fix. Unfortunately it still doesn't work for us. You say this however:

although the @kramer65 code had to by slightly modified to allow the while(true) loop to give the event loop some time to breathe

Can you share with us how you modified my code? We tried this in our production app and although it doesn't stop the logging within a second like my example code does, it does make it hang within about 15 minutes. We've got a very high log throughput which is detrimental to understanding and managing our application (which handles financial decisions).
Also; would you know a workaround for this? We might for example queue Winston logging alltogether using something like kue. Would that be an option or do you see problems with that?

@kramer65 This whole issue is about the file writing buffering getting backed up because the OS is not writing it to disk fast enough. If you have enough sustained logging beyond what is being written to disk for long enough I imagine something in node will break, maybe even run out of memory. Is it possible to monitor the ram/heap usage of your application and see if it grows out of control.
If I recall the modified version of your example was simply to exit out of the while loop eventually. Since node is single threaded a while(true) loop will run forever never giving a chance for other code to run.


Mettalex token

Mettalex
Team Background:
Humayun Sheikh, CEO- founding investor in DeepMind (acquired by Google).
Toby Simpson, COO- producer of the successful a-life Creatures series of games and a developer at DeepMind.
Thomas Hain — CSO. A Professor at Sheffield University and established scientist in advanced machine learning AI.
The company includes over 50 Full-time Employees.
About:
The Mettalex team is creating a commodities exchange to enable market participants to gain economic exposure to the spot price and derivatives of commodities and other instruments. This will allow hedging of risk for physical holders of the commodity or leveraged positions for speculators. Positions are taken using specially designed ‘position tokens’.
Mettalex is produced by Fetch.ai, and part of the Fetch.ai orgamisation, whose token is already on Metamask.
Contact Information:
Token Price:
Website: https://mettalex.com/
Email<EMAIL_ADDRESS>whitepaper: https://mettalex.com/wp-content/uploads/Mettalex-Litepaper_v1.0.pdf
Twitter: https://twitter.com/mettalex
Github: https://github.com/fetchai

I changed the image to an svg as per comments

@douglasb99 can I ask also for svg logo for FET? Also, I see that the token name is Fetch not FET, could you fix it as well?

Fetch

The token is called FET but the company is called FETCH. I will swap that to an svg and update this PR

@douglasb99 when I am checking Etherscan data - https://etherscan.io/token/0xaea46A60368A7bD060eec7DF8CBa43b7EF41Ad85 looks like ERC-20 name filed is equal to Fetch I think for end users will be good to have alignment in this area

@douglasb99 did you had a chance to take a look on this?

I have changed name to Fetch and updated pngs to svgs. Thanks, sorry for the delay.

@douglasb99 thanks. I will have 1 more ask. I think the white version of Fetch logo will be not visible in Metamask UI - can you use a dark blue one similar to that one from etherscan https://etherscan.io/token/0xaea46A60368A7bD060eec7DF8CBa43b7EF41Ad85 ?

@douglasb99 thanks. I will have 1 more ask. I think the white version of Fetch logo will be not visible in Metamask UI - can you use a dark blue one similar to that one from etherscan https://etherscan.io/token/0xaea46A60368A7bD060eec7DF8CBa43b7EF41Ad85 ?
Same thing for Mettalex logo

I have changed them for the darker logo. If there are any further issues please say.

@douglasb99 Seems that Fetch logo is still white.

Thx for all updates @douglasb99


[I10n] Add Chinese (Hong Kong) (zh-HK) locale

[x] I have followed (at least) the PR section of the contributing guide.

Please let me know if I need to edit something.

I've added Chinese (Hong Kong) to the localization guide's document. Let me know if there is any further changes needed.

I can't review this considering I don't speak any Chinese dialect.

@kshuiroy Thanks


Ignoring .csmapper?

I created a .csmapper file but it seems it's ignored.
{
  "plugin/coffee/*": ["/coffee/", "/js/built/"]
}

Running from my /home/tylercollier/railsapp directory:
$ coffeestand --nolint
compiled - /home/tylercollier/railsapp/app/assets/javascripts/base.coffee => /home/tylercollier/railsapp/app/assets/javascripts/base.js

To make sure it was looking at the .csmapper file at all, I tried this, expecting it would complain:
$ coffeestand --nolint --mapper file_that_doesnt_exist

But it didn't.

I saw your comment on issue 1 that future work would be on your bystander project. No work has been done on either project in a while, but I figured this was worth reporting because it's an awesome project, I need it, and you clearly spent time creating the README and making it great.


[MTDSA-6667] - Removed sample endpoint from raml

you've got rid of the schemas but not the examples

Still not removed the scenarios


The generated project has old style csproj

HI, I found that if I create a project following the steps described in this article, vs is generating old csproj. Is there any way I can generate the new-style csproj?

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

ID: 6e19f646-d820-7582-0672-e5d3b3fe8966
Version Independent ID: 37f94f23-23bb-3306-840a-1291ca0e66b5
Content: Load test your app before release
Content Source: docs/test/load-test/run-performance-tests-app-before-release.md
Product: devops
GitHub Login: @alexhomer1
Microsoft Alias: ahomer

Thank you for your feedback. I have passed this on to the product team for advice.

@samsil - the steps in the doc are correct. And the project it generates is also the right one for load testing. Can you elaborate on the old csproj and new-style csproj?
Closing this issue for now. Feel free to reactivate with the details on old/new style..


Rerun many time

It would be nice to add the renew option  with number of repetitions.
I.E.
--rerun --rerun-count=2

Not going to do as this will influence people to ignore flaky tests - behaviour I don't want to encourage.


Enum zero-value does not pass from C++ to Python server.

Enum zero-value does not pass from C++ to Python server. Maybe any server.
Non-zero values got pass to server
Enum zero-value got received from Python server by C++ client.
What version of gRPC and what language are you using?
gRPC from github , compiled with included protobuf
commit 9a69478498232b6b42169f8a1a389b51fb4e03ec
Merge: 1b4be41a72 9104884a19
Author: Nathaniel Manista<EMAIL_ADDRESS>Date:   Sat Jun 24 21:46:07 2017 -0700

pip freeze
grpc==0.3.post19
grpcio==1.4.0
grpcio-tools==1.4.0
protobuf==3.3.0

What operating system (Linux, Windows, …) and version?
Linux
What runtime / compiler are you using (e.g. python version or version of gcc)
gcc: 4:6.3.0-2ubuntu1 on client
server
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2

What did you do?
cyclop.proto
syntax = "proto3";

// A Person corresponds to Person ORM.
message Person {
    uint32 id = 1;
    string first_name = 2;
    string last_name = 3;
    string patronymic = 4;
    // A person`s sex.
    enum Sex {
        MALE =0;
        FEMALE = 1;
    }
    Sex sex = 5;
    // A birthday date.
    string birthday = 6;

    // A status of a person record.
    enum Status {
        VALID = 0;
        ARCHIVE = 1;
        BLACK = 2;
    }
    Status person_status = 7;

    // An iris code(s).
    Code code = 8;
}

// A responce for CRUD operations.
message CRUDResponse {
    // A result of operation .
    enum Status {
        SUCCESS = 0;
        FAIL = 1;
    }
    Status status = 1;
}

// A client oriented service.
service PersonService {
    // RPC on click button `Record`.
    rpc CreatePerson(Person) returns (CRUDResponse) {}
}

Client processing QML UI
PersonServiceClient.h
#pragma once
#include <iostream>
#include <memory>
#include <string>

#include <QObject>
#include <QString>
#include <QDate>
#include <grpc++/grpc++.h>
#include "cyclop.grpc.pb.h"

using grpc::Channel;
using cyclop::PersonService;

class PersonServiceClient : public QObject {
    Q_OBJECT

public:
    PersonServiceClient(QObject* pobj /*=0*/, std::shared_ptr<Channel> channel)
        : QObject(pobj), stub_(PersonService::NewStub(channel)) {}

public slots:
    //Create Person
    void createPerson(QString first_name, QString last_name,
                      QString patronymic, quint32 sex,
                      QDate birthday, quint32 person_status);
};

PersonServiceClient.cpp
#include "PersonServiceClient.h"

using grpc::Channel;
using grpc::ClientContext;
using grpc::Status;
using cyclop::CRUDResponse;
using cyclop::Capture;
using cyclop::Person;

void PersonServiceClient::createPerson(QString first_name, QString last_name,
                                       QString patronymic,
                                       quint32 sex, QDate birthday,
                                       quint32 person_status)
{
    std::cout << "createPerson user input:" <<
                 " first_name=" << first_name.toStdString() <<
                 ", last_name=" << last_name.toStdString() <<
                 ", patronymic=" << patronymic.toStdString() <<
                 ", sex=" << sex <<
                 ", birthday=" << birthday.toString(Qt::ISODate).toStdString() <<
                 ", person_status=" << person_status <<
                 std::endl;

    // Data we are sending to the server.
    Person request;
    request.set_first_name(first_name.toStdString());
    request.set_last_name(last_name.toStdString());
    request.set_patronymic(patronymic.toStdString());

    // Convert quint32 sex to cyclop::Person_Sex.
    switch (sex) {
    case 0:
        request.set_sex(cyclop::Person_Sex_MALE);
        break;
    case 1:
        request.set_sex(cyclop::Person_Sex_FEMALE);
        break;
    default:
        // TODO: throw
        break;
    }
    request.set_sex(static_cast< ::cyclop::Person_Sex >(quint8(sex)));
    request.set_birthday(birthday.toString(Qt::ISODate).toStdString());

    // Convert quint32 sex to cyclop::Person_Status_VALID.
    switch (person_status) {
    case 0:
        request.set_person_status(cyclop::Person_Status_VALID);
        break;
    case 1:
        request.set_person_status(cyclop::Person_Status_ARCHIVE);
        break;
    case 2:
        request.set_person_status(cyclop::Person_Status_BLACK);
        break;
    default:
        // TODO: throw
        break;
    }

    std::cout << ", Person_Sex_IsValid=" << cyclop::Person_Sex_IsValid(sex) <<
                 ", Person_Status_IsValid=" << cyclop::Person_Status_IsValid(person_status) <<
                 ", Person_Sex_Name=" << cyclop::Person_Sex_Name(request.sex()) <<
                 ", Person_Status_Name=" << cyclop::Person_Status_Name(request.person_status()) <<

                 std::endl;

    // Container for the data we expect from the server.
    CRUDResponse response;

    // Context for the client. It could be used to convey extra information to
    // the server and/or tweak certain RPC behaviors.
    ClientContext context;

    // The actual RPC.
    Status status = stub_->CreatePerson(&context, request, &response);

    // Act upon its status.
    if (status.ok()) {
        switch (response.status()) {
        case cyclop::CRUDResponse_Status_FAIL:
        {
            this->setStatus(QString(tr("!")));
            break;
        }
        case cyclop::CRUDResponse_Status_SUCCESS:
        {
            this->setStatus(QString(tr(".")));
            break;
        }
        }
    }
    else {
        this->setStatus(QString::fromStdString(status.error_message()));
    }
}

Server
class PersonService(cyclop_pb2_grpc.PersonServiceServicer):

    def CreatePerson(self, request, context):
        """RPC on click button `Record`."""
        print("CreatePerson request")
        print(request)

        if (CAPTURE_STATUS == cyclop_pb2.Capture.FULLOK):
            return cyclop_pb2.CRUDResponse(status=cyclop_pb2.CRUDResponse.SUCCESS)
        else:
            return cyclop_pb2.CRUDResponse(status=cyclop_pb2.CRUDResponse.FAIL)

What did you expect to see?
from client std::cout
createPerson user input: first_name=2, last_name=1, patronymic=3, sex=0, birthday=, person_status=0
, Person_Sex_IsValid=1, Person_Status_IsValid=1, Person_Sex_Name=MALE, Person_Status_Name=VALID

python server
CreatePerson request
first_name: "2"
last_name: "1"
patronymic: "3"
sex: MALE
person_status: ACTIVE

What did you see instead?
python server
CreatePerson request
first_name: "2"
last_name: "1"
patronymic: "3"

Results are equal if use:
    switch (sex) {
    case 0:
        request.set_sex(cyclop::Person_Sex_MALE);
        break;
    case 1:
        request.set_sex(cyclop::Person_Sex_FEMALE);
        break;
    default:
        // TODO: throw
        break;
    }

Or use:
    request.set_sex(static_cast< ::cyclop::Person_Sex >(quint8(sex)));

I blame this generated code in cyclop.pb.cc:

void Person::MergeFrom(const Person& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:cyclop.Person)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from.first_name().size() > 0) {

    first_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.first_name_);
  }
  if (from.last_name().size() > 0) {

    last_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.last_name_);
  }
  if (from.patronymic().size() > 0) {

    patronymic_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.patronymic_);
  }
  if (from.birthday().size() > 0) {

    birthday_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.birthday_);
  }
  if (from.has_code()) {
    mutable_code()->::cyclop::Code::MergeFrom(from.code());
  }
  if (from.id() != 0) {
    set_id(from.id());
  }
  if (from.sex() != 0) {
    set_sex(from.sex());
  }
  if (from.person_status() != 0) {
    set_person_status(from.person_status());
  }
}

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment?

@denis-trofimov: you've reported this as a problem between a C++ client and a Python server. Have you confirmed that it does not exist between a C++ client and a C++ server? Have you confirmed that it does not exist between a Python client and a Python server?

Hi @nathanielmanistaatgoogle
I ask reasonable questions. I don't check others because it is outside my use case at work.
I did workaround just for now, add a dummy key with zero value for all messages I send from CPP. It works just fine.
enum Sex {
        SEX0 = 0;
        MALE = 1;
        FEMALE = 2;
    }

Could the problem be that the zero values are simply not printed by your server-side print(request)? What happens if you print request.sex in your server-side Python code? Could it be that the problem is that zero values passed from client to server, but that they simply aren't printed?

As it prints sex: FEMALE I don't check python server generated code. But it could also be a server flaw, but not in my custom code, as you can see. It just prints given request as a dict.

Aside from what is printed to the console, in what way is you program behaving incorrectly because of this defect? If the client-side code assigns the zero value of an enum to a field of the request, does the server-side code not see the zero value of the enum assigned to the field when it reads the request?

This may be working as intended. In proto3, enum default value is 0 and if you are using default value, it does not go on the wire. I do not know about python but maybe it does not (cannot) distinguish whether you did not set the value or set to default. If you do not want MALE to be default, you should do your workaround like UNKNOWN = 0.
See: https://developers.google.com/protocol-buffers/docs/proto3#default

@y-zeng yes the most plausible it is not goes over wire.
https://developers.google.com/protocol-buffers/docs/reference/python-generated#enum
For Python, it is not working as I want it. smile
If I look for 'sex' in request it will be false (not checked yet)
The simple example show d is a dict in Python.
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> d = {'sex': 0}
>>> print d
{'sex': 0}
>>> 'some' in d
False

@y-zeng  I checked that  good idea it to set unique names for dummy fields. There would be names conflict otherwise, I have example at work.

@denis-trofimov You probably wanted to mention @yang-g?

@y-zeng Yes , sorry it was 1 A.M. and I was sleepy.

Closing since I think this is a Protocol Buffers issue rather than a gRPC issue: whatever behavior you're seeing that is a problem, you see the behavior when you simply serialize and deserialize a message (possibly writing it to your filesystem and reading it back if you need to cross a programming language barrier), right?
It's not the case that transmitting the message via gRPC is required to demonstrate the problem, right?
@xfxyjwf and @anandolee, what do you make of what's reported here?

@nathanielmanistaatgoogle Should I put this issue up in Protocol Buffers describing it from the start? What do you recommend?

Yes, I'd recommend filing an issue with Protocol Buffers with a minimal reproduction that doesn't involve gRPC.


Fix build failure when used with SwiftLint 0.16.1

Today I noticed that when building on a machine with SwiftLint 0.16.1 the build fails. This is due to a new SwiftLint rule, shorthand_operator, which has been introduced in version 0.16.1.
This PR updates the code to be complaint with that rule. It simply replaces let foo = foo + bar with let foo += bar.
An alternative to this option is to disable the rule in the .swiftlint.yml config file. I'm happy to close this and submit a new one if that's the preferred style 😄 .
My suggestion is to keep it enabled, as it makes the code more succinct.

Current coverage is 94.68% (diff: 100%)

Merging #200 into master will not change coverage

@@             master       #200   diff @@
==========================================
  Files            15         15
  Lines           564        564
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            534        534
  Misses           30         30
  Partials          0          0

Powered by Codecov. Last update ba34b68...4f01964

Thanks for this fix @mokagio!
This brings up an interesting point; should we switch to use the CocoaPods version of SwiftLint and pin it to a certain version? While it generally would make sense, it would force developers to use CocoaPods instead of Carthage.
With that in mind, it's probably best to just always support the latest version of SwiftLint?
Either way; thanks a lot for the contribution 🎉! We're inviting all contributors to become members of the org - this will make future contributions easier in case you are interested. If not, feel free to ignore the invite.

No worries @Ben-G I have been using (and plan to use more and more) ReSwift both in my side projects and at work with the team at iflix. It's a pleasure to be able to give back a bit! 😄 .
My two cents:

This brings up an interesting point; should we switch to use the CocoaPods version of SwiftLint and pin it to a certain version? While it generally would make sense, it would force developers to use CocoaPods instead of Carthage.

For a framework to be pullable only via one dependency manager seems like a limitation to me. I would either not use it, or find a workaround.

With that in mind, it's probably best to just always support the latest version of SwiftLint?

That's a good question, as keeping it up to date could add some maintenance burden. On the other hand, being up to date with SwiftLint means having a tidier codebase (from a certain point of view at least), so it sound desirable to me.

Either way; thanks a lot for the contribution 🎉! We're inviting all contributors to become members of the org - this will make future contributions easier in case you are interested. If not, feel free to ignore the invite.

I'd be honoured to be part of the org 💚 .

For a framework to be pullable only via one dependency manager seems like a limitation to me. I would either not use it, or find a workaround.

The move to CocoaPods Ben describes wouldn't affect people using the framework in other projects, only for working on the framework itself.


[WIP] Add Python chx::Device wrapper class and fix ndarray pickling

Fixes #7974

Seems like a lot of tests are blowing up 🤯

That's expected. I need to fix many places in the binding.

Taken over by #7988


Add storage formatting to sway-fmt-v2

closes #2069.

@eureka-cpu I had to add storage_width, and storage_single_line for deciding when to format to multiple lines, just like structs. This might be introducing an "extra" layer of configurability that we do not want. While addressing  #2114 we might want to touch these places as well. I think the issue is general enough to cover this as well so we should not need a separate issue but would love to hear your thought on this. I can also link this comment to there for more visibility.

Once again I am in need of your reviews 🙌  😄 @mitchmindtree @sezna @eureka-cpu

Poking @sezna for review


Remove github button

get a github icon/img and place it in the same row as youtube and devpost

Pls assign it to me

please assign it to me


[billing] Manually collect billing costs on a monthly basis for all our projects

We are trying to recover unrecovered cloud costs up until March 2023. This issue tracks it for hubs with their own dedicated projects.
Upto the end of March 2023, produce a spreadsheet with cloud costs for the following projects, going as far back as possible:
GCP
Default billing account

[x] awi-ciroh

[x] linked-earth

[x] m2lines

[x] qcl

[x] leap (billing account

AWS
Accessible from here after logging in to the '2i2c-sandbox' aws account from 2i2c.awsapps.com/start/

[x] nasa-cryo-hubs
[x] ubc-eoas
[x] uw-gridSST
[x] uw-hackweeks
[x] victor

This will be manually picked up from the cloud console by hand.

I also found a 2022-02 entry for uwhackweeks by looking at the individual payments made to AWS in https://us-east-1.console.aws.amazon.com/billing/home?region=us-east-1#/paymentsoverview/transactions, looking for things missed and finding we had something in march.

This is done!


feature: Add support for selecting problem of today.

Now you can select problem of today from the navigation section of the LeetCode page. Support CN and EN endpoints.

This feature used my updated version of vsc-leetcode-cli, which added -d argument to the show command to make it possible to fetch problem of today. The merge request is stated here: https://github.com/leetcode-tools/leetcode-cli/pull/60 . You might need to merge that MR first and update the NPM repository and change the vsc-leetcode-cli version here.

同意,非常期待的功能


Dim Screen

Description of the new feature / enhancement
The brightness of the top Windows remains unchanged, the background and applications behind are dimmed to help users focus on the task they need to perform.
Haven't used the Dim Screen feature yet

Used the feature as described above

Scenario when this would be used?
Helps users focus more on a task they need to do and reduces light brightness to save battery power
Supporting information
An example app of my idea on the App Store for Mac
And examples from some available support applications of some computer brands for Windows (eg. My ASUS)

/dup #13035

It is a good idea, just already captured by some other users. Check out this list of common issues. If you have more ideas, then you can see if anyone else has already suggested it and +👍 their issue.
https://github.com/microsoft/PowerToys/wiki/Common-Triage-Issue


WIP: add PPM format support

This is a PR to add Netbpm's PPM format to Pixie. See issue #359 for more information on the format.
List of things to do:

[x] CLI front end support
[x] PPM encoder
[x] PPM decoder

[x] P3 (plain) format
[x] P6 format

[x] Tests
[x] Add to documentation

Looks pretty good, thank you for the PR. can't wait for it to be finished.

Thanks.
This is the first time for me working on a "real" project in Nim, so any criticism is highly welcome.

Does PPM support alpha? I think when writing out you need a convert image to straight alpha first?

Good point, PPM does not support transparency or the alpha channel. I incorrectly did .rgba(), but I've now removed that so transparency is blended with black instead.

Do you think its ready to go? Or are you still working on it?

Functionality wise it's good to go, but I was wondering whether the code could be improved, but if you think it looks fine then it could be merged.

Actually, scratch that, I've just found bug in my implementation.

Okay, I've fixed the bug and added a test case for it.
When running tests, all of the produced images should be identical. I usually check manually by running md5sum tests/fileformats/ppm/!(*.master.ppm) in bash (needs extglob set), but should I instead be assert-ing this in the test file itself?

I think you should assert. PPM has no compression so you can just have a master and check that the file bytes match. Then there is not need for manual check.


[INTERNAL] README: Move documentation to UI5 Tooling repository

Related to https://github.com/SAP/ui5-tooling/pull/160

Coverage decreased (-0.02%) to 85.969% when pulling be3d07a8d83a42acaf2224c1825b2be54dbd4153 on consolidated-docs into 580bf1003298b2b227db87461de794b7e2385c3d on master.


Policy Seeding Data Update 24.05. Scope

Summary
Update policy hub seeding data to the latest and greatest policy definition
Details
The policy namespaces (leftOperand and rightOperand values) got recently updated and need to get adjusted for the policy hub
Membership
{
  "constraint": {
    "leftOperand": "cx-policy:Membership",
    "operator": "eq",
    "rightOperand": "active"
  }
}

Dismantler
{
  "constraint": {
    "leftOperand": "cx-policy:Dismantler",
    "operator": "eq",
    "rightOperand": "active"
  }
}

Dismantler with Brand
{
  "constraint": {
    "leftOperand": "cx-policy:Dismantler.allowedBrands",
    "operator": "in",
    "rightOperand": [
      "Brand A",
      "Brand B"
    ]
  }
}

FrameWork Credential
{
  "constraint": {
    "leftOperand": "cx-policy:FrameworkAgreement",
    "operator": "eq",
    "rightOperand": "[subtype]:[version]"
  }
}

*note; the sub-type is the UseCase such as "traceability", "pcf", etc.

Purpose
{
  "constraint": {
    "leftOperand": "cx-policy:UsagePurpose",
    "operator": "eq",
    "rightOperand": "cx.core.[string]:[version]"
  }
}

Result of the policy with the specific data
Framework - example traceability
{
  "constraint": {
    "leftOperand": "cx-policy:FrameworkAgreement",
    "operator": "eq",
    "rightOperand": "traceability:1.0"
  }
}

NEW Policy Attribute(s)
for the frameworkAgreement we need to add the following sub-types

CircularEconomy
=> technicalKey: FrameworkAgreement
=> value: circulareconomy
=> version: 1.0

DemandCapacity
=> technicalKey: FrameworkAgreement
=> value: demandcapacity
=> version: 1.0

Puris => version "1.0"
=> technicalKey: FrameworkAgreement
=> value: puris
=> version: 1.0

BusinessPartner => version "1.0"
=> technicalKey: FrameworkAgreement
=> value: businesspartner
=> version: 1.0

TO BE REMOVED Policy Attribute(s)
following policies need to get removed

Framework resilience
Framework sustainability

@AnuragNagpure  note that I enhanced the new attribute value details ++ the info that the seeding data will also need to get updated.

@AnuragNagpure
remove FrameworkAgreement... from Policies
Add one FrameworkAgreement policy
assign all useCases to the framework policy
add for all previous existing frameworks an attribute with the value after FrameworkAgreement. and add the version
example:  FrameworkAgreement.behavioraltwin = behavioraltwin:1.0
for traceability there need to be the versions 1.0, 1.1 & 1.2 that means 3 entries in the attribute table
create a new table policy_attribute_assigned_use_cases with a link from policy_attribute to use_case (relation between the tables is many to many)
to create the table a new migration is needed. please add seeding for this new table
/cc @jjeroch


Update virtual-machines-windows-powershell-sample-create-vm-iis.md

Fix a header (remove unwanted character).

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

Thanks @alexandair
#sign-off


Client threads hang when they cannot connect to master with high contention

Alluxio Version:
v2.1.0
Describe the bug
Threads accessing the Alluxio FileSystem object may hang when there is high contention for resources and the client cannot connect to the master.
To Reproduce
Attached is a patch containing an executable that can be run from the Alluxio examples folder
maxfile.patch.txt
Apply the above patch onto master or branch-2.1 and then compile Alluxio
./bin/alluxio runClass alluxio.cli.MaxFile --threads 64 &

Let the above program run for 1-2 minutes. CPU should be high. Then, kill the Alluxio master
./bin/alluxio-stop.sh master

The MaxFile process should still be running at this point. A few threads might throw an exception and finish their task. What I notice is that most times after about 10 minutes anywhere from 1/2 to 3/4 of the 64 threads will finish, but about 10 will remain in a state with the following stack trace
java.lang.Thread.State: RUNNABLE
	  at alluxio.AbstractClient.connect(AbstractClient.java:269)
	  - locked <0x174e> (a alluxio.client.file.RetryHandlingFileSystemMasterClient)
	  at alluxio.client.file.BaseFileSystem.rpc(BaseFileSystem.java:610)
	  at alluxio.client.file.BaseFileSystem.createFile(BaseFileSystem.java:179)
	  at alluxio.client.file.BaseFileSystem.createFile(BaseFileSystem.java:172)
	  at alluxio.cli.MaxFile.lambda$run$0(MaxFile.java:70)
	  at alluxio.cli.MaxFile$$Lambda$43.992086987.call(Unknown Source:-1)
	  at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
	  at java.util.concurrent.FutureTask.run(FutureTask.java:-1)
	  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	  at java.lang.Thread.run(Thread.java:748)

Once in this state, it seems the threads never actually get past this. It simply hangs forever.
A note that this deadlock does not seem to occur 100% of the time. It seems that it happens 20-30% of the time based on my tests.
Expected behavior
Clients in the program should eventually time out due to not being able to connect. The program should exit within 1-2 minutes. Each thread should print a stack trace.
Urgency
Can impact long running clients in cases where the Alluxio master goes down or fails over. Threads could get stuck.
Additional context
Present in v2.1.0 and on the latest branch-2.1 at the time of writing.

hrmmm, I ran it over 10 times on my machine, sometimes with 256 threads, and I still cannot reproduce the hang.

Going to close this until I get a better repro.


How to obtain Light Vectors?

Did you have any code to create the light vectors for this project?

I would also like to know this


[v1.0][T11-B4] AddressBook

Not ready for review yet.

@pkuhanan @chenchongsong @Articho28 @software-1234 Some comments added for DG's implementation section.


Solr table field mappings are incorrect

When performing a search against a Solr index, the columns in result tables do not map to the corresponding Solr fields.
See the screenshot for an example.

To clarify, this affects the current master (as at 02 Feb 21) and not the 6.1 branch.

switched to gh-2034 branch


Host some sample data in a publicly-accessible place

I think it would be worthwhile to host some image data relevant to this project in a public place so people can run the code against a real (even if small) dataset

We now have data available. I agree that it would be valuable to have a smaller sample dataset to play around with.


Bitcoin balance and transactions are not synchronised

A small UI inconsistency:
https://user-images.githubusercontent.com/9418575/204429513-af9ed3c6-470c-4c0b-af96-d2048baf5888.mp4
The transaction appears before the balance is updated.

The issue might come from us syncing the frontend in two steps:
https://github.com/itchysats/10101/blob/a7c7e8bc1e2ab2a55cf4295630d8f80a79807bd2/lib/main.dart#L228-L231

Ok, it's not that :) We might need to use a single ChangeNotifier for balances and payment history to synchronize the update.
I'll unasign myself as it doesn't look like a quick fix.

fixed with #566


fix: Remove deprecated alias of logger.warn

python-neovim fails to build with Python 3.13.0b1.
According to https://docs.python.org/3.13/whatsnew/3.13.html:
logging: Remove undocumented and untested Logger.warn() and LoggerAdapter.warn() methods and logging.warn() function.  Deprecated since Python 3.3, they were aliases to the logging.Logger.warning() method, logging.LoggerAdapter.warning() method and logging.warning() function.

I do not see, how these failing tests are related to the change.

Tests are fixed on master. Thanks!


Maybe wrong Chinese character encode mode in groupname?

I have joined a steam group which name is full of Chinese character. I recorded many demo using this groupname . When I open the demo via this software and click "Analysis" , The groupname in Chinese character won`t show in a right way. In my opinion, the encoding mode is the reason why cause this issue. There are many encoding method like UTF-8 , Unicode , GBK , GB2312 to show Chinese character, but maybe here got some issue?
Example:

The groupname here should be "人大♂附中 死宅势力"

A new major version has been released, closing the issue 🧹


Add a way to set a custom NPM registry

This change makes it possible to test actions that involve publishing of NPM packages because it allows us to point to a private NPM registry. For instance, you could run the action by saying:
- uses: MetaMask/action-publish-release@v2
  with:
    npm-registry: //npm.fury.io/yourusernamehere/
    npm-token: ${{ secrets.NPM_TOKEN }}
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

and now when a package is accessed or published, Gemfury will be used instead of the official NPM registry.
Note: In making this change I have removed backward compatibility with NPM and assume that the project in question is using Yarn v3. This aligns this action with action-npm-publish.

Moving this to draft until this is fully tested.


RAM usage goes up when switching i3 workspaces in secondary monitor only mode

I am using a secondary monitor with the mons -s command.
Every time I switch i3 workspaces, the RAM usage goes up more and more, and doesn't get released until reboot.
I can literally just switch back and forth and the RAM goes up until it's completely full. This doesn't happen when only using primary monitor.

Closing this, as it seems mons is not the culprit here.


tf.make_tensor_proto doesn't work as expected

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS X 10.13.6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: none
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): v1.11.0-rc2-4-gc19e29306c 1.11.0
Python version: Python 3.6.4
Bazel version (if compiling from source): none
GCC/Compiler version (if compiling from source): none
CUDA/cuDNN version: none
GPU model and memory: none
Exact command to reproduce:
print(tf.make_tensor_proto([1,2,3,4], dtype=tf.uint32))

Describe the problem
According to TensorProto message definition there are specific fields for different DataType e.g. for DT_UINT32 (https://github.com/tensorflow/tensorflow/blob/903a6399aab19b549fefd0ead836af644f3d00f8/tensorflow/core/framework/tensor.proto#L79-L80)
However, make_tensor_proto puts content for most numeric types into tensor_content field.
In addition to that there is same inconsistency in tf.make_ndarray function: it tries to deserealize tensor_content and then it searches for correct fields with DataType. https://github.com/tensorflow/tensorflow/blob/903a6399aab19b549fefd0ead836af644f3d00f8/tensorflow/python/framework/tensor_util.py#L548
Source code / logs
import tensorflow as tf
from tensorflow.core.framework import tensor_pb2
from tensorflow.python.framework import dtypes

current = tf.make_tensor_proto([1,2,3,4], dtype=tf.uint32)
print(current)
#dtype: DT_UINT32
#tensor_shape {
#  dim {
#    size: 4
#  }
#}
#tensor_content: "\001\000\000\000\002\000\000\000\003\000\000\000\004\000\000\000"

expected = tensor_pb2.TensorProto(dtype=dtypes.uint32.as_datatype_enum, uint32_val=[1,2,3,4])
print(expected)
#dtype: DT_UINT32
#uint32_val: 1
#uint32_val: 2
#uint32_val: 3
#uint32_val: 4

In addition to that, I can't make ndarray from manually composed uint32 tensor.
import tensorflow as tf
from tensorflow.core.framework import tensor_pb2
from tensorflow.python.framework import dtypes

expected_tensor = tensor_pb2.TensorProto(dtype=dtypes.uint32.as_datatype_enum, uint32_val=[1,2,3,4])
expected_array = tf.make_ndarray(expected_tensor)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/bulat/anaconda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py", line 649, in MakeNdarray
    raise TypeError("Unsupported tensor type: %s" % tensor.dtype)
TypeError: Unsupported tensor type: 22

I fixed the tensor_content issue in my code by using the forked version of the function.
By removing the following if clause I restored the documented behavior.
https://github.com/tensorflow/tensorflow/blob/4bb45e6cdddfd8f818ee037216e732f3fd133413/tensorflow/python/framework/tensor_util.py#L503-L508
However, I'm don't know what is the purpose of_TENSOR_CONTENT_TYPES.

Nagging Assignee @harshini-gadige: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @harshini-gadige: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@josh11b may be able to comment further, but I believe that the type specific fields are mostly historical and are not required to be used. If you use tensor_content you don't use the int specific one. So the output given is expected and valid.

Hi @KineticCookie!
It seems you are using 1.x versions of Tensorflow. We recommend that you upgrade  your code base to 2.x  versions  as as Many features and bug fixes has been done in newer versions and let us know if the issue still persists in newer versions. Thanks!


1.0.0 release

Hi,
I have an asp.net core 1.0.0 compatible library,
I was consuming beta's of Microsoft.AspNetCore.NodeService, version 1.0.0-beta-000021 to be precise.
I have upgraded my solution recently from project.json (vs2015) to csproj (vs2017) and I notice that tests that previous succeeded, now fail:

Downgrading to 1.0.0-beta-000020 seems solves this problem - not sure why.
I have created a repro here: https://github.com/dazinator/NetPack/tree/repro-assy-resolve (just open and run the unit test to see what I mean):
@natemcmaster suggested I should upgrade to the RTM version anyway. However I can't see a release of nodeservices for asp.net core 1.0.0 - it seems to jump from the beta's which target 1.0.0 to the RTM which targets 1.1.0 dependencies. If I upgrade to the RTM, I will have to upgrade all consuming applications from 1.0.0 to 1.1.0 - and sadly, at the current time, this is too much work, for which there is not enough time.
So my question is - would you perhaps consider releasing a version of nodeservices that targets asp.net core 1.0.0 dependencies?
Pretty please with a cherry on top.

.. Anticipating that releasing a version of nodeservices for asp.net core 1.0.0 isn't an option, then I'd be very greatful if perhaps you could help identify why the 1.0.0-beta-000021 version of the nuget package seems to produce assembly singing problems when attempting to run a unit test in vs2017 as per my repro here: https://github.com/dazinator/NetPack/tree/repro-assy-resolve

@dazinator It's possible that 1.0.0-beta-000021 is just not strong named. I don't recall exactly when we started doing strong naming on this package - it was a long time ago, but maybe was roughly when we move to take the 1.1.0 dependencies.

Anticipating that releasing a version of nodeservices for asp.net core 1.0.0 isn't an option

I'm afraid not! We have many other work items to focus on, only one person is asking for this one, and it doesn't add any long-term value because eventually nobody will need that anyway. So I'm afraid that job would never get to the front of the priority queue.

Ok thanks


High cpu usage when edit dart code using macvim on mac os.

Dart SDK Version: 2.7.0-dev.2.1
System: MacOSX
I profiled the dart process with instruments. It looks like there is an endless loop.

I presume this process is the analysis server VM and not your own application? Can you reliably reproduce it? Does the server crash when this happens or just sit busy?
It might be possible to pass --observe --dump-service-info=service.json in the VM arguments when starting the server (before the snapshot path) and then get the Observatory URI from the generated service.json file to open in your browser and examine the call stack with any Dart function names in-tact.

Yes, the process is "dart", not my own application. It's not happening every time, but very frequently when I use vim(with coc-flutter plugin. github.com/iamcco/coc-flutter) to edit dart code. When it happen, the dart process did not crash, but use at least 80 percent of the cpu.  Unfortunately, it's "coc-flutter" started the dart process, and I do not know how to pass the arguments you said to dart using "coc-flutter", so I can't provide the service.json file.

Are you able to (temporarily) modify the source of coc-flutter on your local machine? If so, I think you could add the arguments here:
https://github.com/iamcco/coc-flutter/blob/74a50475e37a5178aa01f55f16bb7603279105fa/src/server/lsp/index.ts#L46
The instrumentation file might be useful too:
 args: ['--observe', '--dump-service-info=/some/path/service.json', flutterSDK.analyzerSnapshotPath, '--lsp', '--instrumentation-log-file=/some/path/instrumentation.txt'],

I tried, but it's not working.  After I changed the "coc-flutter" source code, vim can't start "dart" process.

Sorry, the flag is named --write-service-info. However I discovered that it doesn't suppress the old VM service banner, which means even with the correct flag it will break (due to writing non-LSP output). I've opened https://github.com/dart-lang/sdk/issues/39975 for that.
It might be useful to still add the last flag ('--instrumentation-log-file=/some/path/instrumentation.txt') as that might give some indication of what the server is analyzing (or request it's processing) when this happens.
@bwilkerson @bkonyi do you know if there's a way to get a more useful call stack (without the VM service) to see what's happening here?

I add the last flag, and got the instrumentation file. It looks like "dart" process was trying to analyze all dart files on my disk.

@fftyjw can you share the first few lines of the log, specifically those containing "initialize" and "initialized"?

initialize1578048966588:Ver:1549516933475134752561:unknown:unknown:1.27.4:2.8.0-edge.a4d799c402efc36327cad2f42186bb48ea9cf18a
1578048966681:Req:{"jsonrpc"::"2.0","id"::0,"method"::"initialize","params"::{"processId"::6039,"rootPath"::"/Users/dh/code/dart/test_f","rootUri"::"file::///Users/dh/code/dart/test_f","capabilities"::{"workspace"::{"applyEdit"::true,"workspaceEdit"::{"documentChanges"::true,"resourceOperations"::["create","rename","delete"],"failureHandling"::"textOnlyTransactional"},"didChangeConfiguration"::{"dynamicRegistration"::true},"didChangeWatchedFiles"::{"dynamicRegistration"::true},"symbol"::{"dynamicRegistration"::true,"symbolKind"::{"valueSet"::[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand"::{"dynamicRegistration"::true},"configuration"::true,"workspaceFolders"::true},"textDocument"::{"publishDiagnostics"::{"relatedInformation"::true},"synchronization"::{"dynamicRegistration"::true,"willSave"::true,"willSaveWaitUntil"::true,"didSave"::true},"completion"::{"dynamicRegistration"::true,"contextSupport"::true,"completionItem"::{"snippetSupport"::true,"commitCharactersSupport"::true,"documentationFormat"::["markdown","plaintext"],"deprecatedSupport"::true,"preselectSupport"::true},"completionItemKind"::{"valueSet"::[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}},"hover"::{"dynamicRegistration"::true,"contentFormat"::["markdown","plaintext"]},"signatureHelp"::{"dynamicRegistration"::true,"signatureInformation"::{"documentationFormat"::["markdown","plaintext"],"parameterInformation"::{"labelOffsetSupport"::true}}},"definition"::{"dynamicRegistration"::true},"references"::{"dynamicRegistration"::true},"documentHighlight"::{"dynamicRegistration"::true},"documentSymbol"::{"dynamicRegistration"::true,"symbolKind"::{"valueSet"::[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"codeAction"::{"dynamicRegistration"::true,"codeActionLiteralSupport"::{"codeActionKind"::{"valueSet"::["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"codeLens"::{"dynamicRegistration"::true},"formatting"::{"dynamicRegistration"::true},"rangeFormatting"::{"dynamicRegistration"::true},"onTypeFormatting"::{"dynamicRegistration"::true},"rename"::{"dynamicRegistration"::true,"prepareSupport"::true},"documentLink"::{"dynamicRegistration"::true},"typeDefinition"::{"dynamicRegistration"::true},"implementation"::{"dynamicRegistration"::true},"declaration"::{"dynamicRegistration"::true},"colorProvider"::{"dynamicRegistration"::true},"foldingRange"::{"dynamicRegistration"::true,"rangeLimit"::5000,"lineFoldingOnly"::true}}},"initializationOptions"::{"onlyAnalyzeProjectsWithOpenFiles"::false,"suggestFromUnimportedLibraries"::true,"closingLabels"::true},"trace"::"off","workspaceFolders"::[{"uri"::"file::///Users/dh/code/dart/test_f","name"::"test_f"}]}}
1578048966741:Res:{"id"::0,"jsonrpc"::"2.0","result"::{"capabilities"::{"textDocumentSync"::{"openClose"::false,"change"::0,"willSave"::false,"willSaveWaitUntil"::false},"hoverProvider"::true,"completionProvider"::{"resolveProvider"::true,"triggerCharacters"::[".","=","(","$"]},"signatureHelpProvider"::{"triggerCharacters"::[]},"definitionProvider"::true,"implementationProvider"::true,"referencesProvider"::true,"documentHighlightProvider"::true,"documentSymbolProvider"::true,"workspaceSymbolProvider"::true,"codeActionProvider"::{"codeActionKinds"::["source","source.organizeImports","source.sortMembers","quickfix"]},"documentFormattingProvider"::true,"documentRangeFormattingProvider"::false,"documentOnTypeFormattingProvider"::{"firstTriggerCharacter"::"}","moreTriggerCharacter"::[";"]},"renameProvider"::{"prepareProvider"::true},"foldingRangeProvider"::true,"executeCommandProvider"::{"commands"::["edit.sortMembers","edit.organizeImports","edit.sendWorkspaceEdit","refactor.perform"]},"workspace"::{"workspaceFolders"::{"supported"::true,"changeNotifications"::true}}}}}
1578048966746:Req:{"jsonrpc"::"2.0","method"::"initialized","params"::{}}
1578048966763:Res:{"id"::1,"method"::"client/registerCapability","params"::{"registrations"::[{"id"::"1","method"::"textDocument/didOpen","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"},{"language"::"yaml","scheme"::"file","pattern"::"/pubspec.yaml"},{"language"::"yaml","scheme"::"file","pattern"::"/analysis_options.yaml"}]}},{"id"::"2","method"::"textDocument/didClose","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"},{"language"::"yaml","scheme"::"file","pattern"::"/pubspec.yaml"},{"language"::"yaml","scheme"::"file","pattern"::"/analysis_options.yaml"}]}},{"id"::"3","method"::"textDocument/didChange","registerOptions"::{"syncKind"::2,"documentSelector"::[{"language"::"dart","scheme"::"file"},{"language"::"yaml","scheme"::"file","pattern"::"/pubspec.yaml"},{"language"::"yaml","scheme"::"file","pattern"::"/analysis_options.yaml"}]}},{"id"::"4","method"::"textDocument/completion","registerOptions"::{"triggerCharacters"::[".","=","(","$"],"resolveProvider"::true,"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"5","method"::"textDocument/hover","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"6","method"::"textDocument/signatureHelp","registerOptions"::{"triggerCharacters"::[],"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"7","method"::"textDocument/references","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"8","method"::"textDocument/documentHighlight","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"9","method"::"textDocument/documentSymbol","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"10","method"::"textDocument/formatting","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"11","method"::"textDocument/onTypeFormatting","registerOptions"::{"firstTriggerCharacter"::"}","moreTriggerCharacter"::[";"],"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"12","method"::"textDocument/definition","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"13","method"::"textDocument/implementation","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"14","method"::"textDocument/codeAction","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}],"codeActionKinds"::["source","source.organizeImports","source.sortMembers","quickfix"]}},{"id"::"15","method"::"textDocument/rename","registerOptions"::{"prepareProvider"::true,"documentSelector"::[{"language"::"dart","scheme"::"file"}]}},{"id"::"16","method"::"textDocument/foldingRange","registerOptions"::{"documentSelector"::[{"language"::"dart","scheme"::"file"}]}}]},"jsonrpc"::"2.0"}
1578048967422:Res:{"method"::"$/analyzerStatus","params"::{"isAnalyzing"::true},"jsonrpc"::"2.0"}
1578048967433:Req:{"jsonrpc"::"2.0","method"::"textDocument/didOpen","params"::{"textDocument"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/inheritedWidget/shareData.dart","languageId"::"dart","version"::1,"text"::"import 'package::flutter/material.dart';\n\nclass ShareDataWidget extends InheritedWidget {\n  ShareDataWidget({\n    @required this.data,\n    Widget child\n  }) ::super(child:: child);\n\n  final int data; //需要在子树中共享的数据，保存点击次数\n\n  //定义一个便捷方法，方便子树中的widget获取共享数据  \n  static ShareDataWidget of(BuildContext context) {\n    return context.inheritFromWidgetOfExactType(ShareDataWidget);\n  }\n\n  //该回调决定当data发生变化时，是否通知子树中依赖data的Widget  \n  @override\n  bool updateShouldNotify(ShareDataWidget old) {\n    //如果返回true，则子树中依赖(build函数中有调用)本widget\n    //的子widget的state.didChangeDependencies会被调用\n    print('should ntf ${old.data}, ${data}');\n    return old.data != data;\n  }\n}\n"}}}
1578048967443:Req:{"jsonrpc"::"2.0","id"::1,"result"::null}
1578048968794:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/inheritedWidget/shareData.dart","diagnostics"::[{"range"::{"start"::{"line"::20,"character"::35},"end"::{"line"::20,"character"::42}},"severity"::3,"code"::"unnecessary_brace_in_string_interps","source"::"dart","message"::"Avoid using braces in interpolation when not needed."},{"range"::{"start"::{"line"::12,"character"::19},"end"::{"line"::12,"character"::47}},"severity"::3,"code"::"deprecated_member_use","source"::"dart","message"::"'inheritFromWidgetOfExactType' is deprecated and shouldn't be used. Use dependOnInheritedWidgetOfExactType instead. This feature was deprecated after v1.12.1..\nTry replacing the use of the deprecated member with the replacement."}]},"jsonrpc"::"2.0"}
1578048968795:Res:{"method"::"dart/textDocument/publishClosingLabels","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/inheritedWidget/shareData.dart","labels"::[]},"jsonrpc"::"2.0"}
1578048969210:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/test/widget_test.dart","diagnostics"::[{"range"::{"start"::{"line"::10,"character"::7},"end"::{"line"::10,"character"::33}},"severity"::3,"code"::"unused_import","source"::"dart","message"::"Unused import:: 'package::test_f/main.dart'.\nTry removing the import directive."},{"range"::{"start"::{"line"::15,"character"::28},"end"::{"line"::15,"character"::33}},"severity"::1,"code"::"undefined_function","source"::"dart","message"::"The function 'MyApp' isn't defined.\nTry importing the library that defines 'MyApp', correcting the name to the name of an existing function, or defining a function named 'MyApp'."}]},"jsonrpc"::"2.0"}
1578048969352:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/inheritedWidget/home.dart","diagnostics"::[]},"jsonrpc"::"2.0"}
1578048969354:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/inheritedWidget/test.dart","diagnostics"::[]},"jsonrpc"::"2.0"}
1578048969355:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/provider/cartModel.dart","diagnostics"::[]},"jsonrpc"::"2.0"}
1578048969356:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/provider/home.dart","diagnostics"::[]},"jsonrpc"::"2.0"}
1578048969357:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/provider/provider.dart","diagnostics"::[]},"jsonrpc"::"2.0"}
1578048969360:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/provider/notifierProvider.dart","diagnostics"::[]},"jsonrpc"::"2.0"}
1578048969360:Res:{"method"::"textDocument/publishDiagnostics","params"::{"uri"::"file::///Users/dh/code/dart/test_f/lib/main.dart","diagnostics"::[]},"jsonrpc"::"2.0"}

Actually, your screenshot looks corect - your editor sent a request opening "dh/02-code" and then that was analyzed.

Are you seeing analysis in files/folders that you did not open?
You may also be interested in the flutter.lsp.initialization.onlyAnalyzeProjectsWithOpenFiles setting which will only analyze projects that have files open specifically, rather than the whole "workspace".

Yes, these files I did not open.

@fftyjw although you didn't open those files, your editor has sent a request to the server to add the folder "/Users/dh/02-code/flutter" to the workspace. This results in that whole folder being analyzed.
I don't know what caused the editor to send this, it may be a bug in coc-flutter. Otherwise, the setting above may help (this narrows the folders that will be analyzed to only the projects with explicit files open and ignores the workspace sent by the client).

I think the editor sent the didChangeWorkspaceFolders  request, because I run the jump to definition command of "coc-flutter" which will auto open the source file in flutter project. It would be wonderful if dart can make some cache of files that have been analyzed, and do not reanalyze those files on next request, especially for commonly used sdks like flutter.

I think the editor sent the didChangeWorkspaceFolders request, because I run the jump to definition command of "coc-flutter" which will auto open the source file in flutter project

That makes sense, but in this case it seems to be adding the entire Flutter SDK folder, but the file you jumped to is in flutter/packages/flutter. I think if it was to add only that folder, this wouldn't happen (since a lot of time is being spent analyzing things like example projects). This feels like a bug in coc-flutter in my opinion.
That said, the setting mentioned above would probably also resolve this, since we would ignore the workspace root and then only analyze the flutter package that you opened the file in.

It would be wonderful if dart can make some cache of files that have been analyzed, and do not reanalyze those files on next request, especially for commonly used sdks like flutter.

@bwilkerson or @scheglov may be able to confirm how this works, but I think there is already some caching and the SDKs may also ship with (summary?) files to reduce work for SDK libraries (in your log it looks like all of the example projects are being analysed though which may no be included).
My suggestion is to try the flutter.lsp.initialization.onlyAnalyzeProjectsWithOpenFiles setting and/or file an issue with coc-flutter to find out why the whole Flutter SDK project is being added as a workspace folder when you jumped into a file in flutter/packages/flutter which is its own package with a pubspec.

@DanTup, thanks, I modify the  "flutter.lsp.initialization.onlyAnalyzeProjectsWithOpenFiles" setting. And now it got much better, it's only analyze files in  flutter/packages/flutter now.

Glad to hear - I'll close this since I don't think there's anything to do here in the SDK. I do think it's worth opening an issue with coc-flutter with some info on this and questioning why it adds the whole SDK instead of just that folder (it feels like a bug and may affect many other users).

Ok, I will open an new issue with coc-flutter.


Fix toByteBuf for streamed HttpData

This is related to https://github.com/softwaremill/tapir/issues/1914
I've noticed that the following code was returning an empty body:
val stringBuffer    = """{"number": 5}""".toString.getBytes(CharsetUtil.UTF_8)
val responseContent = ZStream.fromIterable(stringBuffer)
val response        = Response.apply(data = HttpData.fromStream(responseContent))
val content         = response.data.toByteBuf.map(_.toString(CharsetUtil.UTF_8))
println(zio.Runtime.default.unsafeRun(content))

After isolating the issue, it seems that setting increaseWriterIndex to true inside the addComponent method is mandatory to correctly decode our payload.

Codecov Report

Merging #1118 (02f0271) into main (8e4f6bf) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1118   +/-   ##
=======================================
  Coverage   58.02%   58.02%
=======================================
  Files          74       74
  Lines        2368     2368
  Branches       70       70
=======================================
  Hits         1374     1374
  Misses        994      994

Impacted Files
Coverage Δ

zio-http/src/main/scala/zhttp/http/HttpData.scala
72.97% <100.00%> (ø)

Continue to review full report at Codecov.

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


Removing GitPython from tests

10:59:09 [ERROR] Installation failed
10:59:09 [ERROR] Error while executing Git command:
Command '['git', 'commit', '-m', 'add cairo_contracts']' returned non-zero exit status 1.
10:59:09 [INFO] Execution time: 0.96 s


Migration needs to be able to set metadata without propagation

New migration approach
After the architecure changed from oc10 to ocis we can now move whole spaces from the old storage provider with the owncloudsql driver to a new storage provider with a different driver, eg. ofqs or cephfs. This operation also needs to be abe to import metadata witout causing a propagation. Same problem as with the old approach below.
Old migration approach
The import reads a json file line by line and updates the metadata like etags and shares via the CS3 API. Unfortunately, the order of files and folders might cause a files etag to overwrite a previously set etag for a folder. To solve this properly it would be great if the SetArbitraryMetadata call had a nopropagation flag.

is this still relevant? perhaps @IljaN can shade some light?

is this still relevant? perhaps @IljaN can shade some light?

this is outdated. Migration concepts are different today.


Update PostHog git-version

I got some errors running this PostHog app from the one-click-apps list.
In PostHog I see this status list under /instance/status
PostHog Git SHA | 577f7abaec
The PostHog app is running as it should but I encounter some errors using PostHog. How does this work, does the .yml file update the commit or version of PostHog source code?
My errors is mainly.

Django Instance says page not found.
Data warehouse sync does not work, error 500

I've looked at the repo of PostHog and they have commits about the data warehouse issue since the commit 577f7abae
https://github.com/PostHog/posthog
Question: How do I update my app to get latest posthog version? Fresh install?

@AndrMoura
Another question, I a update the SITE_URL for the app with custom domain or enables https for any of the apps. Do I need to update the app vars SITE_URL for all apps created for this posthog app?


Update cursors to refresh timeoutMS on close without affecting the timeout of the operation

JAVA-5615

Given how flaky our tests are, it is difficult to tell whether the failures in the PR are caused by the PR, or they've been in the main branch, and Evergreen provides no tools to facilitate searching for an answer even for a single test failure. So I had to search manually, and try running tests from the main branch. Following are the result.
Failures that don't seem to be new:

Load Balancer 8.0 Auth SSL JDK21 Ubuntu: com.mongodb.reactivestreams.client.unified.LoadBalancerTest.cursors_are_correctly_pinned_to_connections_for_load-balanced_clusters__pinned_connections_are_returned_after_a_network_error_during_a_killCursors_request (happened in main here)
4.2 Sharded Cluster NoAuth NoSSL JDK8 Linux: com.mongodb.client.ServerSelectionProseTest.operationCountBasedSelectionWithinLatencyWindow__ (happened in main here)

Failures that may be new (I failed to manually find such failures in main, but my search was quite limited):

7.0 Replica Set Auth SSL JDK8 Linux: com.mongodb.reactivestreams.client.ClientSideOperationTimeoutProseTest.6._GridFS_Download
6.0 Sharded Cluster NoAuth NoSSL JDK8 Linux: com.mongodb.client.unified.ClientSideEncryptionTest.namedKMS-rewrapManyDataKey__rewrap_to_azure_name1
the same test as in #2 5.0 Replica Set NoAuth NoSSL JDK8 Linux: com.mongodb.client.unified.ClientSideEncryptionTest.namedKMS-rewrapManyDataKey__rewrap_to_kmip_name1


License?

Hey @ninovanhooff, thanks for the helpful library. Can you please add a license so people can safely use this in projects?

Done. I just picket "do whatever" license. I think MIT will be what you want. If this works for you I'll apply it to all Midi master repos.

MIT is great, thank you!


Problem in instructions

I am getting the following error when trying to run the docker compose up
cannot use ACI volume, required driver is "azure_file", found ""
can this page provide context on this type of error
thanks
[Enter feedback here]

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

ID: 920c8ddf-83d1-ba47-5a6e-270b390b33b5
Version Independent ID: df5d92c4-217b-aa4c-ba21-141850548e4a
Content: Tutorial - Use Docker Compose to deploy multi-container group - Azure Container Instances
Content Source: articles/container-instances/tutorial-docker-compose.md
Service: container-instances
GitHub Login: @macolso
Microsoft Alias: macolso

@deangarcia , thank you for sharing your concern with us.
This article mentions the supported volumes for Azure Container Instances.

You can specify external volumes to mount within a container group. Supported volumes include:

Azure file share
Secret
Empty directory
Cloned git repo

You can map those volumes into specific paths within the individual containers in a group.

Hope this helps!

@deangarcia , is there any further query on this?

Yea just not really sure what to ask I have all my containers in a registry
and independently they all run but I can’t get them to work together in a
swarm
On Mon, Dec 13, 2021 at 1:17 AM Srijit Bose @.***>
wrote:

@deangarcia https://github.com/deangarcia , is there any further query
on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/85083#issuecomment-992260313,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABL4HH6A6DZP4O7YEFGFC73UQW2ZXANCNFSM5JX3M7DQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
*Very Respectfully *
Dean Garcia
Phone:<PHONE_NUMBER>

@deangarcia , thank you for your reply. According to the Azure Container Instances documentation:

Azure Container Instances is a solution for any scenario that can operate in isolated containers, without orchestration.

So if you are trying a Docker swarm architecture, then I would recommend checking out this solution.

Hope this helps!

@deangarcia Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.


[SVCS-27] Validate copy/move destination path

Purpose
The path attribute in these requests needs to be validated as a proper folder path using a trailing slash.
Changes
Add logic preventing slash-less move/copy
Side Effect
None that I know of.
Ticket
https://openscience.atlassian.net/browse/SVCS-27

Coverage decreased (-0.03%) to 75.208% when pulling c21ba95675e53510c5a82573c2aa8e6374c180e9 on Johnetordoff:validate-trailing-slash into 753bdd2434b757d889aae6d9b6e9c9c3a650e9dc on CenterForOpenScience:develop.

Coverage decreased (-0.03%) to 75.705% when pulling 24313d206fc18ef030a556acf41c63f848942ae3 on Johnetordoff:validate-trailing-slash into 425a3296014126931847d466b77673716516e2a7 on CenterForOpenScience:develop.

Coverage decreased (-0.03%) to 76.654% when pulling fe122ea0e1a9f1b2132d3f4281cfaf9be37f2615 on Johnetordoff:validate-trailing-slash into b787a92c180697cb8fb2f5b6c402cf7b931b339d on CenterForOpenScience:develop.


Blade Extractor improvement for Laravel 8/Jetstream (Gettext 4.x branch)

In a new Laravel 8 Jetstream project (created with laravel new [name] --jet), there is an exception when using Extractors\Blade::fromFile($file, $translations);
  Unable to locate a class or view for component [jet-input].

  at vendor/laravel/framework/src/Illuminate/View/Compilers/ComponentTagCompiler.php:273
    269▕         if ($viewFactory->exists($view = $this->guessViewName($component))) {
    270▕             return $view;
    271▕         }
    272▕
  ➜ 273▕         throw new InvalidArgumentException(
    274▕             "Unable to locate a class or view for component [{$component}]."
    275▕         );
    276▕     }
    277▕

      +2 vendor frames
  3   [internal]:0
      Illuminate\View\Compilers\ComponentTagCompiler::Illuminate\View\Compilers\{closure}(["<x-jet-input type="password" class="mt-1 block w-3/4" placeholder="Password"
                                x-ref="password"
                                wire:model.defer="password"
                                wire:keydown.enter="logoutOtherBrowserSessions" />", "jet-input", " type="password" class="mt-1 block w-3/4" placeholder="Password"
                                x-ref="password"
                                wire:model.defer="password"
                                wire:keydown.enter="logoutOtherBrowserSessions" ", " type="password" class="mt-1 block w-3/4" placeholder="Password"
                                x-ref="password"
                                wire:model.defer="password"
                                wire:keydown.enter="logoutOtherBrowserSessions" ", "="logoutOtherBrowserSessions""])

It seems to be unable to locate the jet components, and therefore can't compile the Blade file to PHP.
i don't exactly know why it breaks, but a lot of things are recently updated regarding ComponentTag namespaces and it might be related to this error? (cf. https://github.com/laravel/framework/commit/7cc120ebfcccdecf02d5cdbec47f6eae63a8e5a9).
However, if I'm right, the Blade extractor doesn't need to compile ComponentTag to do its job correctly, so I created this pull request to always disable it, so that the 4.x branch could still work with Laravel 8/Jetstream.
i hope that makes sense!

@oscarotero Do you think you could consider merging this small pull request in a new GetText 4.x release?
It seems that Blade component tags trigger an error when parsed by GetText (Unable to locate a class or view for component). It's problematic for most Laravel 8 projects.
Or maybe it should work without this pull request and I'm doing something wrong?
(FYI The tests actually pass, but travis bugged on one of them)

Ok. (sorry I missed this pull request).
Thanks!

Thank you very much for accepting this pull request, and also for this nice project! 😄


ModuleNotFoundError: No module named 'convlab.dst.sumbt.multiwoz' [BUG]

Code missing for sumbt. How to fix?
There are many scripts that rely on sumbt, e.g., python test_SUMBT-LaRL.py.

@carelvniekerk Could you have a look?

I am currently having a look at this will post a fix soon.

@ranchlai I have updated the example script test_SUMBT-LaRL.py. The SUMBT model will now import. Just as a note. Since SetSUMBT is an extension of SUMBT, we now import SetSUMBT and the model is configured as a SUMBT model. I am training a checkpoint which I will upload, but you could also train it using the sumbt_multiwoz21 config for SetSUMBT.
Unfortunately the LaRL policy is not currently maintained in Convlab version 3, which means this policy does not support the new format of the dialogue state. Please see the paper for policies currently maintained. You could for example use the LAVA policy instead of LaRL.


preview enabled conditionally on display space

Info

Operating System: nixos
Shell: zsh
Terminal: kitty
nvim --version: nightly
fzf --version: 0.45

[ ] The issue is reproducible with mini.sh

fzf-lua configuration

	local fzf_history_dir = vim.fn.expand('~/.local/share/fzf-history')
	fzf_lua.setup({
		commands = { sort_lastused = true },
		-- [...]
		fzf_opts = {
			-- [...]
			['--history'] = fzf_history_dir,
			-- to get the prompt at the top
			['--layout'] = 'reverse',
		},
		winopts = {
			preview = {
				-- default = 'builtin'
				hidden = 'hidden',
			},
			layout = 'flex'
		},
	})
fzf_lua.register_ui_select()

Description
I love the code_action preview, it's great thank you for that !
I often find myself with narrow windows though, in which case I would like to autoremove the preview to see just the listed coactions. Is that doable ?
Right now I can press F4 to toggle the preview when it takes the space but I would like it to be automatic.
Ideally I would like to do so without rebinding gA which is a neovim binding.

Yes, it’s possible, take a look at #1000 and #755, if you set previewer=false on the dynamic options it will overwrite the preview setting from lsp.code_actions.
Read this to understand dynamic options for ui.select:
https://github.com/ibhagwan/fzf-lua/wiki#ui-select-auto-size


I get the ~same FPS by using -numncs 1 and -numncs 2

I should get 2x more FPS by using -numncs, isn't it?
[Required] Custom device Atom CPU + 2 x MyriadX (VPU) via mini-PCI-express
[Required] Your device's CPU architecture x86_64 Intel Atom E3845
[Required] Ubuntu16.04.6 LTS (OpenVINO 2019.1.144)
[Required] Details of the work you did before the problem occurred:
I get the ~same FPS by using -numncs 1 and -numncs 2.

I get 10.7 FPS by using -numncs 1

And I get 10.3 FPS by using -numncs 2

By running multistick_cpp example from OpenVINO, I get this message:

@AlexeyAB
Sorry for late reply.
(1) Python script
Are you using USB 3.0? Accelerator devices such as NCS2 and Google Edge TPU Accelerator do not perform well with USB 2.0. By the way, if you are using an x86 CPU, using a CPU is much faster than using NCS2.
(2) C++ script
This is a modified version of Intel's sample program. Intel's program does not work properly, such as multi stick. I have not performed accurate tuning for C ++ programs.
OpenVINO 2019 R2 was released the other day. Multi-stick API level support and the ability to measure the stick's internal temperature have been added.I will update YoloV3's repository to correspond to the latest API after a while.

@PINTO0309 Hi,

I use 2 x Myriad X chips via mini-PCI-express. But I get the same ~10 FPS with 1 x Myriad X and with 2 x Myriad X chips. I use your python scipt with -numncs 1 and -numncs 2.

I modified C++ OpenVINO example by myself and got for yolov3.cfg:

sync - with 1 x Myriad X: 2.3 FPS
async - with 1 x Myriad X: 4.2 FPS
async - with 2 x Myriad X: 6.3 FPS - I think it can be improved up to 8 FPS.

Hi, @AlexeyAB
My Python program is waiting for 7 seconds to initialize one NCS2. In other words, the first NCS2 takes effect after 7 seconds and the second NCS2 takes effect after 14 seconds. Is the performance the same even if you wait 14 seconds?

@PINTO0309 Yes, even if I wait 60 seconds, FPS is the same.

I have the same problem too :(


Replaced array() with [].

Replaced using the following perl script:
perl -i -pe 'BEGIN{undef $/;} s/([^a-z0-9_])array\(([^\(\)]*)\)/\1\[\2\]/smgi' */*/*.php
Breaks support for php < 5.4. I'm guessing that may be why this change hasn't been made?

Exactly.


How to build an ECDSA public key from X509 PEM?

I am trying to verify an ECDSA signature (NIST384p curve, SHA384 hash).
The public key comes from a X509 PEM, and I cannot figure out to instantiate my EcdsaPublicKey<NistP384> from it.
In Python, with the cryptography library, I would just do this:
cert = cryptography.x509.load_pem_x509_certificate(cert_pem, default_backend())
public_key = cert.public_key()
# ...
public_key.verify(signature, data, cryptography.hazmat.primitives.asymmetric.ec.ECDSA(SHA384()))

(example source)
But with signatory I can't land on my feet :/
I've tried several things, but it always ends up on panicking :)
    let x5u = "https://content-signature-2.cdn.mozilla.net/chains/pinning-preload.content-signature.mozilla.org-2019-12-24-21-43-28.chain";
    let signature_b64 = "80aDcD0HGWOoFHzKv3wMnfxMqgrb24Bz9G0w-87yDWaAIuj6vyCtybIl8lhE8gqmNPqSxPGCTpGqNiuW_J6_pZ2AyMRy_WN2l7asraSh5giBwKCXn6anOF8M2PsjNSi4";
    let data = r#"Content-Signature:\x00{"data":[],"last_modified":"1485794868067"}"#;

    // Fetch PEM
    let resp = reqwest::get(&x5u.to_string()).await?;
    let pem = resp.bytes().await?;
    // Parse PEM (OpenSSL)
    // Parse PEM (OpenSSL)
    let cert = X509::from_pem(&pem)?;
    let public_key = cert.public_key().unwrap();
    let der = public_key.public_key_to_der()?;
    let pk: EcdsaPublicKey<NistP384> = EcdsaPublicKey::from_untagged_point(GenericArray::from_slice(&der));

    // Instantiate signature
    let signature_bytes = base64::decode_config(&signature_b64, base64::URL_SAFE).unwrap();
    let signature = FixedSignature::<NistP384>::from_bytes(&signature_bytes).unwrap();

    // Verify
    let result = verify_sha384(&P384Verifier::from(&pk), &data.as_bytes(), &signature);

(example source)
Does someone have an example that I could use as a reference?
Once figured out, I'd happy to contribute some docs (eg. a cookbook section or whatever).
Thanks a lot for the great lib :pray: !

A friend helped me and we could get it work :)
I leave it here in case someone has something similar to do
    let x5u = "https://content-signature-2.cdn.mozilla.net/chains/pinning-preload.content-signature.mozilla.org-2019-12-24-21-43-28.chain";
    let signature_b64 = "80aDcD0HGWOoFHzKv3wMnfxMqgrb24Bz9G0w-87yDWaAIuj6vyCtybIl8lhE8gqmNPqSxPGCTpGqNiuW_J6_pZ2AyMRy_WN2l7asraSh5giBwKCXn6anOF8M2PsjNSi4";
    let data = "Content-Signature:\x00{\"data\":[],\"last_modified\":\"1485794868067\"}";

    // Fetch PEM
    let resp = reqwest::get(&x5u.to_string()).await?;
    let pem = resp.bytes().await?;
    // Parse PEM (OpenSSL)
    let cert = X509::from_pem(&pem)?;
    let openssl_public_key = cert.public_key().unwrap();
    let ec_public_key = openssl_public_key.ec_key().unwrap();
    // Convert to uncompressed bytes
    let mut ctx = BigNumContext::new().unwrap();
    let group = EcGroup::from_curve_name(Nid::SECP384R1).unwrap();
    let public_key_bytes = ec_public_key.public_key().to_bytes(&group, PointConversionForm::UNCOMPRESSED, &mut ctx).unwrap();
    // Instantiate signatory public key
    let pk: EcdsaPublicKey<NistP384> = EcdsaPublicKey::from_bytes(&public_key_bytes).unwrap();

    // Instantiate signature
    let signature_bytes = base64::decode_config(&signature_b64, base64::URL_SAFE).unwrap();
    let signature = FixedSignature::<NistP384>::from_bytes(&signature_bytes).unwrap();

    // Verify
    verify_sha384(&P384Verifier::from(&pk), &data.as_bytes(), &signature).unwrap();

Signatory does not (yet) support ASN.1 DER-encoded ECDSA public keys (offhand I'm not sure where they're specified, perhaps RFC5912)?
However, I believe after PEM decoding, for NIST P-384 it should be the last 97 bytes of the file, treated as a tagged public point.

Signatory does not (yet) support ASN.1 DER-encoded ECDSA public keys (offhand I'm not sure where they're specified, perhaps RFC5912)?

You mean you would like to eventually provide the parsing features of openssl?
There's this too https://tools.ietf.org/html/rfc5480

However, I believe after PEM decoding, for NIST P-384 it should be the last 97 bytes of the file, treated as a tagged public point.

We could see that the first byte was 04, and apparently uncompressed because we had 96 significant bits.
The signature verification posted above works BTW ;)

You mean you would like to eventually provide the parsing features of openssl?

I would like to provide support for parsing this specific ASN.1 DER-encoded public key format.

The signature verification posted above works BTW ;)

Yes, it'd be nice if it didn't require OpenSSL

I would like to provide support for parsing this specific ASN.1 DER-encoded public key format.

I don't know if that helps, but this is how they were generated on the server side for the example I gave above:
https://github.com/mozilla-services/autograph/blob/master/signer/contentsignaturepki/x509.go#L64-L149


code.json: Incorrect Array output for Multi-Select Fields

Describe the bug
When using cookiecutter to generate code.json, the multi-select fields values are formatted incorrectly: platforms, categories, languages
To Reproduce
Steps to reproduce the behavior:

Go to .github directory
Run cookiecutter . --directory=code.json
Answer the prompts
code.json is created. Output for a multi-select field is a string where elements are not separated. It looks like:

  "languages": [
    "bash,python"
  ],

Expected behavior
  "languages": [
    "bash", "python"
  ],

Fixed!