How do I receive a message from the server?

Which project is your question related to?

Client
ManagedClient
Server

How do I receive a message from the server?
Sending messages to the server works fine. But i can't get messages from the server.
I'm using the latest version of MQTTnet.
I'm learning how to use it from the example on github.
It has been confirmed that [Application Message ReceivedAsync] is used for the latest version.
However, no matter how many times I try, it doesn't work.

I'd appreciate it if you could tell me how.

To sum up a few things.

[ ApplicationMessageReceivedAsync  ]   Is it right to use it?
If correct, the payload has disappeared from the [ e.ApplicationMessage.payload ].
So I used [ ConvertPayloadToString ].
For your information, the way to send messages to the server works. very well. Use[ payload  ] to send messages to the server.
However, [ payload ] is disabled for the ability to receive messages.
It doesn't work even if you put [ Console.WriteLine ] in it using [ ApplicationMessageReceivedAsync ]

First of all, this is my code.
This Code is Example. Request a message From Server.
#############################################################################
private static async Task Kim_Server_Message_Receive()
{
var factory = new MqttFactory();
var topic1 = "MyTopic/Test1";
var topic2 = "MyTopic/Test2";
var message = "Send Message?";
var rcvTopic = string.Empty;
var rcvMessage = string.Empty;
        using ( var client = factory.CreateMqttClient())
        {
            var clientOptions = new MqttClientOptionsBuilder()
                .WithTcpServer("1831.133.1315.13513.13513.1513")                      // The server address is example
                .WithCredentials("Test", "1234")
                .WithProtocolVersion(MQTTnet.Formatter.MqttProtocolVersion.V500)
                .WithClientId("Tester")
                .Build();

            await client.ConnectAsync(clientOptions, CancellationToken.None);

            client.ApplicationMessageReceivedAsync += e =>
            {
                rcvMessage = e.ApplicationMessage.ConvertPayloadToString();
                rcvTopic  = e.ApplicationMessage.Topic;

                Console.WriteLine("Receive Message : " + e.ApplicationMessage.ConvertPayloadToString());

                return Task.CompletedTask;
            };

            await client.ReconnectAsync(CancellationToken.None);
        }
    }

