AWSPowershell—Get-ECSClusters : A WebException with status NameResolutionFailure was thrown.

When calling Get-ECSClusters for all regions, I get a number of errors stating: "Get-ECSClusters : A WebException with status NameResolutionFailure was thrown." On the surface, this is very confusing and it's easy to think that the issue could be the local DNS servers or configuration.
Expected Behavior
A more reasonable error should be thrown, perhaps something stating that there is no support for the service in the specified region.
Current Behavior
Some regions show the clusters as expected. For others, there is an uncaught exception:
Get-ECSClusters : A WebException with status NameResolutionFailure was thrown.
At line:1 char:34
+ Get-AWSRegion | ForEach-Object { Get-ECSClusters -Region $_ }
+                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Amazon.PowerShe...SClustersCmdlet:GetECSClustersCmdlet) [Get-ECSClusters], InvalidOperationException
    + FullyQualifiedErrorId : Amazon.Runtime.AmazonServiceException,Amazon.PowerShell.Cmdlets.ECS.GetECSClustersCmdlet

Possible Solution
Is there an API that could be queried to say if a service is supported in a specific region? If so, catching the exception, then checking the api to see if it should be available might be a good start. If not, perhaps the mechanism for generating the matrix at https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/ would be of some use to automate a hard coded structure like Get-AWSRegion uses.
Steps to Reproduce (for bugs)
Get-AWSRegion | ForEach-Object { Get-ECSClusters -Region $_ }

Context

Your Environment

AWSPowershell Version: <IP_ADDRESS>
Operating System and version: Windows 10.0.14393.0
Visual Studio version: n/a
Targeted .NET platform:

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.1066
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.1066}
BuildVersion                   10.0.14393.1066
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

There's no api to detect a service is present in a given region, but we can infer as such from the endpoints file that is contained inside the underlying SDK assemblies.
One reason we don't error out if we can't find an entry in the file for a given service/region combination is that currently, as services expand into new regions or new regions get added, you don't need to update your tools to make use of the new region. This is something we'd like to keep.
One approach I've been talking about with a colleague who also queried this (in his case, he mis-typed the region name but it's also occurred with users entering an AZ name instead of a region) was to emit a warning message that we can't find an entry for the service/region in the endpoint data available at the time the module was released, but will attempt to contact the computed endpoint (and show what we computed) to try and aid debugging.
Secondly, there's also a possibility of either extending Get-AWSRegion so you can specify the service and we return the set of regions (again, from data known at build/release time) so your piping example would work. We could also add a cmdlet to list the regions for a service could also be added. My one worry is that users might think this data is 'live' so we'd have to document quite clearly that it could be based on old data depending on the version of the tools in use.
Thoughts?

I like the idea behind your first approach. The key, here, is that there's a lack of context around what this error might mean. Providing a hint that the user should check that they've entered the region properly, and that the specific service exists in the region, would go a long way towards a quicker resolution of the issue and could prevent someone from spending time troubleshooting DNS when it is, in fact, working as expected.
I'm a bit on the fence as to whether it would make more sense to just emit a warning or if the existing exception should be wrapped. I feel like the latter would be more useful programatically, but might be a more invasive change than it seems on the surface.


runenergy: Fix replaced orb text flickering with unlocked FPS

The client script for updating the orbs could update the text between the latest onGameTick and the frame being drawn which could cause the text to flicker.
This is fixed by setting the run energy orb text before a frame is rendered, inspired by c56c26ff48839d297973e59f4babc9b5b91f2ad2.
Reported by @emerald000

Also I don't think this is related to unlocked fps at all, since unlocked fps doesn't increase the tick rate


Rollback PR #2659 and Patch to 2.14

We are working on supporting CIS benchmarks but aren't yet able to do so at this time.
We'll accept this change in the future when that's possible.
https://github.com/GoogleCloudPlatform/forseti-security/pull/2659/files

Can we please close this issue. I will open a new issue to integrate the PR rolled back when things are ready.

I created new issue #2728 to track future integration of the PR #2659


column gap doesn't work as expected in a grid setup

Consider below layout
<El row container gap="4">
  <El col="4"></El>
  <El col="8"></El>
</El>

This will bring second column (col=8) to the next row, which is not what one expects.
Whats expected is, this should honour the gap=4 while keeping 4 + 8 (12) columns on the same row.
ie. if I remove gap, all columns will be on same row.
In a grid setup, we should have ability to specify gap/gutter correctly.

@yan5 gap is only useful for flex displays, and for this usage you should use g="4" instead of gap="4"
like this: https://svelte.dev/repl/9c090e88cc324628868d9960b0641671?version=3.55.1

@TheHadiAhmadi Thanks


stage.sh missing install-shared-libraries-required-by

when I was running make install after make build it promps that install-shared-libraries-required-by command not found:
https://github.com/HazyResearch/deepdive/blob/master/stage.sh#L130

NVM, it turned out that I forgot to initialize the submodules. (have to run git submodule update --init before installation)

same problem happens when building from a clean repo.


bug: Item list expandable preview does not update on item update

When you expand an item in inventory, then edit the item in the item window, and click save, the expanded item description on the inventory list doesn't update. The user has to close and reopen the sheet to have it update.

This is now fixed.


Wrap Postgresql user in quotation marks

Postgresql requires quotation marks around strings with certain characters, e.g. a hyphen.
Fixes #8.

Thanks!


CORE-5807: Add TTL to messages that can die, decline registration if TTL first message to member.

Converting to draft (since it has an API pull request)


please unblock zoho.com, its a CRM site

Energized Protection - block ⚡

Let's make an annoyance free, better open internet, altogether!

Issue Submit Form

  Provide the following info properly, which will help us to resolve your issue quickly.

Issue(s):
Type x in between [ ] and make sure there isn't any space between brackets. Example; for Your Selected Issue(s), type like this - [x]
You can select more than one category of issues if you need to!

[x ] Whitelist
[ ] Blacklist
[ ] App Broken
[ ] Website Broken
[ ] Request
[ ] Other Issue

Pack(s):
Domain(s):
If you are submitting this issue for whitelist/blacklist issue, send us the domain(s) for whitelisting/blacklisting here. Kindly use the Code Tag to prevent tracking.

Domain(s):

zoho.com

Your Config:
Just to ensure there is no issues or conflicts with other app/software/magisk module/extension/source list.
Make sure you are running Energized Protection Service only.

Client:

Version:

Detail:
Write us a lil bit more about your issue or query. You can attach any screen shot or log of the issue or advert, this will help to highlight it.

Your Issue Detail:

its a big CRM site.
Plase dont block it.

Thank you for making Energized Protection great, with your kind help!
A project by Ador with ❤

This domain is not listed in our blocklists. You can check here at https://energized.pro/issue/


OP-18982-Master  jwt token validation changes

https://devopsmx.atlassian.net/browse/OP-18982
UTC
verified endpoint with jwt token

Rahul   Authentication  class is already implemented and not seen any test case packages  for the same. now i implemented only jwt token validation.

@rsh09 please review this pr.


How to convert model output to torchscript file?

Checklist

I have searched related issues but cannot get the expected help.
I have read related documents and don't know what to do.

Describe the question you meet
I already using config modified from MogaNet to train the perfect model, but I need to convert it to torchscript.
How to convert the .pth to torchscript(.pt), I try the general method but get error, because the .pth file only contains the weight, and not contains the model.
如何能转换模型文件到 TorchScript 格式？
我已经使用修改的 MogaNet 配置文件训练出了一个良好的模型，但是我需要转换 .pth 文件到 .pt 文件，即 TorchScript 格式。
如何转换模型输出文件 .pth 到 TorchScript？我尝试了一些通用方法，但是不能成功，因为 .pth 文件仅仅包含权重，并不包含模型网络。

Hi, @nikbobo. Thanks for your attention to our MogaNet, and I apologize for the late reply. Unfortunately, OpenMixup hasn't supported converting the model to TorchScript (.pt). We plan to support this function in the next commit. Please watch us for the latest update.

Hi @nikbobo, thanks for your attention to OpenMixup and your patience with our updates. We have supported TorchScript deployment in issue #35, and you can convert the pre-trained classification models to TorchScript (.pt) by tools/deployment/pytorch2torchscript.py according to tutorial. Feel free to ask me if you have further questions.

I closed this issue if there is no more question. You can reopen it or start a new issue if you have more questions. Thanks again for your attention.


Question: How to install Data-Dog inside Tomcat Docker container

I want to monitor the tomcat which is running inside the docker container. I didn't find any blogs and links to try that. Could you please provide your input on this.
**Can I achieve this by editing tomcat image.If yes How can I do it? If it is not the correct way. Please suggest me some input to achieve tomcat metrics using data-dog. **

Hey @Tejareddy1
You can simply run the agent in its own image and use auto-discovery to get metrics from your tomcat container.
Docs: https://docs.datadoghq.com/agent/docker/?tab=standard & https://docs.datadoghq.com/agent/docker/integrations/?tab=docker
You can open a support ticket by emailing<EMAIL_ADDRESS>so our support team can help you further.
Simon


[Discussion] Conformance test artifact consumption

There are currently a number of questions related to consumption of conformance test artifacts in the various supported languages.
In this issues I'd like to collect some information from maintainers of google-cloud-* libraries, and have them weigh in on what could be better.
Questions

Once firestore tests are moved to json from textproto/binproto will your language continue to use the protobuf defined types or switch to using json directly?
Is your project using the protobuf defined types for the storage/v1 tests?

Why or why not?

What would be the easiest way for your language to consome artifacts for conformance tests?

Possible means of consumption I've heard

git submodule
copy-paste from git repo
tarball with artifacts zipped up it
artifacts hosted on a cdn and downloaded
per-language package manager integration

When there are new tests added to conformance tests what could make it easier for you to update your artifacts?

/cc @jadekler @blowmage @quartzmo @tseaver @jskeet

Go:

Protobuf.
Yes. [1]
Copy paste.
Easier than what? o.O Than the current "email me when changes occur"? If so, nothing comes to mind as a consumer. Copy paste on notification has served us well.

