AngularJS filter

Hey! Would you be interested in an AngularJS filter wrapping this library? Or do you rather prefer a separate repository for that?
Thanks!

Btw I already wrote one, really simple. Just a few lines and works great.

I'd prefer that in a separate library. I'd be happy to link to it from the readme!

Alright then. I've pushed a first version to bower. Works fine for me.
https://github.com/sebastianhaas/angularjs-humanize-duration

Added to the readme in ab5c22cbf19e3257a4af00f294538a0c00dd8dc6. Thanks!


change the owner of files created in docker

change the owner to operate the files that are created in the docker.

Thank you!


yourWindows.GetPixelRGBColor(pos)

Hi, thanks for api at first.
But it seem like i can get the windows name yet still cant print out the rgb. Any idea?

Let me check, i will answer you soonly

I got the same error when i run vs code as no-admin, give admin permitions as  the next image show,

Restart Your Computer, try again and tell me if every thing is ok. i do the same and i got this

Also tried to run your windowsname as admin

I got it!! Thanks very much. Upvote your solution in stackoverflow too. Hope it will verified as correct solution

Solve run as admin  vs-code  and your windows name


Combination of .keys and .del together isn't obvious with prefix

Version: node_redis v2.5.1 and redis v3.0.7
Platform: node.js v5.6.0 under ubuntu 14.04
Description:

I've spent several hours trying to achieve why my simple combination of .keys and .del is not working. The fact is when you're passing prefix with options to createClient behavior of functions is slightly different.
Here's my non working code (sorry for generator):
const client = redis.createClient({
  host: 'localhost',
  port: 6379,
  prefix: 'blah:'
});

/* ... */

/* the purpose of the code is to delete all keys matching prefix from configuration */
suspend.run(function* () {
  const rows = yield client.keys('*', suspend.resume());
  // matches ALL keys including ones without prefix, i.e. ["foo", "blah:bar"]
  for (let row of rows) {
    yield client.del(row, suspend.fork());
    // appends prefix before deletion trying to delete "blah:foo" and "blah:blah:bar"
  }
  yield suspend.join();
});

So, as you can see .keys doesn't work with prefix and .del does. I'm not sure if it is by design or bug but if you have only keys with prefix in database as I do, it's pretty tricky to get why the code isn't working. If it is by design it would be great to have at least mention about this in readme.

Starting with redis 2.6.0, you can run lua scripts, which execute atomically. I have never written one, but I think it would look something like this:
EVAL "return redis.call('del', unpack(redis.call('keys', ARGV[1])))" 0 prefix:*

This is by design. The reason is, that keys have to return the "real" value, otherwise you can't determine what keys exist on the sever. Therefor that command is not prefixed.
I can imagine that it is not always intuitive and therefor I guess it would be nice to document that properly. @glenswift would you be up for such a PR? :-)


Improve weather card

Currently, the weather card only shows few info and it doesn't have any graphical elements

So after fixing issue #7, We should add more info from the API response to the card, we can also add some UI elements (clouds, sun etc.) to make it more visually appealing

Here's a design inspiration

I've added some extra fields to the weather card


./cache/zoxide/init.nu uses deprecated nushell syntax

