[Bug] Dropdown : Dropdown option gets overlapped on the Modal

Steps to reproduce

Place a dropdown. In the property pane, make it a multi-select dropdown.
In the property pane, configure onOptionChange to open a modal.
Change an option in the multi-select dropdown

Observation
Dropdown options get overlapped on the Modal
Expected behaviour
Dropdown option must not get overlapped on the Modal. The multi-select dropdown must close itself.
Video reproducing this bug:
https://www.loom.com/share/eba7375d05c645508cd21b631db1d14d

Can I work on this?

Hey @Nikhil-Nandagopal @prapullac I would like to work if found any bug please add me there

@reachtokish It's all yours! 🎉
Please don't forget to read the Contribution Guidelines. Would appreciate if you can open a PR within the next 2 days.
Also, check out the Appsmith Challenge where you can win some cool swag by inviting your friends to contribute to this project as well.

@spielers Sorry, this is assigned to @reachtokish because he's claimed this first. There are a lot of other issues in the repo that you could solve.
Happy hacking!

Thanks @mohanarpit

@mohanarpit the reproduction instruction is not very clear to me. Could you pls elaborate more and kindly share a screenshot if possible?

I think I got the direction but unable to reproduce the issue

@reachtokish I've added a video reproducing the issue in the description. Also added some more details to the issue. Please check that out.

Got it. Thnx @mohanarpit

I was checking @blueprintjs/select. And what I have come up with is that blueprintjs select component does not allow to hide dropdown panel explicitly. Kindly refer this link.
I have to do a hack to hide the dropdown panel like triggering a blur event on StyledMultiDropDown input using ref like below. Also refer this PR
<StyledMultiDropDown
  ref={this.ref}
  onItemSelect={this.onItemSelect}
/>

onItemSelect = (item: DropdownOption): void => {
  this.ref.current.input.blur();
  this.props.onOptionSelected(item);
};

The above way works perfectly and hides the dropdown on every change
@mohanarpit kindly provide a better solution if you have any, otherwise I'm going with the above approach.

@satbir121 Can you please comment on the proposed solution above?

@reachtokish we don't necessarily need to close the dropdown, can we just modify the z-index of the open state so that it's under the modal?

@Nikhil-Nandagopal thnx. Will do the needful and raise a PR in sometime.


python311Packages.linear-garage-door: init at 0.2.9

Description of changes
Control Linear Garage Doors with Python
https://github.com/IceBotYT/linear-garage-door

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Waiting for #288233 to be merged to keep the component-packages.nix update simple.

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

4 packages built:

python311Packages.linear-garage-door
python311Packages.linear-garage-door.dist
python312Packages.linear-garage-door
python312Packages.linear-garage-door.dist

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

1 package failed to build:

home-assistant-component-tests.linear_garage_door

4 packages built:

python311Packages.linear-garage-door
python311Packages.linear-garage-door.dist
python312Packages.linear-garage-door
python312Packages.linear-garage-door.dist

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

5 packages built:

home-assistant-component-tests.linear_garage_door
python311Packages.linear-garage-door
python311Packages.linear-garage-door.dist
python312Packages.linear-garage-door
python312Packages.linear-garage-door.dist


Bumping isa-l to v2.31.0

Explain the changes
Bumping isa-l to v2.31.0
Issues: Fixed #xxx / Gap #xxx

Fixes: #7945

@liranmauda does this build successfully on mac arm64 now?

I have managed to build it on my mac (M1)

@liranmauda It fails on mac with node for arm64.
We need to add a condition to the mac section to handle node_arch=x64 vs arm64 like we do for linux.
In the isa-l readme and makefile it shows that on arm the toolchain to use is gcc/gas.
However when I tried it I had some issues on my mac so it might need more configuration to work out.
If you want we can merge this anyway to start running regression with the updated code, and fix the mac arm build in next PR.

@liranmauda It fails on mac with node for arm64.
We need to add a condition to the mac section to handle node_arch=x64 vs arm64 like we do for linux.
In the isa-l readme and makefile it shows that on arm the toolchain to use is gcc/gas. However when I tried it I had some issues on my mac so it might need more configuration to work out.
If you want we can merge this anyway to start running regression with the updated code, and fix the mac arm build in next PR.

@guymguym I agree, probably we need to do the same as in the Linux.
We can merge this so the code will be there and run.
I will rebase, and when it is approved I will merge it.


Textract dependency issue; Wagtail version dependency

I’m working to set up Wagtail Textract.  I use pipenv and was getting package mismatch errors due to Textract on PyPI not being updated with the latest repo from https://github.com/deanmalmgren/textract (there was a chardet dependency error).  However, @deanmalmgren ’s repo DOES have an updated chardet dependency (3.0.4, the latest at this point), so I was able to get around all but one of the errors by installing directly from the repo:
pip install git+https://github.com/deanmalmgren/textract.git –upgrade
One remaining error (I’m at the latest Wagtail, 2.4):

wagtail-textract 1.0 has requirement wagtail<2.2,>=2, but you'll have wagtail 2.4 which is incompatible.

Would you be willing to remove the wagtail<2.2 dependency?  If not, I could do a little testing for you by forking and removing that dependency and installing from my fork, but my testing wouldn’t be extensive.  I would have around a hundred documents that I could run the transcription command on, but none of them would require OCR.
I would be willing to propose a re-write of your installation instructions based on the above (you could likely get rid of having to mention the statements about incompatibility errors).

@DanAtShenTech Yes, i'm completely okay with removing that restriction. Not sure why it's in there, maybe a conservative move. But it looks like there's no reason for it now.
We'd have to update the build matrix as well.
I'd be happy to accept a PR.

I've submitted a PR.  Would you be willing to update the install script to install from git+https://github.com/deanmalmgren/textract.git rather than from PyPI?  I imagine this is non-standard, but if done, then in the install instructions I could remove the notes about errors and add a note to mention that installation of textract is from @deanmalmgren's github repo due to the PyPI resource not being kept up-to-date.

Hi Dan,
That does not see, the proper solution. But maybe you could document the issues you have with textract itself, and show how users can install it directly from VCS to solve theses issues, in the README?

OK Kees.  As soon as you post to PyPI, I'll go through the whole process of installing and then provide a PR for an update to the README.

I wanted to bring to the attention of anyone reading this issue some information that I just discovered.  Back in 2016 @deanmalmgren called for someone to take over the Textract repo.  He tweeted about this need as recently as April 9, 2019.    While I've been able to get document extraction capability to work somewhat well using wagtail_textract, it feels pretty brittle.  I still haven't gotten OCR to work when uploading a file though, and OCR'ed data is not saved with the PDF - see this issue.  Also, I use pipenv and can't yet produce a Pipfile.lock to use in production because of dependency issues related to the repo not being kept up-to-date.  I'm not at a point that I could take over maintenance of this repo, but I wanted to particularly point this problem out to @khink in case he is.  One dependency that it would be nice to update would be to move from Tesseract 3.x to the latest 4.x.