1: The "why" of this is asking "why use protos", which has a big answer. Some of the quick responses are type safety, consistent schema, and auto-generated mappable objects.

C#:

Once the Firestore tests are moved, I'll definitely use the JSON - but loading it via the protobuf messages. (It's not like we're stopping using protos.) I'd personally prefer for the JSON files to be the only representation of the data in the repo.

Yes, we're using protos for Storage tests.

We're using a submodule, so it's easier to update reliably - we'll easily be able to see when we're behind, and by which commits.

While we could automate "there's been a change in the tests repo; run a shell script in the C# repo and create a PR if necessary" I'm not sure it's worth it. An automated email when there's a change would be welcome though.

PHP:

We'll switch over to JSON and likely fully discontinue use of the protos.
No, currently we rely on the old JSON file taken from C#.
No strong preference except I'd prefer not to use submodules. We've used copy/paste for Firestore, but it's easy for those to fall behind. A downloadable archive would be nice.

Ruby:

We'll attempt to switch over to JSON.
No, currently we rely on the old JSON file taken from C#.
copy-paste, or we can try git submodules
An email when there's a change.

Any suggestions for best practices to keep the tests updated when using git submodules? Should CI call git submodule update --remote in each test run to ensure that the latest test data is used? Or should the approach be more conservative, pinning the submodule to a stable commit or branch? (from googleapis/google-cloud-ruby#3516)

@quartzmo: For C#, we're not updating implicitly, but we have a script which updates the remote and rebuilds the protos. We'd then commit the result of that. (For Ruby you may just need to do the update, if you don't have any other steps.)
It's always feasible for new tests to be added to the conformance test repo, and those may be ahead of the implementation in some languages - if you implicitly update the submodule, I can see that leading to frequent CI breakages. Doing it explicitly means you can run the tests and potentially skip some for the moment if there's pending work. (Alternatively, new tests may mean writing new test infrastructure to consume those tests.)
It's worth being subscribed to the conformance test repo to make sure you hear about changes though. In a perfect world, you might want automation to file an issue if the submodule is more than a few days out of date, but that's probably overkill for now :)

Because separate submodules for each package in our monorepo would mean all of conformance-tests in each package directory, we decided in Ruby to copy the files rather than use git submodules. See googleapis/google-cloud-ruby#3525.

@quartzmo: Why would you need to have a submodule in each package? Any reason you don't put it in the root directory? (Alternatively, one submodule per package that actually uses conformance tests probably wouldn't be too bad - and it's not like this takes any space in GitHub itself.)
If copying the files works for you, I'm not going to push you to do anything else - just curious why submodules really aren't practical for you.

As @blowmage commented:

If you have separate submodules, each gem can pin to a different commit so that each gem can be upgraded independently.

Once we concluded that the version of the submodule(s) would be pinned, we no longer saw as much value in having them, since updates would be manual in any case.

Closing this as it seems everyone is using sub-modules or copy-paste and has a working process for their respective projects.


ToProperty() does not always make initial value immediately available

I've just spent some time tracking down a scenario in which the initial value of an observable passed to ToProperty() is not immediately available and client code can see default(T) instead of the correct value.
Here is a repro:
namespace RxUIToPropertyRepro
{
    using System;
    using System.Reactive.Concurrency;
    using System.Reactive.Linq;
    using NUnit.Framework;
    using ReactiveUI;

    [TestFixture]
    public class Repro
    {
        [Test]
        public void immediate_access_when_using_to_property()
        {
            var sut = new ToPropertyScenario(328);
            Assert.AreEqual(328, sut.Value);
        }

        [Test]
        public void immediate_access_via_current_thread_scheduler_when_using_to_property()
        {
            CurrentThreadScheduler.Instance.Schedule(() =>
            {
                var sut = new ToPropertyScenario(328);
                Assert.AreEqual(328, sut.Value);
            });
        }

        [Test]
        public void immediate_access_via_immediate_scheduler_when_using_to_property()
        {
            ImmediateScheduler.Instance.Schedule(() =>
            {
                var sut = new ToPropertyScenario(328);
                Assert.AreEqual(328, sut.Value);
            });
        }

        [Test]
        public void immediate_access_when_using_private_field()
        {
            var sut = new PrivateFieldScenario(328);
            Assert.AreEqual(328, sut.Value);
        }

        [Test]
        public void immediate_access_via_current_thread_scheduler_when_using_private_field()
        {
            CurrentThreadScheduler.Instance.Schedule(() =>
            {
                var sut = new PrivateFieldScenario(328);
                Assert.AreEqual(328, sut.Value);
            });
        }
    }

    public class ToPropertyScenario : ReactiveObject
    {
        private readonly ObservableAsPropertyHelper<int> value;

        public ToPropertyScenario(int initialValue = default(int))
        {
            this.value = Observable.Return(initialValue)
                .ToProperty(this, x => x.Value);
        }

        public int Value
        {
            get { return this.value.Value; }
        }
    }

    public class PrivateFieldScenario : ReactiveObject
    {
        private int value;

        public PrivateFieldScenario(int initialValue = default(int))
        {
            Observable.Return(initialValue)
                .Subscribe(x => this.Value = x);
        }

        public int Value
        {
            get { return this.value; }
            private set { this.RaiseAndSetIfChanged(ref this.value, value); }
        }
    }
}

Of these tests, only one fails: immediate_access_via_current_thread_scheduler_when_using_to_property. It seems that because the client code is executing inside a scheduled message, the value of the property is not available until later (i.e. when the scheduler is freed up to determine it). This is common when the code is executing as the result of a reactive command, for example.
This does not align with my expectations of how ToProperty() should work, nor does it seem to align with the docs:

It's important to know the semantics of ToProperty - you should conceptualize this method as similar to Subscribe: it causes the Observable to be evaluated, just like foreach causes Enumerables to be evaluated.

There are several workarounds that I know of, some of which are demonstrated in tests above:

Use a private field and Subscribe (see tests).
Use the immediate scheduler for the call to ToProperty() (see tests)
Specify the immediate scheduler in the call to ToProperty()
Specify the initial value in the call to ToProperty(), even though the observable is cold and has an initial value in it

None of these options quite fits my mental model of how ToProperty() should be working. Is my understanding of ToProperty() wrong, or is there an implementation problem here?

Hm. While I think you're right, fixing ToProperty to Immediate also has negative effects - I would use option 3 here and specify ImmediateScheduler if you hit this problem

Hm. While I think you're right, fixing ToProperty to Immediate also has negative effects - I would use option 3 here and specify ImmediateScheduler if you hit this problem

@paulcbetts yep, there are times when passing in Scheduler.Immediate to ToProperty is a necessary evil.
cc @niik for any extra thoughts on this.

I have spent 1 hour trying to understand why my spinner is not showing, and the problem is in ObservableAsPropertyHelper:
Remove = ReactiveCommand.CreateAsyncTask(async x => await RemoveImpl(x as UserViewModel));
Update = ReactiveCommand.CreateAsyncTask(async _ => await UpdateImpl());
_loading = Observable
.CombineLatest(Remove.IsExecuting, Update.IsExecuting, (x, y) => x || y)
.ToProperty(this, x => x.IsLoading);
When i call Update right before showing my view, CombineLatest produces true, but property still returns false and when view binds to property it doesn't show spinner. Scheduler.Immediate doesn't help!
All works perfectly If I make usual property with RaiseAndSetIfChanged setter and write this:
Observable
.CombineLatest(Remove.IsExecuting, Update.IsExecuting, (x, y) => x || y)
.Subscribe(x => IsLoading = x);

@Gentlee sure you're not hitting #814 ? maybe you can give a try at the rxui7 branch, it has a fix merged.

Just stumbled on this issue - can anyone comment on why the use of Scheduler.Immediate here would have 'negative effects' or be considered 'evil'? If you were doing this imperatively, surely this is what you'd expect?
I stumbled on this while trying to set some of the properties after creating a view model but before showing it as a dialog.  I found it a bit surprising that all of my read only OAPH-based properties didn't update.

@csmager my layman's understanding is that the immediate scheduler can get itself into infinite loops in certain circumstances. The current thread scheduler is somehow smarter and determines whether it's safe to perform the action immediately. If so, it does. If not, it schedules the work for later (but on the same thread, of course).
Why the current thread scheduler deems it necessary to schedule the work in the failing scenario is beyond me. Understanding that would require digging into Rx code.
I'm closing this for now because I don't really feel like there's anything RxUI can do about it. If anything, it might be that the heuristics used by Rx's CurrentThreadScheduler should be improved.


version name from gradle.properties in kts file

Goal

Testing

Release Notes

WHAT:
WHY:

#1072  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nelsitoPuglisi and the rest of your teammates on  Graphite


InventoryClickEvent Failure

I get this error message every time I try to click one of the green, blue, or red glass panes in the GUI:
[18:42:30] [Server thread/INFO]: Skrubzy issued server command: /ce [18:42:31] [Server thread/ERROR]: Could not pass event InventoryClickEvent to CrazyEnchantments v1.7.4 org.bukkit.event.EventException 	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-c55900f-9856d8a] 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-c55900f-9856d8a] 	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1853) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111] 	at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_111] 	at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:733) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:672) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:571) [spigot.jar:git-Spigot-c55900f-9856d8a] 	at java.lang.Thread.run(Unknown Source) [?:1.8.0_111] Caused by: java.lang.IllegalArgumentException: bound must be positive 	at java.util.Random.nextInt(Unknown Source) ~[?:1.8.0_111] 	at me.BadBones69.CrazyEnchantments.Controlers.EnchantmentControl.Enchants(EnchantmentControl.java:57) ~[?:?] 	at me.BadBones69.CrazyEnchantment

Did you edit your config?

Yes, but I reinstalled the plugin and I still got the error.

It seems one of your categories are empty. Can you pastebin your config.yml and enchantments.yml

Sure thing.
http://pastebin.com/Qk4pFMEz
http://pastebin.com/jZCAGpV9

@ChansinTech you didn't set the new category names in the Enchantments.yml. Here is a fix.
http://pastebin.com/JFqAJVab