Describe the bug
I have both nushell and zoxide installed.  When I start nushell it says this:
Error:   × Deprecated command
    ╭─[/Users/matt/.cache/zoxide/init.nu:36:1]
 36 │ # Jump to a directory using interactive search.
 37 │ def-env __zoxide_zi  [...rest:string] {
    · ───┬───
    ·    ╰── `def-env` is deprecated and will be removed in 0.88.
 38 │   cd $'(zoxide query --interactive -- $rest | str trim -r -c "\n")'
    ╰────
  help: Use `def --env` instead

I can see that this is already fixed in zoxide main so I assume the fix is simply a matter of updating the version in nixpkgs
Notify maintainers
@ysndr, @cole-h, @SuperSandro2000,
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
❯ : nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 21.6.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - channels(matt): `""`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

shouldn't zoxide push out a new release first?

Update got committed instead


Miningcore does not start, no clear error!

[2023-02-11 18:00:10.2927] [F] [Diagnostics] Application startup exception System.NullReferenceException: Object reference not set to an instance of an object.
at Miningcore.Program.<>c.b__0_9(JsonOptions options) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 181
at Microsoft.Extensions.Options.ConfigureNamedOptions1.Configure(String name, TOptions options)    at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value()    at Microsoft.AspNetCore.Mvc.MvcCoreMvcOptionsSetup.Configure(MvcOptions options)    at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value()    at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action1 configureRoutes)
at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app)
at Miningcore.Program.<>c__DisplayClass0_0.b__5(IApplicationBuilder app) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 233
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass17_0.b__2(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)    at Miningcore.Program.<>c.b__0_9(JsonOptions options) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 181
at Microsoft.Extensions.Options.ConfigureNamedOptions1.Configure(String name, TOptions options)    at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value()    at Microsoft.AspNetCore.Mvc.MvcCoreMvcOptionsSetup.Configure(MvcOptions options)    at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value()    at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action1 configureRoutes)
at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app)
at Miningcore.Program.<>c__DisplayClass0_0.b__5(IApplicationBuilder app) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 233
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass17_0.b__2(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
[2023-02-11 18:00:10.3338] [I] [Lifetime] Application is shutting down...
[2023-02-11 18:00:10.3316] [E] [ltc1] System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed. System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed.
at Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException()
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance)    at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters)
at Autofac.ResolutionExtensions.ResolveNamed[TService](IComponentContext context, String serviceName, IEnumerable1 parameters)    at Miningcore.Crypto.HashAlgorithmFactory.InstantiateHash(IComponentContext ctx, String name, Object[] parameters) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Crypto/HashAlgorithmFactory.cs:line 47    at Miningcore.Crypto.HashAlgorithmFactory.GetHash(IComponentContext ctx, JObject definition) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Crypto/HashAlgorithmFactory.cs:line 25    at Miningcore.Configuration.BitcoinTemplate.<.ctor>b__89_1() in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Configuration/ClusterConfigExtensions.cs:line 36    at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)    at System.Lazy1.CreateValue()
at System.Lazy1.get_Value()    at Miningcore.Configuration.BitcoinTemplate.get_HeaderHasherValue() in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Configuration/ClusterConfigExtensions.cs:line 53    at Miningcore.Blockchain.Bitcoin.BitcoinJobManager.PostChainIdentifyConfigure() in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManager.cs:line 116    at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase1.PostStartInitAsync(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 471
at Miningcore.Blockchain.JobManagerBase1.StartAsync(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/JobManagerBase.cs:line 112    at Miningcore.Blockchain.Bitcoin.BitcoinPool.SetupJobManager(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinPool.cs:line 368    at Miningcore.Mining.PoolBase.RunAsync(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Mining/PoolBase.cs:line 392    at Autofac.Core.Lifetime.LifetimeScope.ThrowDisposedException()    at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request)    at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable1 parameters)    at Autofac.ResolutionExtensions.ResolveNamed[TService](IComponentContext context, String serviceName, IEnumerable1 parameters)
at Miningcore.Crypto.HashAlgorithmFactory.InstantiateHash(IComponentContext ctx, String name, Object[] parameters) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Crypto/HashAlgorithmFactory.cs:line 47
at Miningcore.Crypto.HashAlgorithmFactory.GetHash(IComponentContext ctx, JObject definition) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Crypto/HashAlgorithmFactory.cs:line 25
at Miningcore.Configuration.BitcoinTemplate.<.ctor>b__89_1() in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Configuration/ClusterConfigExtensions.cs:line 36
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)    at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
at System.Lazy1.CreateValue()    at System.Lazy1.get_Value()
at Miningcore.Configuration.BitcoinTemplate.get_HeaderHasherValue() in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Configuration/ClusterConfigExtensions.cs:line 53
at Miningcore.Blockchain.Bitcoin.BitcoinJobManager.PostChainIdentifyConfigure() in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManager.cs:line 116
at Miningcore.Blockchain.Bitcoin.BitcoinJobManagerBase1.PostStartInitAsync(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinJobManagerBase.cs:line 471    at Miningcore.Blockchain.JobManagerBase1.StartAsync(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/JobManagerBase.cs:line 112
at Miningcore.Blockchain.Bitcoin.BitcoinPool.SetupJobManager(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Blockchain/Bitcoin/BitcoinPool.cs:line 368
at Miningcore.Mining.PoolBase.RunAsync(CancellationToken ct) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Mining/PoolBase.cs:line 392
System.NullReferenceException: Object reference not set to an instance of an object.
at Miningcore.Program.<>c.b__0_9(JsonOptions options) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 181
at Microsoft.Extensions.Options.ConfigureNamedOptions1.Configure(String name, TOptions options)    at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value()    at Microsoft.AspNetCore.Mvc.MvcCoreMvcOptionsSetup.Configure(MvcOptions options)    at Microsoft.Extensions.Options.OptionsFactory1.Create(String name)
at Microsoft.Extensions.Options.UnnamedOptionsManager1.get_Value()    at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app, Action1 configureRoutes)
at Microsoft.AspNetCore.Builder.MvcApplicationBuilderExtensions.UseMvc(IApplicationBuilder app)
at Miningcore.Program.<>c__DisplayClass0_0.b__5(IApplicationBuilder app) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 233
at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass17_0.b__2(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Miningcore.Program.Main(String[] args) in /home/fluffelbuff/Downloads/ltc-pool/miningcore/src/Miningcore/Program.cs:line 245
Cluster cannot start. Good Bye!
fluffelbuff@fluffelbuff-MacBookPro:~/Downloads/ltc-pool/miningcore/build$

I have no idea where the error should be. Can anyone understand this exception?

Seems like you're trying to run miningcore on a macbook. I highly doubt miningcore supports that. Can you try on linux?

I don't think the mac is causing the error, I'm running this on ubuntu 22.04 and I'm also getting the error.
@VaderCoinCryptoNote do you try to run Monero? I would rather think it's config related / daemon & RPC
Did you resolve this?

So the problem was that the config in the examples was not up to date.
The section is
"api": {         "enabled": true,         // Binding address (Default: <IP_ADDRESS>)         "listenAddress": "<IP_ADDRESS>",         // Binding port (Default: 4000)         "port": 4000,         // IP address whitelist for requests to Prometheus Metrics (default <IP_ADDRESS>)         "metricsIpWhitelist": [],         // Limit rate of requests to API on a per-IP basis         "rateLimiting": {             "disabled": false, // disable rate-limiting all-together, be careful             // override default rate-limit rules, refer to https://github.com/stefanprodan/AspNetCoreRateLimit/wiki/IpRateLimitMiddleware#defining-rate-limit-rules             "rules": [                 {                     "Endpoint": "*",                     "Period": "1s",                     "Limit": 5                 }             ],             // List of IP addresses excempt from rate-limiting (default: none)             "ipWhitelist": []         }     },
is missing from the examples, which comes down to the error I had.


rs2_delete_pipeline_profile not return, unable to stop

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D400

Firmware Version
newest

Operating System & Version
Android8.1

Kernel Version (Linux Only)

Platform
RK3399

SDK Version
2.23}

Language
c++

Segment
Robot }

Issue Description
When I repeatedly open and close the device, occasionally a stop failure occurs.
The final error log:

My code looks like this:
void doing()
{
    struct RealSenseInfo
    {
        std::unique_ptr<rs2::pipeline> pipeline_;
        rs2::pipeline_profile profile_;
    };
    std::map<std::string, RealSenseInfo> serial_realsense_info_;

    rs2::context ctx;

    while (true)
    {
        //open device
        for (auto &&dev : ctx.query_devices())
        {
            dev.hardware_reset();

            auto advanced_dev = dev.as<rs400::advanced_mode>();
            advanced_dev.first<rs2::depth_sensor>().set_option(rs2_option::RS2_OPTION_VISUAL_PRESET, rs2_rs400_visual_preset::RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY);

            rs2::config cfg;
            auto serial = dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER);
            auto physical_pport = dev.get_info(RS2_CAMERA_INFO_PHYSICAL_PORT);
            cfg.enable_stream(RS2_STREAM_DEPTH, width_, height_, RS2_FORMAT_Z16, fps_);
            cfg.enable_stream(RS2_STREAM_INFRARED, 1, width_, height_, RS2_FORMAT_Y8, fps_);
            cfg.enable_device(serial);
            auto pipe = std::make_unique<rs2::pipeline>(ctx);
            auto profile = pipe->start(cfg);

            RealSenseInfo real_sense_info;
            real_sense_info.pipeline_ = std::move(pipe);
            real_sense_info.profile_ = std::move(profile);
            serial_realsense_info_.insert(pair<std::string, RealSenseInfo>(serial, std::move(real_sense_info)));
        }

        //do something
        {
            while (...)
            {
                for (auto &kv : serial_realsense_info_)
                {
                    //poll_frame.......
                }
            }
        }

        //stop device
        serial_realsense_info_.clear(); //here,occasionally not return
    }
}

This is the complete log
2019-06-20-10_50_56.zip

Looks like a bug to me...

There's been many improvements for Android since 2.23. Please let us know if this issue still persists on SDK v2.42.0. Thank you.

Closing this ticket for now. Please let us know if the issue persists in the more recent releases. Thank you.


feat: 🎸 allow for exempted identities to be removed

Description
when a user does not pass exempted identities that are exempt when
calling setTransferRestrictions the procedure will unset those
permissions
Breaking Changes
BREAKING CHANGE: 🧨 non passed exempted identities are removed when calling
setTransferRestriction

JIRA Link
DA-317
Checklist

[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 16.0.0-alpha.1 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 17.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[node][baobab] failed to get latest local aggregate

{
  "service": "node",
  "timestamp": "2024-08-09T04:47:10Z",
  "level": 3,
  "message": "failed to get latest local aggregate",
  "fields": {
    "Player": "Aggregator"
  },
  "occurrence_count": 5015
}

it mostly happens on beginning of the app when aggregator tries to retrieve latest local aggregate before the fetcher & local aggregator produced the data. can give some sleep before aggregator start


How to import a component?

When I try to import a component in pages/index.vue like this:
import MyComponent from "~components/MyComponent.vue"

@Component({
  components: {
    MyComponent,
  }
})

I got this error:
error TS2307: Cannot find module '~components/MyComponent.vue'.

~components/MyComponent.vue:
<template>

    This is my component

</template>

Am I missing anything?

Does it work by importing with a relative path instead of the alias ~components?

With relative path I got this error:
error TS2307: Cannot find module './../components/MyComponent.vue'.

import:
import MyComponent from "./../components/MyComponent.vue"

I tried also importing without the vue extension:
import MyComponent from "./../components/MyComponent"

error:
error TS2307: Cannot find module './../components/MyComponent'.

I don't quite understand appendTSSuffixTo:
https://github.com/TypeStrong/ts-loader#appendtssuffixto-regexp-default
Also, every example I've read through uses esModule:true on the vue-loader:
https://github.com/vuejs/vue-class-component/blob/master/example/webpack.config.js#L24
I just don't have that much webpack experience, so trying to override the build config in nuxt.config.js just turns into guessing for me.

Do you think adding typings like this:
declare module '*.vue' {
	import Vue = require('vue')
	const value: Vue.ComponentOptions<Vue>
	export default value
}

will have any effect?

@jvbianchi no, it's not a type error...

@jvbianchi Try something for me:
add a components/Foo.vue with the following contents:
<template>

    Hi

</template>

import it in index.vue with
import Foo from "~components/Foo"

and make sure to add it to
@Component({
  components: {
    Foo
  },

If the dev server is running, stop then yarn dev again.
Tell me if that works...
I'm thinking I've seen the following behaviors:

When you add a new component, you need to stop then restart the dev server
If you import without actually using a component, it throws a "module not found". Do at least a console.log(Foo) makes this go away.

Both of those are bizarre behaviors IMO, but I don't have any answers...

@johnlindquist when you add:

to any component it starts working.
I tested with:
import MyComponent from "./../components/MyComponent.vue"
import Foo from "~components/Foo.vue";

// and

import MyComponent from "./../components/MyComponent"
import Foo from "~components/Foo";

In both cases work as expected.
Answering your questions:

It works even without restarting the server.
If you don't use the component I got the error:

error TS2307: Cannot find module './../components/Foo.vue'.

but if I console.log(Foo) it works.

Great, thanks for the help.


Release forked 2 7 1

@erkiesken should probably close this pr, not needed anymore

Probably can also delete the repo now.

@erkiesken we very much use the repo as still using our fork:
https://github.com/6fold/messaging-utils/pull/28


Fixes issue where char types are not properly escaped

DefaultJsonSerializer was not properly escaping 'char' types, which could result in invalid JSON.

@smbecker Thank you for an excellent unit-test. Instead of adding an extra cast to the system, then we can move the check into SerializeTypeCodeValue (Handles simple types):
https://github.com/NLog/NLog/blob/7e4f29d9352d23c5facca49385993884f3fa0127/src/NLog/Targets/DefaultJsonSerializer.cs#L466-L473
Where the QuoteValue should be changed into:
if (SkipQuotes(objTypeCode))
{
    destination.Append(str);
}
else
{
     if (objTypeCode == TypeCode.Char)
     {
        destination.Append('"');
        AppendStringEscape(destination, str, options.EscapeUnicode);
        destination.Append('"');
     }
     else
     {
        QuoteValue(destination, str);
     }
}

And then also fix this line:
https://github.com/NLog/NLog/blob/7e4f29d9352d23c5facca49385993884f3fa0127/src/NLog/Targets/DefaultJsonSerializer.cs#L119
Which should also check for TypeCode.Char:
if (objTypeCode != TypeCode.Object && objTypeCode != TypeCode.Char && StringHelpers.IsNullOrWhiteSpace(options.Format) && options.FormatProvider == null)

Made the requested changes

Thanks!


Added filles for the new rest and spread exericse

Resolve #1500
This is the start for the exercise. There is still some stuff that I haven't started on like hints and design.
It is because I think they require that the rest is more or less finished.

I feel like I have resolved the issues mentioned above. If not please tell me and I will give it another round

I feel like I have resolved the issues mentioned above. If not please tell me and I will give it another round

Thank you for the work!
We'll check it out.

Could some one go through with me why errors are raised. The changes I made should not have caused this.

Could some one go through with me why errors are raised? The changes I made should not have caused this.

Sorry I didn't see this. Seems you managed to solve this yourself!
For future contributions, on this track repository you can post a comment with / followed by format and it will format it on the PR directly.

I see no problem.
I made some commits to some other tracks, so I learnt there how the config file needs to be setup.

I see, no problem. But thanks for the tip.
I made some commits to some other tracks, so I learnt there how the config file needs to be setup.

I'll pick up the reviewing here :)


tests, network, vmi_passt: Create the VMI object directly

What this PR does
Waiting of a VMI object readiness before it actually exists causes flakes.
There is no apparent reason to use a VM in this case. Directly using a VMI simplifies the test and avoids the detected flake.

Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note

NONE

/cherry-pick release-1.2

/approve


Add .editorconfig

Coming from #71, this adds an .editorconfig at the repository root with some defaults as observed from existing code. I added the file to the solution in the sub-folder Globals.
Rule CA1304 is configured as an error. All erroneous places are fixed.
I couldn't figure out how to analyze Razor files as well, so the advantage of this is very limited, unfortunately. I also tried the following with no success.
[*.razor.g.cs]
generated_code = false
dotnet_diagnostic.CA1304.severity = error

It might be a good idea to add dotnet naming rules to make it easier for others to contribute without running into formatting issues.

great. thanks for the contribution. does this work in dotnet cli also?
please feel free to add naming rules also. unfortunately i am not familiar with editor configs, naming rules and CI/CD. i manually build and release nuget packages. :( so glad to get contributions. :)
if you have other items that could help getting contributions, please feel free to do so.

also thanks for targeting develop branch.

Yes, this works with the CLI.


use nltk library

Prerequisites

[X] I am an Open Source Contributor
[X] I checked to make sure that this issue has not already been filed

Description
Instead of using regular expressions for each preprocessing step, we can utilize the nltk library, which provides a variety of text preprocessing functions.
Screenshots

Code of Conduct

[X] I follow Contributing Guidelines of this project.

@MausmiSinha Go ahead! 🚀

@MausmiSinha Update pls

Closing for having no response.


Ensure that Service Account has no Admin privileges

Possible check to target the following resource

[ ] google_project_iam_member

closing, tracking in spreadsheet


Re-evaluate PTG trajectory indices after finding a path

To compensate for the A* grid discretization errors.

Done in 10c5bb310fae846a6d7e245a86e66dea298c6f3c


Stream rewind

I was wondering if it could make sense to 'rewind' a stream.
In a sense s.take(1) could be reverted and allow for the representation of a sort of Turing Machine - http://en.wikipedia.org/wiki/Turing_machine
The way streaming is currently understood (as in node.js native streams) is uni-directional but it might make sense to have bi-directional transforms.
I am not sure highland is the right tool for the job in that case but wanted to spawn a (hopefully short) discussion.

I don't see how rewinding s.take(1) would allow us to implement a Turing Machine. Do you mean using it as a back-tracking mechanism to implement non-deterministic Turing Machines? If so, you'd still need to find a way to revert the tape state, as the stream only represents the input state.
Also, I don't see how we can implement rewind without buffering every single token that every stream emits. We could provide a toRewindable() operation that returns a rewindable stream, but I don't see a compelling use-case.
I think people who want a rewindable stream actually just want an array + lodash (with maybe highland used at the beginning to build the array asynchronously), so I'm in the "highland is not the right tool" camp.

Yes you are right that it would need buffering (at least up to a certain rewindable horizon / memory size) to make a stream rewindable.
I think that I am confused as to whether the first-order component should be the stream or the transform + trying to imagine this on a multi-machine setup where the stream would flow on a cluster of machine. This is definitely not 'highland-only' ;-). I bring it up in case it triggers some ideas for the architecture of the code.

For me, the core of Highland is

an async stream (i.e., the generator function) and
consumption of that stream (pull and consume)

Everything else is just nice sugar on top.
On Fri, Jan 23, 2015 at 2:41 AM, jeromew<EMAIL_ADDRESS>wrote:

Yes you are right that it would need buffering (at least up to a certain
rewindable horizon / memory size) to make a stream rewindable.
I think that I am confused as to whether the first-order component should
be the stream or the transform + trying to imagine this on a multi-machine
setup where the stream would flow on a cluster of machine. This is
definitely not 'highland-only' ;-). I bring it up in case it triggers some
ideas for the architecture of the code.
—
Reply to this email directly or view it on GitHub
https://github.com/caolan/highland/issues/201#issuecomment-71169188.

I think what I am refering to is something similar to https://github.com/jadejs/token-stream but with the lazy evaluation & async'ness.

I close this just to remove the noise. The main point was that since highland is lazy, there are cases when only one token flows from start to finish. In that case, it could be interesting to be able to rewind to do things like token-stream does.


pipx plus copier broken again as described in readme

Follow up from #396. See below output
Lord Stark:~/radiativeDecays (main)$ pipx install copier
'copier' already seems to be installed. Not modifying existing installation in '/Users/kratsg/.local/pipx/venvs/copier'. Pass '--force' to force
installation.

Lord Stark:~/radiativeDecays (main)$ pipx inject copier copier-templates-extensions
  injected package copier-templates-extensions into venv copier
done! ✨ 🌟 ✨

Lord Stark:~/radiativeDecays (main)$ copier copy gh:scientific-python/cookie atlas --trust
Traceback (most recent call last):
  File "/Users/kratsg/.local/bin/copier", line 5, in <module>
    from copier.__main__ import copier_app_run
  File "/Users/kratsg/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/__init__.py", line 6, in <module>
    from .main import *  # noqa: F401,F403
  File "/Users/kratsg/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/main.py", line 46, in <module>
    from .subproject import Subproject
  File "/Users/kratsg/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/subproject.py", line 15, in <module>
    from .template import Template
  File "/Users/kratsg/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/template.py", line 20, in <module>
    from yamlinclude import YamlIncludeConstructor
ModuleNotFoundError: No module named 'yamlinclude'

Lord Stark:~/radiativeDecays (main)$ pipx run copier copy gh:scientific-python/cookie atlas --trust
⚠  copier is already on your PATH and installed at /Users/kratsg/.local/bin/copier. Downloading and running anyway.
Copier could not load some Jinja extensions:
No module named 'copier_templates_extensions'
Make sure to install these extensions alongside Copier itself.
See the docs at https://copier.readthedocs.io/en/latest/configuring/#jinja_extensions

What works for me is
$ pipx inject copier 'pyyaml-include<2' copier-templates-extensions
  injected package pyyaml-include into venv copier
done! ✨ 🌟 ✨
  injected package copier-templates-extensions into venv copier
done! ✨ 🌟 ✨

so I guess the README needs to hint that there's still a pyyaml-include issue with the current copier?

Try pipx reinstall copier. copier doesn't depend on pyyaml-include anymore IIRC.

Try pipx reinstall copier. copier doesn't depend on pyyaml-include anymore IIRC.

This worked. Dang.


Simple fix typo

Motivation:
Wrong typo in annotation at line 925.
Modifications:
Fix typo. *then -> than.
Result:
Fix typo.

@netty-bot test this please


[Wave 6: Workspace Chats] Ensure the report preview action updates created timestamp when the IOU actions are taken

Coming from here, we want to ensure the report preview report action moves as IOU actions:

Submit
Approve
Paid (already happening)

This will be achieve using the createOrUpdateReportPreview method which we should use in submit and approve
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01430a3cf4ecec3f64
Upwork Job ID:<PHONE_NUMBER>709827584
Last Price Increase: 2023-12-20

Hi @mountiny, are you working on this? Since this is also impacting wave7, I'm happy to give a hand here and take a look if you think it should be fixed internally

Yep I will handle this one

Auth PR is under way, looking into passing the onyx update directly from Auth but this is first time we do this for report preview actions

Not sure why this did not autoclose


Plugin.Media.Abstractions - Error can't deploy

Make sure you follow all of the setup directions before posting an issue: https://github.com/jamesmontemagno/MediaPlugin#important-permission-information
If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Error MT2002: Failed to resolve "Plugin.Media.Abstractions.MediaFile" reference from "Plugin.Media, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null" (MT2002)
Version Number of Plugin: <IP_ADDRESS>
Device Tested On:
Simulator Tested On:
Version of VS: 7.5.4 (Build 3)
Version of Xamarin: <IP_ADDRESS>3944
Versions of other things you are using:
Steps to reproduce the Behavior
Expected Behavior
Actual Behavior
Code snippet
        await CrossMedia.Current.Initialize();

        if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported)
        {
            Console.WriteLine("No Camera: No camera available");
            return;
        }

        var file = await CrossMedia.Current.TakePhotoAsync(null);

        if (file == null) return;

        Console.WriteLine("File Location {0}", file.Path);

        ImageSource = ImageSource.FromStream(() =>
        {
            var stream = file.GetStream();
            return stream;
        });

Screenshots

Uninstall the plugin from all of your libraries/apps and re-install them via NuGet

Tried re-installing them via NuGet. Still problem not resolved. Showing the error as "Failed to resolve "Plugin.Media.Abstractions.MediaFile" reference from "Plugin.Media, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null".
Any other ideas??


gulp.dest() stopping after x files and .on('finish') not triggered

Depending on how many files the glob matches, the following task does not copy all matching files and does not trigger the finish event:
gulp.task('default', function(cb) {
	gulp.src(['./test/*.txt'])
		.pipe(gulp.dest('./build'))
		.on('finish', function() {
			console.log('finished');
			cb();
		});
});

In my test, the magic number is 16. If there are 17 files matched, it stops copying after 16 and the event does not trigger.
It works fine if I return the stream:
gulp.task('default', function(cb) {
	return gulp.src(['./test/*.txt'])
		.pipe(gulp.dest('./build'))
		.on('finish', function() {
			console.log('finished');
			cb();
		});
});

Test case (containing reduced package.json, reduced gulpfile.json and test/ with 17 empty text files): https://dl.dropboxusercontent.com/u/1806977/gulp-dest-issue.zip

I still have this issue on master.

If you return the stream, it will be sunk I believe

Updated to vinyl-fs 0.3.13 and still having this issue.

Like @FacioRatio, I updated to vinyl-fs 0.3.13 and still having the issue.

The problem is that you need to sink your stream - if it isn't then it will stop after the default size of 16 objects. Sink the stream by returning it or piping it into anything that consumes it.

Thanks @contra return did the trick !

I am returning the stream and it still stops after the same file. No errors, just carries on and finishes the build...

@JaredSartin your issue is different, you aren't piping correctly. .pipe() returns a new tail of a stream.
a.pipe(b);
a.pipe(c);
a.pipe(d);

is not a -> b -> c -> d
Your code should be
var changed    = require('gulp-changed');
var gulp       = require('gulp');
var config     = require('../config');

gulp.task('images', function() {
  var g = gulp.src(config.images.src);

  if(config.builds) {
    for(i in config.builds) {
      var dest = config.images.dest.split("/")
      dest.splice(-1, 0, config.builds[i]);
      dest = dest.join("/");
      g = g.pipe(changed(dest)) // Ignore unchanged files
      g = g.pipe(gulp.dest(dest));
    }
  } else {
    g = g.pipe(changed(config.images.dest)) // Ignore unchanged files
    g = g.pipe(gulp.dest(config.images.dest));
  }

  return g;
});

@contra Thanks. I knew splitting that up was going to bite me... Solved. Thanks, I don't do enough work with pipes... It started to come to me that this may have been the cause.

Hi,
I've also noticed what I believe to be the same issue.
Returning the gulp stream from my task allows the task to complete but wrongly reports when it's actually finished thus making it hard to put as dependency before other tasks. I've placed the code for the task at the bottom of this post in case it helps.
On taking a look into why this might be happening I followed the chain of adding and running a task down into the orchestrator dependency, particularly this file -
https://github.com/orchestrator/orchestrator/blob/master/lib/runTask.js#L32-L65.
Look at this bit of code the flow seems to be -

Call task function and assign returned value to r
If r is a promise do this
Else If r is a stream do this
Else If r expects 0 arguments do this

Obviously my task returns neither a promise nor a stream and expects a callback to passed in.
However, although this isn't idomatic, I thought that calling a callback when the task has finished was an acceptable way to use gulp.
Am I missing something?
Gulp Task
gulp.task('coverage', function (cb) {
  var inst = new isparta.Instrumenter({babel: {stage: 0}});
  gulp.src('app/**/*.js')
    .pipe(istanbul({
      instrumenter: function () {
        console.log('THRESH')
        return inst;
      }
    , includeUntested: true
    }))
    .on('finish', function () {
      gulp.src('test/**/*.spec.js', {read: false})
        .pipe(mocha({
          js: babel({
            stage: 0
          , plugins: ['babel-plugin-rewire']
          })
        }))
        .on('error', cb)
        .pipe(istanbul.writeReports({
          dir: './coverage'
        , reporters: [ 'lcov', 'html' ]
        , reportOpts: { dir: './coverage' }
        }))
        .pipe(istanbul.enforceThresholds({
          thresholds: {
            global: 90
          }
        }))
        .on('end', cb);
    });
});

@iamcdonald support questions should be directed to stack overflow.  There is so much wrong with your posted gulp task that it would take insane amounts of time to go through.


Can't receive larger WebSocket messages than 16MiB on native

If a users tries to send a big chunk of that (e.g. a 10 mega-pixel RGBA image) then they might hit the default 16 MiB data frame limit in tungstenite:
https://docs.rs/tungstenite/latest/tungstenite/protocol/struct.WebSocketConfig.html#structfield.max_frame_size
We should increase this maximum by a lot, which will require changes to ewebsock
The error:

ERROR re_ws_comms::client] Connection error: read: Space limit exceeded: Message too long: 36008153 > 16777216

Is this error likely to happen if I transfer a large mesh too? If increasing the max frame size is problematic, would it make sense to instead chunk the data sent into blocks smaller than the max frame size?

I can confirm that loading a medium size mesh crashes the viewer too. I have meshes of sizes up to 1GB approximately that I'd need to visualize eventually.


pass http.Option through

In order to pass HTTP.Option into the client, I basically had to duplicate the NewDefault as seen here:
https://github.com/knative-sandbox/eventing-rabbitmq/pull/113/files#diff-e45c0bc45ea5877a2e315d983df2d17eR77
If we just allow the protocol Option optionally here (so doesn't change the signature), I could use this method as is.
WDYT?

It's a vararg, so it's fine and it doesn't break. LGTM


Implement bindings for the Zeebe workflow engine

Description
Implement bindings for the Zeebe workflow engine. This PR implements a job worker input binding that can be used to create workers which will be triggered by Zeebe. The PR implements also an output binding for all the Zeebe commands:

get topology information
deploy a workflow
create an instance of a workflow
cancel a workflow instance
set variables for a workflow instance
resolves an incident
publish a message
activate a job
complete a job
fail a job
update the job retries
throw an error

Issue reference
Fixes #805
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@pkedy Thanks for your suggestions. I've resolved all your suggestions regarding the error constants and also regarding the error wrapping.
Regarding your suggestion with the mocks. This is my first contribution in go. Do you have a tutorial for me which describes this way of mocking?

Hi @akkie. Here is a good example here.
https://github.com/dapr/dapr/blob/master/pkg/actors/actors_test.go#L39-L57
Basic structure is the mock struct embeds the interface is it mocking. This enables you to only have to mock the methods that are required by the test yet the struct still implements the interface (because it is embedded). Of course if the test ends up calling an unimplemented method, it panics, but then you know to implement it. In this example, a channel which would be more challenging when using a mocking library.

@pkedy I have refactored the test for the cancel_instance command. Could you please have a look if this is ok before I start to refactor the other tests.

@akkie Yes! I put 1 small nit there but this is exactly the pattern for mocking via interfaces.

@akkie please ping me when you want me to take another look at this. Thanks!

@pkedy From my perspective the PR is finished. I've also finished the documentation.
I'm not sure why the build failed. Seems like an issue with the build agent. Could you please trigger the pipelines again?

@akkie We very recently moved the logger package from dapr/dapr to dapr/kit so I fixed that for you and made a few miscellaneous tweaks.

@pkedy I will create a follow up PR for integration testing. If you like to play with Zeebe, I've setup a small example application and a description how Zeebe can be setup locally.
https://github.com/PlanBGmbH/zeebe-dapr-example


Amazon-Product-Length-Prediction-Dataset

Is your feature request related to a problem? Please describe.
The goal is to develop a machine learning model that can predict the length dimension of a product. Product length is crucial for packaging and storing products efficiently in the warehouse. Moreover, in many cases, it is an important attribute that customers use to assess the product size before purchasing. However, measuring the length of a product manually can be time-consuming and error-prone, especially for large catalogs with millions of products.
You will have access to the product title, description, bullet points, product type ID, and product length for 2.2 million products to train and test your submissions. Note that there is some noise in the data.
Describe the solution you'd like
This problem will solve using NLP with regression .
Describe alternatives you've considered
No response
Additional context
the datasets is provided by amazon .
@khusheekapoor please assign me this issue .
Code of Conduct

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

@shashank1623 - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!
Name the file as: algorithm_dataset.ipynb and link it in the readme of the labeled directory as algorithm - dataset.


Uhf x fix news archive

What was done

Fixed an issue with news archive page where the last new item would overlay the entire page, rendering the whole list unusable

How to install

Update the HDBT theme

composer require drupal/hdbt:dev-UHF-X-fix-news-archive

Run make drush-cr

This shouldn't actually be done like this. I will fix this correctly to this PR.


Add USE_STACK_PROTECTOR option

-fstack-protector-all is not supported on all linux toolchains so add an
option to disable it (and enable it by default to keep current behavior)
Fixes:

http://autobuild.buildroot.org/results/377818cf8c1f2632cabdccb32bf4e7f06c0fdbbd

Signed-off-by: Fabrice Fontaine<EMAIL_ADDRESS>

@ffontaine  travis check failed.

Indeed, 4 builds out of 5 failed, but the build failures are not related to the PR:
$ sudo apt-get update -qq
W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
W: GPG error: https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6B05F25D762E3157
W: The repository 'https://packagecloud.io/github/git-lfs/ubuntu trusty InRelease' is not signed.
W: There is no public key available for the following key IDs:
6B05F25D762E3157
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources.gz  Hash Sum mismatch
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages.gz  Hash Sum mismatch
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-i386/Packages.gz  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command "sudo apt-get update -qq" failed and exited with 100 during

rebuild this pull request. please see details.


Enhancment: switch microphone, speaker and video device

Overview:

required a button for switching between the external microphone and headphones
required a button for switching the input camera device, especially when in use virtual camera
optional: switch the speaker device

For the first point, I use this plugin to swap audio between my headphones and external speakers. I have Meet set to use my Default audio device, which means it seamlessly switches when I press the button.

A button to switch to a specific audio input and output device would be indeed very handy! Depending on the context I have to keep switching between Voicemeeter devices when I use Google Meet for streaming with guests vs a "normal" meeting. I have to manually click on the dropdown menu and search between ~20 devices for the correct one. A button to switch between specific devices would integrate perfectly into my workflow.


TCH rules require from future import annotations

The following does not work with 3.11.1 at runtime:
test.py
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from test_b import B

def test(x: B) -> B:
    return x

test_b.py
class B:
    ...

$ python test.py
Traceback (most recent call last):
  File "test.py", line 9, in <module>
    def test(x: B) -> B:
                ^
NameError: name 'B' is not defined

but it works when test.py contains from __future__ import annotations.
It might be good to either skip the TCH rules when from __future__ import annotations is not there or mention that this import needs to be added.

Yeah this is correct for all Python version above 3.7 I believe. Ideally ruff should implement TC100, TC101, TC200, and TC201 as these are meant to complement the TC00[1,2,3] rule by telling you how to handle forward references.
What happens we when put an import inside a TYPE_CHECKING block (or any condition that is evaluated as False at runtime) is that the code path is not evaluated, so the import effectively doesn't happen at runtime. Since code outside the condition cannot reference something that isn't defined, we either wrap the undefined values in quotes or add a from __futures__ import annotations since this enables PEP563 behavior.
tl;dr: The TC00[1,2,3] need either  the TC1* or TC2* range errors enabled (not both) to guide users into setting up their code in a valid way.
Sorry for not noticing this earlier. I should have warned you about this. And no worries about the pings - happy to help :+1:

This section explains the concepts adequately, I hope: https://github.com/snok/flake8-type-checking#choosing-how-to-handle-forward-references

So for now there is no way to turn TC1/TC2 in ruff?

The code just has to be written I think @RayJameson. There shouldn't be any real blockers in place.

Yup that's right -- we don't support those rules yet, only TC001 - TC005.

I think this specific issue was actually a bug that we fixed around runtime requirements for annotations in function scopes.

(That snippet no longer raises an error.)

Sorry for necroposting, but I've been studying this for the last couple of hours and don't get it. Is from __future__ import annotation needed with these rules or not? If it is, why doesn't ruff add it?


Add-AppxPackage : Deployment failed with HRESULT: 0x80080204, The Appx package's manifest is invalid.

Windows Version
Microsoft Windows [Version 10.0.17763.3887]
WSL Version
N/A
Are you using WSL 1 or WSL 2?

[ ] WSL 2
[ ] WSL 1

Kernel Version
N/A
Distro Version
Ubuntu 22.04 LTS
Other Software
No response
Repro Steps
I followed the instructions from https://learn.microsoft.com/en-us/windows/wsl/install-on-server
I downloaded Ubuntu2204-221101.AppxBundle which is downloaded, when clicked on a link from https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions from a browser.
Instructions says it should be with suffix .appx, but it's only when downloaded via command (Invoke-WebRequest/curl.exe, which I tried too - same file is downloaded).
Those 2 pages contains different instructions, but I tried both:

Add-AppxPackage .\Ubuntu2204-221101.AppxBundle
Add-AppxPackage .\Ubuntu_2<IP_ADDRESS>_x64.appx

where Ubuntu_2<IP_ADDRESS>_x64.appx is extracted from Ubuntu2204-221101.AppxBundle

Expected Behavior
I expected it would work - install Ubuntu.
Actual Behavior
It failed with an error instead:
PS C:\download\Ubuntu> Add-AppxPackage .\Ubuntu_2<IP_ADDRESS>_x64.appx
Add-AppxPackage : Deployment failed with HRESULT: 0x80080204, The Appx package's manifest is invalid.
error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96,
Note: The schema for MaxVersionTested specified does not recognize XML fields with namespace
"http://schemas.microsoft.com/appx/manifest/uap/windows10/10". Please ensure that you have the correct
MaxVersionTested specified. Reason: The attribute
'{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element
'{http://schemas.microsoft.com/appx/manifest/foundation/window
error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96,
Note: The schema for MaxVersionTested specified does not recognize XML fields with namespace
"http://schemas.microsoft.com/appx/manifest/uap/windows10/10". Please ensure that you have the correct
MaxVersionTested specified. Reason: The attribute
'{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element
'{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Application' is not defined in the DTD/Schema.
NOTE: For additional information, look for [ActivityId] 5a67827c-4ccc-0005-bf89-675acc4cd901 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 5a67827c-4ccc-0005-bf89-675acc4cd901
At line:1 char:1
+ Add-AppxPackage .\Ubuntu_2<IP_ADDRESS>_x64.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\msuska\downl....1.7.0_x64.appx:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

I'm on Windows Server 2019 Datacenter, version 1809 (which is 1709+ as mentioned on webpage).
Diagnostic Logs
No response

I was not able to provide wls version as it says invelid option:
PS C:\msuska\download\Ubuntu> wsl.exe --version
Invalid command line option: --version
Usage: wsl.exe [option] ...
Options:
    -d, --distribution <DistributionName>
        Launch the specified distribition.

    -e, --exec <CommandLine>
        Execute the specified Linux command. The remainder of the arguments are
        used as the command line to execute.

    -u, --user <UserName>
        Run as the specified user.

    --help
        Display this usage information.

    --
        Stop parsing arguments and pass the remainder to the Linux process.

Same here. I suppose that the command wsl.exe --version fails because it,s the version 1, but that's not the point.
I've tryed the wslubunt2004 and it works fine, but the wslubuntu2204 gave me the same error.

Thanks @AndreaMontanari89 , based on your reply I used Ubuntu 20.04 without problems.
I compared manifests and I deleted xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"  which is not used in manifest anyway, so error above was solved, but there was another one:
PS C:\msuska\download> Add-AppxPackage .\Ubuntu2204-221101.AppxBundle
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF0, Package could not be opened.
error 0x8007000D: Opening the package from location Ubuntu2204-221101.AppxBundle failed.
NOTE: For additional information, look for [ActivityId] 55e71190-5183-0003-1e1e-e7558351d901 in the Event Log or use the command line Get-AppPackageLog -ActivityID 55e71190-5183-0003-1e1e-e7558351d901
At line:1 char:1
+ Add-AppxPackage .\Ubuntu2204-221101.AppxBundle
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (C:\msuska\downl...1101.AppxBundle:String) [Add-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

PS C:\msuska\download> Get-AppPackageLog -ActivityID 55e71190-5183-0003-1e1e-e7558351d901

Time                      ID           Message
----                      --           -------
2023-03-08 12:10:11       603          Started deployment Add operation on a package with main parameter Ubuntu2204-221101.AppxBundle and Options 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
2023-03-08 12:10:11       465          error 0x8007000D: Opening the package from location Ubuntu2204-221101.AppxBundle failed.
2023-03-08 12:10:11       403          error 0x8007000D: Failure to get staging session for: file:///C:/msuska/download/Ubuntu2204-221101.AppxBundle.
2023-03-08 12:10:11       404          AppX Deployment operation failed for package  with error 0x80073CF0. The specific error text for this failure is: error 0x8007000D: Opening the package from location Ubuntu2204-221101.AppxBundle failed.

I was able to accomplish by installing 20.04 and then upgrading it to 22.04 in the terminal.

I have the exact same issue. Failed to install Ubuntu 22.04 & can't download Ubuntu 20.04 because it needs Windows Store which is not available on Windows Server 2019! How should I install it?

Same issue on Windows Server 2019 (Version 1809, OS Build 17763.5206)
Steps to reproduce:

Install WSL with this powershell command: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Download Ubuntu2204-221101.AppxBundle and copy it into E:\WSLDistros
See below:

PS E:\WSLDistros> Rename-Item .\Ubuntu2204-221101.AppxBundle .\Ubuntu2204-221101.AppxBundle.ZIP
PS E:\WSLDistros> expand-archive .\Ubuntu2204-221101.AppxBundle.ZIP .\Ubuntu2204-221101
PS E:\WSLDistros> cd .\Ubuntu2204-221101\
PS E:\WSLDistros\Ubuntu2204-221101> Add-AppxPackage .\Ubuntu_2<IP_ADDRESS>_x64.appx
Add-AppxPackage : Deployment failed with HRESULT: 0x80080204, The Appx package's manifest is invalid.
error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96, Note
: The schema for MaxVersionTested specified does not recognize XML fields with namespace "http://schemas.microsoft.com/
appx/manifest/uap/windows10/10". Please ensure that you have the correct MaxVersionTested specified. Reason: The attrib
ute '{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element '{http://schemas.microsoft
.com/appx/manifest/foundation/window
error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96, Note
: The schema for MaxVersionTested specified does not recognize XML fields with namespace "http://schemas.microsoft.com/
appx/manifest/uap/windows10/10". Please ensure that you have the correct MaxVersionTested specified. Reason: The attrib
ute '{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element '{http://schemas.microsoft
.com/appx/manifest/foundation/windows10}Application' is not defined in the DTD/Schema.
NOTE: For additional information, look for [ActivityId] aed04015-33f5-0002-5158-d0aef533da01 in the Event Log or use th
e command line Get-AppPackageLog -ActivityID aed04015-33f5-0002-5158-d0aef533da01
At line:1 char:1
+ Add-AppxPackage .\Ubuntu_2<IP_ADDRESS>_x64.appx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (E:\WSLDistros\U....1.7.0_x64.appx:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

This is following steps from https://learn.microsoft.com/en-us/windows/wsl/install-on-server

you need to rename the appropriate package which ends with x64 again to .zip then extract it again to have the ubuntu.exe then run it and it will install , the manafist file resides inside each package
1- Rename the downloaded file Ubuntu2204.appx to Ubuntu2204_.zip, then extract this archive. Inside there are different appx files for different platforms. Choose the one for your platform, e.g. Ubuntu_2<IP_ADDRESS>_x64.appx.
2 - Rename the appx file for your platform again to Ubuntu2204.zip and extract this archive.
3- Extract the files in Ubuntu2204.zip to the target location where you would like your linux distro to reside.
4- Open the target location folder with the files of Ubuntu2204.zip extracted and run the file ubuntu.exe, which is located inside the folder. This will install the distribution

curl.exe -L -o ubuntu-2004.appx https://aka.ms/wslubuntu2004
ubuntu-core-24-amd64  ?


JSDoc @see should link to namepath in rendered view

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:

Version: 1.73.0-insider
Commit: fad3a77833b9249158dfd88477114a06435e46a2
Date: 2022-10-07T05:18:21.081Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.10.0-18-amd64 snap
Sandboxed: Yes

OS Version: Debian 11

Steps to Reproduce:

Create a TypeScript file.
Paste the following content:

/**
 * @see PresenceEventContent
 */
export type PresenceState = "online" | "offline" | "unavailable";

export interface PresenceEventContent {
    /**
     * @see {@link PresenceState} for a description of each presence key.
     */
    presence: PresenceState;
}

According to the documentation, a namepath can be used immediately following @see without the use of @link and it should still link to the class/function/property in the rendered JSDoc.

If you provide a namepath, JSDoc's default template automatically converts the namepath to a link.
…
/**
 * Both of these will link to the bar function.
 * @see {@link bar}
 * @see bar
 */
function foo() {}

— https://jsdoc.app/tags-see.html#overview

In the code editor, we see the correct behavior. When hovering over a token, namepaths in @see aren't linked unless we explicitly use the @link tag.

The behavior in the code editor view, you can see that both PresenceState and PresenceEventContent are linked to the respective token.

You can see PresenceState is linked to the token here because it uses @link. This is how both are supposed to look.

You can see here that PresenceEventContent isn't linked, but it should be according to the JSDoc documentation.

Duplicate of #48225


Fix to retain xlabel when plotting evoked using spatial_colors=True

This concerns #4472.

Codecov Report

Merging #4479 into master will decrease coverage by 2.45%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #4479      +/-   ##
==========================================
- Coverage   83.55%   81.09%   -2.46%
==========================================
  Files         349      349
  Lines       64848    64849       +1
  Branches    10026    10027       +1
==========================================
- Hits        54182    52588    -1594
- Misses       7835     9377    +1542
- Partials     2831     2884      +53

LGTM

Thanks for fix @jdue !

Merged with a minor cosmit
https://github.com/mne-tools/mne-python/commit/2428dddd397421732d52a735579bd54c5054b39a


Smooth scrolling

Scrolling through chat history should be smooth

Possibly reference implementation: https://github.com/mudin/magic-scroll/blob/master/src/MagicScroll.js


Bot (sometimes) crashes on live-net when selling coins (and if restarted trade_slots is not being updated)

[2021-08-09 09:01:41] TP or SL reached, selling 0.893 WAVESBUSD. Bought at: 16.83300000 (Price now: 16.86300000)  - 0.18% - Est: 0.03 BUSD
[2021-08-09 09:01:41] TP or SL reached, selling 10.54 WRXBUSD. Bought at: 1.42310000 (Price now: 1.42070000)  - -0.17% - Est: -0.03 BUSD
[2021-08-09 09:01:42] Sold WAVESBUSD, removed order ID 110980828 from history.
[2021-08-09 09:01:42] Sold WRXBUSD, removed order ID 63935702 from history.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1345, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
AND
[2021-08-09 12:06:35] TP:52.08:0.11 or SL:50.99:-2.00 not yet reached, not selling PSGBUSD for now >> Bought at: 52.02700000 - Now: 51.17600000 : -1.64% Est: -0.25 BUSD - CIP: -0.10/-0.08 - TAKE_PROFIT: 0.09
[2021-08-09 12:06:35] Sold ZECBUSD, removed order ID 100776316 from history.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1345, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 400, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 702, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 416, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1345, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/hugo/Binance-Trading-Bot/Binance_Detect_Moonings.py", line 215, in
reload_tickers()
File "/home/hugo/Binance-Trading-Bot/bot/tickers_list.py", line 124, in reload_tickers
tickers_list(SORT_LIST_TYPE)
File "/home/hugo/Binance-Trading-Bot/bot/tickers_list.py", line 52, in tickers_list
tickers_binance = client.get_ticker()
File "/usr/local/lib/python3.9/dist-packages/binance/client.py", line 998, in get_ticker
return self._get('ticker/24hr', data=params, version=self.PRIVATE_API_VERSION)
File "/usr/local/lib/python3.9/dist-packages/binance/client.py", line 237, in _get
return self._request_api('get', path, signed, version, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/binance/client.py", line 202, in _request_api
return self._request(method, uri, signed, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/binance/client.py", line 196, in _request
self.response = getattr(self.session, method)(uri, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

RECHECK_INTERVAL = 6

SIGNALS_FREQUENCY: 1

I fix on a pull request


support for multiple toffoli gate decompositions

There are various (relative phase) Toffoli gate decompositions, each having its own advantage with respect to (at least) quantum arithmetic [1]. It would be great if Qualtran would support various Toffoli decompositions.
[1] https://arxiv.org/pdf/2101.04764.pdf

Thanks for flagging this. I know @NoureldinYosri has thought about the best way to toggle between different decompositions.

In the standard library of bloqs, we're going to make toffoli a "leaf bloq" #873 , but these circuits can be added as additional information. And there's been a long-time discussion about whether we need different toffolis for if one does or does not care about phases


Command "config binance_markets" converts argument to lower case

Describe the bug
If you use the command, eg. "config binance_markets ALGO-USDT" the pair name will be converted to lower case. This will then trigger an error when running the "trades" command
If you use "config binance_markets" and then enter eg. ALGO-USDT at the prompt it works correctly
Release version
dev-0.37.0
┆Issue is synchronized with this Clickup task by Unito

Tried to replicate the issue with running config binance_markets ALGO-USDT

Shows pair name is in lowercase

Run trades command, throws an error

2021-03-11 19:54:27,747 - 1 - hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: APIError(code=-1100): Illegal characters found in parameter 'symbol'; legal range is '^[A-Z0-9-_.]{1,20}$'.
Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper
    return await c
  File "/home/hummingbot/hummingbot/client/command/trades_command.py", line 54, in trades_report
    await self.market_trades_report(connector, days, market)
  File "/home/hummingbot/hummingbot/client/command/trades_command.py", line 60, in market_trades_report
    trades: List[Trade] = await connector.get_my_trades(market, days)
  File "hummingbot/connector/exchange/binance/binance_exchange.pyx", line 1119, in get_my_trades
    trades = await self.get_all_my_trades(trading_pair)
  File "/home/hummingbot/hummingbot/core/utils/__init__.py", line 15, in memoize
    cache[key] = await fn(*args, **kwargs)
  File "hummingbot/connector/exchange/binance/binance_exchange.pyx", line 1113, in get_all_my_trades
    trades = await self.query_api(self._binance_client.get_my_trades,
  File "hummingbot/connector/exchange/binance/binance_exchange.pyx", line 229, in query_api
    async with self._throttler.weighted_task(request_weight=request_weight):
  File "hummingbot/connector/exchange/binance/binance_exchange.pyx", line 241, in hummingbot.connector.exchange.binance.binance_exchange.BinanceExchange.query_api
    raise ex
  File "hummingbot/connector/exchange/binance/binance_exchange.pyx", line 231, in hummingbot.connector.exchange.binance.binance_exchange.BinanceExchange.query_api
    return await self._async_scheduler.call_async(partial(func, *args, **kwargs),
  File "/home/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 128, in call_async
    return await self.schedule_async_call(coro, timeout_seconds, app_warning_msg=app_warning_msg)
  File "/home/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 117, in schedule_async_call
    return await fut
  File "/home/hummingbot/hummingbot/core/utils/async_call_scheduler.py", line 80, in _coro_scheduler
    fut.set_result(await coro)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/binance/client.py", line 1836, in get_my_trades
    return self._get('myTrades', True, data=params)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/binance/client.py", line 237, in _get
    return self._request_api('get', path, signed, version, **kwargs)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/binance/client.py", line 202, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/binance/client.py", line 197, in _request
    return self._handle_response()
  File "/home/hummingbot/miniconda3/envs/hummingbot/lib/python3.8/site-packages/binance/client.py", line 230, in _handle_response
    raise BinanceAPIException(self.response)
binance.exceptions.BinanceAPIException: APIError(code=-1100): Illegal characters found in parameter 'symbol'; legal range is '^[A-Z0-9-_.]{1,20}$'.

Tried to use "config binance_markets" and then enter eg. ALGO-USDT at the prompt, the trades command works correctly

Release version
dev-0.37.0
logs_hummingbot.log

Closing ticket since the binance_markets parameter is no longer available as part of Binance spot improvements for Hummingbot version 1.0.0, please see this link


Updating-Recipe Finder

🛠 Issue (Number)

Closes #1582
Description
I have made changes for the hovering effect of the view recipe button and I have also added the accordion effect for the Diet labels and Health Labels also added appropriate styling elements to it.
Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have made this from my own
[x] I have taken help from some online resourses
[x] My code follows the style guidelines of 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
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] The title of my pull request is a short description of the requested changes.

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
https://github.com/TusharKesarwani/Front-End-Projects/assets/115471178/5d551393-b557-4d73-9c96-a0f8c50b1e4f

@TusharKesarwani @harshit-paneri @zugzwang03 Please check these PR for the requested issue.


Adds typings for acl.js

I added types for people that use typescript in their codebase only for acl.js though

why there is the same file twice? Would you please make sure there is only one file.
Also, you'd need to update the package.json correspondingly.
"types": "./types/index.d.ts",

Make sure it works for you and I'll happily merge.

Didn't notice there were two files I'll remove and update
Thanks for the tip on package.json

Updated the code to reflect what you asked for

Updated again, anything else required?

Hi again. :) Can you click the "Files Changed" on top of this pull request and notice that once again we have TWO files, instead of one. :)
Please remove the ./lib/index.d.ts one.
Thanks

Hi, will the extra bother you at all? @koresar

Merry Christmas 🎄


Update README.md

Hi, I'd suggest updating this README.md to give an example.
Thanks for your great work!

Thanks @lancewoo, your README.md updates were helpful.


Tests fail when mixing up x86 and Apple Silicon (M1 and the like)

When a screenshot is created at an x86_64 emulator and is then tested on an arm64-v8a emulator on Apple Silicon, I expect the test to succeed. Instead, it fails, even though both PNGS look exactly the same (example attached). Oddly enough, even the diff looks exactly the same as the 2 other issues.
I expect this test to succeed considering the images look exactly the same.
Original screenshot (x86_64)

New screenshot (arm64-v8a)

Diff

Using an x86_64 emulator through Rosetta is not an option: it crashes when I try to start it: The emulator process for AVD emulatorName has terminated.
A possible solution which would work for now is to define a threshold how much the images have to be the same before the test fails. Setting it to 99% should be plenty.

I believe this is something to be expected if running on different architectures due to hardware rendering.
You could try to enable software accelerated: myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null)
more on that here:
https://developer.android.com/guide/topics/graphics/hardware-accel.html
moreover, the Shot documentation recommends to configure your emulators using the gpu mode swiftshader_indirect

I use shot to test Jetpack Compose screens and I don't think I can change the layer type here. I already have the gpu mode set to swiftshader_indirect on both platforms.

The images are a bit different if you check with another tool (I used ImageMagick)

I had the same issue with pixel emulator vs pixel device, and in my case setting a low tolerance was ok

@andreroggeri Does shot support setting a tolerance? The only thing I could find is #28 and it is essentially solved as a won't fix.

Yes it does.
On your build.gradle you can configure shot
shot {
    tolerance = 0.1 // 0,1% tolerance
}

That works :D The biggest difference in pixels between platforms is 1.4%, so I set the tolerance now to 2% and it works as expected.

Hi @cristan thanks for reporting. I'm afraid we depend on an API we can't control to take the screenshot. It depends on the emulator/device where the screenshot is taken to render the bitmap. This means if you use different hardware for your emulator the screenshot taken can change too 😢 I'm afraid the only solution we can provide is to use tolerance param as @sergio-sastre pointed out. I've sent a PR updating the docs because I totally forgot to add the docs about this config param: https://github.com/pedrovgs/Shot/pull/270

We're having the same problem, but tolerance doesn't solve the problem. In our test suite we have some tests that fail with a 7% pixel difference, and one with 18%. Setting a tolerance so high is not reasonable.
I've been experimenting and I think the tolerance implementation can be improved. I've been looking at the differences at a pixel level, and the pixels are almost the same.
The current implementation expects that the pixels in both images are equals, and has a global tolerance to check the percentage of different pixels. It would be great if we could add a tolerance for each RGB channel, to check not for equal pixels but for almost equal pixels.
One example, these 2 images have 18.5% different pixels.
Looking at the background of the first button we see that there is a difference of 1 in two of three RGB channels.
It happens the same in the rest of the image, this very small difference is causing that 18.5% of the image is reported to be different.
x86_64
R: 32
G: 39
B: 210

arm64-v8a
R: 31
G: 38
B: 210

Diff (18.51% different pixels)

Online version (select "Ignore nothing"):
https://www.textcompare.org/image/?id=61fc025597948c5db943d97d
This tool uses Resemble.js library that already has this feature, by default it ignores almost equal pixels.
https://github.com/rsmbl/Resemble.js/blob/master/resemble.js#L147-L155
I think it would be easy to add this feature, we need to add a new colorTolerance (for example) and change this filter:
https://github.com/pedrovgs/Shot/blob/7bd9a4b18e5f31bc07c329d6f9c93da47769b91b/core/src/main/scala/com/karumi/shot/screenshots/ScreenshotsComparator.scala#L53-L54

After thinking about this issue and checking @adrinieto 's implementation I think we can add this workaround to our project for now. It's far from being the perfect solution, but is good enough for now.

After thinking about this issue and checking @adrinieto 's implementation I think we can add this workaround to our project for now.

Any news on this? Is the current workaround available anywhere?
I'm working on an OS library for some UI components and I'm getting way above 10% diff on some images that are otherwise the same - mostly where there is transparency involved.
The (main) source of issues here is the M1 vs x86 diff.

Just want to add that I'm getting the same issues when running my tests on a CICD platform (in this case, Bitrise).

After thinking about this issue and checking @adrinieto 's implementation I think we can add this workaround to our project for now. It's far from being the perfect solution but is good enough for now. We'll check some details in the original PR and we'll try to see if we can add color tolerance to the project. Thank you all for your comments 😃

Another alternative would be to investigate solutions followed by other frameworks, maybe they could be applied here as well.
Take, for example, swift-snapshot-testing#628.

At Facebook, the way we solved issues like this was to just generate screenshots on the CI. So developers never recorded screenshots, and we're always recording screenshots in a clean identical environment. If screenshots changed, we just notified them on their diff.
(If you want this workflow, consider using something like Screenshotbot. Open source at https://github.com/screenshotbot/screenshotbot-oss)


Adds a configuration dialog for setting the direnv path

I could not get this plugin working locally because direnv was installed with nvm and IntelliJ wasn't finding it. This adds a config to set the direnv path. If the path is set and not empty it will use that when executing the direnv call. This should be fully backwards compatible.
Sorry that it's in Java - haven't done any Kotlin (nor much Java lately) but really want this plugin to actually work so I don't have to hack direnv support into my run configs anymore.

Hey, thanks for contributing. I always wanted to add a settings dialog like this :+1:
When the build finishes I will do some quick tests.

Ah, could you please add a chengelog entry below the [Unreleased] section?


(feat) Add mechanics to load a config file for ScriptStrategyBase

Before submitting this PR, please make sure:

[x] Your code builds clean without any errors or warnings
[x] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
Proposal to add a hook in start_script_strategy() to allow the derived class to implement a method to load the markets from a configuration file prior to the markets initialization by self._initialize_markets()
Tests performed by the developer:
Added a test for the default case (using DCAExample) and for when the loading method is present in the derived class
Tips for QA testing:

Understood.

Closing PR since scripts are design with no config files required. Thank you


Missing characters in generated code

When running:
qrcode "88c77c18" > code.png

The generated code seems to only decode to:
c77c18

I can't reproduce this:
[tfh@localhost ~]$ go/bin/qrcode "88c77c18" > 88c77c18.png
[tfh@localhost ~]$ zbarimg 88c77c18.png
QR-Code:88c77c18
scanned 1 barcode symbols from 1 images in 0.02 seconds
[tfh@localhost ~]$

Here is the image: https://skip.org/drop/88c77c18.png
https://zxing.org/w/decode?u=https%3A%2F%2Fskip.org%2Fdrop%2F88c77c18.png
Can you link to the image you generated? Which software did you use to decode it?

QR Codes can contain multiple data types, namely: numeric, alphanumeric, and byte. This minimises the size of each QR code, e.g. as numeric data can be encoded more efficiently than byte data.
If you are having problems decoding numbers, it's possible your decoder software can't decode numeric encoded data correctly.
I have encoded "8888888888aaaa8888" two different ways below. If you can only decode the first type, then your decoder software is broken.
Data segment #0: data type byte: '8888888888aaaa8888'

Data segment #0: data type numeric: '8888888888'
Data segment #1: data type byte: 'aaaa'
Data segment #2: data type numeric: '8888'

If neither works, then you are probably parsing the output of your decoder incorrectly.

Is this still an issue?


Can no longer reproduce auto height carousel demo on modern react-spring

🐛 Bug Report
I'm trying to reproduce this older modal + carousel demo that was created with react-spring v5: https://codesandbox.io/s/2vp5ny068n?from-embed
The demo behaves nicely. The challenging part is that the carousel animates smoothly from one slide's height to the next.
I've updated the demo as faithfully as possible to modern react-spring here: https://codesandbox.io/s/72kx5p3zr0?fontsize=14 – this includes using items and config on the Transition component, and using item => props => ... instead of just props => ..., and importing from react-spring/renderprops.
Unfortunately the height transition no longer works: it jumps around unexpectedly.
I've noticed that in recent react-spring size-transition demos, they resort to using a resize observer constantly watching the content. This would be very disappointing to me if it were the new suggested approach – a major reason for using an animation library at all in the first place is that it supports animating height: auto, and I'd like to only animate it during the slide transition (after which it should go back to auto, not be an exact px value controlled by a resize observer).
To Reproduce
Modern demo: https://codesandbox.io/s/72kx5p3zr0?fontsize=14
The height behaves erratically.
Expected behavior
Old demo: https://codesandbox.io/s/2vp5ny068n?from-embed
The height transitions smoothly between slides.
Environment

react-spring v8.0.20
react v16.8.6

We're definitely open to suggestions on how to improve the DX for animating to fluid values via the new hooks API.

The problem with auto is that if it is automated it will never fulfil all use-cases. Even the one you mentioned is deeply flawed, what if the content size changes inside while it animates towards auto for instance. The point in rem removing it is that now it's under your control. If you don't want it to watch for resize changes you don't need to use a resizeObserver. At this point there are already dozens of measure hooks that make dealing with this property relatively easy.
I tried looking what's up but there's code in there i don't understand, like
<Spring native force from={{ height: "auto" }} to={{ height: "auto" }}>

If this has worked in version 5 it must have been a bug.


Cannot update a component while rendering a different component. Probably due to bad setState()

Describe the bug
React issues a warning about bad setState when the Carousel component is used
To Reproduce
Steps to reproduce the behavior:

Install 10.2.0
Install react-carousel 2.0.3
Dynamic import the carousel component like so (as NextJS SSR crashes using normal import)

import dynamic from 'next/dynamic';

const Carousel = dynamic(
  () => import('@brainhubeu/react-carousel'),
  { ssr: false },
);

Use the carousel
See error in Chrome console

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment
System:
    OS: Windows 10 10.0.19042
    CPU: (4) x64 Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
    Memory: 1.43 GB / 7.94 GB
  Binaries:
    Node: 16.0.0 - C:\Program Files\nodejs\node.EXE
    npm: 7.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 90.0.4430.212
    Edge: Spartan (44.19041.906.0), Chromium (90.0.818.56)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    @brainhubeu/react-carousel: 2.0.3 => 2.0.3

@tramax Were you able to fix this error?

Facing the same issue

@tramax Were you able to fix this error?

@kb1995 unfortunately not yet 😄 do you face the same problem with NextJS or another stack?

Same issue... this is a critical bug, make this lib gargbage

I got this working by used the source and removing all the scss imports as they were bugging in my build environment. Simple import of the index.js file from the src directory here https://github.com/brainhubeu/react-carousel/tree/master/react-carousel/src and the errors about setState were resolved.

Hi Shaun. Do you use dynamic import via 'next/dynamic'? Would you be able to post a screenshot or a snippet of your code? Thank you

Hi, sorry I abandoned this in favor of https://github.com/akiran/react-slick that just seems to work our of the box


Fix scripted tests for the plugin project

Fix the scripted tests for the plugin project
Re-enable automatic running of scripted by Travis

@dialelo @raulraja please review

LGTM!


[SILOptimizer] Add ctlz support in constant propagation

The Ctlz builtin is used by the new integer prototype. Since it is not constant folded, the value is computed dynamically. This in turn results in a more complex CFG.
This PR adds a peephole optimization for computing int_ctlz with constant arguments + adds test-cases to make sure it works

@swift-ci Please smoke test


[Bug]: error report for changed media type is obscure

zot version
5fcf01d8b8c3fa62fac87681e40120aec27fc17b
Describe the bug
zot disallows changing the media type of a manifest. When this happens, the error returned from the API does not make this clear. Here's an example error response when this happens:
{
  "errors": [
    {
      "code": "MANIFEST_INVALID",
      "message": "manifest invalid",
      "description": "During upload, manifests undergo several checks ensuring\n\t\t\tvalidity. If those checks fail, this error MAY be returned, unless a more\n\t\t\tspecific error is included. The detail will contain information the failed\n\t\t\tvalidation.",
      "detail": [
        {
          "reference": "test"
        }
      ]
    }
  ]
}

The error can be found in the zot log, but that's not nearly as obvious as including the details in the error itself.
The error is particularly misleading because the manifest itself is not necessarily invalid at all - it's just that the tag previously referred to a manifest with a different media type.
To reproduce

Configuration

{
    "distSpecVersion": "1.1.0-dev",
    "storage": {
        "rootDirectory": "/tmp/zot"
    },
    "http": {
        "address": "<IP_ADDRESS>",
        "port": "5000"
    },
    "log": {
        "level": "info"
    }
}

Client tool used: oras.land/oras/cmd/oras

Here's a shell script that demonstrates the issue:
#!/bin/sh
set -ex
tmpRoot=$(mktemp -d)
> $tmpRoot/1 echo -n 'foo bar'
oras blob push --media-type text/plain localhost:5000/blobmanifest-test@sha256:fbc1a9f858ea9e177916964bd88c3d37b91a1e84412765e29950777f265c4b75 $tmpRoot/1
> $tmpRoot/2 echo -n '{"mediaType":"application/vnd.cncf.oras.artifact.manifest.v1+json","artifactType":"application/some-manifest","blobs":[{"mediaType":"text/plain","digest":"sha256:fbc1a9f858ea9e177916964bd88c3d37b91a1e84412765e29950777f265c4b75","size":7}]}'
oras manifest push --media-type application/vnd.cncf.oras.artifact.manifest.v1+json localhost:5000/blobmanifest-test@sha256:ca659ef634acf2ab765a745c145a20ca5dcea192c736bf693fabe7cb935d2c7e $tmpRoot/2
> $tmpRoot/3 echo -n '{"schemaVersion":2,"mediaType":"application/vnd.oci.image.manifest.v1+json","config":{"mediaType":"text/plain","digest":"sha256:fbc1a9f858ea9e177916964bd88c3d37b91a1e84412765e29950777f265c4b75","size":7},"layers":[{"mediaType":"text/plain","digest":"sha256:fbc1a9f858ea9e177916964bd88c3d37b91a1e84412765e29950777f265c4b75","size":7}]}'
oras manifest push --media-type application/vnd.oci.image.manifest.v1+json localhost:5000/blobmanifest-test@sha256:f2ce039d65bd76145a5becf4b52bed6bdb73b3eb2b3ad0c271edef017ed60e22 $tmpRoot/3
oras tag localhost:5000/blobmanifest-test@sha256:ca659ef634acf2ab765a745c145a20ca5dcea192c736bf693fabe7cb935d2c7e tag1
oras tag localhost:5000/blobmanifest-test@sha256:f2ce039d65bd76145a5becf4b52bed6bdb73b3eb2b3ad0c271edef017ed60e22 tag1

Expected behavior
I'd expect the error returned in the API to mention why the manifest is invalid in such a way that I know how to fix the issue.
Screenshots
No response
Additional context
No response

@rogpeppe Feedback noted.

This should be resolved in https://github.com/project-zot/zot/pull/1681.

Can we close the issue @rogpeppe ?

@adodon2go I believe so, although it's hard to be sure from the tests that I can see in https://github.com/project-zot/zot/pull/1681.
OK, I just checked with my repro above, and the error message does indeed contain the relevant detail:
Error: PUT "http://localhost:5000/v2/blobmanifest-test/manifests/tag1": response status code 400: manifest invalid: manifest invalid: map[description:During upload, manifests undergo several checks ensuring validity. If those checks fail, this error MAY be returned, unless a more specific error is included. The detail will contain information the failed validation. reason:changing manifest media-type from "application/vnd.cncf.oras.artifact.manifest.v1+json" to "application/vnd.oci.image.manifest.v1+json" is disallowed reference:tag1]

I'll close it as fixed, although I'll note in passing that including the map[ string in the output arguably isn't great for a human reader - it exposes Go implementation details and isn't immediately clear to read. Maybe something like the following might look better?
Error: PUT "http://localhost:5000/v2/blobmanifest-test/manifests/tag1": response status code 400: manifest invalid: manifest invalid; details follow: [description: During upload, manifests undergo several checks ensuring validity. If those checks fail, this error MAY be returned, unless a more specific error is included. The detail will contain information the failed validation]; [reason: changing manifest media-type from "application/vnd.cncf.oras.artifact.manifest.v1+json" to "application/vnd.oci.image.manifest.v1+json" is disallowed reference:tag1]

(aside: that reference:tag1 string at the end looks odd, but perhaps just part of the reason string).

Note: detail field returned by zot to the clients is in json format. It is the oras implementation choice of displaying it as a map (through Unmarshal most probably)


[2.5pt] Add the form to create a new food - Team Member 1

The application should display the form: Create a new food to the logged-in user, in which he can save a new food in the database. This form must have the following fields:
1. name (required)
2. measurement unit (required)
3. price (required)
4. quantity (required)

The app should display an Add Food button on the Foods List page that allows the user to open the Create a new food page

Add authorization rules if necessary

Customize the layout by adding CSS styles

Hi @Luffytaro22 Can you review my Pull Request: https://github.com/NitBravoA92/recipe-app/pull/23 please?


Android wloads

This series:

simplifies launching PCMark by exploiting monkeyrunner tool
adds function to launch n apps for the Recents Flinger workload

Like it, going to merge!