#############################################################################
I'm a beginner, so I can't explain it well, but I wrote it down.
I would appreciate it if you could tell me how to receive a message from the server.
( You don't have to tell me how to send a message to the server. )

You need to subscribe to a topic. otherwise the server will never send messages to you. Instead of client.ReconnectAsync call client.SubscribeAsync

@Jeanot-Zubler, is it a way to receive callback/response for client.Publish?
As I understand  ApplicationMessageReceivedAsync event works only with subscribing. Is that correct?

@ebartek No. An ApplicationMessage in this library corresponds to a PUBLISH packet. Therefore the ApplicationMessageReceivedAsync event only gets invoked, when the server sends a PUBLISH packet. The server forwards these packets to any client, that is subscribed to the corresponding topic.
PUBACK and PUBREC do not get forwarded to the ApplicationMessageReceivedAsync event. If you really wanted to check every packet, you can use the InspectPacketAsync event. Some information is also available in the return value of the PublishAsync method.

You can also make use of the low level client which let's you handle all the details of the MQTT protocol. But usually there is no need to. This library puts ab abstraction layer on top of the MQTT protocol.

I assume this question is answered.


connect from external client

Is it possible to connect from an external client (e.g. DBeaver)?
If positive, is any additional configuration is required? What port should be exposed?

Is it possible to connect from an external client (e.g. DBeaver)?

Just to confirm, do you want to edit the SQLite database in the Docker container from a locally installed DBeaver, for example?
In that case, the easiest way is to publish/expose the DB file from the container. This is because SQLite is not a client-server database and therefore has no ports to expose.

Mount the local directory in the container as a volume.
Run the application in a container and create a SQLite database file on the mounted volume.
After shutting down the container, open/edit the db file locally using DBeaver.

Example
As a concrete example, we will create two files: a Python3 script using SQLite and docker-compose to run in a container.
$ tree
.
├── todo.py
└── docker-compose.yml

todo.py
This python3 script is a very simple CLI application that can only add tasks and print task lists. There is no editing functionality.
import sqlite3

try:
    conn = sqlite3.connect("todo.db")
    print("* Opened database successfully")

    conn.execute(
        """
        CREATE TABLE IF NOT EXISTS tasks(
            id    INTEGER PRIMARY KEY AUTOINCREMENT,
            task  STRING NOT NULL
        );
        """
    )
    print("* Table created successfully")

    while True:
        stdIn = input("Enter new task (l=list, q=quit): ")
        if stdIn == "q":
            break
        if stdIn == "l":
            cursor = conn.execute("SELECT * FROM tasks;")
            print(cursor.fetchall())
            continue

        conn.execute("INSERT INTO tasks(task) VALUES (?)", (stdIn,))
        conn.commit()

        print("* Record created successfully: " + stdIn)

    conn.close()
except sqlite3.Error as error:
    print("! Error while creating a sqlite table", error)
finally:
    if conn:
        conn.close()
        print("* sqlite connection is closed")

docker-compose.yml
This docker compose configuration file creates a python container that mounts the current directory in /workspaces and executes the todo.py script.
version: "3.9"

services:
  todo:
    image: python:alpine
    volumes:
      - .:/workspaces
    working_dir: /workspaces
    entrypoint: [ "/usr/local/bin/python" ]
    command: [ "todo.py" ]
    tty: true
    stdin_open: true

Execute
Run docker compose run todo, add some tasks, enter q and exit.
$ docker compose run todo
* Opened database successfully
* Table created successfully
Enter new task (l=list, q=quit): buy milk
* Record created successfully: buy milk
Enter new task (l=list, q=quit): do 10 push-ups
* Record created successfully: do 10 push-ups
Enter new task (l=list, q=quit): l
[(1, 'buy milk'), (2, 'do 10 push-ups')]
Enter new task (l=list, q=quit): q
* sqlite connection is closed

Next, check that the db file has been created in the current directory.
$ tree
.
├── todo.db
├── todo.py
└── docker-compose.yml

Now, you can open/edit the todo.db file with the DBeaber.

@KEINOS Thanks for the elaborative answer!
I wasn't aware, that sqlite doesn't have a client-server interface.
I've already successfully tested mounting an external db.


add CSS Typed OM types

https://github.com/frenic/csstype/issues/170

I'm not sure if import '@types/w3c-css-typed-object-model-level-1'; is required.
Seems like it works without import.

Copying my message from Discord
I cannot approve it for the following reasons:

The specification is still yet to be standardized (it's still in level 1, and is marked experimental)
The values themselves are browser-only and is highly incompatible with SSR
This requires changing the runtime for serialization and application purposes. CSS Typed OM is applied differently from a normal string property.

I'm going to go with @lxsmnsyc judgment for now. But willing to re-examine in the future.


Update 613e275749ebd008e74bb62e.md

typo: "to to" -> "to"
Checklist:

[x] I have read and followed the contribution guidelines.
[ ] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #50888

As a new contributor, we encourage you to read our contributing guidelines.
We expect our contributors to be aware of the process specific to this project. Following the guidelines religiously earns you the respect of fellow maintainers and saves everyone time.
Some examples of this are:

Do not edit files directly through GitHub – while you can, it's not a good idea.
Make sure you follow the PR checklist and not just tick things off; otherwise, we won't take you seriously.
Use the correct way to link issues in the description of the PR by updating the XXXXXX. Do not just add issue numbers everywhere and anywhere you feel like.
Keep mentions and review requests to a minimum. We understand you are excited about contributing, and our maintainers will get back to you as soon as they get a chance.
Do not work directly off your main branch - create a new branch for the changes you are working on.

We appreciate you taking the time to help us, and we hope to see more contributions from you.
Happy Contributing.

Hey, i was just wandering what went wrong with my PR if you may guide.

Hey, i was just wandering what went wrong with my PR if you may guide.

Make sure you read up on how to open a PR:
https://contribute.freecodecamp.org/#/how-to-open-a-pull-request?id=prepare-a-good-pr-title

Hey @nikhilgarg26
Thank you for opening this pull request.
As there was different PR - #50891 - making all necessary changes, merged recently, we are going to close this one.
Thank you and happy coding! 😊

If you have any questions, feel free to ask questions on the 'Contributors' category on our forum or the contributors chat room.


Upgrade Quill to remove the deprecated DOMNodeInserted mutation event

The quill has released 2.0.0 at quill-release
In the old quill version, some deprecated events are used in the code.  mutation-events-deprecation
quill 2.0 has removed that event from the v2.0.0 #3806
When will react-quill update the quill version?

Mutation events will be removed from Chrome
there is Polyfill, seen it at
mutation-events Polyfill

High priority issue
This could be a breaking problem and if not addressed would require us to migrate to a different solution.

[Deprecation] Listener added for a 'DOMNodeInserted' mutation event. This event type is deprecated, and will be removed from this browser very soon. Usage of this event listener will cause performance issues today, and represents a large risk of future site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information.

In the blink of an eye, it's July, and only 30 days have passed since Chrome made these official removals. There is still no official answer to this issue. Perhaps developers should start choosing alternatives. I wonder if there are any open source alternatives other than Polyfill

Yes so same issue here, I use "react-quill": "^2.0.0" in my react app, and in the browser I receive "quill.js:4233 [Deprecation] Listener added for a 'DOMNodeInserted' mutation event. This event type is deprecated, and will be removed from this browser VERY soon. Usage of this event listener will cause performance issues today, and represents a large risk of imminent site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information." I was hoping it would be fix it in 2.0.0 but still I receive this warning, knowing that there wont be mutation events in Chrome 127 (going stable on July 30 2024) it seems like a big issue for us, any fix coming in the next weeks?

I'm getting a DOM mutation event deprecation warning with 2.0.2, freshly downloaded today:
recipeDetail.js:170 [Violation] Listener added for a 'DOMNodeInserted' mutation event. This event type is deprecated, and will be removed from this browser VERY soon. Usage of this event listener will cause performance issues today, and represents a large risk of imminent site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information.
 There were many options, my colleague went to quill directly and used that.

For those of you still struggling with this: I'm maintaining a fork that fixes this issue. Try replacing react-quill with the forked react-quill-new in the interim until react-quill is updated. Also follow https://github.com/zenoamaro/react-quill/pull/973 for updates on that.

@VaguelySerious Thank you !


Fix for error handling in latest version of traceur

Previously, Traceur would return an array of errors when several were detected during compilation. The module loader would just report the first. In 0.9.3 though, Tracuer was updated to instead throw a single MultipleErrors type that contains all the errors inside it.
The module loader currently just reports "undefined" as the error, as there is no array with elements, making for a rather opaque error when a compilation error occurs.
This modifies it to still throw the first element when dealing with an array for backwards compatibility, but will otherwise throw the full exception.

Thanks.


[Analyzer] No quick-fix for "Invalid constant value."

I wish there was a quick-fix for Invalid constant value because right now it is unintuitive to see where the const is, especially in longer methods.
Row(
    mainAxisSize: MainAxisSize.min,
      children: const [ // this 'const' should be removed.
        ElevatedButton(
            child: Text("Flutter"),
            onPressed: () { // Invalid constant value.
                print('aaa');
            },
        ),
    ],
),

This may be the most annoying thing in day-to-day usage of Dart...
If the compiler knows exactly what can be const and what can't be, then why do we even have to manage the presence or absence of the keyword? Non-const things can't be const without an error, and const things can't be non-const without a warning.
So, if Dart is not going to actually drop the requirement of the const keyword altogether (presumably because the programmer needs to be alerted as to parts of the program that can't be pre-evaluated at build-time), then editors need a way to auto-manage the presence or absence of const for the user.
I'd like to add the suggestion that this should be able to be auto-fixed on Save. However I would go beyond this: I would like to see const added and removed in realtime, as parts of the code become const or non-const.


How to speedup?

Hello, it's possible to speed up generation music video?
Maybe using GPU instead of CPU?
Thx you.

Should definitely be able to parallelize the selection and analysis of clips.
Not actively working on the project at the moment but something i'll be thinking about! Some time is freeing up for me so may start up work again on this sometime soon


Rename official_document -> official_document_type

https://trello.com/c/HRUXGp3K/1518-support-metadata-for-featured-file-attachments-db-modelling
This renames the attribute to better reflect it's value.

@ChrisBAshton looks like we both ended up at "officially unofficial". The problem with other words is that they don't reflect any terminology we've been using thus far, and ideally we want to be consistent with words that are in use already. I'd say "classification" and "type" are pretty much synonymous, so I'm not seeing any particular advantage there.
At this point, I think we should just go with something and we can always change it if it turns out to be confusing. Do we prefer official_document or official_document_type?
(By the way, "classification" has a bad rep from Whitehall - I challenge you to work out what this model is for!)


Refactor and clean up plugin communication and wire messages

Motivation:
Refactor the plugin machinery for better maintainability, consolidation of wire protocol struct definitions, and groundwork for extending the plugin functionality (such as adding new capabilities or new plugin messages such as dynamic querying of capabilities).
Changes:

factor out the Codable declarations of enums and struct for the plugin wire protocol into a PluginMessage file that can be shared between the plugin and plugin host; this gets us compile-time checking so that the host and plugin are always in sync
separate out the functionality of DefaultPluginScriptRunner to only handle the mechanics to talking to the plugin and not be concerned with what the messages are (this is factored back down into PluginInvocation)
hoist the different kinds of plugin action messages up to top-level messages, allowing each to have a separate set of parameters
factor the plugin input context serializer and deserializer out into their own source files and better separating from the semantics
better separation of the structures for the plugin request structures (for building, testing, etc) to not reference any part of the plugin API; this will allow separate representations when/if necessary
pull the package parameter into the plugin action, to support actions that don't operate on packages (such as querying the plugin for information, etc)

No functional changes.

@swift-ci please smoke test

@swift-ci please smoke test

quite a big PR so not sure that I was able to follow all the nuances. the approach seems good! and of course we can address any additional adjustments in follow up PRs

Great, thanks for taking the time.  Sorry about the big diff — I kind of got carried away in restructuring but should probably have gone back to split things out.  I'll be a bit more mindful of how reviewable it is next time.
Mostly it's just the boilerplate of moving things around and introducing the extra wrappers.  But I appreciate the places you caught where I need to go back and see that I pushed all the last cleanup diffs.  Especially the commented code is something I know I fixed, so I want to make sure those diffs didn't go missing.
Thanks, and I'll update this in tomorrow to address the feedback!

I've address the conflict and the feedback.  Thanks both!

The Linux test failure is:
+ tar xzf /tmp/jenkins-07572e16/workspace/swift-package-manager-self-hosted-Linux-smoke-test/branch-main/latest_toolchain.tar.gz -C /tmp/jenkins-07572e16/workspace/swift-package-manager-self-hosted-Linux-smoke-test/branch-main/latest_toolchain

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

which indicates a problem downloading the toolchain.  As the failing one isn't required and is unrelated to these changes, I will merge.


change image registry from dockerhub to ibm container registry

Changes
Move test images from free dockerhub account to ibm container registry.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[ ] Has Docs included if any changes are user facing
[ ] Has Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
[ ] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
[ ] Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes
NONE

/kind misc

/test check-pr-has-kind-label

/test check-pr-has-kind-label

Earlier multi-arch test images available in ibmcom workspace (i.e https://hub.docker.com/r/ibmcom/) which is sponsored by cloud pak team. due to security reasons, IBM CISO has issued new guidelines to not publish images on dockerhub/ibmcom namespace. alternative one to use ibm public cloud container registry to host images.

Thanks @Basavaraju-G! Would you mind linking this guidance from IBM CISO if it's publicly available? Could you also create an issue for this? If other tekton projects use dockerhub/ibmcom we should migrate them as well and can use the issue for that.
Re: which alternative to dockerhub-- I think this should probably be reviewed by someone with more knowledge of our infrastructure (maybe @afrittoli?) but I have a few questions:

would it make sense to use GCR, since we're already publishing images there?
do we need to maintain any additional credentials for ICR?
do we know of any security reasons to prefer any cloud provider's container registry?

would it make sense to use GCR, since we're already publishing images there?
yes possible, but we need to have access GCR registry to build for s390x/ppc64le platform image.
do we need to maintain any additional credentials for ICR?
Not required, No authentication is required to pull the images.
do we know of any security reasons to prefer any cloud provider's container registry?
i will check this with @afrittoli on this.

/test pull-tekton-pipeline-integration-tests

as of now test images in ibmcom are going to work as it is. so new images we will be pushing to new icr registry. so closing this PR.


build out initial page structure

This sets up a Vue app that has 3 main sections: continuous water quality, algae and toxins, and remote sensing. Each section will hold a visual and text corresponding to the topic. The wavy river with sites is a placeholder for a map that is intended to be a navigation menu. It sticks to the top when scrolled to and can be used to orient the audience to the focal sites. This currently sticks for all sections.
All text is placeholder. Headers are used to outline the page structure. The layout will need some refining once there is agreement on the general structure. Images are placeholder for upcoming demo. Pipeline additions to build algae and other visual elements coming in a subsequent PR, the output pngs are currently committed to be able to run locally.
The main thing to review is that you are able to get the page to build locally. You will need to use npm install --legacy-peer-deps for any dependencies added. This page uses node v14.17.0

Yeah the base repo we have depends on node v14.17.0 due to breaking changes with dependencies (I wrote npm instead of node initially, but they are tied anyways). v14 was recently moved to "maintenance" and v16 is the long term stable release.  It is on my to-do list to re-work the base dependencies.
In the meantime you can have multiple versions and switch between them by using nvm the node version manager. You should be able to follow those steps to install and run nvm use v14.17.0 to get the repo set up.


Prototype schematization of repo

Description
Write some ideas for how a schematized version of the repo would look in the top level prototypes directory.
Todos

[ ] TODO 1

Questions

[ ] Question1

Status

[ ] Ready to go

Codecov Report

Merging #261 (2f528bd) into main (bea4010) will not change coverage.
The diff coverage is n/a.

Thanks for pushing, we will keep this as a prototype and use schematization_v1 branch as our WIP branch so we can always refer back here without it always chopping and changing.

Thanks for pushing, we will keep this as a prototype and use schematization_v1 branch as our WIP branch so we can always refer back here without it always chopping and changing.

yeah I like the idea of keeping this as a kind of drawing board!


ref splitting code could perform more complete validation of content type

Recently it was discovered that colons didn't work in the "filename" part of a file ref, because it would be treated as delimiter for the content type.  This caused:
╎❯ omlmd push http://quay.io/rhatdan/tinyllama:latest '/home/dwalsh/.local/share/ramalama/repos/ollama/blobs/sha256:2af3b81862c6be03c769683af18efdadb2c33f60ff32ab6f83e42c043d6c7816' --empty-metadata

to fail, since the filename has a colon between the hash type and hash in it.
That issue was addressed by https://github.com/oras-project/oras-py/pull/161 which added some I/O (a file existence test) to decide whether or not a colon in the ref "belongs" to the filename or as the ref delimiter. That's the backstory, but during discussion it also came to light that the media type itself isn't validated. This lack of validation had little bearing on the original problem, and so it was decided it was out of scope for the original issue, but it may still merit further investigation. That's why I'm filing this issue (at the request of @vsoch and @tarilabs)
Specifically there are a few areas that could be looked into:

Right now the media type after the colon is not validated, but the OCI spec requires a strictly defined format here
There is some question of whether or not the media type should be allowed to be fully qualified or if only media types of the form maintype/subtype should be supported, not types with parameters (like say text/plain; charset=iso8859-1)
There's some scratch code to do some initial validation and offer better "colon finding" heuristics here (informed by that validation). It's not ready to go as-is. it's untested, and the answer to 2 decides which direction the code needs to go. If parameters shouldn't be supported, the regex's need to be adapted to drop that. If parameters should be supported, ideally there would be some checks added to error out if there are duplicate parameters. It might make sense to just add a dependency on the rfc3986 module or similar
It might also make sense to move the guts of split_path_and_content to the PathAndOptionalContent constructor. It's really just serving as a static constructor in practice.

Anyway, none of this is critical, and it's not something i'm personally going to spend more time on, so we could just close this ticket out if it's not a priority, but I'm filing the issue anyway because I was asked to.

Thank you! Much appreciated.


Updates from OASIS

Added v3.0 logo; removed v2.0 logo
Updated attribute XSL files to use bold for all titles

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


flutter web :  Another exception was thrown: Instance of 'minified:aM'

dart code:

code sample
class _EditDialogState extends State<_EditDialog> {
  bool ready = false;
  html.IFrameElement _ifram;
  @override
  void didUpdateWidget(_EditTaskDecriptionDialog oldWidget) {
    // TODO: implement didUpdateWidget
    super.didUpdateWidget(oldWidget);
  }

  @override
  void dispose() {
    // TODO: implement dispose
    //更新成功之后关闭对话框
    _ifram.remove();
    html.window.removeEventListener("message", (event){
      print("remove message");
    });
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    _ifram = html.IFrameElement()
      ..width = ui.window.physicalSize.width.toString()
      ..height = ui.window.physicalSize.height.toString()
      ..src = './assets/assets/editor_package/editor.html'
      ..id = 'ckeditor'
      ..className = 'ckeditor'
      ..name = 'ckeditor'
      ..style.border = 'none';
    html.window.addEventListener('message', (event) {
      if (event is html.MessageEvent) {
        var data = json.decode(event.data.toString());
        print(data['event']);
        switch (data['event']) {
          case "onEditorRendered":
              String content = '{"event":"setEditorContent","param":"' +
                  Uri.encodeComponent("test") +
                  '"}';
              _ifram.contentWindow.postMessage(content, '*');
            break;
          case "onRequestResources":
            if (data['param'] != null) {
                String content = '{"event":"setResources","param":"' +
                    Uri.encodeComponent('test') +
                    '"}';
                _ifram.contentWindow.postMessage(content, '*');
            }
            break;
          case "onReceiveEditorContent":
              Navigator.of(context).pop();
            break;
          case "onEditorFocused":
            break;
          case "onContentReady":
            break;
          case "onContentRendered":
            ready = true;
            break;
        }
      }
    });

    ui.platformViewRegistry
        .registerViewFactory('editor-panel', (int viewId) => _ifram);

    return new Scaffold(
      appBar: new AppBar(
        title: const Text('view/edit'),
        actions: [
          new FlatButton(
              onPressed: () {
                print("windown3:");
                print(_ifram.contentWindow);
                if (ready && _ifram.contentWindow != null) {
                  _ifram.contentWindow.postMessage(
                      '{"event":"getEditorContentWithOutReturnValue","param":"save"}',
                      '*');
                }
              },
              child: new Text('Save',
                  style: Theme.of(context)
                      .textTheme
                      .subhead
                      .copyWith(color: Colors.white))),
        ],
      ),
      body: HtmlElementView(viewType: 'editor-panel'),
    );
  }
}

dart --> js:
    Z.TP.prototype = {
        $0: function() {
            P.c2("windown3:")
            var u = this.a
            P.c2(W.m0(u.e.contentWindow))
            if (u.d && W.m0(u.e.contentWindow) != null)
                J.Zn(W.m0(u.e.contentWindow), '{"event":"getEditorContentWithOutReturnValue","param":""}', "*")
        },
        $S: 0
    }

it occurs this error when i clicked  'FlatButton';
flutter version:
 🍎   ~  flutter doctor -v                              489  19:56:03 
[✓] Flutter (Channel master, v1.13.1-pre.79, on Mac OS X 10.13.6 17G8037, locale
    zh-Hans-CN)
    • Flutter version 1.13.1-pre.79 at /Users/admin/Library/flutter
    • Framework revision 81aa2710d2 (2 weeks ago), 2019-12-09 21:31:34 -0800
    • Engine revision 2805da9e5d
    • Dart version 2.7.0 (build 2.7.0-dev.2.1 8b8894648f)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/admin/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at:
      /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
    • All Android licenses accepted.

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS
      development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/setup/#android-setup for detailed
      instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 39.0.1
    • Dart plugin version 183.6270

[✓] Connected device (2 available)
    • Chrome     • chrome     • web-javascript • Google Chrome 79.0.3945.88
    • Web Server • web-server • web-javascript • Flutter Tools

command-line arguments:
flutter run -d chrome --release --web-port=55140

I'm having the same problem.
MaterialApp -> Scaffold -> AppBar(
actions: <Widget>[
          IconButton(
            onPressed: () {
              //do something
            },
            icon: Icon(Icons.library_add),
          ),]

Flutter 1.13.5 • channel dev • https://github.com/flutter/flutter.git Framework • revision 41a911099b (vor 12 Tagen) • 2019-12-19 13:48:02 -0800 Engine • revision 0f90e6546b Tools • Dart 2.8.0 (build 2.8.0-dev.0.0 aa6709974d)

i have the same error
code
work well in debug mode but when deploy this bug occur

@mahmoudsalah37 : cloned and ran your app using flutter run -d chrome --release on master channel, was not able to repro. Can you please list steps to repro crash?  (Tried +AddNew on top and it opened dialog fine)

Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so it's always better to open new issues and reference related issues.

Could not load content for org-dartlang-sdk:///lib/_internal/js_runtime/lib/js_primitives.dart (HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME)
I am getting this error running chrome on windows 7 and it is halting my web page from loading.  All code is running as https

Hi everybody,
I've been the same problem, where the origin of this problem, in my case, were Expanded Controls in flutter web, when I tried use multiple expanded controls, for instance
Column: (
Children: [
Text('Hello'),
Expanded(child: BodyContainer()),
]
)
in BodyContainer():
Row: (
Children: [
Expanded(child: Text('hello container'),),
],
)
I guess multiple inheritance with expanded controls are the main problem, from my point of view it's sound logic.

the issue when occurs use expanded or flexible in project when it solve you remove it and set height or width on your Widget

I was just getting this error - after running it on iOS simulator i got a more solvable error. Turns out i was trying to modify a list while still in a for loop iteration. after fixing that, its running just fine


Puppeteer support

My now.json
{
"version": 2,
"name": "request:page",
"builds": [
{ "src": "/index.js", "use": "
@now
/node", "config": { "maxLambdaSize": "40mb" } }
],
"routes": [
{"src": "/","dest": "/index.js" }
]
}
My index.js
const chrome = require('chrome-aws-lambda');
const puppeteer = require('puppeteer-core');
export default async (req, res) => {
let body = '';
req.on('data', chunk => {
body += chunk.toString();
});
req.on('end', async () => {
console.log('1~~')
const browser = await puppeteer.launch({
args: chrome.args,
executablePath: await chrome.executablePath,
headless: chrome.headless,
});
console.log('~2~')
let page = await browser.newPage();
await page.goto('https://index-2d7a4.firebaseapp.com', {waitUntil: 'networkidle0'} );
await page.content();
console.log('~~3')
let status =  await page.evaluate( (body) => {
document.querySelector('varan-input').innerText = body
return true
},body)
console.log('~~4', status)
await browser.close();
res.end(body)
})
};
And it's not work ((
Log
2019-05-11T20:31:45.506Z success Saved lockfile.
2019-05-11T20:31:45.507Z warning No license field
2019-05-11T20:31:45.510Z success Saved 7 new dependencies.
2019-05-11T20:31:45.510Z info Direct dependencies
2019-05-11T20:31:45.511Z └─
@now
<EMAIL_ADDRESS>2019-05-11T20:31:45.511Z info All dependencies
2019-05-11T20:31:45.511Z ├─
@now
<EMAIL_ADDRESS>├─
@now
<EMAIL_ADDRESS>├─
@zeit
<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>2019-05-11T20:31:45.512Z Done in 2.20s.
2019-05-11T20:31:48.835Z running builder.exports.build...
2019-05-11T20:31:48.835Z downloading user files...
2019-05-11T20:31:49.223Z installing dependencies for user's code...
2019-05-11T20:31:49.224Z installing to /tmp/5545ccb9
2019-05-11T20:31:49.454Z running user script...
2019-05-11T20:31:49.454Z compiling entrypoint with ncc...
2019-05-11T20:31:49.985Z ncc: Version 0.18.5
ncc: Compiling file index.js
2019-05-11T20:31:50.356Z ncc: Module directory "/tmp/5545ccb9/node_modules/chrome-aws-lambda/source" attempted to require "puppeteer" but could not be resolved, assuming external.
2019-05-11T20:31:50.789Z ncc: Module directory "/tmp/5545ccb9/node_modules/chrome-aws-lambda/source/puppeteer/lib" attempted to require "puppeteer" but could not be resolved, assuming external.
2019-05-11T20:31:50.789Z ncc: Module directory "/tmp/5545ccb9/node_modules/chrome-aws-lambda/source/puppeteer/lib" attempted to require "puppeteer" but could not be resolved, assuming external.
2019-05-11T20:31:51.004Z ncc: Module directory "/tmp/5545ccb9/node_modules/debug/src" attempted to require "supports-color" but could not be resolved, assuming external.
2019-05-11T20:31:51.343Z ncc: Module directory "/tmp/5545ccb9/node_modules/ws/lib" attempted to require "bufferutil" but could not be resolved, assuming external.
2019-05-11T20:31:51.344Z ncc: Module directory "/tmp/5545ccb9/node_modules/ws/lib" attempted to require "utf-8-validate" but could not be resolved, assuming external.
2019-05-11T20:31:51.376Z ncc: Module directory "/tmp/5545ccb9/node_modules/https-proxy-agent/node_modules/debug/src" attempted to require "supports-color" but could not be resolved, assuming external.
2019-05-11T20:32:02.613Z running builder.exports.prepareCache...
2019-05-11T20:37:28.504Z 1
2019-05-11T20:37:29.641Z ~2~
2019-05-11T20:37:35.498Z 3
2019-05-11T20:37:35.501Z 4~~ true

Thanks for posting @zababurinsv, yes we should definitely support Puppeteer.
Pupeteer asset emission support tracking in https://github.com/zeit/webpack-asset-relocator-loader/issues/35.

It seems the following approach can be used to support Puppeteer:
const chrome = require("chrome-aws-lambda");
const puppeteer = require("puppeteer-core");

module.exports = async (req, res) => {
  const browser = await puppeteer.launch({
    args: chrome.args,
    executablePath: await chrome.executablePath,
    headless: chrome.headless
  });
};

For a complete application using puppeteer, checkout og-image.
Also note that even if ncc supports puppeteer, it won't work well in a serverless environment because its 300 MB.
See the serverless-chrome blog post for more information.

@styfle thanks for the update here, ok I won't prioritise this fix then for now.

This is failing for me with the last now/node and with @0.7.3 that was working 40 days ago
this is the error:
{ Error: Module not found: Error: Can't resolve './lib/api' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './JSHandle' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './LifecycleWatcher' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './DOMWorld' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './JSHandle' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './TimeoutSettings' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './DeviceDescriptors' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './JSHandle' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer-core/lib'
Module not found: Error: Can't resolve './lib/api' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './JSHandle' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './LifecycleWatcher' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './DOMWorld' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './JSHandle' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './TimeoutSettings' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './DeviceDescriptors' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './Events' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
Module not found: Error: Can't resolve './JSHandle' in '/Users/alan/Documents/Projects/scriby-server/node_modules/puppeteer/lib'
    at compiler.close.n (evalmachine.<anonymous>:3:1350338)
    at _promise0.then._result0 (eval at create (evalmachine.<anonymous>:1:349386), <anonymous>:13:1)
    at <anonymous>

I need to create a pdf so I need puppeteer-core and puppeteer

@guybedford I see a regression in puppeteer-core.
https://github.com/zeit/og-image/pull/84
Compare the output from 0.18.5 and 0.20.4
Steps to reproduce
https://github.com/zeit/og-image
cd og-image
npx<EMAIL_ADDRESS>build src/card.ts --source-map -o old
npx<EMAIL_ADDRESS>build src/card.ts --source-map -o new
ls -lA old
ls -lA new

Notice that that new folder is missing the puppeteer-core directory.

@AlessandroAnnini This has been fixed in @now/node@canary since we replace ncc. Thanks!

thank )
I recently used github. Poor oriented.
I have one more question today.
Hi. Yesterday my code worked.
server: express
node: module index.mjs
import express from "express";
const app = express();
app.get('*', (req, res) => {
res.status(200).send({key:'test'});
});
export default app
now:
{
"version": 2,
"name": "WebDav",
"builds": [
{ "src": "index.mjs", "use": "@now/node" }
],
"routes": [
{ "src": "/", "dest": "index.mjs" }
]
}
but today it is not work.
What's happened ?
i get an error
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/tmp/zeit-fun-02176ca18c0dc/___now_launcher.js:21:18)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
How can i use *.mjs with express ?

@zababurinsv do you know the line number / code corresponding to that syntax error? That would help a lot to debug further here (the builder upgrade has been reverted for now, but it would be good to know what the issue was).


Getting a 404 page when user tries to self register through the console

Describe the issue:

Getting a 404 page when user tries to self register , due to the incorrect url.
There is a null point tenanted path in the registration url (https://localhost:9443/authenticationendpoint/null/register.do?utm_source=console)
https://github.com/wso2/product-is/assets/40081059/b01eded8-32ce-4325-b9a7-bc6177564ad9
How to reproduce:

Login in to the console
2.Click on the "Register" button
Expected behavior:

Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

With the recent unification effort, in the console login page the Register button is available for self registration even if self registration is disabled.

When self registration is enabled, both the Register button and Create and account button is visible.

Therefore Register button should be removed from the login UI.
In the login page, the logic handles myaccount and console separately [1] but since the tenantForTheming parameter passed is null this button is not visible in the myaccount. Therefore we should be mindful about this logic when fixing this issue since the Register button might be visible if tenantForTheming value is not null.
[1] https://github.com/wso2/identity-apps/blob/master/identity-apps-core/apps/authentication-portal/src/main/webapp/login.jsp#L1036

This issue is tracked with https://github.com/wso2/product-is/issues/17433


Roof Repair

Porch roof needs to be fixed within a week or two before the city people come.
Porch roof area that needs to be fixed is 8' wide, like a 35-degree angle slope.
The boards and shingles have already been bought up for this area.

[| Roofers Name |	Estimate |	Comments |

| Greg Bailey  |$2500|	   |This estimate is for front porch roof, material included. This company is insured. Payment methods are cash app check or cash.|

| Amish Roofing|	|$29,000| |This price includes everything and it is for the whole roof of the property.|

|  Mike |       |$4.000|    |This estimate is for rebuild and roof it and put the soffit back up. This is for front porch|


NullPointerException when trying to "press" submit button the second time during authentication

The exception occurs here:
 // FEIDE requires pressing the submit button after submission (because of javscript issues)         client.waitForBackgroundJavaScript(5000);         page = ((HtmlSubmitInput) page.getElementById("postLoginSubmitButton")).click();
I believe this is because blackboard has removed the id on the button as shown below:
<button type="submit" class="button-primary breathe-top">Logg inn</button>

Issue fixed in 27556f2 as the NTNU Blackboard Scraper no longer uses FEIDE to authenticate student accounts


Enabling "View in API"

Updating Capturing API section with intructions on enabling the View in API button.

Fixes #460
Reminders

See the README for more details on how to work with the Rancher docs.

Verify if changes pertain to other versions of Rancher. If they do, finalize the edits on one version of the page, then apply the edits to the other versions.

If the pull request is dependent on an upcoming release, make sure to target the release branch instead of main.

Description

Comments

@martyav Thanks for the review Marty! Just applied the changes.


All the derives, add fallible point conversions

Hi! Thank you for helping out with Embedded Graphics development! Please:

[x] Check that you've added passing tests and documentation
[x] Add a simulator example(s) where applicable
[x] Add a CHANGELOG.md entry in the Unreleased section under the appropriate heading (Added, Fixed, etc)
[x] Run rustfmt on the project
[x] Run ./build.sh (Linux/macOS only) and make sure it passes. If you use Windows, check that CI passes once you've opened the PR.

 This was a find and replace with some manual fixes where some derives couldn't be used, so some might not make sense. Closes #238.

[x] Add fallible conversions for (u32, u32) and Point. Closes #242.

[x] Revert dependency fudging (due to alpha version numbers in Cargo.tomls I think)

[x] ~Decide whether to add the following~ - not doing it. It can be added later if it's a common usage pattern.
impl TryFrom<Size> for (i32, i32) { ... }
impl TryFrom<(i32, i32)> for Size { ... }

[x] https://github.com/jamwaffles/embedded-graphics/pull/243#discussion_r367593226

I realise there's a lot of code to review @rfuest but if you have time could you look through this too?

I realise there's a lot of code to review @rfuest but if you have time could you look through this too?

Yes, I hope that I'll find some spare time to do the code reviews on the weekend.

Cheers for the review. I've removed nearly all the Default derives you picked out - the blanket copypasta was a bit overreaching and most of them certainly don't make sense. Ready for another pass when you're free.

Oh! From the iterator, not the primitive itself... you can blame Github's lack of context in review comments on the main thread for that lol. Fixed along with other suggestions.

LGTM :+1:

Beaut! Thank you!


Fix alexhillc/AXPhotoViewer#28

By assigning the new photoIndex to self.currentPhotoIndex, the following assertion and crash scenario is fixed:

Host app creates an AXPhotosViewController and calls navigateToPhotoIndex(index, animated: false) on it, where index > 0
Host app presents AXPhotosViewController
User does not swipe left or right, but just dismisses the photo view
Assertion "Unable to resolve some necessary properties in order to transition. [...]" fails, and on a non-debug build the app crashes.

Thanks for this fix! It will be in the next release.


More utils for queue

@CAIMEOX hi, thanks for your contributions. Given your past contributions, we would like to invite you join us as a collaborator, you are welcome to reach out to<EMAIL_ADDRESS>for more details


Check expression of the selected RBPs in tissues/cell types

We have lists of selected human RBPs that may bind to SARS-CoV-2 RNA (these are in .tsv files on the shared VM, see project readme).
Check the following:

Which of these are expressed in the lung? (GTex, Proteomics databases)
Are they co-expresssed in cells that also express ACE2 and TMPRSS2? (use scRNA-seq data from https://figshare.com/articles/Single-cell_RNA-Seq_of_human_primary_lung_and_bronchial_epithelium_cells/11981034/1)

https://github.com/avantikalal/covid-gene-expression/issues/56
BLASTGO or Blastkoala will give us the ontology.


Mixed units: index by largest or smallest unit?

In a mixed unit such as "foot-and-inch", in what unit should the scalar value be indexed?
Should 5 feet 10 inches be:

70 foot-and-inch (indexed in smallest unit)
5.833 foot-and-inch (indexed in largest unit)

ICU internally does option 2, but I don't see that behavior discussed in UTS 35.
@macchiati @younies @ben-allen

I've been assuming option 2, largely because I've been thinking of precision as being tied to the larger unit. An argument in favor of option 1 might be the meter-and-centimeter mixed unit used for person-heights in some locales; when creating a Measure using meter-and-centimeter as unit, it is likely more natural to give (for example) 180 instead of 1.80 for value.

why would it be surprising that converting to another unit would change the value? isn't that the primary purpose of converting to another unit?

Converting from foot to foot-and-inch may make sense if you want to format the non-whole-foot part of the value with inches, rather than fractional feet. And if you're doing that, it would be surprising if you didn't still have a value in feet at the end.

I think there are multiple mental models here, and both are valid.
One is:

"5 ft 10 in" is a nicer way of saying "5.833 ft"

The other is:

"5 ft 10 in" is a nicer way of saying "70 in"

Depending on which mental model you subscribe to, the answer to this question may differ.

My personal opinion: I tend to subscribe to the second mental model: "5 ft 10 in" is a more comprehensible version of "70 in". Evidence from context person-height:

Babies and young children are generally measured in inches up to around 36 in (3 ft). It is easy to find web sites that use these measurements.
When it comes to performing calculations on person height, you usually convert to inches. For example, the CDC formula for body mass index asks you to input your height in inches.
Signage referring to person height is often rendered in inches, such as signs at amusement parks.

Anecdotally, I have never heard anyone refer to height as "5 point something feet" or even "five-and-a-half feet".

One other advantage of using smallest-unit indexing is that digit display options make more sense. For example, if you say minimumFractionDigits: 2, that can only refer to the smallest unit, since the larger units are always truncated to an integer.

I also agree that feet + inches is nicer than just inches, unless I'm measuring something :-)

Evidence from context person-height

On the other hand, consider degrees-and-arc-minutes-and-arc-seconds.


members: fix checkbox and avatar alignment

closes https://github.com/inveniosoftware/invenio-communities/issues/690

Closed in favour of https://github.com/inveniosoftware/invenio-app-rdm/pull/1684 as the change should be done in the theming as discussed above


Kami isn't working at all.

No clue why, I have Killzone running and it is the correct version.

Maybe you have IPC disabled on your Rpcs3, turn that on and it will work (I played this week Killzone without problem, the same happened to me and it was that I hadn't turned on IPC before launching the game)


Create Logo/Icon

Before release, it should have a Logo/Icon for better recognizability.

Fixed in 83b3b8030519b67b5d93b487469f0c327f63a32

Icons from the Numix Project (GPL, https://github.com/numixproject):


Upgrade LS Client Implementation for Tag Support

Summary of the changes

Validated earlier: https://github.com/dotnet/aspnetcore-tooling/pull/2796
Requires Roslyn to also upgrade for us to be able to re-validate.

Needs to be merged once https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/299345 goes in.

Needs to be merged once https://devdiv.visualstudio.com/DevDiv/_git/VS/pullrequest/299345 goes in.


Crash on GoTrueClient initialization

Bug report
I am seeing in Crashlytics reports that the app is crashing on the GoTrueClient init. It's not a regular thing since I don't get it often but only once in a while. It's at the start of the application. I am attaching the crashlytics data:
Crashed: com.apple.root.user-initiated-qos.cooperative
0  libsystem_kernel.dylib         0x7558 __pthread_kill + 8
1  libsystem_pthread.dylib        0x7118 pthread_kill + 268
2  libsystem_c.dylib              0x1d178 abort + 180
3  libswiftCore.dylib             0x3b93a8 swift::fatalError(unsigned int, char const*, ...) + 134
4  libswiftCore.dylib             0x3b93c8 swift::warningv(unsigned int, char const*, char*) + 30
5  libswiftCore.dylib             0x3bdfd8 swift_deallocPartialClassInstance + 190
6  libswiftCore.dylib             0x3bde28 _swift_release_dealloc + 56
7  libswiftCore.dylib             0x3bec4c bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 132
8  clutch-ios                     0x156f69c assignWithTake for Environment + 96 (<compiler-generated>:96)
9  libswiftCore.dylib             0x39a83c assignWithTake for ClosedRange<>.Index + 336
10 clutch-ios                     0x156bd5c outlined assign with take of Environment? + 52436 (<compiler-generated>:52436)
11 clutch-ios                     0x156ad1c specialized GoTrueClient.init(url:headers:localStorage:configuration:) + 35 (GoTrueClient.swift:35)
12 clutch-ios                     0x1560c74 GoTrueClient.__allocating_init(url:headers:localStorage:) + 66 (GoTrueClient.swift:66)
13 clutch-ios                     0x1542e6c SupabaseClient.init(supabaseURL:supabaseKey:options:) + 84 (SupabaseClient.swift:84)
14 clutch-ios                     0xaff30 SupabaseService.init(cognitoUserID:) + 760 (<compiler-generated>:760)
15 clutch-ios                     0xafc88 SupabaseService.__allocating_init(cognitoUserID:) + 35 (SupabaseService.swift:35)
16 clutch-ios                     0x316e54 DatabaseService.__allocating_init() + 16 (DatabaseService.swift:16)
17 clutch-ios                     0x4e11c (1) suspend resume partial function for UserService.fetchUser() + 104 (UserService.swift:104)
18 libswift_Concurrency.dylib     0x41948 swift::runJobInEstablishedExecutorContext(swift::Job*) + 416
19 libswift_Concurrency.dylib     0x42868 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72
20 libdispatch.dylib              0x15944 _dispatch_root_queue_drain + 396
21 libdispatch.dylib              0x16158 _dispatch_worker_thread2 + 164
22 libsystem_pthread.dylib        0xda0 _pthread_wqthread + 228
23 libsystem_pthread.dylib        0xb7c start_wqthread + 8

Object 0x2834215e0 deallocated with retain count 2, reference may have escaped from deinit.

A clear and concise description of what the bug is.
To Reproduce
Strat the application and the app crashes automatically.
It only happens like 15% of the times.
Expected behavior
It should start as usual.

Any update on this? It's still crashing.

@nyeu can you share your initialisation code so we can help you debug this further?

Sure! This is a big blocker for me since it crashes a lot when using Supabase with GoTrue.
I do the init like this
struct ClientService {
    let client: SupabaseClient

    init() {
        self.client = SupabaseClient(supabaseURL: URL(string: "https://url.supabase.co")!,
                                     supabaseKey: "supabaseKey")

    }
}

struct AppStore {
    let clientService = ClientService()
    let client = ClientService().client
    var user: User?
}

And the crash always happens here:

Hey @nyeu I see that you’re initializing SupabaseClient twice, I think that may be the issue.
I’ll investigate and fix it, but in the meantime, can you try having a single instance of SupabaseClient?

I made it a singleton and so far seems to be working great. Thank you!
It would be awesome to have this in the documentation, if I have some time tomorrow I'll make a PR for it

I’ll actually fix the implementation to allow multiple instances, but thanks for issuing this.


add support for other languages

It's possible to change the default language? How?

If you look at line 19 in whispercpp.pyx you'll see:
    char* LANGUAGE = b'en'

This can be changed to the preferred language code. See ggerganov/whisper.cpp for a full list. Ideally, this will soon become an option on the Whisper object.


improve connection handling

Summary

improved connections in the playground.
Previously we had issues with changing keys url - with disconnects not being saved - with general flakiness around the connected state
How did you test your changes?

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
1

Sum
2


Add an API that allows me to select the config values I return

This likely needs moving to the service repo, but opening here for now
Currently, when I open an environment via the API, I get the full JSON for that given environment returned.
This leaves it up to the client to extract the information from it that's required.
Having an API endpoint that allows me to retrieve just that value would be nice

Open already supports returning a single property path, is that not sufficient?

The open command supports retrieving a single property path, is that not what you want?
Open the environment with the given name and return the result
This command opens the environment with the given name. The result is written to
stdout as JSON. If a property path is specified, only retrieves that property.
Usage:
esc open [/] [property path] [flags]


Rain vs snow measurements

Can snow precipitation switch to centimeters (cm), instead of millimeters (mm)?
From what I've seen on most apps it uses millimeters (mm) for rain and centimeters (cm) for snow. Do the MET Norway or Open-Meteo APIs make any distinction between the 2 measurements for rain vs snow?
What I gathered is the measurement for snow would normally be 10-12x for the same precipitation if it fell as rain. I've been reading 16mm of snow and thought well that's not a lot (only 1.6cm) but then if you do x10 it's a lot more.
Here's a very brief discussion on the topic: https://earthscience.stackexchange.com/questions/765/transfer-precipitation-forecast-in-mm-to-expected-snowfall-in-cm

MET Norway doesn't make a distincition, but Open-Meteo does. I'll see what I can do, this makes sense. Thank you!


Run CI Go tests locally

Signed-off-by: Dhruv Patel<EMAIL_ADDRESS>
Description

This PR fixes #893
Notes to reviewers
Checklist

[x] Signed commits.
[x] PR title includes [meshery]:enchantments

GO111MODULE=off will do the trick to not add packages to go.mod.

Thanks for jumping in here, @dhruv0000!

Great work @dhruv0000 !


Some Ubuntu console issues.

On focal during Adafruit_BBIO.GPIO build:
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBBBVERSION41 -Isource/include/ -I/usr/include/python3.8 -c source/c_pwm.c -o build/temp.linux-armv7l-3.8/source/c_pwm.o -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-cast-function-type -Wno-format-truncation -Wno-sizeof-pointer-memaccess -Wno-stringop-overflow
In file included from /usr/include/string.h:495,
                 from source/c_pwm.c:27:
In function 'strncpy',
    inlined from 'pwm_setup' at source/c_pwm.c:459:25:
/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:106:10: error: '__builtin_strncpy' output may be truncated copying 250 bytes from a string of length 299 [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

On focal (not sure if this is a problem or just a root ownership thing):
Setting up systemd (245.4-4ubuntu3.1) ...
Detected unsafe path transition / -> /var during canonicalization of /var.
Detected unsafe path transition / -> /var during canonicalization of /var/spool.
Detected unsafe path transition / -> /run during canonicalization of /run.
Detected unsafe path transition / -> /var during canonicalization of /var.
Detected unsafe path transition / -> /var during canonicalization of /var/lib.
Detected unsafe path transition / -> /run during canonicalization of /run.
Detected unsafe path transition / -> /run during canonicalization of /run.
Detected unsafe path transition / -> /run during canonicalization of /run/lock.
Detected unsafe path transition / -> /run during canonicalization of /run.
Detected unsafe path transition / -> /run during canonicalization of /run/sudo.
Detected unsafe path transition / -> /run during canonicalization of /run.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd/netif.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd/netif.
Detected unsafe path transition / -> /run during canonicalization of /run/systemd/netif.
Detected unsafe path transition / -> /run during canonicalization of /run.
Detected unsafe path transition / -> /var during canonicalization of /var/lib.
Detected unsafe path transition / -> /var during canonicalization of /var/lib/systemd.
Detected unsafe path transition / -> /var during canonicalization of /var/lib.
Detected unsafe path transition / -> /var during canonicalization of /var.
Detected unsafe path transition / -> /var during canonicalization of /var/log.
Detected unsafe path transition / -> /var during canonicalization of /var.
Detected unsafe path transition / -> /var during canonicalization of /var/cache.
Detected unsafe path transition / -> /var during canonicalization of /var/log.
Detected unsafe path transition / -> /var during canonicalization of /var/log.
Detected unsafe path transition / -> /var during canonicalization of /var/log.
Detected unsafe path transition / -> /var during canonicalization of /var/log.
Detected unsafe path transition / -> /var during canonicalization of /var/log/journal.
Detected unsafe path transition / -> /var during canonicalization of /var/log/journal.
Detected unsafe path transition / -> /var during canonicalization of /var/log/journal.

As usual, no rush. Just trying to help out.

kmod issue is back on 18.04.

Adafruit_BBIO.GPIO build fixed by commit https://github.com/adafruit/adafruit-beaglebone-io-python/commit/24a617aecf7cee89d0b62452c86b899e2c02e51b
Closing issue.


Add websocket transport option to support browsers

In order to support magic wormhole client implementations running in browsers, the transit relay must support a reasonable browser-compatible transport. Websockets are already used in the mailbox server component and therefore seem like a reasonable choice for this.
The transit relay presently mixes the concerns of the state of the relay service and the transport logic. It would be ideal to separate these while making the transport interchangeable by implementing an interface that the service can consume.

[ ] Define state machine
[ ] Define transport interface
[ ] Implement state machine
[ ] Implement transport interface for websockets
[ ] Implement transport interface for TCP

State-machine PoC: https://github.com/LeastAuthority/magic-wormhole-transit-relay/pull/2

State-machine PoC: https://github.com/LeastAuthority/magic-wormhole-transit-relay/pull/2

Calling this "done" even if stuff isn't merged upstream yet ...


[Style]Improvement in search bar

What's the style idea?
Search bar can be more attractive.

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

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

Please assign me this project so i can improve in style of search bar.


Feature request: Implement syntax highlighting support for Dart/Flutter

Feature request
Add syntax highlighting support for the Dart (and Flutter) programming language.
Official Dart VS Code extension syntax files https://github.com/Dart-Code/Dart-Code/tree/master/syntaxes
Monaco language configuration for Dart
const dartConfiguration = {
    comments: {
		lineComment: "//",
		blockComment: [ "/*", "*/" ]
	},
	brackets: [
		["{", "}"],
		["[", "]"],
		["(", ")"]
	],
	autoClosingPairs: [
		{ open: "{", close: "}" },
		{ open: "[", close: "]" },
		{ open: "(", close: ")" },
		{ open: "'", close: "'", notIn: ["string", "comment"] },
		{ open: "\"", close: "\"", notIn: ["string"] },
		{ open: "`", close: "`", notIn: ["string", "comment"] },
		{ open: "/**", close: " */", notIn: ["string"] }
	],
	surroundingPairs: [
		["{", "}"],
		["[", "]"],
		["(", ")"],
		["<", ">"],
		["'", "'"],
		["\"", "\""],
		["`", "`"]
	]
};

Help Wanted

@VarghaSabee Would you be able to provide a program sample, so that I have something to test the syntax against?
Something similar to the examples from the monarch page would be very helpful.

@nrayburn-tech you can edit and and test dart syntax (real time) in codesandbox follow this link https://codesandbox.io/s/monaco-editor-zpept?fontsize=14&hidenavigation=1&theme=dark,
I also forked the monaco-languages respository and added a basic dart syntax support, but is very weak and needs to improve https://github.com/VarghaSabee/monaco-languages (feature branch)

I need dart/flutter version of https://www.npmjs.com/package/monaco-yaml.

I need dart/flutter version of https://www.npmjs.com/package/monaco-yaml.

Should this issue be closed because the original request is resolved due to https://github.com/microsoft/monaco-languages/pull/84 being merged or should it stay open to track the above feature request?


It seems that playwright isn't installed correctly in docker

Describe the bug
Opendevin tried to use playwright to browser online, but failed because playwright isn't installed correctly in docker.
playwright install command runned, but failed.(see screenshot below)
Setup and configuration
Current version:

I'm using the latest docker image.

My operating system: MacOS (M1 Max chip)

My environment vars and other configuration (be sure to redact API keys):
export WORKSPACE_DIR=/Users/fufu/codes/playgruond/workspace4opendevin/test_project
export LLM_API_KEY="sk-non-important"
export LLM_BASE_URL="https://someproxydomain2openai.com/v1"

My model and agent (you can see these settings in the UI):

Model: GPT3.5
Agent: MonologueAgent

Commands I ran to install and run OpenDevin:
docker run \
    -e LLM_API_KEY=$LLM_API_KEY \
    -e LLM_BASE_URL=$LLM_BASE_URL \
    -e WORKSPACE_MOUNT_PATH=$WORKSPACE_DIR \
    -v $WORKSPACE_DIR:/opt/workspace_base \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -p 3000:3000 \
    ghcr.io/opendevin/opendevin:latest

Steps to Reproduce:

Create a pixel style RPG game.

Logs, error messages, and screenshots:
ACTION:
BrowseURLAction(url='https://www.pixelart.com/', action=<ActionType.BROWSE: 'browse'>)
huggingface/tokenizers: The current process just got forked, after parallelism has already been used. Disabling parallelism to avoid deadlocks...
To disable this warning, you can either:
	- Avoid using `tokenizers` before the fork if possible
	- Explicitly set the environment variable TOKENIZERS_PARALLELISM=(true | false)

OBSERVATION:
BrowserType.launch: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1112/chrome-linux/chrome
╔════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just installed or updated.       ║
║ Please run the following command to download new browsers: ║
║                                                            ║
║     playwright install                                     ║
║                                                            ║
║ <3 Playwright Team                                         ║
╚════════════════════════════════════════════════════════════╝

Additional Context

I think this is caused by PATH env didn't set correctly in docker. Maybe try python -m playwright install ?

I think I've solved the problem by running command playwright install-deps mannually in docker exec in docker (opendevin:latest)

Good catch! We probably just need to add that command here: https://github.com/OpenDevin/OpenDevin/blob/main/containers/app/Dockerfile

Please add RUN npx -y<EMAIL_ADDRESS>install --with-deps  to line 53 in containers/app/Dockerfile then rebuild image to help check if this fix the problem.

@Umpire2018 I think that's for interacting using node.
@rben after 27?https://github.com/OpenDevin/OpenDevin/blob/aed82704a947df6e348a5fcf044c482f8e580f5f/containers/app/Dockerfile#L27

@Umpire2018 I think that's for interacting using node.

I believe it's to install playwright system-wide.  Below is its suggestion for your reference.

Most likely both python and npm can be used to install playwright globally. Since we're calling playwright from python, we should probably use that one.
@SmartManoj yeah I think you found the best spot for it

In the original issue at the top, the agent is trying to access Playwright. Does that not mean Playwright needs to be installed on the sandbox image rather than the app image?

If it does go in the app image, it should be in the runtime stage, so perhaps closer to line # 40

BrowseURLAction is happening on the app image.

The OP installed it in the sandbox itself.
As I understand it, it's the Agent that is trying to install playwright (and failing), rather than the OP.

BrowseURLAction is happening on the app image.
👍 Someone needs to tell the agent that there's a BrowseURLAction it can use instead of installing playwright. Perhaps in the system prompt.

The command should be run only once. So, it should be in the backend-builder. right?
if you install it in the backend-builder, it wont make it to the final image, unless if you're explicitly copying it over. "runtime" doesn't mean it'll get run everytime the image is launched. see: https://docs.docker.com/build/building/multi-stage/

I think this is what happened:

agent issues a browse action
backend (not sandbox) tries to run playwright
backend reports an error "playwright not installed" to the agent
agent tries to run install playwright in the sandbox

but obviously that won't fix the issue, because it's the backend that needs access to the command

The OP installed it in the sandbox itself.

@foragerr  Manually using the docker GUI

Could be, give it a try.

can anyone try https://github.com/OpenDevin/OpenDevin/pull/1184 to see if it works?


history may fail sometimes

Run history repeatly, you may get following problem:
~> history
Exception: database table is locked: cmd
Traceback:
  [interactive], line 1:
    history

if you pipe the output to count, the probability the problem happens becomes higher.

@zhsj Use this instead for editor mode
~> $le:history 233
▶ 'ls -la'
~> each { put $@ } $le:history
▶ 'ls -la'

and maybe history builtin for script? @xiaq
~> elvish a.elv
Exception: variable $le:history not found
Traceback:
  [interactive], line 1:
    each { put $@ } $le:history
Exception: elvish exited with 1
Traceback:
  [interactive], line 1:
    elvish a.elv
~> cat a.elv
each { put $@ } $le:history

However, the builtin history is still dangerous for it will fail whenever the table is locked.

See: https://github.com/mattn/go-sqlite3/issues/274
PS. Since this bug might indicate that we are using sqlite in a wrong way, I am not accepting the PR to remove history until this bug is fixed.

Also, with history | each { }, this happens virtually every time on my machine.


Unspecified GSS failure.

Hi- Awesome tool, can't thank enough.
I have real trouble getting bloodyAD to work with a ccache file. In many cases now, I have been able to obtain a ccache file and interact with the domain using tools such as impacket and smbclient. However, when I do the same export KRB5CCNAME=... and try to use bloodyAD, I seem to always receive the same error:
gssapi.raw.misc.GSSError: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor<PHONE_NUMBER>): Cannot find KDC for realm "bla.LOCAL"

I've spent time debugging, configuring krb5.conf, dns, more dns, and even more dns. Typical command I am trying to run:
proxychains4 bloodyAD -d bla.local -u 'user1' -k --host <IP_ADDRESS> get object sysadm

Am I doing something wrong? Missing some resource? Or is this a bug?

Maybe it's because you put the ip address of the host instead of the hostname. Try to replace that and add an entry in /etc/hosts.
If it still doesn't work check my blog with a detailed article on Kerberos with bloodyAD

Hey, thanks for the response - I still haven't resolved this. Would you mind sharing the typical krb5.conf you use with bloodyAD? I have performed more trouble shooting and referenced your blog for help, without success. I have tried updating /etc/hosts and tried with an IP or hostname in the command, I have attempted with many configurations for krb5.conf. The one thing that I find very interesting is that the impacket example tools work with the tickets I have, but the ldap3 package+bloodyAD does not- any idea what this could be / what else I could look into to debug? Thank you in advance.

Did you try without proxychains? Maybe it's proxychains which doesn't redirect the dns request of krb5


Assets/VRTK/SDK/SteamVR/SDK_SteamVRController.cs(732,27): error CS0117: SteamVR_Utils' does not contain a definition for Event'

Unity 5.5.0f3
SteamVR 1.2.0

Fixed with the following lines:
SteamVR_Events.System("TrackedDeviceRoleChanged").Listen(OnTrackedDeviceRoleChanged);
private void OnTrackedDeviceRoleChanged(VREvent_t   args)

Also fixed by using version 3.0.1 of vrtk
Check the FAQs
https://vrtoolkit.readme.io/docs/frequently-asked-questions


Make tool call response compatible with OpenAI format

Description
Currently, the response for a tool call looks like this:
{
  "model": "llama3.1",
  "created_at": "2024-07-22T20:33:28.123648Z",
  "message": {
    "role": "assistant",
    "content": "",
    "tool_calls": [
      {
        "function": {
          "name": "get_current_weather",
          "arguments": {
            "format": "celsius",
            "location": "Paris, FR"
          }
        }
      }
    ]
  },
  "done_reason": "stop",
  "done": true,
  "total_duration": 885095291,
  "load_duration": 3753500,
  "prompt_eval_count": 122,
  "prompt_eval_duration": 328493000,
  "eval_count": 33,
  "eval_duration": 552222000
}

However, I would like the response to be compatible with the OpenAI format, which includes an id and type field for each tool call. The desired format is as follows:
{
  "model": "llama3.1",
  "created_at": "2024-07-22T20:33:28.123648Z",
  "message": {
    "role": "assistant",
    "content": "",
    "tool_calls": [
      {
        "id": "call_62136354",
        "type":  "function",
        "function": {
          "name": "get_current_weather",
          "arguments": {
            "format": "celsius",
            "location": "Paris, FR"
          }
        }
      }
    ]
  },
  "done_reason": "stop",
  "done": true,
  "total_duration": 885095291,
  "load_duration": 3753500,
  "prompt_eval_count": 122,
  "prompt_eval_duration": 328493000,
  "eval_count": 33,
  "eval_duration": 552222000
}

Additionally, the lack of an id field in the current format prevents a software from responding to multiple simultaneous calls to a tool.
Steps to Reproduce

Make a tool call request.
Observe the response format.

Expected Behavior
The response should include an id and type field for each tool call, making it compatible with the OpenAI format.
Actual Behavior
The response does not include an id and type field for each tool call.
Additional Information
This change is necessary to ensure compatibility with the OpenAI API and to handle multiple simultaneous tool calls effectively.
Labels

enhancement
compatibility
api

@rick-github  Thank you very much for pointing out.


Datetime not rendered correctly

Thanks very much for this wrapper.
I have been hacking around trying to get datetime to display correctly but I cannot.  Specifically, line 401 (highcharts.py)
obj = (u"Date.UTC({year},{month},{day},{hours},{minutes},{seconds},{millisec})"
doesn't seem to lead to the correct format being output when I provide an array of datetime objects for the x-axis.  I get outputs like "1427846400000" instead of "2014-07-01".
Thanks and all the best.

We just added an example with datetimes on the xAxis: http://nbviewer.jupyter.org/github/kyper-data/python-highcharts/blob/master/examples/ipynb/highcharts/spline-irregular-time.ipynb. Hopefully that helps! If not, feel free to reach out again.


cpm1 or cpm2 named_parameters() is empty []

when I want to get parameters,I got the empty [] from cpm1 or cpm2 named_parameters()?

We have not implemented the get parameters function.  If you need parameters, you can visit https://resource.wudaoai.cn/home?ind=2 to download them.


feat(si-cli): Add support for custom AWS ENDPOINT URLs

Fixes: #2659
This allows us to point our SI instance against a localstack setup in the veritech container
All we need to do is to pass an endpoint url as part of the configure command :) It can even use fake credentials
PLEASE NOTE: Qualifications that use --dry-run in AWS will return an empty response from localstack - but you would be able to check the localstack logs for a 200 response:
2023-10-18T22:11:31.320  INFO --- [   asgi_gw_0] localstack.request.aws     : AWS ec2.CreateVpc => 200

https://share.descript.com/view/Uq3tBNcL3oU

bors merge


Support to add custom consensus in conduit

This is dependant on https://github.com/algorand/go-algorand-sdk/pull/625
Summary
Conduit cannot process any blocks for algorand blockchains with custom consensus. This 5 line PR fixes it.
Test Plan
I tested it manually on aramidmain blockchain.

for the record in the current official conduit is still the bug that the custom consensus cannot be processed


Retrieved session key incorrect in Firefox & Chrome

I usually use Firefox, and was able to easily follow the directions to get the session key in _simpleauth_sess.
However, when I tried humble-cli auth [the key], it gives me the following error:
Expressions are only allowed as the first element of a pipeline.
+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ExpressionsMustBeFirstInPipeline
There are two pipes in the session key-- it's a series of numbers & letters, then a |, then just some numbers, then a |, and a group of numbers and letters. If I remove everything from the | and beyond, I don't get the error, but trying to use 'humble-cli ls' gives me the error that it's an unauthorized request, and suggests the key is wrong.
Thinking it could be because my firefox is heavily modified by extensions, I opened a fresh Chrome browser with no add-ons, and retrieved the session key there. However, I got the exact same string I got in Firefox with the two |'s.
If it helps, the first section of it is 156 characters, the middle part (without including the pipes) is 10 numbers, and the last section without the pipe is 40 characters. I've tried each of these 3 sections separately as the 'key', and humble-cli accepts them, but then says unauthorized request. And if any |'s are still in it, I get the above error about expressions.
Edited because I forgot to say, I'm on Windows 10, using powershell in admin mode. I tried in cmd-prompt as well just in case, but got basically the same results.

Hi @JinxLuckless .
The token format you described looks correct. My HB token is similar.
Try wrapping your token in quotes:
humble-cli auth '<TOKEN>'

Oh, of course! I should've realized, thank you so much. That works, thanks!

Wasn't a bug, my bad. Thank you for your help!


[FLINK-23462] [docs-zh] Translate the abfs documentation to chinese

What is the purpose of the change
Translate the documentation changes that were made in this PR to chinese https://github.com/apache/flink/pull/16559/
Brief change log

Translate the content related to https://github.com/apache/flink/pull/16559/ in flink/docs/content.zh/docs/deployment/filesystems/azure.md
Translate the content related to https://github.com/apache/flink/pull/16559/ in flink/docs/content.zh/docs/deployment/filesystems/overview.md
Correct the bold display of the 50th line in flink/docs/content.zh/docs/deployment/filesystems/overview.md

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

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

Documentation

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

@flinkbot run azure

Sorry for not looking at it earlier. I'll merge now (failure unrelated to doc changes).


to_pil_image mutates a 2-d tensor

@fmassa  is this intended ?
I feel this might create a problem if we have a batch of images as 2d tensor and we just want to generate the images by keeping the tensor as it is.
The Problem is here :
https://github.com/pytorch/vision/blob/22bc44ed76ec314e8c27df1575757d82f2eda0a3/torchvision/transforms/functional.py#L120
Proposed Fix:
Adding inplace option in the args.

@surgan12 this mutation in particular is not expected I'd say. But note that in some cases we might share the storage of the tensor with the PIL image, which could potentially lead to mutation in the original tensor.
Can you just send a PR doing
pic = pic.unsqueeze(0)

?

@fmassa  sure !!


overloads without implementations (in stub files) are not detected

Describe the bug
Methods and functions that are decorated with @overload but do not have an implementation (as is standard in a stub file) are not detected:
To Reproduce
# mystub.pyi
from typing import overload

class M:
    @overload
    def f(self, x: int) -> int: ...
    @overload
    def f(self, x: str) -> str: ...

class M2:
    @overload
    def f(self, x: int) -> int: ...
    @overload
    def f(self, x: str) -> str: ...
    def f(self, x: str | int) -> str | int: ...  # one wouldn't normally do this in a stub

In [3]: griffe.load('mystub._test.M').members
Out[3]: {}

In [4]: griffe.load('mystub._test.M2').members
Out[4]: {'f': <Function('f', 14, 14)>}

Expected behavior
Expected f method to be detected.
System (please complete the following information):

griffe version: 0.24.1
Python version: 3.10
OS: mac

Will probably be relevant for https://github.com/mkdocstrings/mkdocstrings/issues/308 as well

Thanks for the report!
It's maybe a bug in the code that merges stubs data into actual module data, but I can't see it :thinking:
Do you have a public repo I could use to debug?

the repo i found it on was that same (compiled) pymmcore repo.  so
pip install pymmcore

def test_overloads():
    import griffe
    core = griffe.load('pymmcore.CMMCore')
    assert 'defineConfig' in core.members

    # this is a non-overloaded function that works already
    assert 'addSearchPath' in core.members

and the corresponding stub is at https://github.com/micro-manager/pymmcore/blob/main/pymmcore/init.pyi

Ah, found the issue. It's because we merge stubs before wildcard imports were expanded.

Another issue is that ./pymmcore is found first, rather than the installed version which is the only one containing the compiled module _pymmcore_swig.cpython-311-x86_64-linux-gnu. So the compiled module is not found, not inspected, and we can't expand wildcards, and merge stubs. An argument in favor of the src-layout I guess. I'll try with it, to see if it's better.

OK, we need https://github.com/mkdocstrings/griffe/pull/115 first.

Fixed in 0ed9c36


Working with Cookies

Hi,
I am struggeling with using web-request and cookies. It surely is simple to have web-request activate and return cookies, but I can't seem to get it to use/send the cookie on the follow-up request. Simply sending another request via web-request does not seem to work (no cookie at the server side). The "best" I could get is an error 400 with "Invalid cookie handler" when I try sending the received cookie as header with the next request.
In exploring using cookies I also wondered, if there is a way to access the request.jar() method via web-request to create a new jar for cookies, as mentioned in the description of the request module. Or do I have to implement my own jar on CookieJar?
Thanks for any advice,
Stefan

Closing as it is too old and unfortunately went overlooked by me for too long :(
If you still need help with this please reopen and I will try to help.

Thanks, and no worries. I found a different solution and got rid of cookies at all.


rz-module-on-change not working with angular2

            <div>
                  <rzslider
                    rz-slider-model="$ctrl.slider.min"
                    rz-slider-high="$ctrl.slider.max"
                    rz-slider-options="$ctrl.slider.options" rz-slider-change="$ctrl.filterOn()"></rzslider>
               </div>

Angular JS 2 is not supported. For now, I'm not planning to port it to Angular 2 since I'm not using. You'll have to wait for somebody to rewrite it or do it yourself if you feel motivated: ;)

need to change
.directive('rzslider', function(RzSlider) {
'use strict';
return {
  restrict: 'AE',
  replace: true,
  scope: {
    rzSliderModel: '=?',
    rzSliderHigh: '=?',
    rzSliderOptions: '&?',
    rzSliderTplUrl: '@',
    rzSliderChange:'=?' //this line need to add in js
  },

  /**
   * Return template URL
   *
   * @param {jqLite} elem
   * @param {Object} attrs
   * @return {string}
   */
  templateUrl: function(elem, attrs) {
    //noinspection JSUnresolvedVariable
    return attrs.rzSliderTplUrl || 'rzSliderTpl.html';
  },

  link: function(scope, elem) {
    scope.slider = new RzSlider(scope, elem); //attach on scope so we can test it
  }
};

});
IN CONTROLLER ADD FUNCTION OF filterOn as i mentioned in rz-slider-change everything in working now.

 rz-slider-change is not even part of the library, please read the doc.


Incorrect type returned by TextEncoder.encode

🔎 Search Terms
TypedArray, Uint8Array, ArrayBufferLike, TextEncoder
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about TextEncoder

⏯ Playground Link
Playground link
💻 Code
const data = new TextEncoder().encode("hello")
//    ^? Uint8Array<ArrayBufferLike>
// The `ArrayBufferLike` may include `SharedArrayBuffer`, but `encode()`
// only supports `ArrayBuffer`, so this breaks code expecting an `ArrayBuffer`.

function processData(d: ArrayBuffer) {
  // do stuff
}

processData(data.buffer) // This should work, but reported as type error

🙁 Actual behavior
Values returned by TextEncoder.encode are not assignable to ArrayBuffer.
🙂 Expected behavior
Values returned by TextEncoder.encode should be assignable to ArrayBuffer.
Additional information about the issue
https://stackoverflow.com/a/79300250/1494725

I think this is expect behavior change introduced in 5.7 series.
Consider change ArrayBuffer to ArrayBufferLike which is an union of both ArrayBuffer and SharedArrayBuffer.

This is definitely fallout from the TS5.7 change at #59417, but the question is whether it should be. Is TextEncoder.encode() known to produce a Uint8Array<ArrayBuffer>? I don't think it ever produces something else (there's encodeInto() that lets you bring your own buffer) but I'm no expert on these things. But if it is always producing a Uint8Array<ArrayBuffer> then it's probably best for the lib to reflect that. If it isn't, is that documented somewhere?

Surfacing a link from the linked SO post,
https://encoding.spec.whatwg.org/#ref-for-dom-textencoder-encode①

If result is finished, then convert output into a byte sequence and return a Uint8Array object wrapping an ArrayBuffer containing output.


Introduce FieldsInterface and UUID fields classes

Description

Motivation and context

How has this been tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING.md document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] I have run composer run-script test locally, and there were no failures or errors.

Pull Request Test Coverage Report for Build 790

148 of 149 (99.33%)  changed or added relevant lines in 14 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 98.863%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Guid/GuidFields.php
39
40
97.5%

Files with Coverage Reduction
New Missed Lines
%

src/DegradedUuid.php
2
85.0%

Totals

Change from base Build 786:
-0.2%

Covered Lines:
3912

Relevant Lines:
3957

💛  - Coveralls