feat(dropdown): add support for menu item icons

fixes https://github.com/patternfly/patternfly-next/issues/2450
I think changing pf-c-dropdown__menu-item to display: flex would be a breaking change, so I've created a modifier (.pf-m-icon) to add that, then added a new element to support the icon configured the same as the app launcher.

PatternFly-Next preview: https://patternfly-next-pr-2451.surge.sh

:tada: This PR is included in version 2.43.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Extension mechanism after invitation is accepted

For first, thank you for your great work in devise_invitable!
We'd like to execute custom logic after a user signs up. In particular we have user roles, and after each role signs up some role-specific data has to be created. I imagined this could be supported in a generic way in devise_invitable if we allowed to save JSON data as part of the invitation, and then we had a template method in InvitationsController (called something like after_invitation_create) where we'd do what we need based on aforementioned JSON.
Would you be interested in a PR implementing this?
Thank you! (cc @igolden)

Could you not achieve this by overriding the accept_resource method in the InvitationsController? (see https://github.com/scambra/devise_invitable/blob/master/README.rdoc#configuring-controllers)

I'm not sure if it would be interesting, is it too hard to add with current behaviour? You can accept other parameters from accept form with strong parameters, and add some callbacks or setter methods in the model.

For both accept_resource or a model callback, I'd need to know for what role the invitation was sent, so it's not good enough. Another way of encoding that information might be in part of the token. I'm not sure how exactly to solve this yet.

You can save role when invitation is sent, or add as a parameter in accept invitation url. Then you would have in the model or at least in the controller.


Add .gitattributes file

Makes contributing a little bit easier for Windows users

@ethomson Is there any way to get access to the build logs? I'm getting 401'd

Thanks, @nulltoken.  The pipeline was failing because the two pipelines that I configured were continuous delivery release pipelines and I was sloppy about the configuration.  Since you don't have permission to do a release, you were getting a 401.
I set up a proper build pipeline to validate pull requests and do CI on the master branch.
Unfortunately, GitHub PRs are only configured with the checks when the PR is created, so this PR is stuck with those old release pipeline configurations.  But I changed this around in #2 and you should be able to see the build results for that pipeline.
I'm going to go ahead and merge this, since it's only failing due to my CI sloppiness.  Thanks for your help!

@ethomson Thanks a lot for the detailed explanation.


Ref sugar type error

Version
3.2.6
Reproduction link
SFC Playground
Steps to reproduce
Copy to VSCode and enable Volar
What is expected?
fix this error
What is actually happening?
type RefValue<T> = T & { [RefMarker]?: any };

If  & { [RefMarker]?: any }; is removed, the issue is just fixed.

By the way I added ref types, but it doesn't working.
node_modules/vue/ref-macros.d.ts seems doesn't exist.

Another problem:
import { ref } from 'vue';

let ref1 = $(ref()); // any
let ref2 = $ref();
// {
//   [RefMarker]?: any;
// }

ref1 = 'hello world';
ref2 = 'hello world';
// 类型“"hello world"”与类型“{ [RefMarker]?: any; }”不具有相同的属性。ts(2559)

console.log(ref1, ref2);

@orziz yes, same for me, seems the
/// <reference types="vue/ref-macros" />

in env.d.ts doesn't fix TS errors

same problem,the file is hasn't export ,but you can copy from https://github.com/vuejs/vue-next/blob/master/packages/vue/ref-macros.d.ts and create ref-macros.d.ts file in local

Hi, @@yyx990803
Sorry to disturb you, but the type of problem I mentioned above doesn't seem to be fixed.
https://github.com/vuejs/vue-next/issues/4433#issuecomment-905143953
https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8aDE+e3sgbXNnIH19PC9oMT5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQgc2V0dXAgbGFuZz1cInRzXCI+XG5pbXBvcnQgeyByZWYgfSBmcm9tICd2dWUnO1xuXG5sZXQgbXNnID0gJChyZWY8c3RyaW5nIHwgbnVsbD4obnVsbCkpO1xubXNnID0gJ2hlbGxvIHdvcmxkJztcbm1zZyA9IG51bGw7XG4vLyDkuI3og73lsIbnsbvlnovigJxudWxs4oCd5YiG6YWN57uZ57G75Z6L4oCcc3RyaW5nICYgeyBbUmVmTWFya2VyXT86IGFueTsgfeKAneOAglxuLy8gICDkuI3og73lsIbnsbvlnovigJxudWxs4oCd5YiG6YWN57uZ57G75Z6L4oCcc3RyaW5n4oCd44CCdHMoMjMyMilcbjwvc2NyaXB0PlxuIn0=


theme_tailor fails with flutter 3.3.0 (stable)

Hi, thanks for this great package!
I'm getting an exception from theme_tailor when running the usual flutter packages pub run build_runner build --delete-conflicting-outputs, after upgrading to the latest flutter stable release (3.3.0). Downgrading to flutter 3.0.5 (without any other code changes) fixes the issue and build_runner again completes successfully.
I have a more complex theme template, but from the stacktrace it doesn't seem to be related to any particular thing in the template. Also, for me it is reproducible even with very simple template, e.g.
@Tailor(themes: ["light"], themeGetter: ThemeGetter.onBuildContext)
class _$AppColors {
  static List<Color> background = const [Color(0xFFFFFFFF)];
  static List<Color> onBackground = const [Color(0xFF3C3C3B)];
}

This is the error (obtained with appending --verbose to the mentioned build_runner command)
[SEVERE] theme_tailor:theme_tailor on lib/common/resources/tailor_theme_extensions.dart (cached):

Stack Overflow
dart:core                                                                    new _GrowableList.of
package:analyzer/src/dart/element/element.dart 4374:10                       LibraryElementImpl._partUnits
package:analyzer/src/dart/element/element.dart 4364:10                       LibraryElementImpl.units
package:analyzer/src/dart/element/element.dart 4348:22                       LibraryElementImpl.topLevelElements
dart:collection                                                              ListMixin.any
.                                                                            ...
.                                                                            ...
dart:collection                                                              ListMixin.any
package:theme_tailor/src/util/import_finder.dart 51:34                       ImportFinder._isExportedRecursivaly
dart:collection                                                              ListMixin.any
package:theme_tailor/src/util/import_finder.dart 51:34                       ImportFinder._isExportedRecursivaly
dart:collection                                                              ListMixin.any
package:theme_tailor/src/util/import_finder.dart 51:34                       ImportFinder._isExportedRecursivaly
dart:collection                                                              ListMixin.any
package:theme_tailor/src/util/import_finder.dart 51:34                       ImportFinder._isExportedRecursivaly
dart:collection                                                              ListMixin.any
package:theme_tailor/src/util/import_finder.dart 51:34                       ImportFinder._isExportedRecursivaly
dart:collection                                                              ListMixin.any
package:theme_tailor/src/util/import_finder.dart 51:34                       ImportFinder._isExportedRecursivaly
dart:collection                                                              SetMixin.any
package:theme_tailor/src/util/import_finder.dart 41:22                       ImportFinder.recursiveSearch
package:theme_tailor/src/util/extension/library_element_extension.dart 10:7  LibraryElementExtension.hasFlutterDiagnosticableImport
package:theme_tailor/src/generator/theme_tailor_generator.dart 48:36         ThemeTailorGenerator.generateForAnnotatedElement
package:source_gen/src/generator_for_annotation.dart 53:30                   GeneratorForAnnotation.generate
package:source_gen/src/builder.dart 352:33                                   _generate

[SEVERE] Build:
Failed after 132ms
[+4382 ms] "flutter pub" took 4,449ms.
[   +2 ms] pub finished with exit code 1
[        ]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _DefaultPub.interactively (package:flutter_tools/src/dart/pub.dart:418:7)
           <asynchronous suspension>
           #2      PackagesPassthroughCommand.runCommand (package:flutter_tools/src/commands/packages.dart:274:5)
           <asynchronous suspension>
           #3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
           <asynchronous suspension>
           #4      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #5      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #6      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #7      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #8      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

Hey, thanks for the detailed report, temporarily you can use branch with the fix (change the dependency in the pubspec)
theme_tailor:
  git:
    url: https://github.com/Iteo/theme_tailor.git
    path: packages/theme_tailor
    ref: fix/#38

I can confirm that fix/#38 resolved the issue for me as well!
Thanks very much, that was super quick! 👏


MPU6050 Accelerometer Sensor Connector

please create an issue describing your script.

@codePerfectPlus  Issue created: #166
Please review

@sigdelsanjog change folder name to lower case.

@codePerfectPlus Issue has been linked with the PR and the folder name has been updated.


Custom blueprint for static content

My current application already has an admin blueprint and I intent to implement flask-admin with bp admin_ui and url=/admin-ui. However, if I don not replace admin.static with admin_ui.static in flask_admin/templates/bootstrap3/admin/static.html I get #1530 error and cannot load the index view.
I'm using the application factory pattern as follows:
# flask admin
admin_ui = Admin(
    endpoint='admin_ui', url='/admin-ui',
    template_mode='bootstrap3',
)

def create_app(config_name=None, main=True, is_celery=False):
.
.
.
        # Admin UI
        admin_ui.init_app(app)
        admin_ui.template_mode = 'bootstrap3'
        admin_ui.name = app.config['APP_NAME'] + ' Admin UI'
.
.

       admin_ui.index_view = ApiAdminIndexView(
            url='/admin-ui', endpoint='admin_ui'
        )

Any ideas or thoughts are appreciated. Thanks.

I don't know the answer but are you talking about dynamic content admin and separate admin for static content ?

It could be the same endpoint. What I'm looking for is to serve flask-admin from a given "endpoint", i.e. /admin-ui and also flask-admin static content from admin_ui.static(/admin-ui/static) instead of admin.static (/admin/static) which is set by default in static.html.

I need to know the idea behind static content and UI, I needed such feature when you can fill static content and manage it from flask-admin alongside dynamic content

@ufo911 please, correct me if I'm wrong:
By creating the admin interface Admin(name="Example: Simple Views", template_mode='bootstrap3',    endpoint='flask_admin', url='/flask-admin'), flask-admin will be available at /flask-admin. Then, at this point there's no /admin url or admin endpoint, thus a 500 werkzeug.routing.BuildError is thrown. See the following example based on flask-admin/examples/simple:
from flask import Flask
from flask_admin import AdminIndexView
import flask_admin as admin

# Create custom admin view
class MyAdminView(admin.BaseView):
    @admin.expose('/')
    def index(self):
        return self.render('myadmin.html')

class AnotherAdminView(admin.BaseView):
    @admin.expose('/')
    def index(self):
        return self.render('anotheradmin.html')

    @admin.expose('/test/')
    def test(self):
        return self.render('test.html')

# Create flask app
app = Flask(__name__, template_folder='templates')
app.debug = True

# Flask views
@app.route('/')
def index():
    return 'Click me to get to Admin!'

# Create admin interface
admin = admin.Admin(
    name="Example: Simple Views", template_mode='bootstrap3',
    endpoint='flask_admin', url='/flask-admin',
    )
admin.index_view = AdminIndexView()
admin.add_view(MyAdminView(name="view1", category='Test'))
admin.add_view(AnotherAdminView(name="view2", category='Test'))
admin.init_app(app)

if __name__ == '__main__':

    # Start app
    app.run()

Error:
werkzeug.routing.BuildError
werkzeug.routing.BuildError: Could not build url for endpoint 'admin.static' with values ['filename', 'v']. Did you mean 'flask_admin.static' instead?

Ideally, if I set endpoint='flask_admin', url='/flask-admin', the static template flask_admin/templates/bootstrap3/admin/static.html will take whatever the endpoint is set in order to successfully resolve {{ get_url('admin.static', *varargs, **kwargs) }}.

As I know, when you init flask-admin it creates blueprint for each view. you are creating two admins for app and that seems unclear.

I'm facing similar problems.

@ufo911 would you mind pointing where I am creating two admins? I'm just adding a few lines to the flask-admin/examples/simple/app.py example, specifically these:
admin = admin.Admin(
    name="Example: Simple Views", template_mode='bootstrap3',
    endpoint='flask_admin', url='/flask-admin',
    )

you are exposing "/" in two ModelView and that is the problem

I have the same problem.
Is the issue not that the endpoint registered at the blueprint level is flask_admin whereas the jinja2 snippet is looking for the endpoint admin?
I am doing the same:
flask_admin = Admin(app, name='flask_admin', template_mode='bootstrap4', endpoint='flask_admin', url='/flask-admin')

Keep getting thrown:
werkzeug.routing.BuildError: Could not build url for endpoint 'admin.static' with values ['filename', 'v']. Did you mean 'flask_admin.static' instead?

This jinja2 macro in the traceback is as follows:
{% macro url() -%}
    {{ get_url('admin.static', *varargs, **kwargs) }}
{%- endmacro %}

where get_url is defined as:
def get_url(endpoint, **kwargs):
    """
        Alternative to Flask `url_for`.
        If there's current administrative view, will call its `get_url`. If there's none - will
        use generic `url_for`.

        :param endpoint:
            Endpoint name
        :param kwargs:
            View arguments
    """
    view = get_current_view()

    if not view:
        return url_for(endpoint, **kwargs)

    return view.get_url(endpoint, **kwargs)

I don't think this is right, the 'admin' endpoint is not what was registered as the endpoint when initializing the Admin class


Fix typos

Fixed some typos on the release options page

Thanks for fixing! We use Weblate to manage translations, rather than modifying the files directly, and bulk-import the changes periodically.
See https://hosted.weblate.org/projects/pypa/warehouse/ (specifically German) and contribute there.

I see, thanks for the hint!


implement it is possible to load wildcard routines in the module, including percent in name

implement it is possible to load wildcard routines in the module.
Not to list every.
including percent
eg
Resource Name="%Rou*.mac"
Resource Name="%Name*.int"

not reproduced


fix: update  balance.go

Codecov Report

Merging #282 (571adfd) into main (2af1390) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #282      +/-   ##
==========================================
- Coverage   14.79%   14.78%   -0.02%
==========================================
  Files         116      116
  Lines       14591    14604      +13
==========================================
  Hits         2159     2159
- Misses      12262    12275      +13
  Partials      170      170

Impacted Files
Coverage Δ

pkg/resource/rawdata/clickhouse/balance.go
0.00% <0.00%> (ø)

pkg/resource/rawdata/clickhouse/clickhouse.go
8.30% <0.00%> (-0.45%)
:arrow_down:

Continue to review full report at Codecov.

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


improve error message when auth token is not retrieved

I tried to improve it further: 0e3befa27 ... what do you think?

Awesome! I really like it. But set author to yourself.

Done & force-pushed into your branch.

LGTM!


Routes can have posts associated with them

A list of post references so that we can load user posts associated with the route from the route detailed view page
Tasks for this requirement:

[ ]

Route has a Forum has a Post[]


USe smart-pointer in Priority Queue

it seems the usages have been correct everywhere (so no leaks) but memory responibility was hard to understand, should now be much simpler.
Jenkins:
https://jenkins.arangodb.biz/view/PR/job/arangodb-matrix-pr/4084/

Jenkins is okay


Add Wasm iota.js Stardust Client

Superseded by #975.
Description of change
Add a client implementation for the Stardust Wasm bindings. The client helper traits are split following the suggestion in https://github.com/iotaledger/identity.rs/pull/963#discussion_r935140946. The trait names are pretty arbitrary, open to suggestions.
Note that this uses the @iota/iota.js package, which does not implement automatic input and output selection, so that was manually implemented in TypeScript to try match the behaviour of iota.rs. We have to use iota.js since it works in both the browser and Node.js, while iota.rs only maintains bindings for Node.js now.
The TypeScript client is not currently bundled in the package, that is being addressed in #971.
Added

Add StardustIdentityClient trait.
Add StardustIdentityClientExt trait.
Add "client" feature for the new traits without the iota-client dependency.
Add WasmStardustIdentityClient.
Add StardustIdentityClient TypeScript wrapper class.
Add examples-stardust Wasm examples.

Changed

Moved most StardustClientExt methods to the StardustIdentityClient traits.
Change StardustClientExt to error on network mismatch.
Change delete_did_output to promote the block until included.
Change delete_did_output to transfer native tokens too.
Change StardustDocument to allow empty state metadata.
Change state metadata fieldnames to use doc and meta, instead of document, metadata.

Links to any relevant issues
Part of #950.
Type of change

[ ] Bug fix (a non-breaking change which fixes an issue)
[ ] Enhancement (a non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Fix

How the change has been tested
The new Wasm Stardust examples include some asserts, most of this is manually tested through examples. If an output is incorrectly formed, the network just ignores it (appears to succeed, or rather "fails silently"), which makes it difficult to troubleshoot.
Change checklist

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Superseded by #975.


PLANNER:  Ability to add new issue

When I add an issue from "Full Add", I am brought to choose the issue type, and then brought into the planner with the WI details open.   Once I add my issue, it remains open, and I have no easy way to get to "Full add" again to add another issue.  Should we make it easier for users to add multiple issues from full add somehow?

Closing, duplicate of https://github.com/fabric8io/fabric8-ux/issues/399


Type-level throw

Please close if dup - I didn't see this come up with search.
Search Terms
type, level, throw, exception, error, manual, compile, time
Suggestion
Type-level throw operator. Especially useful when combined with conditional types.
Use Cases
I define the following typesafe head function:
function head<T extends any[], R = T[0] extends never ? void : T[0]>(array: T): R {
  return array[0]
}

let a = head([1,2,3]) // number
let b = head([]) // void
let c = b + 5 // Error: Operator '+' cannot be applied to types 'void' and '5'.

I'd like to signal to the user that this is a compile error. I can do it with a hack like this:
declare class CantReadHeadOfEmptyArrayError {}

function head<T extends any[], R = T[0] extends never ? CantReadHeadOfEmptyArrayError : T[0]>(array: T): R {
  return array[0]
}

let a = head([1,2,3]) // number
let b = head([]) // CantReadHeadOfEmptyArrayError
let c = b + 5 // Error: Operator '+' cannot be applied to types 'CantReadHeadOfEmptyArrayError' and '5'.

The problems with this approach are:

Returning the phantom CantReadHeadOfEmptyArrayError type is a hack.
The error is delayed until I try to do something illegal with b.

My intention here is to throw, in order to signal to the user as early as possible that they're doing something illegal. It might look something like this:
function head<
  T extends any[],
  R = T[0] extends never
    ? throw 'Cant read head of empty array'
    : T[0]
>(array: T): R {
  return array[0]
}

let a = head([1,2,3]) // number
let b = head([]) // Error: Cant read head of empty array
let c = b + 5 // Error: Operator '+' cannot be applied to types 'never' and '5'.

This is a bit of a crazy idea, and I'm not sure how this jives with TS's design philosophy: on one hand, eager errors are helpful for debugging (the same way that mandatory function param types are); on the other hand, I'm not sure what other cases this might be useful for. Documenting this idea here to see if anyone has other use cases.
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript / JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. new expression-level syntax)

Covered by #23689?

That’s exactly it. Nice sleuthing.


remove endgame_config from top-level config object, move into story[END-GAME]

What's this PR do?
Today, I removed the endgame_config object from all SMS game documents on production, and moved the endgame config flags into the END-GAME object within the story object.
To support this move, I made attendant changes to gameMessageHelpers.js (there are a lot of changes, mostly because I also changed the storyConfig variable to gameConfig; I reasoned that the variable should be called gameConfig so that the developer will not confuse that variable for the story object within a game's configuration object.)
I also removed the endgame_config object from the corresponding model.
How should this be manually tested?
After updating your local configuration database, (see the wiki for a guide), running npm test should adequately prove that endgame logic is functioning normally.
Any background context you want to provide?
We're making this change to simplify development of the intertwine exporter/importer functions.

:+1:


Update the download progress bar (both unsigned and dowload) when initial transform request doesn't return all files

Problem
When the user submits many requests, sometimes the transform status returns only partial number of files.
After subsequent polling, the correct number of files are returned. However, the download progress bar wasn't geting updated.

Solution
Inside the transform_status_listener added the update logic for download progress bar.

@ponyisi ready for review


Update Genesis Terms & Conditions https://codaprotocol.com/tcgenesis with this doc https://docs.google.com/document/d/1s1OwAoidCEeVl5le5YTMetlZX-VRVrnIPQYQQ0qrkS4/edit?usp=sharing

#5268

Closing this issue as it is stale for a long time.


Something bad happened during the bot test. Please reload the page or try again later

I've been letting it run for about an hour.  I keep getting same error.  "Something bad happened during the bot test. Please reload the page or try again later". Do I need to add anything to the .env?
LOGS
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/favicon-32x32.png - - - 304 - image/png 0.3815ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST http://localhost:5000/Home/SendBitcoin application/x-www-form-urlencoded 2476
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'btcTestnetCoins.Controllers.HomeController.SendBitcoin (BTCTestnetCoins)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
Route matched with {action = "SendBitcoin", controller = "Home"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] SendBitcoin(BTCTestnetCoins.Models.PayoutAddress) on controller btcTestnetCoins.Controllers.HomeController (BTCTestnetCoins).
info: Microsoft.AspNetCore.Mvc.RedirectToActionResult[1]
Executing RedirectResult, redirecting to /.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
Executed action btcTestnetCoins.Controllers.HomeController.SendBitcoin (BTCTestnetCoins) in 162.6525ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'btcTestnetCoins.Controllers.HomeController.SendBitcoin (BTCTestnetCoins)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 POST http://localhost:5000/Home/SendBitcoin application/x-www-form-urlencoded 2476 - 302 0 - 164.9180ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/ - -
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'btcTestnetCoins.Controllers.HomeController.Index (BTCTestnetCoins)'
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller btcTestnetCoins.Controllers.HomeController (BTCTestnetCoins).
info: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor[1]
Executing ViewResult, running view Index.
info: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor[4]
Executed ViewResult - view Index executed in 3.6431ms.
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2]
Executed action btcTestnetCoins.Controllers.HomeController.Index (BTCTestnetCoins) in 6.0986ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'btcTestnetCoins.Controllers.HomeController.Index (BTCTestnetCoins)'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/ - - - 200 - text/html;+charset=utf-8 6.5947ms
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/btcTestnetCoins.styles.css - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:5000/btcTestnetCoins.styles.css - - - 404 0 - 0.1912ms

Just added changes that contains a .env example in this commit
The API_KEY and STORE_ID are from a hosted instance of BTCPayServer running at https://testnet.demo.btcpayserver.org: this project uses api calls to the hosted instance.
Remember to give your API_KEY sufficient permissions.
The Recaptcha keys come from Google's  Recapthca service
But most importantly, the public site key is harcoded on line 36 of index.cshtml, ,that is the last GOTCHA.
I'll update the README, with clearer instructions. Let me know if you need help getting unstuck.

Thanks for update.  I'll give this a try.


Namespace to Gateway - (CLI) generate-config Enhancements

Enhancements

always produce valid output

e.g., do not create DraftDataset where organization and organizationUnit are blank which will fail validation

allow user to specify template via flag then provide additional parameters via interactive

user would then still need to set service and upstream
Check library for back-filling template flag for interactive mode.
Discussion of this feature ticket comes from #101

provide https://httpbin.org as a default option for upstream (i.e. in the interactive, user can hit ENTER to select this default)
review the default behaviour for org/orgunit.

Interactive and template use should behave the same (use same defaults, never leave blank fields in yaml)
Possible approaches include:

provide default values (CITZ/databc) to interactive, hit ENTER to accept
OR do not have default values, publish dataset without org/orgunit if not provided

Note on current state
When using gwa generate-config interactively, if org/orgunit are left blank, then they are blank in the created DraftDataset and validation fails when publishing.
organization:
organizationUnit:

Meanwhile, if parameters are provided (e.g.
gwa generate-config --template quick-start --service <MYSERVICE> --upstream https://httpbin.org) then org/orgunit are autofilled with:
organization: ministry-of-citizens-services
organizationUnit: databc

org and orgunit are optional (ie you can omit those fields and still add/update a dataset), but they cannot be blank.

extended this issue with functionality around blank org blocking validation

split out bugs into #127 and #128 so they can potentially be prioritized over the enhancements in this issue.


Is normalization right?

Hell0, I'm new in audio classification, and i want to know is this normalization right?
fbank = (fbank - self.norm_mean) / (self.norm_std * 2)
does it should be :
fbank = (fbank - self.norm_mean) / (self.norm_std ** 2)

Hi there,
It is a great question.
More standard method is fbank = (fbank - self.norm_mean) / self.norm_std (not self.norm_std ** 2). However, we find normalizing the input with a smaller std (i.e., divide by a larger number) can slightly improve the performance for ImageNet pretrained model. So we normalize the input with (self.norm_std * 2). This is potentially because the distribution of the audio spectrogram is not same with the images in ImageNet, smaller std helps improve the transfer learning performance. But it is a minor point, if you train your model from scratch without ImageNet pretraining, I think you can just use standard normalization, if you train your model with ImageNet pretraining, using standard normalization should still be OK with a very minor performance decrease. We have done a non-formal test and found the model performance is not sensitive to the normalization parameters.
However, if you want to use our AudioSet pretrained model for any downstream task, please keep our normalization (i.e., using 2X self.norm_std) because the AudioSet model is pretrained with the normalized input and any change of the input scale would lead to a big performance drop.
-Yuan

Hi there,
It is a great question.
More standard method is fbank = (fbank - self.norm_mean) / self.norm_std (not self.norm_std ** 2). However, we find normalizing the input with a smaller std (i.e., divide by a larger number) can slightly improve the performance for ImageNet pretrained model. So we normalize the input with (self.norm_std * 2). This is potentially because the distribution of the audio spectrogram is not same with the images in ImageNet, smaller std helps improve the transfer learning performance. But it is a minor point, if you train your model from scratch without ImageNet pretraining, I think you can just use standard normalization, if you train your model with ImageNet pretraining, using standard normalization should still be OK with a very minor performance decrease. We have done a non-formal test and found the model performance is not sensitive to the normalization parameters.
However, if you want to use our AudioSet pretrained model for any downstream task, please keep our normalization (i.e., using 2X self.norm_std) because the AudioSet model is pretrained with the normalized input and any change of the input scale would lead to a big performance drop.
-Yuan

I see, thanks for your explanation!

OMG! N( 0, 0.25) distribution. Didn't realize there's this assumption.


Incrementing Linked List by one.

I am creating a pull request for...

[x] New algorithm

@abranhe please review


EXLA compile issue in Livebook

I'm messing around with the Stable Diffusion example, and I'm getting the following error in Livebook when trying to add the exla dependency:
could not compile dependency :exla, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile exla", update it with "mix deps.update exla" or clean it with "mix deps.clean exla"

** (MatchError) no match of right hand side value: {"x86_64", "windows"}
...

Not sure what I could be doing wrong...  any suggestions?

We don’t have precompiled for XLA. Set the XLA_BUILD=true environment variable and you should be good! We improved the error message on XLA main too.

How does one even set environment variables such as this when running the Windows Livebook application?

Nevermind...  derp.  Found it in the main Livebook settings, rather than in a particular livebook

@josevalim
I've set that environment variable in Livebook settings, but am still getting the same error when trying to add the exla package to a livebook:

Any other suggestions?

The value is “true” only.

And you would need to restart the runtime.

I had tried that also, but I guess I hadn't restarted the runtime.
However, even after closing the Livebook app, killing the launcher process and all elixir/erlang processes, and then trying again, it's still not working either...  hmm.

I think this was actually fixed recently in the XLA git repository wasn't it? Can you try pointing XLA to GitHub main and overriding that dependency to see if it works?

I feel sorta stupid here, but I can't seem to find the proper URL for just EXLA in git to point to...

There is also a elixir-nx/xla repo, which is just the pre compiled xla. :) and no problem in asking questions!

Awesome...  that gets me past the compilation issues.  :-)  Now I'm not sure what the equivalent of Nx.global_default_backend(EXLA.Backend) would be when using this precompiled xla.