feat(cdk/overlay): Extend cdkConnectedOverlayOrigin to support more types.

CdkConnectedOverlay directive's input cdkConnectedOverlayOrigin only supports CdkOverlayOrigin.
FlexibleConnectedPositionStrategy supports a lot more types. Add support for them.
Fixes #23252

presubmit (internal). Tests ran last night with about 100 failures, many of them are timeouts.

presubmit (internal). Tests ran last night with about 100 failures, many of them are timeouts.

tests passed on re-run

Thanks for the reviews and merging!


Replacing allow_open_invites with is_public

Summary
Replacing allow_open_invites and type from Team struct with is_public and define or not invite_id.
Ticket Link
MM-13931
Checklist

[ ] Ran make check-style to check for style errors (required for all pull requests)
[ ] Ran make test to ensure unit and component tests passed
[x] Added or updated unit tests (required for all new features)
[x] Has server changes (please link)
[x] Has redux changes (please link)

Added to the list of Tech Moonshots for the next major version.


Inconsistency with penaltyKernels.cu

System Info
HW

EC2: g6e.12x
GPU: L40S
CUDA: 550.127.05
Branch: commit 201135e58aa525af7e523d091d4c9584229524bc (HEAD, tag: v0.13.0)

Data

Model: Llama-2-7b-hf

Who can help?
@byshiue
Information

[x] The official example scripts
[ ] My own modified scripts

Tasks

[x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
Setup:
compilation commands:
python convert_checkpoint.py --model_dir /code/tensorrt_llm/Llama-2-7b-hf/ --output_dir /tmp/ws/models/compiled/chpt --dtype float16

trtllm-build --checkpoint_dir   /tmp/ws/models/compiled/chpt --output_dir /tmp/ws/models/compiled/engine/fp16/1-gpu --gemm_plugin float16 --gather_all_token_logits

runtime command:
/code/tensorrt_llm/examples/llama# python ../run.py --max_output_len=20 --tokenizer_dir /code/tensorrt_llm/Llama-2-7b-hf/ --engine_dir /tmp/ws/models/compiled/engine/fp16/1-gpu --input_text "In Bash, how do I list all text files?" --use_py_session --output_logits_npy logits.npy --temperature 1.2 --repetition_penalty 1.4

Issue:

temperature not reflecting in output logits
We assume when we export output_logits, the logits are post all sampling, penalty layers. But we notice, with temperature alone in above command, there is no change (with vs without temperature) in the output_logits.

But when I add logs in penaltyKernel.cu, I clearly see input difference (i.e. * 1/temp) between inLogitsPtr[index] and outLogitsPtr[index].

inconsistency with repetition_penalty
When we pass  repetition_penalty, I see final output_logits are differing. But the difference seems not correct. But when I log the intermediate values in the penaltyKernel.cu it is as expected and can see both repetition_penalty and temperature are properly applied.

For the given runtime command, i attached the full changes and log in this ticket.
If you refer at step = 0,
--------------------numOccurences > 0 ------ at 1 input logit: -7.039062
--------------------numOccurences > 0 ------ at 1 before rp logit: -5.865880
--------------------numOccurences > 0 ------ at 1 after rp logit: -8.212233

The math is right here: -7.039062 * 1/1.2 * 1.4 = -8.212233
But when i see output logits, I still see -7.0390625
Note: I am using py_session, as logged step info in decode_regular to see logs belongs to which step.
The difference in output_logits is as below:
(temp_rp_change_gen is with --temperature 1.2 --repetition_penalty 1.4)
for i in range(20):
    different_indices = np.where(temp_rp_change_gen[0,0,i,:] != original_gen[0,0,i,:])[0]

    print(f" at step {i} indices of count {different_indices.shape[0]} where the arrays differ: {different_indices}")

op: (vocab_size is 32000
 at step 0 indices of count 0 where the arrays differ: []
 at step 1 indices of count 0 where the arrays differ: []
 at step 2 indices of count 31998 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 3 indices of count 31996 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 4 indices of count 31997 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 5 indices of count 31994 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 6 indices of count 31992 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 7 indices of count 32000 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 8 indices of count 31998 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 9 indices of count 31991 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 10 indices of count 31999 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 11 indices of count 31991 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 12 indices of count 31999 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 13 indices of count 31995 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 14 indices of count 31986 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 15 indices of count 32000 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 16 indices of count 31996 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 17 indices of count 31997 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 18 indices of count 31995 where the arrays differ: [    0     1     2 ... 31997 31998 31999]
 at step 19 indices of count 31991 where the arrays differ: [    0     1     2 ... 31997 31998 31999]

I am not sure how there is no difference in logits at step 0 and 1, and after that almost all vocab_indicies are seeing difference.
Expected behavior
I would like to see final logits same as what is logged.
actual behavior
Unable to relate the final logits computation
additional notes
Git diffs:

--- a/cpp/tensorrt_llm/kernels/penaltyKernels.cu
diff --git a/cpp/tensorrt_llm/kernels/penaltyKernels.cu b/cpp/tensorrt_llm/kernels/penaltyKernels.cu
index 84b1a66..579db5b 100644
diff --git a/cpp/tensorrt_llm/kernels/penaltyKernels.cu b/cpp/tensorrt_llm/kernels/penaltyKernels.cu
diff --git a/cpp/tensorrt_llm/kernels/penaltyKernels.cu b/cpp/tensorrt_llm/kernels/penaltyKernels.cu
index 84b1a66..579db5b 100644
--- a/cpp/tensorrt_llm/kernels/penaltyKernels.cu
+++ b/cpp/tensorrt_llm/kernels/penaltyKernels.cu
@@ -171,11 +171,14 @@ __global__ void batchApplyPenalty(T const* const* inputLogits, T* outputLogits,
                 SizeType32 numOccurences = penaltyWorkspace[index];
                 if (numOccurences > 0)
                 {
+                    printf("--------------------numOccurences > 0 ------ at %d input logit: %f \n", index, static_cast<float>(inLogitsPtr[index]));
+                    printf("--------------------numOccurences > 0 ------ at %d before rp logit: %f \n", index, logit);
                     // Repetition
                     if (repetitionPenalties != nullptr)
                     {
                         logit = logit < 0.0f ? logit * repetitionPenalty : logit / repetitionPenalty;
                     }
+                    printf("--------------------numOccurences > 0 ------ at %d after rp logit: %f \n", index, logit);
                     // Presence
                     if (presencePenalties != nullptr)
                     {
@@ -197,6 +200,11 @@ __global__ void batchApplyPenalty(T const* const* inputLogits, T* outputLogits,
             {
                 logit = static_cast<float>(MASK_VAL);
             }
+            // if (index < 5)
+            // {
+            //     printf("in logit: %f\n",  static_cast<float>(inLogitsPtr[index]));
+            //     printf("out logit: %f\n",  logit);
+            // }
             outLogitsPtr[index] = logit;
         }
         else
diff --git a/tensorrt_llm/runtime/generation.py b/tensorrt_llm/runtime/generation.py
index f843772..3f8d41c 100755
--- a/tensorrt_llm/runtime/generation.py
+++ b/tensorrt_llm/runtime/generation.py
@@ -3500,7 +3500,7 @@ class GenerationSession(object):

         next_step_tensors = None
         for step in range(0, self.max_new_tokens):
-
+            print(f"at step -- {step} -------------------------------------")
             should_stop, next_step_tensors, tasks, context_lengths, host_context_lengths, attention_mask, context_logits, generation_logits, encoder_input_lengths = self.handle_per_step(
                 cache_indirections, step, batch_size, max_context_length,
                 beam_width, input_ids, hidden_states, scfg,
@@ -3618,7 +3618,7 @@ class GenerationSession(object):

         next_step_tensors = None
         for step in range(0, self.max_new_tokens):
-
+            print(f"at step -- {step} -------------------------------------")
             should_stop, next_step_tensors, tasks, context_lengths, host_context_lengths, attention_mask, context_logits, generation_logits, encoder_input_lengths = self.handle_per_step(
                 cache_indirections, step, batch_size, max_context_length,
                 beam_width, input_ids, hidden_states, scfg,

full logs
https://drive.google.com/file/d/1PqZ097uEbnamMgCE7DAG8toFwI-7RFJo/view?usp=sharing

Hi @buddhapuneeth, thank you for taking time and reporting the issue. You are right, output logits are not modified with any of the penalty/temperature. This is an intentional behavior -- in context/generation logits we output only raw logits before sampling. There is a possibility to get logprob value after temp/penalties applied, but only for the selected token. Check out returnLogProbs in executor OutputConfig and the way to expose it from run.py.

Actually, I did further deep-dive and noticed:

yes, gen_logits with and without RP changed as output (generated) tokens different in both the cases from the second token, so from step 2 we noticed logits are completely different.
with temp = 0.1 or 1.2, the final output is remaining same and hence the logits remain same as no temperature. This is not clear for me, why the output is not changing with such extreme values (like 0.1) of temperature.

Actually, got my answer for Temp as well, as it is greedy decoding, the pick don't differ based on the temp. Thats why we see same output every time irrespective of the temp value.
Conclusions:

We see only raw logits when we expose output_logits.
In greedy decoding we see different results with and without RP, so logits will differ as generated sequence is different.
In greedy decoding we see same results with and without Temp, so logits will remain same as generated sequence is same.


Make fork id the default and try to recover the DiscoveryPeer for incoming connections from the PeerTable

PR description
This PR introduces these changes:

Make "--filter-on-enr-fork-id" default to true. That means that Besu by default will request the ENR from peers it has bonded with, which usually contains the fork id. The fork id then is used to find out whether that peer is on the same chain.
When other peers are initiating a handshake with us we now will check our PeerTable to see whether we have bonded with that peer. If the peer is found in the PeerTable we can check if the fork id is available to find out whether that peer is on the same chain.

Only if the fork id indicates that the peer is on the same chain we will try to establish a connection with that peer.
Currently Besu tries to connect to each peer in the PeerTable every 30 seconds. If a peer responds with an ENR that contains the fork id that peer will only be tried if that fork id passes the check. Checking the fork id at that point will safe Besu from doing a handshake, exchange the HelloMessage, and potentially exchanging status messages with a peer before finding out that the peer is on a different chain. Metrics produced during the testing of these changes indicate that on mainnet about 70-75% of peers are failing the fork id check.
Fixed Issue(s)
#5272

I'm happy with this PR but would like @fab-10 or someone else from chupa to take a look before it gets merged


Motion Detected Binary Sensors

Hey therer @JurajNyiri, Great work! i was waiting for this a long time.
The question / feature request is as stated in the title, will the cameras be able to inform HA when they detect motion?
Through a dedicated binary sensor created for each camera, i'm guessing.
I wish i was able to contribute code-wise but i'm afraid i have no idea how to.
Please let me know if i could provide you with debug logs or something to help you out 💯

Hello,
PR is opened here and I am currently working on it.
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/11


Certificate error at gb.roaddanger.org

Hi. I see a certificate error NET::ERR_CERT_DATE_INVALID at https://gb.roaddanger.org/

Also at https://www.roaddanger.org/

Fixed some time ago. Was a server hosting issue.


Fix double operation problem

There is an error when clicking multiple operations in a row which causes the operations to be cancelled out.

related to #16


Refactor Logger to Get Valid Line Numbers

The wrapping of the logger in PKLogger causes all line numbers to be the line number of the method in that class, not the actual location of the original logger call.  Could change to just return and use the slf4j.Logger class, but it loses the count of error and warn methods - so need an external class to track those (and make available to set status of initialization).

This will cause every class file to change because of the import; but since we seem unlikely at this point to change loggers (the reason for the original layer of abstraction) or would stay with an SLF4J backend anyway ... it seems like an OK thing to do.

Need to also check each and every class logger definition to make sure there are no copy & paste duplicates.


Clipboard broken in v14.3.0-canary.9

I recently upgraded from v14.0.0 and have discovered that the clipboard paste is now broken
I have scripts that do something like now; url=$(pbpaste) and I now get nothing in $url, which makes stuff break
the fault is experienced on OSX 10.14.3

@ekkis in case clipboard support doesn't work, the recommended way for scripting is to use Now CLI's stdout. If it detects it's not being executed with a terminal context attached, the output will only be the deployment url.
You could verify this with
$ now > url.txt


getSimpleIcon handles 'get' icon

This PR adds a test which verifies that lib/logos.js#getSimpleIcon properly handles get value. Related to https://github.com/badges/shields/issues/4263 and https://github.com/badges/shields/issues/4016.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @platan!

  Generated by :no_entry_sign: dangerJS against 28dff939c280d750f427dd7396e533a98ebf5505


Counting frequencies of array elements

❗Write Code in Only One Language ( CPP , C , Java , Python )
Give File Name :  filename  ✅ In respective language folder
📑 DESCRIPTION
Counting frequencies of array elements

Given an array which may contain duplicates, print all elements and their frequencies.
Example 1:
Input :  arr[] = {10, 20, 20, 10, 10, 20, 5, 20}
Output : 10 3
         20 4
         5  1

Time Complexity : O(n)

Can you assign this to me?

@vivekPatil45  I would like to contribute to this issue. Could you please assign this task to me.

@vivekPatil45 Hi,can you please assign this issue to me,thanks!

Hi! I have finished this task. Can you assign this to me.

@vivekPatil45 Please assign this issue to me

@Mr-Yash-beldar solve it


Automatically tune prompts

This adds a prompt annealing helper to Kalosm which takes a set of task examples and tries to optimize the context of the examples provided with simulated annealing
Closes #130

Example optimization result for a task of generating hypothetical questions about a text:
Result: [AnnealingResult { examples: [("Quantum computing leverages the principles of quantum mechanics to perform computations at speeds unattainable by classical computers. This emerging technology holds the potential to solve complex problems, such as factorizing large numbers, with unprecedented efficiency.", "What sets quantum computing apart from classical computing?"), ("The Internet of Things or IoT connects everyday devices to the internet, enabling them to send and receive data. This connectivity enhances automation and allows for more efficient monitoring and control of various systems.", "What is the purpose of the Internet of Things?"), ("Floneum is a user-friendly editor for visual AI workflows. Unlike existing tools that may have a high barrier to entry or allow limited control, Floneum provides a solution that is both easy to use and allows for greater customization.", "What is Floneum?"), ("In the world of programming languages, Rust stands out for its focus on memory safety without sacrificing performance. Its ownership system ensures that memory is managed efficiently, preventing common pitfalls like null pointer dereferencing.", "What is Rust known for?"), ("Machine learning models require training on labeled datasets to make predictions. Supervised learning, a common approach, involves providing the model with input-output pairs to learn the underlying patterns and relationships.", "What is supervised learning in machine learning?"), ("Cybersecurity measures, such as firewalls and encryption, play a crucial role in protecting computer systems from unauthorized access and data breaches. These measures help ensure the confidentiality and integrity of sensitive information.", "How do firewalls contribute to cybersecurity?")], score: 0.617375 }, AnnealingResult { examples: [("Docker containers provide a lightweight and portable way to package and deploy applications, along with their dependencies. This approach streamlines the deployment process and ensures consistency across different environments.", "What is the purpose of Docker containers in application deployment?"), ("Quantum computing leverages the principles of quantum mechanics to perform computations at speeds unattainable by classical computers. This emerging technology holds the potential to solve complex problems, such as factorizing large numbers, with unprecedented efficiency.", "What sets quantum computing apart from classical computing?"), ("The agile software development methodology emphasizes iterative and collaborative approaches to project management. This flexible framework allows teams to adapt to changing requirements and deliver incremental improvements.", "What are the key principles of agile software development?"), ("Floneum is a user-friendly editor for visual AI workflows. Unlike existing tools that may have a high barrier to entry or allow limited control, Floneum provides a solution that is both easy to use and allows for greater customization.", "What is Floneum?")], score: 0.6609375 }, AnnealingResult { examples: [("While traditional databases rely on a fixed schema, NoSQL databases like MongoDB offer a flexible structure, allowing you to store and retrieve data in a more dynamic way. This flexibility is particularly beneficial for applications with evolving data requirements.", "How does MongoDB differ from traditional databases?"), ("Blockchain technology, beyond cryptocurrencies, is being explored for applications like smart contracts. Smart contracts are self-executing contracts with the terms of the agreement directly written into code.", "How is blockchain technology utilized in the concept of smart contracts?")], score: 0.7193875 }, AnnealingResult { examples: [("Docker containers provide a lightweight and portable way to package and deploy applications, along with their dependencies. This approach streamlines the deployment process and ensures consistency across different environments.", "What is the purpose of Docker containers in application deployment?"), ("The Internet of Things or IoT connects everyday devices to the internet, enabling them to send and receive data. This connectivity enhances automation and allows for more efficient monitoring and control of various systems.", "What is the purpose of the Internet of Things?"), ("Open-source software, like the Linux operating system, is freely accessible and allows users to view, modify, and distribute its source code. This collaborative approach fosters innovation and community-driven development.", "What distinguishes open-source software from proprietary software?"), ("Cybersecurity measures, such as firewalls and encryption, play a crucial role in protecting computer systems from unauthorized access and data breaches. These measures help ensure the confidentiality and integrity of sensitive information.", "How do firewalls contribute to cybersecurity?"), ("In the world of programming languages, Rust stands out for its focus on memory safety without sacrificing performance. Its ownership system ensures that memory is managed efficiently, preventing common pitfalls like null pointer dereferencing.", "What is Rust known for?"), ("APIs facilitate communication between different software systems. They define the methods and data formats applications can use to request and exchange information.", "What is the purpose of APIs in software development?"), ("Biometric authentication methods, such as fingerprint recognition and facial recognition, use unique biological characteristics for identity verification. This enhances security by providing a more robust and personalized authentication process.", "How do biometric authentication methods contribute to security?")], score: 0.7015875 }, AnnealingResult { examples: [], score: 0.6741125 }, AnnealingResult { examples: [("Floneum is a user-friendly editor for visual AI workflows. Unlike existing tools that may have a high barrier to entry or allow limited control, Floneum provides a solution that is both easy to use and allows for greater customization.", "What is Floneum?"), ("In the world of programming languages, Rust stands out for its focus on memory safety without sacrificing performance. Its ownership system ensures that memory is managed efficiently, preventing common pitfalls like null pointer dereferencing.", "What is Rust known for?"), ("For instance, while the chat GPT interface provides a straightforward entry point, it quickly becomes challenging to create structured workflows. Imagine wanting to search through files to find specific ones, such as all .txt files related to travel, and then upload them. With Floneum, you can achieve this seamlessly within a structured workflow, eliminating the need for manual interaction with external tools.", "What are the tradeoffs of using chat GPT?"), ("Cybersecurity measures, such as firewalls and encryption, play a crucial role in protecting computer systems from unauthorized access and data breaches. These measures help ensure the confidentiality and integrity of sensitive information.", "How do firewalls contribute to cybersecurity?")], score: 0.66415 }, AnnealingResult { examples: [("APIs facilitate communication between different software systems. They define the methods and data formats applications can use to request and exchange information.", "What is the purpose of APIs in software development?")], score: 0.5764375 }, AnnealingResult { examples: [("The concept of virtualization involves creating virtual instances of resources like servers or networks. Virtualization enables better resource utilization, scalability, and isolation in computing environments.", "What is the purpose of virtualization in computer science?"), ("Machine learning models require training on labeled datasets to make predictions. Supervised learning, a common approach, involves providing the model with input-output pairs to learn the underlying patterns and relationships.", "What is supervised learning in machine learning?"), ("Quantum computing leverages the principles of quantum mechanics to perform computations at speeds unattainable by classical computers. This emerging technology holds the potential to solve complex problems, such as factorizing large numbers, with unprecedented efficiency.", "What sets quantum computing apart from classical computing?"), ("Floneum is a user-friendly editor for visual AI workflows. Unlike existing tools that may have a high barrier to entry or allow limited control, Floneum provides a solution that is both easy to use and allows for greater customization.", "What is Floneum?")], score: 0.6531750000000001 }, AnnealingResult { examples: [("APIs facilitate communication between different software systems. They define the methods and data formats applications can use to request and exchange information.", "What is the purpose of APIs in software development?"), ("WebAssembly or WASM is a binary instruction format designed for efficient execution on web browsers. It enables running code written in languages like C++ and Rust directly in the browser, expanding the possibilities of web applications.", "What is the purpose of WebAssembly?"), ("Quantum computing leverages the principles of quantum mechanics to perform computations at speeds unattainable by classical computers. This emerging technology holds the potential to solve complex problems, such as factorizing large numbers, with unprecedented efficiency.", "What sets quantum computing apart from classical computing?"), ("Blockchain technology, beyond cryptocurrencies, is being explored for applications like smart contracts. Smart contracts are self-executing contracts with the terms of the agreement directly written into code.", "How is blockchain technology utilized in the concept of smart contracts?")], score: 0.659075 }, AnnealingResult { examples: [], score: 0.6828125 }]

The best set of examples is ("While traditional databases rely on a fixed schema, NoSQL databases like MongoDB offer a flexible structure, allowing you to store and retrieve data in a more dynamic way. This flexibility is particularly beneficial for applications with evolving data requirements.", "How does MongoDB differ from traditional databases?"), ("Blockchain technology, beyond cryptocurrencies, is being explored for applications like smart contracts. Smart contracts are self-executing contracts with the terms of the agreement directly written into code.", "How is blockchain technology utilized in the concept of smart contracts?") which is only two examples but achieves a score of 0.71


sealos部署单master集群没问题，多master失败

Detailed description of the question.
在部署单master集群的时候很顺利，部署3master集群报错，尝试使用run + --force也同样不可以
sealos版本:v4.1.4
kubernetes版本:v1.26,v1.25.5
Clusterfile:
apiVersion: apps.sealos.io/v1beta1
kind: Cluster
metadata:
  name: myk8s
spec:
  hosts:
  - ips:
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    - <IP_ADDRESS>
    roles:
    - master
    - amd64
  - ips:
    - <IP_ADDRESS>
    roles:
    - node
    - amd64
  image:
  - labring/kubernetes:v1.26
  - labring/helm:v3.11.0
  - labring/calico:v3.25.0
  ssh:
    passwd: "123456"
    pk: /root/.ssh/id_rsa
    port: 22
status: {}

报错信息:
<IP_ADDRESS>: 2023-02-23T18:34:21 info sa.key sa.pub already exist
<IP_ADDRESS>: 2023-02-23T18:34:22 info domain apiserver.cluster.local:<IP_ADDRESS> append success
<IP_ADDRESS>: W0223 18:34:22.630024   19129 initconfiguration.go:119] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
<IP_ADDRESS>: [preflight] Running pre-flight checks
<IP_ADDRESS>:   [WARNING Hostname]: hostname "master2" could not be reached
<IP_ADDRESS>:   [WARNING Hostname]: hostname "master2": lookup master2 on <IP_ADDRESS>:53: no such host
<IP_ADDRESS>: error execution phase preflight: [preflight] Some fatal errors occurred:
<IP_ADDRESS>:   [ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
<IP_ADDRESS>: [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
<IP_ADDRESS>: To see the stack trace of this error execute with --v=5 or higher
2023-02-23T18:34:22 error Applied to cluster error: exec kubeadm join in <IP_ADDRESS> failed failed to execute command(kubeadm join --config=/root/.sealos/myk8s/etc/kubeadm-join-master.yaml -v 0 --ignore-preflight-errors=SystemVerification) on host(<IP_ADDRESS>): output(W0223 18:34:22.630024   19129 initconfiguration.go:119] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
[preflight] Running pre-flight checks
        [WARNING Hostname]: hostname "master2" could not be reached
        [WARNING Hostname]: hostname "master2": lookup master2 on <IP_ADDRESS>:53: no such host
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher), error(Process exited with status 1)
Error: exec kubeadm join in <IP_ADDRESS> failed failed to execute command(kubeadm join --config=/root/.sealos/myk8s/etc/kubeadm-join-master.yaml -v 0 --ignore-preflight-errors=SystemVerification) on host(<IP_ADDRESS>): output(W0223 18:34:22.630024   19129 initconfiguration.go:119] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
[preflight] Running pre-flight checks
        [WARNING Hostname]: hostname "master2" could not be reached
        [WARNING Hostname]: hostname "master2": lookup master2 on <IP_ADDRESS>:53: no such host
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher), error(Process exited with status 1)
exec kubeadm join in <IP_ADDRESS> failed failed to execute command(kubeadm join --config=/root/.sealos/myk8s/etc/kubeadm-join-master.yaml -v 0 --ignore-preflight-errors=SystemVerification) on host(<IP_ADDRESS>): output(W0223 18:34:22.630024   19129 initconfiguration.go:119] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
[preflight] Running pre-flight checks
        [WARNING Hostname]: hostname "master2" could not be reached
        [WARNING Hostname]: hostname "master2": lookup master2 on <IP_ADDRESS>:53: no such host
error execution phase preflight: [preflight] Some fatal errors occurred:
        [ERROR FileAvailable--etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher), error(Process exited with status 1)

Some reference materials you see.
No response

4.1.5修复了这个问题。


MM-45225 Absolute task due date in playbook editor

Summary

This PR switches to using absolute due date in the playbook editor (as is the case while editing a run).
Ticket Link

Jira ticket: https://mattermost.atlassian.net/browse/MM-45225
Checklist

- [ ] Telemetry updated
- [ ] Gated by experimental feature flag
- [ ] Unit tests updated

Thanks a lot for the context @crspeller I'll look into this again on Friday in the context of OSF.


Missing antlr4, az cli nic add --help fails

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az vm nic add
Errors:
No module named 'antlr4'
Traceback (most recent call last):
lib/python3/dist-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
azure/cli/core/commands/__init__.py, ln 528, in execute
    self.commands_loader.load_arguments(command)
dist-packages/azure/cli/core/__init__.py, ln 300, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
azure/cli/command_modules/vm/__init__.py, ln 31, in load_arguments
    from azure.cli.command_modules.vm._params import load_arguments
azure/cli/command_modules/vm/_params.py, ln 31, in <module>
    from azure.cli.command_modules.monitor.actions import get_period_type
azure/cli/command_modules/monitor/actions.py, ln 7, in <module>
    import antlr4
ModuleNotFoundError: No module named 'antlr4'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az vm nic add --help

Expected Behavior
Environment Summary
Linux-5.4.0-33-generic-x86_64-with-glibc2.29
Python 3.8.2
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

@doughernand: It looks like the package antlr4 is missing for python. Could you check whether antlr4-python3-runtime is installed correctly using pip list | grep antlr
If not, can you try running sudo pip3 install antlr4-python3-runtime and retry the az vm nic add after that to see if it solves the issue.
If it is still happening even after doing the above steps, then it may be something else and I will let someone from the az cli team comment on it.

@qwordy please take a look

Some additional background - this is a recent install of Ubuntu 20.04 LTS. I don't see an antlr module, and pip is not currently installed.
pi@copper:~/.ssh$ python3 -m antlr4-python3-runtime;python3 -m antlr4
/usr/bin/python3: No module named antlr4-python3-runtime
/usr/bin/python3: No module named antlr4
pi@copper:~/.ssh$ cat /etc/os-release && uname -a
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Linux copper 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
pi@copper:~/.ssh$ dpkg -l | grep pip
ii  libpipeline1:amd64                   1.5.2-2build1                         amd64        Unix process pipeline manipulation library

I ran into this shortly after running azure cli setup commands. Here is my history:
1735  az login
 1736  sudo apt install azure-cli
 1737  az login
 1738  az nic
 1739  az network
 1740  azn network -h
 1741  az network -h
 1742  az network nsg -h
 1743  az network nsg list
 1744  az vm help
 1745  az vm --help
 1746  az vm nic --help
 1747  az vm nic add --help
 1748  az vm nic add
 1749  az vm nic addaz feedback
 1750  az vm nic add --help
 1751  az feedback

hi @qwordy @fengzhou-msft seems there's several instance on missing antl4r , could  you pls work together to have a look? thanks

hi @qwordy @fengzhou-msft seems there's several instance on missing antl4r , could you pls work together to have a look? thanks

Yes, it is.

Are you using the bundled Azure CLI of Ubuntu? The package is old and has some problems. Could you install the latest version and retry?
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Any update?


ERA5 on single level - Mean

Notebook description
'Mean'  diagnostics of the 2-meter temperature of ERA5 on single level
Notebook link or upload
UC1_ERA5_t2m_mean.zip
Anything else we need to know?
No response
Environment

Hi @Yassminaa,
I'll be working on this today.
You are analysing monthly data but you are not computing time weighted averages.
Is that on purpose, or do you prefer to apply weights? I.e., weights are the number of days in each month.

Thanks very much, @malmans2
Yes. As for monthly data, I didn't expect a difference with the time-weighted averages, and also the monthly mean catalog is not a time-weighted average it would be consistent to proceed without it in this particular case.

If possible, yes. it would be much better.
Otherwise, the current hardcoded version has to be manually updated with any change in the analyzed data.

No problem, it's very easy to do.
Do you want to cover the full time period (from 1940 to June 2023)?

Great. The period will be from Jan. 1940 until Dec. 2022.
Thanks, @malmans2

OK, should be ready after lunch.

Here is the template: https://github.com/bopen/c3s-eqc-toolbox-template/blob/main/notebooks/wp5/era5_t2m_mean.ipynb
Here is the notebook executed: https://gist.github.com/malmans2/806334ee581e6163e271aba47e8f5db6
You were not caching the diagnostics, which means that you had to re-compute everything from scratch every time you run the notebook.
When you run the template, you'll see that it's now quick to retrieve cached diagnostics.
Still, tt takes some time to run the whole notebook, but the bottleneck is plotting/rendering high-res projected maps.
Please let me know if everything is working as expected:

Hi @Yassminaa,
Can we close this or are you still working on it?

Thank you @malmans2
Yes, you can close it. I made only minor changes to improve the plot visualization but it does not affect your template.


!!radio pause problem

While no one is on the channel, the streaming (!!ra command) is pausing but even if it says "resume" the music don't resume and i need to restart the bot completely for it to work again.
So, i wonder if there's a possibilty to not pause while there's no one or to mute itself to save bandwith and avoid "pause bugs" on streams?

What settings/changes would you recommend for ffmpeg? listening to a radio directly usually gives me no buffer issues, but with the bot that's not usually the case...

A few things - I work a lot with audio engineering and plan to make a video guide using Nadeko to demonstrate the best practices for hosting MusicBots in general, however:

The latency between the voice chat server and where your Nadeko (applies to any musicbot) is very important. Your personal latency to the Discord voice chat server is important but not as critical as the latency between the bot and the server.

Discord uses OPUS to send audio - it's hit or miss for music; great for voice however depending on how you configure OPUS (which we don't have control over), it can be good to OK. Also, remember, currently the maximum bitrate you can have on Discord (excluding partner servers) is 96kbps. Back to this in a minute.

The default configuration for Nadeko is the recommended setup:
        const int milliseconds = 20;
        const int samplesPerFrame = (48000 / 1000) * milliseconds;
        const int frameBytes = 3840;

With a default prebuffer of 1 megabyte (configured as 1 MiB) and a default OutputPCMStream of 960 frames which corresponds to 20ms.
These are good settings. In case you are wondering, we get 20ms by taking our sample rate (48000 per second/ 1000) which yields us 48 frames/ms.
[Normally, 16-bit, 2 channels is (1621024 samples/buffer)/8 (to go to bytes) = 4,096 bytes].
The reason we have 3,840 is because we have a 20ms delay, which results in 48 frames/ms * 20ms = 960 frames. Two stereo channels, so 960 * 2 = 1,920 frames. At 16-bit, (each bit is 2 bytes), our total bytes out is 1,920 * 2 = 3,840 and that's how we get the frameBytes that is used by default.

The pause you mention is due to accumulating buffers. You can play around with all the settings, but as I mentioned, what is important is latency between the servers. If you halve all these values (that is lower our ms delay to 10, bringing our frameBytes to 1,920 total) you will notice that the music is much quicker. However, this is the lowest latency that is supported by OPUS and isn't that realistic. It works, and you will notice that almost-instantaneous buffering and very little pause if you have everything setup as best as you can, but even with servers in the same region as Discord's it's not ideal to have a 10ms buffer.

The other variable you can play around with is the pre buffer, which is 1 megabyte (1MiB) by default. You don't want this to go that high. This is what is being buffered by ffmpeg prior to starting a song.

Remember all these numbers are related (ms, samples/frame, frameBytes, and PCMStream output which is 960 frames by default (not bytes - it is 960 * 2ch * 2 bytes/16bit = 3,840 bytes).

===========
What I'm working on now to improve it and will push to the public repo when I have finished + tested:

[ ]  Making a guide on how to best setup your bots for quality as mentioned;]

[ ] Discord uses OPUS as I mentioned. Currently, it is outputting a standard PCM stream. For the best quality, Discord.net (the C# library used in Nadeko) supports DirectOPUS. I am working on that codebase to change so that the audio is output directly as an OPUS stream to Discord. This will improve things across the board.

===========
By the way, I've followed these practices that I'll be outlining and never had an issue with the bot besides the occasional bug. However, I have streamed many radio stations that are native 192-320kbps directly using !!radio with Nadeko for days without any problems. Also, pausing isn't as much of an issue if the buffers are correct. Like I said, you can reduce everything by half to 10ms/1,920 bytes/480 frames for the outputPCMStream, but that is pushing it with Discord and your setup needs to be very optimal as it's essentially pushing double the speed (10ms delay, so 10ms update time vs. 20ms).
Besides that, you are limited by Discord's 96kbps current bitrate and encrypted OPUS streams. They do have a good variety of server regions and latency is good on the side of their platform.
Sorry for the long post. Wanted to lay everything out! 👍

@shikhir-arora Thanks for that awesome reply.
I have to admit I'm new to this, as I'm only using Linux because of Nadeko, so I'm going to need fairly straightforward instructions (or name where the things need to be worked on).
For your info, the bot uses a German droplet, with the discord server being in the Netherlands (it's a partner server, so it has up to 128k for the audio channels), so distance should be an issue.
With that said, what should I do? 😄

Glad I could help :-)
I will have the video guide out very soon (hopefully later today) and will update here as soon as that is done. I'm also working on the other two things mentioned (direct OPUS encoding out & utilizing the Latency measures) with Discord.net and through ffmpeg.
Yes, that is a good setup. I have something similar - one server in Germany and one in Amsterdam with our voice channel in Central Europe.
128k is neat. Totally jealous! I hope Discord will offer higher bitrates, even if it comes at an optional premium.
I think it's better off holding on for the guide since it'll be done very soon and covers it for you, at least what you can do without the "major" changes mentioned that I'm working on and should have something testable soon.
If you really want to play around and feel comfortable doing so, the files that are pertinent are in ../src/Modules/Music/Classes/Song.cs as well as ../src/Modules/Music/Classes/SongBuffer.cs
Specifically in Song.cs you likely don't want to mess with the values I posted above because you can only halve it (technically; you can do whatever but the standard lower than 20ms is 10ms, the lowest feasible one). But as I said 10ms on Discord server's are still not cutting it. You may have better connections though as a partner server, so no harm trying. Edit the lines I posted above to:

        const int milliseconds = 10;
        const int samplesPerFrame = (48000 / 1000) * milliseconds;
        const int frameBytes = 1920;

and also a line at the bottom called something like outputPCMStream[x] where x is 960 by default; with the above changes edit that to 480 (half).
Restart Nadeko and proceed normally You will notice right away what I mean with the "fast pause" - however if it becomes too choppy (the debug window in Discord on the bottom left is excellent) then switch back to the original mentioned in my last post (the default).
The other thing you can do is change the buffer (play with this if you wish): in Song.cs you will see a value 1.MiB with a comment \ fast connections can easily handle this  => you can change this to something smaller; again, being vary of the considerations I posted above. If you do change that line, use power of two numbers (like 1024, 512, etc.) if you wish and replace MiB with KiB (these are Kibibytes - you can try 512.KiB if you wish.
In SongBuffer.cs the only things you can really change right now I'd bother with are the buffer[] which is:

                   byte[] buffer = new byte[81920];
                   int currentFileSize = 0;
                   ulong prebufferSize = 100ul.MiB();

by default. You can change 81920 (though again that's the standard config) to something lower - I have mine set to 2^16 = 65,536 and my prebuffersize slightly smaller. But YMMV, and remember these are source changes. But you can easily revert back.
I would change the Song.cs first, leave the SongBuffer.cs (unless you do a lot of !!radio) and listen to it on your server since it may have a slightly better advantage. And then see how it goes from there. Remember, 10ms is a quick buffer - almost zero delay between servers and that's the lowest OPUS supports, as does Discord's official wrappers.
Thanks for your interest! The actual OPUS & Latency var changes will make the biggest change by far because the native OPUS stream especially coupled with the latency updates in (essentially) real time will be a nice improvement. Also some small cleanups like #947 which was fixed earlier that should help further. 🎧

Awesome, thanks 👍 I'll wait for your guide then!

#1053 for tracking music issues, most of them are the same issue

I would really love a !!nopause option I'm using NadekoBot to stream my online radio to a channel and really don't want it to be pause when no one's listening.


Internally separate error from result in get API results

Change summary:

Internally separate error from result in get API results
Add enableErrorResultSeparationForGetApis dev flag

Note:

With enableErrorResultSeparationForGetApis = false, the APIs are backward-compatible.

Related issues:

https://github.com/ainblockchain/ain-blockchain/issues/1053

Thanks for the fast review! Now merging.. @minsulee2


feat: switches to @noble/ed25519 for @dfinity/identity

Description
Switches the Ed25519KeyIdentity solution from tweetnacl to @noble/ed25519
Also switches to vitest testing in the process
How Has This Been Tested?
existing test suite for ed25519
Checklist:

[ ] My changes follow the guidelines in CONTRIBUTING.md.
[ ] The title of this PR complies with Conventional Commits.
[ ] I have edited the CHANGELOG accordingly.
[ ] I have made corresponding changes to the documentation.

Resolved by #784


(MODULES-1960) Invoke-DscResource

Depends on #11 to be pulled in first.

I believe we're going to want some basic tests like those in place that use ps_script_content.
See https://github.com/puppetlabs/puppetlabs-dsc/blob/master/build/dsc/templates/dsc_type_spec.rb.erb#L163-L238

\o/


Wrong acs module in 2.0.42 CLI -- AKS log analytics are broken

$ /usr/local/bin/az --version
azure-cli (2.0.42)

acr (2.1.0)
acs (2.2.0)

The acs submodule should be 2.2.2 but didn't get updated. So #6782 isn't in there, and the documentation that describes creating an AKS cluster without an explicit log analytics workspace for monitoring is broken.
cc: @ganga1980
Environment summary
Tested with the homebrew packaging as well as CloudShell.

@berndverst,  we fixed the exception in version 2.0.43. And also I see the acs module version as 2.2.2 in  Az CLI version 2.0.43 . Can you please upgrade to 2.0.43 and let us know still you see this issue?
az --version
azure-cli (2.0.43)
acr (2.1.2)
acs (2.2.2)

@ganga1980 @berndverst sorry for getting my wires crossed. Version 2.0.43 got published to homebrew just after we opened this issue, and it is of course fixed:
$ brew upgrade
==> Upgrading 1 outdated package, with result:
azure-cli 2.0.42 -> 2.0.43
$ /usr/local/bin/az --version | head
azure-cli (2.0.43)

acr (2.1.2)
acs (2.2.2)


Error during the Get-TargetResource of SPManagedMetaDataServiceApp resource if ContentTypeHubUrl is null

Details of the scenario you try and problem that is occurring:
Error during the Get-TargetResource of SPManagedMetaDataServiceApp resource.
The DSC configuration that is using the resource:
        SPManagedMetaDataServiceApp APPLICATION_SpsSvcAppManagedMetadataServiceApp
        {
            PsDscRunAsCredential = $FarmSetup
            Name                 =  'MMS'
            ProxyName            = 'MMS'
            ApplicationPool      = 'Services Application Pool'
            DatabaseServer       = 'SQLSPS'
            DatabaseName         = 'SP15MMS'
        }

Version of the Operating System and PowerShell the DSC Target Node is running:
Windows 2012 R2
Version of the DSC module you're using:
SharePointDsc <IP_ADDRESS>
Get-DscConfiguration : PowerShell DSC resource MSFT_SPManagedMetaDataServiceApp  failed to execute Get-TargetResource
functionality with error message: You cannot call a method on a null-valued expression.
At line:1 char:1
+ Get-DscConfiguration
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (MSFT_DSCLocalConfigurationManager:root/Microsoft/...gurationManager)
   [Get-DscConfiguration], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure,Get-DscConfiguration

Fix suggested in PR #446

Fix merged, closing this one. Thanks dude


refactor: Simplify the way "centralization" works for LogEvent

LogEvent from an EventEmitter is a nice, but a better design is to attach functions the way express.use adds middleware.

Will not change class Logish extends EventEmitter but rather introduce the middleware approach with Logish.use.


Add start flag for choosing the rootful template or containerd instead

Description
When using podman machine init, they have a --rootful flag to choose a rootful connection instead of a rootless one.
It would be useful to have a similar flag in Lima, which would make it easier to change (similar to --cpus --memory etc)

https://github.com/lima-vm/lima/pull/1468

When using a template, it would choose the one named "-rootful" and when using default it would use a yq statement.
The name of the instance would not change, so limactl start --rootful template://podman would be named: podman

https://github.com/containers/podman-desktop/issues/1081#issuecomment-1563296492

See https://docs.podman.io/en/latest/markdown/podman-machine-init.1.html for the other flags
Most of them don't apply, when not using CoreOS and Ignition, but some of them are similar to Lima's

The created instance is not accessible by the user, but this is a known issue...
FATA[0000] rootless containerd not running? (hint: use containerd-rootless-setuptool.sh install to start rootless containerd): stat /run/user/1000/containerd-rootless: no such file or directory
If we wanted to make it useful with nerdctl.lima, it would need something like:
anders@lima-default:/home/anders/lima$ sudo chgrp anders /usr/local/bin/nerdctl
anders@lima-default:/home/anders/lima$ sudo chmod 4750 /usr/local/bin/nerdctl

Will do this only for podman and docker, by changing the template field for "rootful".


Ensure that dropdown selection of soc with no observations has the correct message

Context: in the demo, we had some socs with no data.
After the user makes a selection, if it is an occupation for which we do not have data, display the text: “We do not have data on occupational transitions for this occupation”
(Note we never expect this to happen, but we want to build it in just in case.)

This might not be required with the new dataset and there are no SOCs ending in "0"

This might not be required with the new dataset and there are no SOCs ending in "0"

I'm working on this.  Is there a demo set of data with an occupation for which we do not have data so I can test? @jedpittman

I'm working on this.  Is there a demo set of data with an occupation for which we do not have data so I can test? @jedpittman

@jkoren , I do not expect that we have anything in the live data for you to test.
However, you should be able to build the component and the scenario in storybook using some hard coded fake data that has no transition.

@jkoren , I do not expect that we have anything in the live data for you to test.
However, you should be able to build the component and the scenario in storybook using some hard coded fake data that has no transition.

@jedpittman got it.  I am new to storybook, so will have to educate myself.

@jedpittman got it.  I am new to storybook, so will have to educate myself.

instead of npm run start, just do npm run storybook.
Then you'll be able to see/play with some of the other components to see
how it works and then do a story for the component you're interested in.
On Sun, Jan 31, 2021 at 5:43 PM Jeff Korenstein<EMAIL_ADDRESS>wrote:

@jedpittman https://github.com/jedpittman got it. I am new to
storybook, so will have to educate myself.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codeforboston/jobhopper/issues/267#issuecomment-770464614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEMD2CXJ2LCVCJZ6DDOODI3S4XMKJANCNFSM4V6OI6MA
.

instead of npm run start, just do npm run storybook.
Then you'll be able to see/play with some of the other components to see
how it works and then do a story for the component you're interested in.
On Sun, Jan 31, 2021 at 5:43 PM Jeff Korenstein<EMAIL_ADDRESS>wrote:

@jedpittman https://github.com/jedpittman got it. I am new to
storybook, so will have to educate myself.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/codeforboston/jobhopper/issues/267#issuecomment-770464614,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEMD2CXJ2LCVCJZ6DDOODI3S4XMKJANCNFSM4V6OI6MA
.

that makes sense.  so I see the sample data is in src/testing/data/transitionData.ts
for the purpose of this test, I commented out the createTransitions records.
It sounds like the results of changes I make to the code will be reflected in StoryBoard?


ruplacer: 0.4.1 -> 0.6.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/TankerHQ/ruplacer/releases.
meta.description for ruplacer is: "Find and replace text in source files"
meta.homepage for ruplacer is: "https://github.com/TankerHQ/ruplacer"
meta.changelog for ruplacer is: ""
Updates performed

Rust version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/1ym5xsxx1wmvx1kfzah818bid8d7p8vz-ruplacer-0.6.2/bin/ruplacer passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 0.6.2 with grep in /nix/store/1ym5xsxx1wmvx1kfzah818bid8d7p8vz-ruplacer-0.6.2

found 0.6.2 in filename of file in /nix/store/1ym5xsxx1wmvx1kfzah818bid8d7p8vz-ruplacer-0.6.2

directory tree listing: https://gist.github.com/a1459710469d5cfbf8fcf6f5f61af514

du listing: https://gist.github.com/dd91f2d3b835a3ad535b38e27504277c

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
ruplacer

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1ym5xsxx1wmvx1kfzah818bid8d7p8vz-ruplacer-0.6.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A ruplacer https://github.com/r-ryantm/nixpkgs/archive/44eb5edf0504be209f9fcb588b15422b8ddd823d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1ym5xsxx1wmvx1kfzah818bid8d7p8vz-ruplacer-0.6.2
ls -la /nix/store/1ym5xsxx1wmvx1kfzah818bid8d7p8vz-ruplacer-0.6.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

ruplacer

Maintainer pings
cc @Br1ght0ne for testing.

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

1 package built:

ruplacer


How to use NNI with AllenNLP module?

What would you like to be added: I need use AllenNLP(run with jsonnet) to manage my data preprocessing  & training & evaluation work flow. But NNI is also needed to be embeded in the code to search the best hyperparamete. I wonder if they are compatible
Why is this needed: Allenlp and NNI are both awesome tools for NLPer, they should work fine together.
Without this feature, how does current nni work：I have to write so many duplicate code to manage building vocab,  loss backward, etc.
Components that may involve changes:
Brief description of your proposal if any:

@ChrisZRen to follow

Hi, I think you can use the standalone mode https://nni.readthedocs.io/en/stable/TrialExample/Trials.html#standalone-mode-for-debugging if you are only using the HPO function of NNI.

closing the issue as the answer has been provided, feel free to reopen the issue if there are any further questions.


Custom Armor Helmet glitch | BUG

It seems its only in the editor this glitch appears.
Root selected:

Helmet selected:

Helmet selected but hidden:

This makes it a bit difficult for me to edit my model's armor placement for the helmet.
Version: Forge 0.0.17g

Does this happen in the latest version?


Send env reload response with "Failure" as Status property value when app payload is not present

Fixes #1931
Currently, If we get specialization request without a valid payload present in the FunctionAppDirectory , our code crashes when trying to load the assembly. This PR updates that code path so that it will send an instance of EnvironmentReloadResponse with "Failure" as the "Status" property value.

@paulbatum @TsuyoshiUshio FYI


Display flatline in case of waveform generation error

In many cases, a waveform generation error will be due to the video files having no audio. A flatline represents this more accurately than some text. Furthermore, users really should not have to worry about waveform generation errors in the first place.
Resolves #314

If anyone is wondering how this looks like

:


Add support for mixed rendering

Mixed rendering is a mode that works like shallow rendering, but where
you can specify a list of components you want to render even tho they
are deeply nested.
We have a use case where we are using shallow rendering and Cheerio for unit testing our Preact components. We are using a redux-connect like higher order component to connect some components to our global state.
When testing a component, that uses another component that is wrapped in a HOC, the shallow renderer stops at the HOC.
With mixed rendering we can white list components we want to render and test that the wrapped components are used correctly.

@developit I've updated the PR, but kept the unit tests in a separate file. Do you want me to move them as well?


Detecting by parameter names seems fragile

Wouldn't optimizations like crunching parameter names break this?
I think Uglify does this by default..

Good line of questioning. It definitely feels a little too angular-y.
The alternative is a { props: [ 'a', 'b', 'c' ], fn: (a, b, c) => {} } structure, which is so much less aesthetic.

I suspect that you are right. Playing with js functions at runtime is probably too fragile.


PyTorch standard Coco dataset (datasets.CocoDetection) not compatible with Faster R-CNN object detection model

🐛 Describe the bug
Hi,
I am trying to train and evaluate pre-trained Faster R-CNN model with standard coco dataset. I am getting the following error
TypeError: RandomIoUCrop() requires input sample to contain tensor or PIL images and bounding boxes. Sample can also contain masks.
Here are the high level steps

Downloaded the COCO 2017 dataset
Prepared PyTorch dataset using standard steps from https://pytorch.org/vision/main/auto_examples/transforms/plot_transforms_e2e.html#sphx-glr-auto-examples-transforms-plot-transforms-e2e-py
Training and evaluating Faster R-CNN model using steps from https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html

Here is colab notebook
https://colab.research.google.com/drive/1Tbu2Thf-thn0lLG12dM3bq_BMZDihX2Y?usp=sharing
Any help will be appreciated. Thanks.
Versions
Hi,
I am trying to train and evaluate pre-trained Faster R-CNN model with standard coco dataset. I am getting the following error
TypeError: RandomIoUCrop() requires input sample to contain tensor or PIL images and bounding boxes. Sample can also contain masks.
Here are the high level steps

Downloaded the COCO 2017 dataset
Prepared PyTorch dataset using standard steps from https://pytorch.org/vision/main/auto_examples/transforms/plot_transforms_e2e.html#sphx-glr-auto-examples-transforms-plot-transforms-e2e-py
Training and evaluating Faster R-CNN model using steps from https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html

Here is colab notebook
https://colab.research.google.com/drive/1Tbu2Thf-thn0lLG12dM3bq_BMZDihX2Y?usp=sharing
Any help will be appreciated. Thanks.

Hi @ranjaniocl ,
try to print the input that gets passed to RandomIoUCrop(). There should be bounging boxes and PILimages/tensors in there. If not, it's likely that the pipeline is incorrect.

Hi @NicolasHug,
Thank for looking into my issue. I do not know how to print input that get passed to RandomIoUCrop(). Can you please guide me with sample script/steps?
Also, we do you mean when you say 'pipeline'. Is it the dataloader?
I tried to print a sample dataset in the notebook and it has tensors for image and bounding boxes.

@NicolasHug Ok. sure. I will try my luck there.
As I am using standard dataset and Pytorch provided standard code, I thought someone here can look into it and provide some resolution.

@NicolasHug Just for reference, there was one similar issue reported in past.
https://github.com/pytorch/vision/issues/2720

@NicolasHug I just logged it at PyTorch forum. While I was creating, similar issues from past popped up (please see links below). I do not see any response so I do not have much hope.
https://discuss.pytorch.org/t/training-faster-r-cnn-model-with-coco-dataset-has-been-consistently-unsuccessful/178023
https://discuss.pytorch.org/t/evaluate-pre-trained-faster-r-cnn-on-coco-dataset/157770

Help on class CocoDetection in module torchvision.datasets.coco:
class CocoDetection(torchvision.datasets.vision.VisionDataset)
|  CocoDetection(root: Union[str, pathlib.Path], annFile: str, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, transforms: Optional[Callable] = None) -> None
Note: the class has transform, target_transform and transforms arguments, passing value to transforms (not transform) can solve the issue.


Support setting an auth token to be used for API calls

If USER_AUTH_TOKEN is defined and non-empty, it'll be used as a query param (authToken=<value>) on all API calls from the JavaScript app.
Some additional refactoring as part of that, including moving some dependencies into decorator.jsp and tidying API_BASE references under $.ajaxSetup, which is where the authToken param gets set.

This appears to break the basic auth for me with a doubling up of the context prefix:
http://localhost:19093/diffa-agent/diffa-agent/domains/diffa/diffs/tiles/4?range-start=20120301T130000Z&range-end=20120305T120000Z

Do you see the same effect?

I don't see that. I still get
http://localhost:19093/diffa-agent/domains/diffa/diffs/tiles/4?range-start=20120301T150000Z&range-end=20120305T140000Z

OK, I've cleaned the whole thing down and this looks fine now.


DFP Unclear mandatory test

From Greg B:
In Part 1, Section 3.1 (DFP Persona Requirements), the table lists “Sighting Sharing: 2.3.3 Producer Test Case Data” as Mandatory, but Section 2.3.3 just refers back to “Indicator Sharing Producer Test Case Data” (section 2.2.3), which doesn’t include any sighting data

The producer test case data is the same for Indicator vs Sighting test cases but understand how this was confusing. Simple solution was to remove DFP from being tested as part of the Sighting test case.

Resolved in WD2


Add some print mode style tweaks

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Improvement (refactoring and improving code)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update

Description
This one adds some stylesheet tweaks for printmode improvements like removing unused spaces, elements, etc.
Additional context
Fixes #1508

I'll fix new issues I've created.


rename resetKeyFromEntry to resetHashFromEntry

#350 rename resetKeyFromEntry to resetHashFromEntry

Codecov Report

Merging #361 (a4d7dcd) into main (791a4b0) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head a4d7dcd differs from pull request most recent head c485f08. Consider uploading reports for the commit c485f08 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #361   +/-   ##
=======================================
  Coverage   90.03%   90.03%
=======================================
  Files          15       15
  Lines         783      783
=======================================
  Hits          705      705
  Misses         66       66
  Partials       12       12

Impacted Files
Coverage Δ

encoding.go
100.00% <100.00%> (ø)

shard.go
92.01% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

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


BUG at /home/mikegapinski/source/aosp

flashed sd card (tried 16 and 64gb)
raspberry pi 4 4gb (also tried 2gb)
downloaded https://github.com/tesla-android/android-manifest/releases/download/2022.18.1/tesla-android-2022.18.1.zip
flashed using raspberry pi flasher for the deploy-sd.img file (did not use my default settings for setting up a wifi connection to my home)
hooked pi up to computer (windows 11) using usb c to usb a cable (usb 2.0 port on front of desktop)
starts to boot and then goes to:
unexpected XHCI event TRB, skipping (4 different offset addresses)
BUG at /home/mikegapinski/source/aosp/external/u-boot/drivers/usb/host/xhci-ring.c:530/abort_td()! BUG!
any suggestions?

i think this was put in the wrong repo.  sorry!


Fix unit tests for GitHub actions

(node:1651) UnhandledPromiseRejectionWarning: Error: Mising input "npm_access_token"
at verifyInputs (/home/runner/work/package-deployer/package-deployer/dist/index.js:586:19)
at /home/runner/work/package-deployer/package-deployer/dist/index.js:615:9
at Object.191 (/home/runner/work/package-deployer/package-deployer/dist/index.js:621:3)
at webpack_require (/home/runner/work/package-deployer/package-deployer/dist/index.js:24:31)
at startup (/home/runner/work/package-deployer/package-deployer/dist/index.js:43:19)
at /home/runner/work/package-deployer/package-deployer/dist/index.js:49:18
at Object. (/home/runner/work/package-deployer/package-deployer/dist/index.js:52:10)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
(node:1651) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1651) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


how do i get the result'filename for next command

i search by ag ，the result like this:
➜  a  ag 部件名称
a.csv
33:a246,"部件名称",""
➜  a
i want to vi the  file a.csv，how can i get the filename quickly in the next commad weather i don't input the filename (if  the file name is very long)

you could do
ag "foo"
Get results
ag "foo" -l  | rvim

by putting this in your bashrc :
rvim () {
  cat > /tmp/filelist && vim </dev/tty $(cat /tmp/filelist | tr "\n" " ")
}

Thanks netei!

You might also be interested in https://github.com/edi9999/path-extractor , specifically issue 2 which deals with tmux integration


when execute #make command , a 'file format is not recognized!' error has happend!

objs/gload.o: file not  recognized: file format not recognized.
collect2:ld returned 1 exit status
make:*** [gload]  Error 1
Linux OS is CentOS 6.5 x86_64.
Can you tell me what version is the default installed Linux?

Hi. I have tested this compile command on CentOS 6.6 x86_64 and CentOS 6.2 x86_64. The version of gcc is 4.4.7.
Did you run the “make lib_antlr” command successfully? If yes, system will output messages like this:
...
libtool: link: ranlib .libs/libantlr3c.a
libtool: link: ( cd ".libs" && rm -f "libantlr3c.la" && ln -s "../libantlr3c.la" "libantlr3c.la" )
make[2]: Leaving directory /media/wip/hanshuo/temp/gStore/tools/libantlr3c-3.4' make[1]: Leaving directory /media/wip/hanshuo/temp/gStore/tools/libantlr3c-3.4'
rm -rf lib/libantlr.a
ar -crv lib/libantlr.a tools/libantlr3c-3.4/*.o
a - tools/libantlr3c-3.4/antlr3baserecognizer.o
a - tools/libantlr3c-3.4/antlr3basetreeadaptor.o
a - tools/libantlr3c-3.4/antlr3basetree.o
a - tools/libantlr3c-3.4/antlr3bitset.o
a - tools/libantlr3c-3.4/antlr3collections.o
a - tools/libantlr3c-3.4/antlr3commontoken.o
a - tools/libantlr3c-3.4/antlr3commontreeadaptor.o
a - tools/libantlr3c-3.4/antlr3commontreenodestream.o
a - tools/libantlr3c-3.4/antlr3commontree.o
a - tools/libantlr3c-3.4/antlr3convertutf.o
a - tools/libantlr3c-3.4/antlr3cyclicdfa.o
a - tools/libantlr3c-3.4/antlr3debughandlers.o
a - tools/libantlr3c-3.4/antlr3encodings.o
a - tools/libantlr3c-3.4/antlr3exception.o
a - tools/libantlr3c-3.4/antlr3filestream.o
a - tools/libantlr3c-3.4/antlr3inputstream.o
a - tools/libantlr3c-3.4/antlr3intstream.o
a - tools/libantlr3c-3.4/antlr3lexer.o
a - tools/libantlr3c-3.4/antlr3parser.o
a - tools/libantlr3c-3.4/antlr3rewritestreams.o
a - tools/libantlr3c-3.4/antlr3string.o
a - tools/libantlr3c-3.4/antlr3tokenstream.o
a - tools/libantlr3c-3.4/antlr3treeparser.o

make lib_antlr this command running is normal.

[root@localhost gStore]# make
g++ -o gload objs/gload.o objs/Bstr.o objs/Database.o objs/KVstore.o objs/Btree.o objs/CBtreeFunc.o objs/SPARQLquery.o objs/BasicQuery.o objs/ResultSet.o objs/SigEntry.o objs/Signature.o objs/Triple.o  objs/util.o objs/VSTree.o objs/IDList.o objs/EntryBuffer.o objs/LRUCache.o objs/VNode.o objs/DBparser.o objs/SparqlParser.o objs/SparqlLexer.o  objs/Operation.o objs/Socket.o objs/Server.o objs/Client.o objs/TurtleParser.o objs/RDFParser.o lib/libantlr.a
objs/gload.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [gload] Error 1
[root@localhost gStore]#

after updating OS to CentOS 6.6, this problem has been disappeared!

111