It is the same. :)

Ok, thanks!
I've been trying to follow along with https://github.com/elixir-nx/bumblebee/blob/main/notebooks/stable_diffusion.livemd
Seems something's still up with the backend:

I'm pretty new to using Livebook, so I assume the Mix.install(...) and Nx.global_default_backend(EXLA.Backend) stuff goes into the "Notebook dependencies and setup" section.

You probably have errors and/or warnings in your first cell (the setup/installation one). We are working on making those warnings more prominent but my hunch is a failed EXLA installation (because XLA failed). Sorry for the confusion but the Windows workflow was not set-up extensively.

Actually, the setup section looks fine (other than the fact that there's an empty list):


Net/http: TLS handshake timeout error

I have been having an issue with my discord bot not being able to get channel data, claiming there was a TLS timeout error. The error only appears when attempting to get a channel name but it seems that it also tends to have this issue with just retrieving messages because the bot itself will randomly restart after being online for more than 30 minutes. I tested to see if this was my internet connection by spinning up a VPS and the issues persisted. It also isn't an architectural issue because I have moved it between a Raspberry Pi 4, a Vultr VPS instance, and a system I was using as a Minecraft Server (all Linux, as that's what the bot was designed for) and none of them seem to make any difference. I posted an issue about this (#745) but not much was accomplished there. I also mentioned there that it seemed that it was an issue with connected to the Discord API, and that a few spikes in API response time wouldn't cause weeks of issues. Here is a snippet from the error logs:
Mar 04 16:14:25 raspberrypi GoDiscordBot[2840]: Getting current channel names...
Mar 04 16:14:30 raspberrypi GoDiscordBot[2840]: Error getting channel name: Get https://discordapp.com/api/v6/guilds/<guild id>/channels: net/http: TLS handshake timeout Error getting channel name: Get https://discordapp.com/api/v
Mar 04 16:14:30 raspberrypi GoDiscordBot[2840]: Populating base post cache...
Mar 04 16:14:30 raspberrypi GoDiscordBot[2840]: New cache time is<PHONE_NUMBER>
Mar 04 16:14:58 raspberrypi GoDiscordBot[2840]: Took 28411ms to add to cache.
Mar 04 16:14:58 raspberrypi GoDiscordBot[2840]: Resetting Blacklist...
Mar 04 16:14:58 raspberrypi GoDiscordBot[2840]: New Blacklist time is<PHONE_NUMBER>
Mar 04 16:14:58 raspberrypi GoDiscordBot[2840]: Discord-Quick-Meme has started on 355 servers

The bot also seems to randomly crash without warning and restart itself. There are no messages in the log about the program crashing, just that it will reset its channel cache randomly. There is also a huge percentage of messages that are either really slow (up to a minute for the bot to receive the command) or those that seem to never make it to the bot, which I think could also be being caused by this issue. The code can be found here. The long cache times are normal as that's the bot caching the most popular Reddit posts from the last 3 hours. I hope this is an error on my end as its probably not a huge burden to fix but I have looked and searched for the bug that could be causing this in my code and have found nothing that could cause this.

I'm not 100% sure what the root cause is, but I can say that I have been using discordgo for about 2 years now myself without seeing this kind of issue.
Some pointers I could give that might help:

Update your project to use Go modules. This will help make it clear what version of your library dependencies are being used and to ensure reproducible builds. Double check that you're using the latest tagged version of discordgo
Don't use the errCheck function that you have. Instead, explicitly check your errors at each site that an error can occur and handle it appropriately. See below for a relevant example

Don't panic because that will cause your application to halt immediately and can prevent defers from being called, buffers from being flushed, etc. Instead, handle or return errors up the call stack and if its a fatal condition, return/exit from the main function

Avoid the usage of global variables because their state can change in sometimes unexpected ways. I've found whenever I felt the need for a global variable, I could instead use a struct to "encapsulate" the state. When using slices and maps in this way, you may also want to consider using sync.Mutex to prevent race conditions

Declaring variable like var someName someType will create the variable with the value set to that type's zero value. Be careful here because for some types like pointers, slices, and maps, the zero value is nil

Break your project into more, smaller packages instead of everything in package main to help define and encapsulate responsibility. This can also facilitate the writing of tests
Check out the built in pprof package to profile your application and get some insight as to what it's doing when things aren't going the way you expect them to
Consider some kind of monitoring for your system/application to get historical data for things like CPU and memory utilization. A common and powerful combination frequently used is Prometheus to gather your metrics and Grafana to visualize them

Error handling example (since this particular function is run in a goroutine we'd just log the error instead of returning it):
func getAllWorker(discord *discordgo.Session, guildID string, send chan<- Server, wg *sync.WaitGroup) {
    defer wg.Done()
    ...
    channels, err := discord.GuildChannels(guildID)
    if err != nil {
        // Log the error and return
        // The return here is useful since we don't want to continue this function and possibly dereference nil pointers by mistake
        // There's also no need to send a `Server` struct down your `send` channel that only has nil slices
        fmt.Printf("Error getting channel name: %s", err)
        return
    }
    ...
}

Hope this helps to better understand the issue that is occuring!


Bug: Tinymce 上传图片成功后，光标被重置到了首位

Version
Vben Admin Pro
Describe the bug?
上传图片成功后，光标会被重置到首位
Reproduction

System Info
System:
    OS: Windows 10 10.0.17763
    CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
    Memory: 2.02 GB / 11.91 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.5 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Internet Explorer: 11.0.17763.298

Relevant log output
No response
Validations

[X] Read the docs
[X] Ensure the code is up to date. (Some issues have been fixed in the latest version)
[X] I have searched the existing issues and checked that my issue does not duplicate any existing issues.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

你看一下是vben的问题还是tinymce的问题


Aligning consecutive slices

Hello,
Use case
I have an input volume that is a reconstruction of 2D slices into a 3D volume. Therefore, the consecutive slices are jagged and the volume along perpendicular directions are not smooth. My idea is to try to align consecutive slices of that volume.
Code
To achieve that, I tried to use this package. Here is the snippet code I am using.

Could you tell me if I am using your repository right?
Do you have some advices concerning the different parameters (patch_size, step, stride, overlap, ...) along this pipeline?

from sofima.flow_field import JAXMaskedXCorrWithStatsCalculator
from sofima.flow_utils import clean_flow
from sofima.warp import ndimage_warp

patch_size = 15
step = 1
overlap = 3

maskcorr = JAXMaskedXCorrWithStatsCalculator()
flow = maskcorr.flow_field(img1, img2, patch_size, step)
clean_output = clean_flow(
    flow,
    min_peak_ratio=np.min(flow[2]),
    min_peak_sharpness=np.min(flow[1]),
    max_magnitude=0,
    max_deviation=0,
)
warped_img = ndimage_warp(
    img2,
    clean_output,
    stride=(step, step),
    work_size=(patch_size, patch_size),
    overlap=(overlap, overlap)
)

Results
I would like to apply this snippet of code iteratively. Concretely, this means:
a. Alignment between slice n and slice n+1 -> warping of slice n+1
b. Alignment between warped slice n+1 and slice n+2 -> warping of slice n+2
c. Alignment between  warped slice n+2 and slice n+3 -> ...
However, currently, applying this iterative procedure is giving strange results: pixels are disappearing, see images below.

3. Do you have an idea why this is happening?
Thank you for your help.

Hi, thanks for the detailed description of your approach! The high-level idea is a good one and similar to how we and others align e.g. thin-section EM data. I suspect what might need some adjustments are the hyperparameters. I'm not sure how large your images are, but I'm going to guess hundreds of pixels or more. With this in mind, I'd suggest:

Trying slightly large patch_size and larger step sizes. Step sizes that tend to work well are patch_size // 2 or patch_size // 4.
Visualizing the estimated flow field (you can e.g. just use plt.matshow(flow[0, ...] for the X component) to see if the estimated flow field is behaving roughly as expected. It should be generally smooth.
Any irregularities you see in the previous step, you should be able to remove with clean_flow. Start e.g. with min_peak_ratio = min_peak_sharpness = 1.1 and increase them until the filtered flow does not have any obviously incorrect values. If the flow is good to begin with, you can just drop the metadata channels: clean_output = flow[:2, ...]
If there are any missing flow entries after filtering, try regularizing it with an elastic mesh:

config = mesh.IntegrationConfig(dt=0.001, gamma=0., k0=0.01, k=0.1, stride=stride,
                                num_iters=1000, max_iters=20000, stop_v_max=0.001,
                                dt_max=100, prefer_orig_order=True,
                                start_cap=0.1, final_cap=10)
x = np.zeros_like(clean_output)
x _, _ = np.array(mesh.relax_mesh(x, -clean_output, config))

Warp data with x instead of clean_output (visualize it first to make sure it looks smooth as expected). For warping, unless your images are very large, you can use work_size = <image_size> and overlap = 0,0, or at least a work_size that is much larger than the patch_size used for flow estimation. The two parameters are unrelated, and work_size only impacts memory usage and parallelism.

I'm guessing that the disappearing pixels in your case are caused by invalid flow entries -- the mesh relaxation I suggested above should allow you to get rid of it.

Closing for now since there don't seem to be any further updates.


Revived for current age

As agreed with @dimapasko, I updated the project to current tooling. No functional changes done (yet), basically all are maintenance tasks to make NConsoler work with .NET Standard and current versions of Visual Studio.

Removed old tooling, converted for VS 2017/2019 compatibility.
Formalized coding style, introduced new language features where available.
Replaced the combiner tool with a batch file and post-build action.
Converted the project to .NET Standard 2.0
Added MIT license. I hope it's okay with current maintainers. Currently the project has no licese at all. I like MIT, but any open license will do.
Updated samples to NetFx 4.7 (4.0 does not support .NET Standard 2.0).
Added automatic package generation on build.
Bumped version to 3.0.0-beta01. I feel that .NET Core compatibility warrants major version change.
Removed NUnit tests for now, as I don't use NUnit and don't know how to make them work with current Visual Studio and wanted to publish cleaned version ASAP. Will add them later.

This is great! I've been using nconsoler for quite a while and it's by far the easiest console parser to use in my opinion.

The original was an MPL 1.1 license btw, and I don't think it's really possible to change the entire project to MIT. MPL requires any modified files to be licensed as MPL but anything that wasn't part of the original can be MIT)
https://code.google.com/archive/p/nconsoler/#! (I also worked on this and made it net standard on Friday & did CI to publish to nuget). Tests required minimal modifications to work with the new visual studio for me and latest nunit - besides 2 I had to ignore - what were the issues you were having?

As one of the original project creators, i will approve this PR and will update license during the weekend

The original was an MPL 1.1 license btw, and I don't think it's really possible to change the entire project to MIT. MPL requires any modified files to be licensed as MPL but anything that wasn't part of the original can be MIT)- https://code.google.com/archive/p/nconsoler/#!

I was not aware of the old Google Code license specification and the project itself contains no license at all (which is violation of the MPL itself). I think is important that the project would contain some clear open license, but I don't really care which one it will be. I included MIT, because it's simple and permissive but I would leave the licensing issues to original authors.

(I also worked on this and made it net standard on Friday & did CI to publish to nuget). edit: I realized after what I commented why you were having issues with the test. I just used moq in my fork instead of rhinomocks (feel free to check out my fork)

Great, look like we had the same idea of reviving NConsoler at roughly the same time. Let's see what original authors make out of it over weekend and then we can join forces and make NConsoler live again.


Reply send from alias issue after upgrade to 0.10.0r1

Good Morning,
I upgraded my instance to 0.10.0r1 and switched to rspamd, now I am unable to send / reply from an alias.
Setup:

Internal Mailserver running Mailcow, which is the only server who should be able to send / reply from an alias
Anonaddy running in docker on a different host exclusively and worked before the switch to rspamd without issues.

Problem:
After trying to send I do get an email telling me that I need to have a DMARC Policy in place which I do have
Debugging:
Setting APP_DEBUG as well as POSTFIX_DEBUG to true is not telling my why the email is rejected.
I use split DNS and the internal DNS records should reflect all needed dmark, dkim, spf records as well as the external ones.
Doing a tcpdump for the dns resolution I do see that the MX record and the A records for my domain are requested and answered. But I do not see any query for the DMARC record or the DKIM key.
Sending an email to an external address without having anonaddy in between, I see valid dmarc, dkim, spf in the header.
Question:

How can I find out why the emails are getting rejected? the email I do get is not very usefull.
Is there a chance to just whitelist the internal server as trustworthy, I don't have the need for external servers to send replies?

Thanks for your help

For me, the function is broken since version 0.10.0. Have downgraded to 0.9.1 (anonaddy/anonaddy:0.9.1), there everything still works.
Attached is an error message.

Thanks, I know that DKIM and DMARC are no longer supported.
Looking at my internal mail server i can verify that the email is dkim signed.
Looking at rspamd at anonaddy I don't see the header.
As I said before, I captured the traffic between Anonaddy and my DNS, I can see MX queries, queries to spamhouse, ... but no TXT queries for DMARC or DKIM...

Are you still having this issue on the latest release?

Closing as this does not seem reproducible but feel free to re-open if you have the appropriate compose file, env file and logs to allow us to repro. Thanks.


Adding two more test cases for binary-search

When doing this exercise I had some troubles getting the indexes correct. I was passing the tests that were provided but my program did not work correctly for entries at the very beginning or end of the array e.g. because of some off-by-one errors.
That's why I am proposing to add two test cases here so people don't have to manually add them like I did.

@junedev LGTM!  Thanks!  @rchavarria ?

Thanks for having a look. Once this is merged here I will also make a pull request for the EcmaScript track as the exercise seems to be exactly the same there.

Yeah, the other thing that might make sense is to add metadata about what tests and results we want to see defined for all the tracks-- right now, it's not defined at all for this exercise, but if we were to have a file like that, It should include your tests.
These are in the x-common repo, for example: binary

Thanks for the explanation. I will create the missing files for the common repository (probably next week though). Is there an easy way to see which other exercises might be missing in x-common or do I have to check one by one?

@junedev I fear you have to check one by one :(

About the PR, it's ok. It follows other tests' structure and all tests keep passing.
I'm gonna merge this.

@rchavarria @junedev I think the question @junedev was asking is about if any of the metadata for binary-search is defined x-common.  Right now, there is no config.json file, so none of them are defined.
@kytrinyx has an automated script to create an issue for each track to updates its tests to conform once we have some agreement on what tests are wanted.

@matthewmorgan: @rchavarria understood correctly. I was asking about other exercises besides binary-search ... just in case I have some more time. Then I could also add other missing common files not just the ones for binary-search.

OK!  got it.  You are ambitious 😸

Is there an easy way to see which other exercises might be missing in x-common or do I have to check one by one?

@junedev We have this endpoint which might be what you're looking for: http://x.exercism.io/v3/problems/data-todos

@kytrinyx I was looking for a list of all problems that are missing the shared input/output json data. After a bit of strolling around in the exercism repos and issues I finally found it here: https://github.com/exercism/todo/issues
So I am good to go. :smile:

Ahh, nice! Glad you're all set.


x/tools/gopls: out of memory failures with terraform-cdk and azurerm provider

What version of Go are you using (go version)?
go1.18.3 linux/amd64
16GB Windows laptop
Running 4GB WSL2 ubuntu instance + 2GB swap:
vscode
plus
node 18.4.0
Terraform v1.2.3
cdktf 0.11.2
"terraformProviders": ["hashicorp/azurerm@~> 3.0.0"],
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/myuser/.cache/go-build"
GOENV="/home/myuser/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/myuser/gopath/go/pkg/mod"
GOOS="linux"
GOPATH="/home/myuser/gopath/go"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/myuser/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/myuser/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.3"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build871093409=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I followed: tutorials/terraform/cdktf-install
Then I customised https://github.com/hashicorp/terraform-cdk/tree/main/examples/go/azure
I ran "cdktf get" which downloads azurerm and builds a "generated" directory with the modules in it
What did you expect to see?
gopls in a vscode environment coping with the cdktf generated libraries.
Limited required memory and cpu consumption from gopls
What did you see instead?
Raising an issue to see if there is optimisation potential
There are an awful lot of stubs in the azurerm provider generated code and it appears to provoke >6GB memory usage from gopls which caused OOM errors. Workaround was to reconfigure WSL2 to 8GB.
if you combine the gopls memory consumption with the vscode and cdktf memory consumption ..... it is not possible to run vscode/gopls and issue cdktf build commands at the same time.
I raised a related issue here https://github.com/hashicorp/terraform-cdk/issues/1886

Thank you for this issue, and apologies for the slow response (for some reason this issue wasn't put into the Unreleased milestone until I updated the issue title, so it avoided our triage process...).
Generally speaking, gopls uses a lot of memory. This is something we're working on fixing, but it will be a long road.
However, in this case there may be specific problems related to the cdk that we can mitigate.

Update after a year: that long road has been walked<EMAIL_ADDRESS>redesigned the core of gopls to use drastically less memory. I'd be curious if this helped the situation with this repo.


Error while created complex nested class

I run into an issue while using fixture for created a complicated and nested class.
Unfortunately i cannot provide a lot of information apart the attached error log.
Since I'm not really able to tear down the problem the title is an assumption and the main might be something else
Until i got some information back what i can do, or maybe if a fix is necessary i have to avoid using fixture
errorlog

One thing you could try to help pinpoint where the exception is occuring from is to enable the logging mode, see https://github.com/appmattus/kotlinfixture/blob/main/fixture/configuration-options.adoc#logging-object-generation-with-loggingstrategy
Looking at the stack trace though it looks like one of the nested class is a Corba object that it cannot instantiate.
To fix it you may need to create a factory to help generate those objects. See https://github.com/appmattus/kotlinfixture/blob/main/fixture/configuration-options.adoc#customising-class-generation-with-factory
Jan 14, 2021 4:59:46 PM sun.reflect.NativeMethodAccessorImpl invoke0
WARNING: "IOP01610208: (BAD_INV_ORDER) set_result(Any) called with null args for DSI ServerRequest"
org.omg.CORBA.BAD_INV_ORDER:   vmcid: SUN  minor code: 208  completed: No
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.setResultCalledNullArgs(ORBUtilSystemException.java:2107)
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.setResultCalledNullArgs(ORBUtilSystemException.java:2125)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
	at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance.call(CallerImpl.kt:113)
	at kotlin.reflect.jvm.internal.KCallableImpl.call(KCallableImpl.kt:108)
	at com.appmattus.kotlinfixture.resolver.PopulateInstance$DefaultImpls.safeCall(PopulateInstance.kt:120)
	at com.appmattus.kotlinfixture.resolver.PopulateInstance$DefaultImpls.populateJavaSetters(PopulateInstance.kt:70)
	at com.appmattus.kotlinfixture.resolver.PopulateInstance$DefaultImpls.populatePropertiesAndSetters(PopulateInstance.kt:44)
	at com.appmattus.kotlinfixture.resolver.FactoryMethodResolver.populatePropertiesAndSetters(FactoryMethodResolver.kt:30)


Client

Have you done a client version of the KDX software?

I have not looked into this, but it should be possible! I may be able to get something up and running over the next few weeks.

I'm looking into this right now @hampton1122

So far, I've tried getting KDX Client working in the same docker container environment, but with X11 dev libraries installed w/xquartz (X11) and setting the DISPLAY env variable. I'll post instructions when i have some time and something close to working