Misleading and broken code example for "Manually reconnect" after SignalR connection closed

Description
The section "Manually reconnect" contains this example:
connection.Closed += async (error) =>
{
    await Task.Delay(new Random().Next(0,5) * 1000);
    await connection.StartAsync();
};

However, I could not get this to work and I've spent an annoying amount of time double-checking I had followed the various steps in the setup.
As far as I can tell, this example code is broken and not reliable, because if the network or server is not back and accepting connections within a second or 2, the call to StartAsync() will throw an exception, the connection attempt will be abandoned, and there will be no new call to the Closed handler, so no additional attempts will be made:
System.Net.Http.HttpRequestException: Connection refused (localhost:7321)
 ---> System.Net.Sockets.SocketException (111): Connection refused
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)

The code example does not show this and the surrounding text doesn't even hint about it. Quite the opposite, the current text in that section gives a clear impression that it is all you need to do.
I think the section should at least point this out.
For what it's worth, it seems calling the ConnectWithRetryAsync() method, provided earlier in the article, from the Closed event handler instead of directly calling StartAsync() makes it more robust.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/signalr/dotnet-client?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/signalr/dotnet-client.md
Document ID
36052173-7061-6d01-8aed-915685cd7cf6
Article author
@bradygaster

@oskarb, sorry to hear about your experience with this doc.  I'll take a look at it.  I could also be very out of date.  Thanks for relating the issue and for going the extra mile of making suggestions for corrections as well.  Very appreciated.

@BrennanConroy, should I change the client code example to use in combination with the ConnectWithRetryAsync() example so start failures are handled, instead of StartAsync()?  It is not clear to me if that is too much for the example or if adjusting the delay setting before reconnecting is the first place to start.

Calling ConnectWithRetryAsync is fine, the manual reconnect section is kind of old, and was written before WithAutomaticReconnect existed.

Thanks!  One more question:
ConnectWithRetryAsync(HubConnection connection, CancellationToken token) takes a CancellationToken.
Where exactly in the entire process is the CancellationToken expected to have been created in this case?

Probably when they call the method

My case is a service process that should use SignalR to talk to another service process. So there is no UI or UI-thread involved.
Maybe I missed something about the automatic reconnect feature.... in all of this I found various articles online that seem to say that if the server did an intentional and graceful shutdown, then the client will not automatically reconnect. And I got the impression that I would then anyway need to handle it in the Closed event. But perhaps that is not true, I so far did not try it.
Currently I'm using something similar to the code below. The real version of this does seem to work and reconnect every time I stop the server temporarily, but I'm not sure I have fully grasped the finer points regarding the cancellation tokens and Task usage yet (in general).

public class MyService : IHostedService
{
    private HubConnection connection;
    private CancellationTokenSource stopSignalRToken = new();

    public Task StartAsync(CancellationToken _)
    {
        connection = new HubConnectionBuilder()
                            .WithUrl("http://localhost:53353/ChatHub")
                            .Build();

        // Awaiting will hold here until the first successful connection.
        // Modules expecting to use the connection must anyway be prepared
        // for the connection to be down at any time, so we discard instead,
        // to proceed with other startup tasks.
        _ = ActivateContinuousConnection(connection, stopSignalRToken.Token)

        // ... other startup work

        return Task.CompletedTask;
    }

    public Task StopAsync(CancellationToken cancellationToken)
    {
        // ... shut down various modules

        // Close connection and stop reconnection attempts.
        stopSignalRToken.Cancel();

        return Task.CompletedTask;
    }

    public static async Task<bool> ActivateContinuousConnection(HubConnection connection, CancellationToken token)
    {
        connection.Closed += async (error) =>
        {
            await Task.Delay(new Random().Next(0,5) * 1000);
            await ConnectWithRetryAsync(connection, token);
        };

        return await ConnectWithRetryAsync(connection, token);
    }

    public static async Task<bool> ConnectWithRetryAsync(HubConnection connection, CancellationToken token)
    {
        // Keep trying to until we can start or the token is canceled.
        while (true)
        {
            try
            {
                await connection.StartAsync(token);
                Debug.Assert(connection.State == HubConnectionState.Connected);
                return true;
            }
            catch when (token.IsCancellationRequested)
            {
                return false;
            }
            catch
            {
                // Failed to connect, trying again in 5000 ms.
                Debug.Assert(connection.State == HubConnectionState.Disconnected);
                await Task.Delay(5000);
            }
        }
    }
}

Probably when they call the method

The client JavaScript would not create and pass a CancellationToken, so I was confused about where it was coming from, unless it was expected the developer would add a controller on the server side that created a CancellationToken and then passed that on to the Hub method that required one.  Here is what I think I was missing: Is the signalR framework is automatically creating a CancellationToken and passing in the case that the Hub method requires it as a parameter?  So the client does not send a CancelaltionToken, and yet the Hub method gets one if it requires one?


Adding dataTable component tests

Description:
Adding tests for the dataTable component and fixing issue #72 in order for the tests to pass.

Same build issue happens here as in #71.


Skips webhooks updates on push

Related to https://github.com/Shopify/develop-app-management/issues/1499

omits the webhook config on shopify app config push when the declarative webhooks app beta is enabled as we are preparing for this config to be a part of an app version

WHAT is this pull request doing?

pull in the app beta, use that to determine whether or not to include the config

How to test your changes?

Post-release steps

Measuring impact
How do we know this change was effective? Please choose one:

[ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[ ] Existing analytics will cater for this addition
[ ] PR includes analytics changes to measure impact

Checklist

[ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[ ] I've considered possible documentation changes
[ ] I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

@karenxie I'm not entirely sure what the org beta would be used for haha... I was thinking maybe partner UI changes... but even that should still be driven off of the app beta I'm pretty sure


VanillaFix unloads spawn chunks

I'm using the 1.16 branch; I don't know whether it applies to others as well. It does this irrespective of the initial load chunk option, which I don't think is related to the issue. This is a very serious concern because a lot of things depend on spawn chunks being loaded. For example:

Some people like to build iron farms there when lag is not a concern
Some people use command blocks in the spawn chunks rather than things done by data packs
Some people use the spawn chunks to do chain chunk loading up to their perma loaders such that they get jump started after a server restart

It may very well be that this is a VanillaFix optimization and that it is intended but if this is the case, there should be an option to disable this as it makes VanillaFix essentially unusable for technical players in many scenarios.

You can enable spawn chunk loading by setting  disableInitialChunkLoad in the config to false

wait does that not work?

I’ve pushed a fix that (hopefully) should work. If it doesn’t, please let me know

I had this issue a while back. Turning bug fixes option off should fix the issue. It's still an issue with vanillafix 1.12.2 1.0.10-150


immediately restart build on file change?

Please provide us with the following information:

OS?
uname -a
Linux martin-arch 4.9.6-1-ARCH #1 SMP PREEMPT Thu Jan 26 09:22:26 CET 2017 x86_64 GNU/Linux

This is current arch linux.
Versions.
angular-cli: 1.0.0-beta.26
node: 7.4.0
os: linux x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/core: 2.4.5
@angular/flex-layout: 2.0.0-beta.4
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.5

Repro steps.
Start ng serve or ng serve --hmr on any of your projects.
Save a file and while the rebuid process is running change something and save it again.
Then you will see ng building the first process till the end and restarts a new build.
But to be faster in development it would be great to stop the build when the file changes and start the rebuild immediately because the other changes from the first build arent needed anymore.
maybe there is a flag for this, but if it seems not to be documented...  I have seen this feature somewhere else, maybe the angular2-webpack on github?  I'm not sure anymore.
Thanks for your help.

When you edit some code you might need to rebuild one or more chunks. If we would cancel the first rebuild in favour of the second change the chunks might end up invalid.

If there's a good way of doing this, I do not know of it. Would be happy to implement if someone can point me to it.

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


02-ai-services-security Source Code Retrieving Wrong .env Variable

On the last section, for step 5, run the intended code python keyvault-client.py in the CLI. Once you input text the following error is logged: Parameter 'endpoint' must be a string.

Redundant issue


Does not handle accounts with no Reserved Instances well

I commented out the RI tab generators and it's working fine, but I had to troubleshoot why I was getting an error relating to a 'date' KeyField.

Added a naive error handler, so it will skip RI reports if no RI's


Add command argument to the daemon which allows to disable profile recorder controller

What type of PR is this?

/kind bug
What this PR does / why we need it:
This PR adds an command argument to the daemon which allows to disable the profile recorder controller when neither bpf-recorder or log-enricher are enabled.
Which issue(s) this PR fixes:

Does this PR have test?

Special notes for your reviewer:
Does this PR introduce a user-facing change?

Add an command argument to the daemon which allows to disable the profile recorder controller.

/assign @saschagrunert

Would you also agree with enabling or disabling the controller with an environment variable? I'm thinking this way because of OLM installs where it's very easy to pass an environment variable to the operator through a Subscription object.

I'll add an environment variable in addition. What do you think?

Also two nits - I think this should be a /kind feature and the switch (and the reason for introducing it) should be mentioned in installation-usage.md. Maybe if you think that the other switches should be mentioned as well, we could have a cleanup ticked that would document them all in one go, but currently our docs are not bad and I'd like to keep everything documented nicely.

I'll do this and also try to add a test.

Codecov Report

Merging #1290 (a34675d) into main (868709e) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1290      +/-   ##
==========================================
- Coverage   43.92%   43.88%   -0.04%
==========================================
  Files          49       49
  Lines        5514     5519       +5
==========================================
  Hits         2422     2422
- Misses       2972     2977       +5
  Partials      120      120

/test all

/retest

/lgtm


Character limit

I tried to make a note with a folder tree generated with tree -H baseHREF on linux however when trying to post it (8162 words - but  TONS of them are just html code) i get the error Error: request entity too large.
I can understand that a limit is needed to avoid strain, but an improvement could be to show the remaining characters available.
Edit: Forgot to mention, the preview is generated instantly instead.

Meanwhile @chmllr may I ask which is the char limit? So I can write it down instead of going by trial and error to find it out ^^

Thanks for reporting! NoteHub uses SQLite for persistence and doesn't apply any restrictions on the note length explicitly. So I assume your content is longer, that SQLite's maximum size of the TEXT type.
Also, I'd say you misuse NoteHub with this use case. Dropbox's Public folder would be more appropriate.

Yeah indeed I should use something else.
By the way I played around with your tool but I didn't managed to make a suggested code to hide\show blocks to work.
    $(document).ready(function(){
    $('.markdown-block .sqs-block-content h2').css('cursor','pointer');
    $(".markdown-block .sqs-block-content h2").nextUntil("h2").slideToggle();
    $(".markdown-block .sqs-block-content h2").click(function() {$(this).nextUntil("h2").slideToggle();});
    });
    </script>```

Guess that the issue lies somewhere in relation to ".sqs" since that code was meant for the squarespace site. How should I make the call for markdown blocks in notehub?

You are trying to create dynamic pages with JS functionality. This is not what NoteHub is designed for: all JavaScript code will be removed to keep the visitors safe. Notehub is for static Markdown/HTML pages only.


[main] Upgrade to latest dependencies

Cron -knative-prow-robot
/cc knative-sandbox/networking-wg-leads
/assign knative-sandbox/networking-wg-leads
Produced by: knative-sandbox/knobots/actions/update-deps
Details:
bumping knative.dev/networking 8da57ce...090366a:
  > 090366a upgrade to latest dependencies (# 525)
bumping knative.dev/pkg a00ba48...9179f78:
  > 9179f78 introduce new case convention for leader election config map (# 2302)

/retest


Minimal monitoring support

Hello,
I'm running a snakemake pipeline on a slurm HPC for dozens of similar datasets. The same pipeline is applied on one single dataset, so I sometimes have up to ten pipelines running in parallel.
Aim
My problem is very simple: I want to check which pipelines are currently running, which slurm jobs were submitted, and what is the status of these running jobs (e.g., pending/running/completed).
What I'm currently doing
For now, I'm creating an additionnal log files for each pipeline to tell which are running or not. I don't really have a better/clean way to find which snakemake pipeline are running.
Then, I made a script that:

parse the log files of the currently running pipeline
grab the IDs of the submitted jobs
run "seff " to have some basic info about these running jobs
summarise all this info in a table.

This is very dirty, and also very time-consuming because parsing long log files can take dozens of seconds for each pipeline run.
Summary
I think I could improve my little monitoring system, but maybe a snakemake feature for that could be great? It's a very simple task, but that is very informative: without that, I'm completely blind to what is currently running, because sometimes I have 200 running jobs in parallel and it's not easy to check which of these jobs are running on which dataset.

Yeah updated monitoring would be nice. I know it did/does [exist].(https://snakemake.readthedocs.io/en/stable/executing/monitoring.html) But I don't think its dependency, panoptes is being maintained anymore? Have you tried this to see if it works? I would be interested in contributing to this if it needs work.

Hello @cademirch, thanks for your quick answer.
I saw this panoptes option, but, as you mentioned, it doesn't seem to be maintained anymore. Actually, I didn't tried yet, because the snakemake doc was talking about "future releases", and the doc currently doesn't provide a lot of details about panoptes usage.
Also, my pipeline runs on a HPC, so I guess that I will need to make a SSH tunnel to access the Flask app?
I believe that a simple CLI with some options and a nice console display would have been enough, but I will try panoptes and see if it works and suits my needs :)

Sounds good. Looks like there was recent activity in panoptes issues, so I think the developers are still around.
Though a textual report/overview of the running workflow could be cool and useful.

Hello @cademirch,
I finally took some time to test Panoptes, sorry for the delay.
It doesn't provide much information right now: it only shows the status of each pipeline (e.g., 'running' or 'done') and the duration of each job. It's quite helpful, but I was expecting a few more features, for instance, showing the RAM usage, and the possibility to add more metadata in the main workflow table (so that we can better search inside the list of pipeline runs).
For now, I will continue with my current handmade monitoring CLI :)

@quentinblampey Sounds good. If you are willing to share your CLI, I would be interested in trying it out!

The CLI that I made is very specific to one of my (private) project, so it will not work for other pipelines, unfortunately...But I'm willing to share as much as I can, so I made this snippet repository with some minimal functionalities. Note that I used Bashly, it is a very nice feature-rich-CLI generator!
For now, this CLI is not very mature and not well documented, so I hope you will be able to find still some useful code that you could try. Maybe in the future, I will have something cleaner, more documented, and general to all pipelines on slurm: in this case I will of course share the complete version :)


Console command

/mappy lists a couple of console commands but I can't find the command that opens up the options.
I see it's in the game's own addon options but consider to make a standalone panel for it too because the stock options can't be moved from the center of the screen.

Ah, good catch, thanks.
I will add the redirect slash command to open the in-game options (under /mappy) and leave the help info under /mappy help. Although I remember that one of the recent beta builds broke that functionality even more (it was already broken, requiring 2 calls of the same function to open the options lmao). I need to check if it's also broken on retail.
As for the separate window, this will need some more writing since I've never done this before and I need to research how to create separate frames like that. I'm not sure if I will have the time for that, at least now, but I do see the appeal - it's modifying an existing UI element so moving the window out of view is useful. I will add this to my TODO, but I'm not sure when I will look at it.

The slash command part is done. It should appear on CurseForge after they approve it.


Docs improvements

Hello
I fixed some minor typos in the docs,
Hope it helps.
Br,
Tudor

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

Hi there!
Thanks for your contribution to the codebase. Before we can merge this, you'll have to sign the CLA.

hello, done

Thanks for your contribution!


Reference #206 - Added example to get a list of plugins in the required format

Updated the README.md to give instructions to extract a list of plugins from an existing server to create the list in the format required to create a plugin.txt file.

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

if instead of using curl -L you use curl -sSL it would probably be more clear without the header rows, wouldn't it?

@calossg - great idea, updated and tested.

LGTM can you squash and I'll merge?

@carlossg - I squashed it can you please merge.

@carlossg do you need me to make further changes to move this forward?


docs - example of manual arbitrary impl

Adds a section to the book for manually implementing Arbitrary, addresses https://github.com/proptest-rs/proptest/issues/252

@cameron1024 this looks close to done :)
@Centril - i'm not sure how else to reach you or @AltSysrq , but it seems that you are the sole owners of proptest-derive still. would either of you be able to update the owners to include the publish team? thanks!

This got closed when i switched branch from master to main. I'll re-open against the main branch.


Handle 429 errors from Hiro API with user-facing message

Currently the user sees no error when hitting 429s. Rather, they simply see the wallet "break" in various ways. We need a way to inform the user that they've been rate limited, with instructions on what to do next (e.g. simply wait).

I'm closing since we've since decided to resolve this via client-side throttling.


Restore support for stable odc

Coverage decreased (-0.09%) to 89.506% when pulling 23678b4535a5611de0b843d351a8f4b152382be0 on jeremyh:stable-odc into bd4b6d94fdd17333b7afea965a8dd6076fa3b919 on opendatacube:develop.


Refactored for cleaner Job creation method

Sorry I mean to merge this into my master branch, not yours :disappointed:
Once I'm finished I can provide a PR for your version and you can merge it if you want :smile:

Hey @nicklaw5 that sounds great, looks like there are many good improvements here.
Looking forward to looking at the PR

@nicklaw5 would you be interested in submitting a pull request for your changes?
I'd be happy to also make you a collaborator.
There is another pending pull request, but I'd like to have that build on your refactor if you are interested in merging back into this branch.

I was literally just considering this before getting you comment.
The only thing is, I haven't had time to re-write the tests. I can submit my changes if you want to take a stab at the tests? Sorry I just don't have time to do it in the next few weeks.
Also, I was planning on adding kue's failure backoff capability, but again, just haven't got around to it yet. I guess that can be added at a later date no doubt.

Nice 😀
If you open up a new pull request, we can work together or get help from others to get the tests up to date. Even if it doesn't get merged right away, it's nice to have it pending so everyone can see where things are at.
Thanks! 😊

Ok will submit my changes tomorrow.


conflict with webmock

Hi,
I am getting the following exception
.rvm/gems/ruby-2.0.0-p0/gems/net-http-persistent-2.8/lib/net/http/persistent.rb:959:in `rescue in request': too many connection resets (due to HTTP session not yet started - IOError) after 0 requests on<PHONE_NUMBER>7420, last used<PHONE_NUMBER>.051968 seconds ago (Net::HTTP::Persistent::Error)
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/net-http-persistent-2.8/lib/net/http/persistent.rb:968:in `request'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/http/persistent.rb:31:in `response_for'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/http/default.rb:39:in `request'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/bridge.rb:616:in `raw_execute'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/bridge.rb:594:in `execute'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/bridge.rb:190:in `quit'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/common/driver.rb:168:in `quit'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/sauce-3.0.4/lib/sauce/selenium.rb:41:in `method_missing'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/sauce-3.0.4/lib/sauce/capybara.rb:110:in `finish!'
	from /Users/robin/.rvm/gems/ruby-2.0.0-p0/gems/sauce-3.0.4/lib/sauce/capybara.rb:85:in `block in browser'

I tracked it down to a conflict in WebMock: https://github.com/bblimke/webmock/issues/208
However, since VCR/WebMock is quite common I thought I'll let you know. Maybe you could help investigating. If not, feel free to close.
Thanks,
Robin

thanks for the thread! :+1:


update func instanceLogDelete()

Updated the instanceLogDelete() function to allow deleting of logs from instances in projects other than default.

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

Nice catch!
Can you rebase your branch to get rid of the merge commit and also edit your commit message to include the required:
Signed-off-by: Firstname Lastname <email>

I would expect something like:

git rebase origin
git commit --amend -s
git push --force

Should do it.

Sorry first time creating a pull request for someone else's code. Updated the Signed-off with my name but still failing.

I am going to close this one and try this again, sorry learning how to do this


Exception UnAuthorizedException thrown instead of error/403 template

Hi,
All the module works fine but when a role has no permission to access to a controller, a exception is thrown. Also I want to know how can I change this page to a custom 403 page error.

Thanks!!
Good job!

Please check https://github.com/bjyoungblood/BjyAuthorize/blob/master/docs/unauthorized-strategies.md

Also, you can set a custom template via configuration overrides

My problem is that this is not the template of the plugin, I think this is a template of Zend Framework, and I can't override it. Any idea?

I've just found how to display the plugin error/403 template. At method onDispatchError() on UnauthorizedStrategy.php i've changed the las lines by:
$model    = new ViewModel($viewVariables);
$viewModel = $event->getViewModel();
$viewModel->setTemplate('error/403');
$viewModel->setVariables($viewVariables);

An with that i can see this template:

Ah yes, exceptions cannot be caught by the BjyAuthorize strategy, that's indeed true.
What you want is to simply adapt the template to deal with this particular sort of error. You can simply adapt the zf2 template (which is in the skeleton application, btw) to do that

But my question is, where is the exception thrown? On the response?

@danitome24 the exception may be thrown anywhere, tbh. Usually happens in controller plugins and view helpers btw


Commuincating with SPP module

I downloaded the Blue Serial app and it works perfectly and displays messages sent from the SPP module correctly. I downloaded code from here and when i try to run it, it wont display the results properly. What changes did you make to your code in Blue Serial store app?

What are you talking about?

There are no differences between the app on play store and this code. I
don't think there should be any difference.
On Thu, May 21, 2015 at 5:49 AM, Diego Giovanazzi<EMAIL_ADDRESS>wrote:

What are you talking about?
—
Reply to this email directly or view it on GitHub
https://github.com/plastygrove/BlueSerial/issues/6#issuecomment-104048993
.

when i downloaded your app and imported it into android studio, it looked different from the play store one. Then i ran into some problem, and i thought the codes were different. Its my mistake, its working now. Sorry for the trouble caused.

Ok no problem . I just changed some lines for my proyect.bye
El vie., may. 22, 2015 10:15 AM, JitinVP<EMAIL_ADDRESS>escribió:

when i downloaded your app and imported it into android studio, it looked
different from the play store one. Then i ran into some problem, and i
thought the codes were different. Its my mistake, its working now. Sorry
for the trouble caused.
—
Reply to this email directly or view it on GitHub
https://github.com/plastygrove/BlueSerial/issues/6#issuecomment-104657030
.

What's the link to the one in play store?


Collect requests_count stat

puma 5.0 added a requests_count gauge to the stats: https://github.com/puma/puma/pull/2106

closed by #28

closed by #28


ZeroconfResolver.ResolveContinuous causes System.NullReferenceException

Hi, I am using the ZeroconfResolver.ResolveContinuous() Method to watch for new camera devices in my local network. Pretty randomly, I am getting a System.NullReferenceException. Am I doing something wrong? I am not very experienced with Rx, it is my first try :)
The Code is running on a windows 7 machine. The Frameworkversion is 4.61.
My Code:
        public VirbCameraProvider()
        {
            Cameras = new ObservableCollection<Virb>();
            m_Disposables = new List<IDisposable>();
            m_Disposables.Add(ZeroconfResolver.ResolveContinuous("_garmin-virb._tcp.local.")
                .ObserveOn(SynchronizationContext.Current)
                .Subscribe(HostFound));
        }
...
        private void HostFound(IZeroconfHost host)
        {
            if (!host.Services.ContainsKey("_garmin-virb._tcp.local.") || host.Id != host.IPAddress) return;
            if (Cameras.Any(v => v.Ip == host.IPAddress || v.Name == host.DisplayName))
            {
                var ipChangedVirb = Cameras.SingleOrDefault(v => v.Name == host.DisplayName && v.Ip != host.IPAddress);
                if (ipChangedVirb == null)
                    return;
                RemoveCamera(ipChangedVirb);
            }
            var virb = new Virb(host.IPAddress, host.DisplayName);
            virb.StateNull
                .ObserveOn(SynchronizationContext.Current)
                .Subscribe(count =>
            {
                if (count > 4)
                    RemoveCamera(virb);
            });
            Cameras.Add(virb);
        }

Stack Trace:
System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Zeroconf
  StackTrace:
       at Zeroconf.NetworkInterface.<NetworkRequestAsync>d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Zeroconf.NetworkInterface.<NetworkRequestAsync>d__0.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 33
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Zeroconf.ZeroconfResolver.<ResolveInternal>d__4.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.cs:line 75
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Zeroconf.ZeroconfResolver.<ResolveAsync>d__15.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.Async.cs:line 69
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Zeroconf.ZeroconfResolver.<>c__DisplayClass8_0.<<Resolve>b__0>d.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.Observable.cs:line 56
    --- End of stack trace from previous location where exception was thrown ---
       at System.Reactive.PlatformServices.DefaultExceptionServices.Rethrow(Exception exception)
       at System.Reactive.Stubs.<.cctor>b__1(Exception ex)
       at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
       at System.Reactive.Concurrency.ObserveOn`1.ObserveOnSink.OnErrorPosted(Object error)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at PavementPicker.App.Main() in C:\dev\euk\PavementPicker\PavementPicker\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

I am getting intermittend NullReferenceExceptions too from ZeroconfResolver.ResolveAsync.
Out workaround is to use System.Timers.Timer to call ZeroconfResolver.ResolveAsync inside a try/catch every 10 seconds. It fails every 20 times or so. But we can live with that.

So not saying there isn't a bug here (we should really never be throwing NullReferenceExcetions), but it is possible to have exceptions/errors in reactive sequences that you have to deal with.
I recommend some of the techniques here:
http://www.introtorx.com/Content/v1.0.10621.0/11_AdvancedErrorHandling.html#AdvancedErrorHandling

I'm having a tough time trying to find the actual place that's throwing this though. Can you please disable Just My Code and set a first chance exception break for NullReferenceException to get a better call stack?

okidoke, let me try

I got one, with Just My Code disabled:
System.NullReferenceException occurred   HResult=-2147467261   Message=Object reference not set to an instance of an object.   Source=System   StackTrace:        at System.Net.Sockets.UdpClient.EndReceive(IAsyncResult asyncResult, IPEndPoint& remoteEP)        at System.Net.Sockets.UdpClient.<ReceiveAsync>b__64_1(IAsyncResult ar)        at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=System
StackTrace:
at System.Net.Sockets.UdpClient.EndReceive(IAsyncResult asyncResult, IPEndPoint& remoteEP)
at System.Net.Sockets.UdpClient.b__64_1(IAsyncResult ar)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.NetworkInterface.<>c__DisplayClass1_2.<b__1>d.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 124
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 79
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.NetworkInterface.d__0.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 33
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.NetworkInterface.d__0.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 33
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.ZeroconfResolver.d__4.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.cs:line 75
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.NetworkInterface.d__0.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 33
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.ZeroconfResolver.d__4.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.cs:line 75
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.ZeroconfResolver.d__15.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.Async.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
InnerException:
System.NullReferenceException occurred
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Zeroconf
StackTrace:
at Zeroconf.NetworkInterface.d__1.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 159
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.NetworkInterface.d__0.MoveNext() in C:\projects\zeroconf\Zeroconf.DotNetCore\NetworkInterface.cs:line 33
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.ZeroconfResolver.d__4.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.cs:line 75
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.ZeroconfResolver.d__15.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.Async.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Zeroconf.ZeroconfResolver.<>c__DisplayClass8_0.<b__0>d.MoveNext() in C:\projects\zeroconf\Zeroconf.Shared\ZeroconfResolver.Observable.cs:line 56
--- End of stack trace from previous location where exception was thrown ---
at System.Reactive.PlatformServices.DefaultExceptionServices.Rethrow(Exception exception)
InnerException:
`

Thanks, that's helpful. There's basically a race condition in the Dispose of the UdpClient and the listener thread. The core issue is that we can't cleanly break from the ReceiveAsync so we force the dispose. The correct fix here is for the listener loop to swallow that exception. I'll take care of this.

Should be fixed in https://github.com/onovotny/Zeroconf/commit/c5f184d8b76d4e70eb2393a764679020af7b79ca

2.7.2 is live on NuGet with this fix: https://www.nuget.org/packages/Zeroconf/2.7.2

Thanks!


usbmuxd on unstable has libinput errors

Describe the bug
usbmuxd on the latest nixos-unstable doesn't detect any devices and instead prints libinput errors.
[20:30:28.940][3] usbmuxd v1.1.1 starting up
[20:30:28.943][3] Successfully dropped privileges to 'usbmux'
[20:30:28.943][3] Using libusb 1.0.24
[20:30:28.969][3] Initialization complete
libusb: warning [parse_config_descriptors] config length mismatch wTotalLength 39 real 30
libusb: error [parse_config_descriptors] descriptor is not a config desc (type 0x00)

This is the output of usbmuxd from nixos-20.09 and works as expected:
[20:31:32.713][3] usbmuxd v1.1.1 starting up
[20:31:32.716][3] Successfully dropped privileges to 'usbmux'
[20:31:32.746][3] Initialization complete
[20:31:32.746][3] Connecting to new device on location 0x1001e as ID 1
[20:31:32.747][3] Connected to v2.0 device 1 on location 0x1001e with serial number 00000000-0000000000000

To Reproduce
Steps to reproduce the behavior:

use usbmuxd from nixos-unstable
run sudo usbmuxd --foreground --user usbmux

Expected behavior
My phone should appear to utilities like ideviceinfo
Notify maintainers

@infinisil
Metadata

system: "x86_64-linux"
host os: Linux 5.10.7, NixOS, 21.03.20210117.68398d2 (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.4pre20201205_a5d85d0
channels(root): "nixos-21.03pre263901.68398d2dd50"
channels(aamaruvi): ""
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: usbmuxd
# a list of nixos modules affected by the problem
module: nixos/usbmuxd

Can you try a bisection to figure out what broke this?

Can you try a bisection to figure out what broke this?

This seems to be libusb/libusb#825.

This seems to be libusb/libusb#825.

@S-NA Hmm, but the logs that were posted show version 1.1.1 for both before and after

@S-NA Hmm, but the logs that were posted show version 1.1.1 for both before and after

Correct, usbmuxd reports version 1.1.1 but the issue is not with it but with libusb. According to the first log libusb reports version 1.0.24, which according to the issue I referenced above seems to be affected.

Correct, usbmuxd reports version 1.1.1 but the issue is not with it but with libusb. According to the first log libusb reports version 1.0.24, which according to the issue I referenced above seems to be affected.

Ahh I see, makes sense

Ahh I see, makes sense

It is the libusb issue, building libusb from master solved the issue.

It is the libusb issue, building libusb from master solved the issue.

Closing, because libusb is now built with a patch that fixes this.


[Bug] Pasting into text entry does not work on iOS

Description
Hi, I'm a Maui / markup newbie and stumbled into this problem. In the settings, copy and pasting into Text entry field doesn't work.
Stack Trace
None. UI bug
Link to Reproduction Sample
https://github.com/CommunityToolkit/Maui.Markup/tree/main/samples
Steps to Reproduce

Run the sample app
Go to settings
Copy paste a number into the text entry

Expected Behavior
Pasted value should show-up
Actual Behavior
Paste does not work. But works in other app like Messages. So it looks like copy > saves to device clipboard but paste doesn't work in the Maui app. But paste works in other iOS apps.
Basic Information
❯ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.400
 Commit:    7771abd614

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.5
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.400/

global.json file:
  Not found

Host:
  Version:      6.0.8
  Architecture: arm64
  Commit:       55fb7ef977

.NET SDKs installed:
  6.0.400 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Workaround
None that I know of
Reproduction imagery
https://user-images.githubusercontent.com/104405893/189470801-93f2421d-2206-454c-a050-5de5d4ac8767.mp4

@ss-proc have you tried this functionality in a new .NET MAUI project? I would be surprised if there was anything this toolkit is doing to cause the issue.

Hi @bijington @brminnick To re-create this issue in the maui repo https://github.com/dotnet/maui/issues?q=is%3Aissue+is%3Aopen do I need to create this with xaml or can I use maui.markup?

You don't need to use XAML however I would advise against using Markup. You can build the sample using just C#


Error 0200: Driver Not Loaded

I have an issue with Mac-Can where I can not use the PCBUSB-Monitor at all with my peak devices. I have version 0.11 libPCBUSB installed and ./can_moni works fine, but for some reason the latest version of Mac-Can will output Error 0200: Driver Not loaded for 2-3 seconds before crashing. Any idea what might be wrong?
I am running an M1 Pro Max 16 inch laptop

I guess you are running Monterey. There is an unsolved issue with the PCBUSB-Library version 0.11; see issue #6 and the troubleshooting guide.
My advice, take version 0.10.1, it might run.

I am, that fixed my issue. I am able to use MacCan monitor now. Is there any plans to be able to decode the information using a DBC file?

I am, that fixed my issue. I am able to use MacCan monitor now. Is there any plans to be able to decode the information using a DBC file?

How did you solved it?

@InfallibleProgrammer DBC file - in the far far future (but you can post an issue as a reminder for me).

I ended up using 0.10.1 and it magically worked :).
Any recommendations for a DBC parsing cantool for M1 Macs.

@InfallibleProgrammer I'm new on macs. Could you help me? I'm trying to use start using Mac to read some CAN devices and I had the same issue as you on v 0.11. How can I be sure that I'm installing libPCBUSB library in the right way? after I downloaded the library I'm running, sudo ./install.sh, is that the right way? do I need to remove v 0.11 or I just install version 0.10?
on the other hand, I have build some DBC parsing tools on python already, so I can help you with that, I build them for windows and linux, but no big difference there.

@InfallibleProgrammer, I tested can_moni and it's working properly. I hope you can help me.

@InfallibleProgrammer, I tested can_moni and it's working properly. I hope you can help me.

The CLI program can_moni did not load the library dynamically. It´s a standalone version.

Bug fix release v0.11.1 of the PCBUSB library available. Issue can be closed.


Comment on the commenting in CIViC

I'm not sure about the need for a separate title and text box for every comment in CIViC.  Currently you can create a comment with title only, title and text, text only.  Then when a series of these are displayed you see four element for every comment (user, time, title and text).
Do we really need/want a title for each comment?  If we eventually support markdown we could leave it to the user to format their comment as they see fit with titles, sections, etc.
I find that when I am making revisions, the fact there is both a title and text field that I am expected (though not required) to fill in feels like a lot of work.  Also a string of comments with titles on each feels less like a conversation.  Anyone else have feelings/thoughts on this?

Titles are no longer used for comment boxes. This can be closed now.


deprecate nodejs <8.17, npm<6

nodejs boron (v6) entered maintenance on 2016-10-18 and EOL since 2019-04-30. It is not considered in active use anymore.

prepublish is no longer a lifecycle script starting with npm v5.

Can we bump to Node.js 14/16, or are you expecting that there are still people using these old Node.js versions?


Write a issue template

In order for beginners in the field of OpenSource to enjoy working together, we need a Issue template.
Please look at some good examples on the internet and provide something appropriate.
Thanks a lot

Hey @Gismo1337 👋. I am a beginner to Open Source and really looking forward to contribute. Could you please assign this issue to me under Hacktoberfest

Hey @Gismo1337 👋. I am a beginner to Open Source and really looking forward to contribute. Could you please assign this issue to me under Hacktoberfest

did it.
have fun!

hi , @Gismo1337 , could I work on this issue , I am beginner to open source , and willing to contribute in this issue for Hacktober fest

@rising-star2712 please get in touch with @VividhPandey003 . I already assign her/him

Hey👋, @rising-star2712; Actually I am currently working on this issue.😅

ok @VividhPandey003

@Gismo1337 Should I create a general template or I was thinking to divide it into different readmes' like bug report, feature request. Can you please guide me regarding this

@VividhPandey003 i think one general would be enough for this little project. but i wont restrict this. if you think its a good idea, feel free

Okay, Thank You. @Gismo1337

Thank You @Gismo1337


typeof(IDictionary<,>).IsInterface incorrectly return false

https://deck.net/69e4a2d177e5f669d3337bd67f8136b2
public class Program
{
    public static void Main()
    {
        Console.WriteLine(typeof(IDictionary<,>).IsInterface);
        Console.WriteLine(typeof(IDictionary<string, string>).IsInterface);
    }
}

Hi @TriEdgeAI – Thanks for pointing out this issue. We will investigate and try to fix right away. We'll keep this issue updated with our progress.


About gpu_num

How many gpus do you use?I change batch size to 4, but gpu still crashes.

It seems to work with one gpu. Why can't it work with multiple gpus?

I tried 4 or 8 GPUs. The environment is Pytorch 0.4.


FlightRadar documentation?

Readme.md of this project suggests that FlightRadar24.com provide API access if one purchases the business plan; however there is no mention of API access on the FlightRadar24.com website at either of the links provided (https://www.flightradar24.com/premium/ or https://www.flightradar24.com/terms-and-conditions). Are you able to share where you got that information?
In a similar vein: Is the underlying API that this library uses officially documented anywhere?

This project is not authored by the flightradar24 website and has no responsibility to maintain this API. This is a personal repository and the code provided here works without the need to buy anything. However, this API uses data from the flightradar24 site. For this reason, you should not use this API without first reading the flightrada24 website terms and conditions. In addition, if you want to use it commercially, you must hire the services of the flightradar24 website.
As the author of this repository, I am not responsible for any legal proceedings for the misuse of those who use this API.


Please add feture for database + mediafile beckup/restore

Please add:
https://github.com/django-dbbackup/django-dbbackup

Hey @mmmcorpsvit! Thank you for suggestion, but We feel that this is out of scope for problems that Saleor should handle out of the box.
Currently, there are many ways to go about setting backups for your site, depending on platform, deployment method one is using, or even personal preference.
Giving the app you are mentioning a skim, there should be no problems for it to work with Saleor, so if somebody is looking for python solution, it should work for him.
Thanks!

simple e-shop not full without backup/restore  functions, because there already need system administrator this is not possible always (sorry my poor English)

@mmmcorpsvit Cloud services like Google Cloud and AWS provide robust solutions for backups. We've never used django-dbbackup and it does not seem to be a very popular project.


Add certificate error

Tried to add a certificate
Got an error:
Private Key is invalid. Please make sure it is a RSA key.
Certificate is invalid.
The same key and the certificate added successfully in Rancher 1.6

Useful
Info

Versions
Rancher v2.0.0-beta4 UI: v2.0.38

Access
local admin

Route
authenticated.cluster.index

I added elliptical to the list that's checked for, if it's still not working in the next build can you tell us what the key starts with?  ( ----- BEGIN ... ----- )

Same issue here. Key starts with:
-----BEGIN RSA PRIVATE KEY-----

Rancher
v2.0.0

User Interface
v2.0.41

+1

It's broken in 2.0.0, I broke all validation in the UI instead of adding elliptical curve support.  Will be fixed in the first patch release.
You can go to the API in your browser and add it if you need one now:

Click "view in API" action on the project
Click certificates or namespacedCertificates link
Click "Create" button
Click the sideways <-> icons for multi-line input
Paste in cert and keys, choose namespace if applicable
Click "Show request"
Click "Send request"

Thanks @vincent99, API works like a charm!

API does also not work for us:
"actions": { },
"baseType": "error",
"code": "InvalidBodyContent",
"fieldName": "certs",
"links": { },
"message": "failed to read private key: asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:13 isCompound:true}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false}  @5",
"status": 422,
"type": "error"
}```

After some investigation I saw the manual created tls certs have \n and the api replaces that with \r\n. Are those line feeds supported or maybe the problem?

Endpoint used:
```/v3/projects/c-xzxpx:project-xxwcb/certificates```

In looking at this workaround i found i wasn't able to see the /certificates link. Turns out it was one level deeper under the projects. Might want to update the workaround to be clearer on that.

hi @tfiduccia,
I have been trying to use the API to deploy the certificate but i continue to get - "failed to parse key, not valid pem format"
I have validated the certificate and the key via openssl and by uploading to rancher 1 without a problem.
Is there anything special required to upload the certificate via the API?
Regards,
Tarek

It needs to be PEM-encoded PKCS#1, i.e. start with ----- BEGIN RSA PRIVATE KEY -----.  Not ----- BEGIN PRIVATE KEY ----- (PKCS#8), encrypted, etc.

Hi @vincent99,
Many thank for your reply.
I have been trying to convert a pfx cert to pem version using open ssl ... it always generates BEGIN PRIVATE KEY .. however, I was able to run another openssl comment to get a key that starts with BEGIN RSA PRIVATE KEY but still no luck.
Does BEGIN CERTIFICATE also start with BEGIN CERTIFICATE?
Did you use any tools?
Regards,
Tarek

Finally got it working using the following commands to convert a PFX certificate to the required pem
Extract Private Key: openssl pkcs12 -in app.pfx -nocerts -out app.pem
Extract Certificate: openssl pkcs12 -in app.pfx -clcerts -nokeys -out app-cert.pem
Decrypt encrypted key if pfx had a password: openssl rsa -in app.pem -out app.key
Then used the API :)

This appears to still be broken for me in Rancher v2.0.2. I took a key and cert that works via the API and I get invalid RSA key error when attepting to use the UI.

@tahoward - what does your key start with?

This is issue continue to me v2.0.2

@jadsonlourenco - what does your key start with?

@tfiduccia -----BEGIN PRIVATE KEY-----

I found a temp solution here: https://forums.rancher.com/t/adding-certificates-fail-with-private-key-is-invalid-solved/10585
Also another guy open a new issue: https://github.com/rancher/rancher/issues/13779

The certificates API is located under the project (See screenshots):
Example URL:
https:///v3/projects/c-pp5b9:project-7d25l/certificates

When using the API it is important to Enlarge (the <-> icon) the textfields for both the certs and key otherwise the certificate will be posted wrong, resulting in errors like "failed to parse key, not valid pem format" or "failed to find cert that matched private key"

-----BEGIN EC PRIVATE KEY-----
leads to Validation failed in API: certs failed to read private key: asn1: structure error: tags don't match (2 vs {class:0 tag:4 length:32 isCompound:false}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} @5
rancher 2.0.4

same problem

As covered in here the key must still be PKCS#1.  PKCS#8 is in the next release.

openssl rsa -in key.pem -out newkey.pem to convert keys starting with ----- BEGIN PRIVATE KEY ----- (PKCS#8) to keys starting with  ----- BEGIN RSA PRIVATE KEY -----.

I have just tried adding a PKCS#7 and a PEM certs separately using Cloudflare as well and none will work with Rancher 2.0 currently.

The command to convert PKCS8 to PKCS1 is already mentioned, it's also covered here https://rancher.com/docs/rancher/v2.x/en/installation/single-node-install/#convert-pkcs8.
PKCS8 support will be in the next release, v2.0.7.


output of npm run setup looks a bit unorganized

@vegarringdal can you take a look if you have time?

its because I run both at the same time, that way it will be faster.

i'd actually be in favor of doing it one by one so we can see the errors npm may throw (and we can see which npm install caused it)

ok, I can fix that

https://github.com/monterey-framework/monterey/pull/142


Allow resizing in such a way that the video doesn't play over a phone's front camera notch.

I'll be frank and admit first thing that I am not entirely sure how other players do it but both youtube, VLC and a few others account for the camera notch in my phone.  From some quick googling it seems it is possible to do account for as there is a LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER  option though I am not sure it can be changed on the fly.

Just Player intentionally covers whole screen including the area around notch/cutout. I feel strongly about that. Doing this ensures that the picture is centered and symmetrically affected by the rounded screen corners (if there are any).

Just Player intentionally covers whole screen including the area around notch/cutout. I feel strongly about that. Doing this ensures that the picture is centered and symmetrically affected by the rounded screen corners (if there are any).

But it isn't symmetrically for me though, there is a hole in the left part of my screen that disrupts the symmetry.
I'd be absolutely fine if for this to work both sides of the screen are cut off, yes it is less space to play the video in but at least I get to see the entire video.

But it isn't symmetrically for me though, there is a hole in the left part of my screen that disrupts the symmetry.
I'd be absolutely fine if for this to work both sides of the screen are cut off, yes it is less space to play the video in but at least I get to see the entire video.


Publish Action fails validation.

2024-02-18T14:39:03.7743240Z Download action repository 'flakestry/flakestry-publish@main' (SHA:fd80e4c1432592211aa496126a14d8dbfdd5b373)
2024-02-18T14:39:04.3685558Z ##[error]flakestry/flakestry-publish/main/action.yaml (Line: 29, Col: 12): Unexpected symbol: '"false"'. Located at position 27 within expression: inputs.ignoreConflicts || "false"
2024-02-18T14:39:04.3708041Z ##[error]GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. flakestry/flakestry-publish/main/action.yaml (Line: 29, Col: 12): Unexpected symbol: '"false"'. Located at position 27 within expression: inputs.ignoreConflicts || "false"
   at GitHub.DistributedTask.ObjectTemplating.TemplateValidationErrors.Check()
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
2024-02-18T14:39:04.3735643Z ##[error]Failed to load flakestry/flakestry-publish/main/action.yaml

Opened in wrong repo, already reported in https://github.com/flakestry/flakestry-publish/issues/3


Fixed bond size for DDC Staking

Updates

pallet-ddc-staking now requires one fixed size bond for both Storage and Edge roles instead of the bond limited by the lower boundary only
New set_staking_configs call in pallet-ddc-staking to allow to set DDC Staking bond size by the authority
spec_version for the cere-dev runtime incremented

@khssnv do you need data migrations?

I think it is worth making migrations only if we have the updated storage items in a public network like Mainnet or Testnet. Here we remove a couple of u128 storage items and they will become orphans in the Devnet database. Preserving some workforce for that price sounds reasonable 😬


HTML: adding spectroscopy section to rendering

This should not be merged just yet, but serves as a placeholder and testing ground to see how it will look like.
The notebook runs and rendered but is not particularly pretty, and also should go through a review before publishing on the website.

@troyraen @jkrick - here is the rendered version of the spectroscopy notebooks. There is a timeout in the section, otherwise it's nice that we have a plot at the end, independently of any issues with the previous cells.

Looking at the rendered version here I see that it's the JWST function timing out on the source labeled "JADESGS-z7-01-QU". That function takes about 15 min. on Fornax with most of that coming from this source and the next one ("TestJWST"). I'm not sure if we want to increase the timeout limit (if that's even possible) or just pick different targets. Might be a question for @afaisst.

First run of the notebook run into this TimeoutError with the MAST cell (copied the traceback here, so we have it easily accessed once the CI is restarted):
---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
File <timed exec>:2

File ~/project/spectroscopy/code_src/mast_functions.py:48, in JWST_get_spec(sample_table, search_radius_arcsec, datadir, verbose, delete_downloaded_data)
     46 # Get the spectra
     47 print("Searching and Downloading Spectra... ")
---> 48 df_jwst_all = JWST_get_spec_helper(
     49     sample_table, search_radius_arcsec, datadir, verbose, delete_downloaded_data)
     50 print("done")
     52 # Group

File ~/project/spectroscopy/code_src/mast_functions.py:116, in JWST_get_spec_helper(sample_table, search_radius_arcsec, datadir, verbose, delete_downloaded_data)
    113     continue
    115 # Retrieve spectra
--> 116 data_products_list = Observations.get_product_list(query_results)
    118 # Filter
    119 data_products_list_filter = Observations.filter_products(
    120     data_products_list, productType=["SCIENCE"], extension="fits",
    121     calib_level=[2, 3, 4],  # only calibrated data
    122     productSubGroupDescription=["X1D"],  # only 1D spectra
    123     dataRights=['PUBLIC'])  # only public data

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/utils/class_or_instance.py:25, in class_or_instance.__get__.<locals>.f(*args, **kwds)
     23 def f(*args, **kwds):
     24     if obj is not None:
---> 25         return self.fn(obj, *args, **kwds)
     26     else:
     27         return self.fn(cls, *args, **kwds)

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/utils/process_asyncs.py:26, in async_to_sync.<locals>.create_method.<locals>.newmethod(self, *args, **kwargs)
     22 @class_or_instance
     23 def newmethod(self, *args, **kwargs):
     24     verbose = kwargs.pop('verbose', False)
---> 26     response = getattr(self, async_method_name)(*args, **kwargs)
     27     if kwargs.get('get_query_payload') or kwargs.get('field_help'):
     28         return response

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/utils/class_or_instance.py:25, in class_or_instance.__get__.<locals>.f(*args, **kwds)
     23 def f(*args, **kwds):
     24     if obj is not None:
---> 25         return self.fn(obj, *args, **kwds)
     26     else:
     27         return self.fn(cls, *args, **kwds)

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/mast/observations.py:517, in ObservationsClass.get_product_list_async(self, observations)
    514 service = self._caom_products
    515 params = {'obsid': ','.join(observations)}
--> 517 return self._portal_api_connection.service_request_async(service, params)

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/utils/class_or_instance.py:25, in class_or_instance.__get__.<locals>.f(*args, **kwds)
     23 def f(*args, **kwds):
     24     if obj is not None:
---> 25         return self.fn(obj, *args, **kwds)
     26     else:
     27         return self.fn(cls, *args, **kwds)

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/mast/discovery_portal.py:363, in PortalAPI.service_request_async(self, service, params, pagesize, page, **kwargs)
    360     mashup_request[prop] = value
    362 req_string = _prepare_service_request_string(mashup_request)
--> 363 response = self._request("POST", self.MAST_REQUEST_URL, data=req_string, headers=headers,
    364                          retrieve_all=retrieve_all)
    366 return response

File ~/project/.tox/py311-buildhtml/lib/python3.11/site-packages/astroquery/mast/discovery_portal.py:187, in PortalAPI._request(self, method, url, params, data, headers, files, stream, auth, retrieve_all)
    182 response = super(PortalAPI, self)._request(method, url, params=params, data=data,
    183                                            headers=headers, files=files, cache=False,
    184                                            stream=stream, auth=auth)
    186 if (time.time() - start_time) >= self.TIMEOUT:
--> 187     raise TimeoutError("Timeout limit of {} exceeded.".format(self.TIMEOUT))
    189 # Raising error based on HTTP status if necessary
    190 response.raise_for_status()

TimeoutError: Timeout limit of 600 exceeded.

If possible, I would vote for keeping that JADES target since it is a good test of the JWST system.  I just looked it up and it is a faint lyman break galaxy for which we couldn't get spectra without JWST, so the perfect use case for wanting to use MAST.  MAST has been helpful so far, so maybe we could ask them about the timeout error if that hasn't already happened.


[Feature Request] hanime.tv: Merge episodes

What feature should be added to this source?
Make hanime.tv's separate episode listings merge into one, for example, there's Hentai 1 and Hentai 2, but make them merge into one title Hentai with two episodes inside.
I hope you understand because I'm terrible at explaining things.

I'm not sure if it's possible to implement because that's how they are on the hanime.tv website, but there's an [app that made it](, merging the episodes into one hanime title, but I wanted it on Aniyomi.

I'm not sure if it's possible to implement because that's how they are on the hanime.tv website, but there's an app that made it, merging the episodes into one hanime title, but I wanted it on Aniyomi.

Can u share app link @KazKaz90

Can u share app link @KazKaz90

@stam76
https://github.com/Jacekun/CloudStream-3XXX


Switch to dune ?

Makes it easier to use on Windows to build other dune-using code which depend on this one.

OK, I see this was proposed as well in #67, but the discussion there went morphed into a discussion of merging ppx_tools and ppx_tools_versioned.
For info, my motivation is building merlin on Windows which now depends on ppx_tools.

Closing to focus on #67 which is more far-reaching.


Fixed Required/Conditionally Required/Optional coding errors

@giocorti : Small thing, but can you remove the .DS_Store and any other invisible Mac OS files from the branch/PR?

@giocorti: You should add .* to your .gitignore.

@giocorti: Updating the gitignore works for the future, but do not remove the existing files. Sorry if my comment was misleading. You still have to remove the one you've already committed by hand.

IMHO, before a PR is opened on the main google/transit repo the .gitignore should be removed (along with any stray files).

LGTM

LGTM, thanks @giocorti!


update to 21.10

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

*******> update.10

Author: Stephan Schott-Verdugo

Date: September 16, 2021

Programs: packmol-memgen

Description:
             1) Adds missing extra_solvents.lib
             2) Fix 2LPG packing param
--------------------------------------------------------------------------------
.../packmol_memgen/data/extra_solvents.lib         | 789 +++++++++++++++++++++
.../packmol_memgen/packmol_memgen/data/memgen.parm |   2 +-
2 files changed, 790 insertions(+), 1 deletion(-)

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

Documentation on acceptable licenses can be found here.


Support index in fontconfig matching and font collection loading

FontConfig may return an index when a font is matched within a TrueType of OpenType Collection (*.ttc or *.otc). This is currently ignored, and the face at index 0 is always loaded.
Likewise, there should be an index option, applicable to opening collections.

Implemented in PDF::Font::Loader 0.8.12


Feature request: Browser Library object

Analog to "Teleporter:", maybe something like "Browser:"  which spawns a web browser in the world.
Possibly with variations like

"Browser_Private:" - shows the browser only for the user having triggered the action
"Browser_Readonly:" - others could see the browser, but not interact with it. Good for demonstration purposes or showing presentation slides.
"Browser_Public:" - Everyone can see and interact with the browser

I think with browsers on their way out, this feature request might be somewhat moot.
If there's a lightweight HTML rendering engine which renders to a texture, and provides hooks where you can define colliders for buttons, that might even suffice for most purposes. There doesn't even need to be Javascript support in there, because all active content should be handled server side.


May I ask for explanation for the data format and how it should be implemented?

I'm fascinated with this work of yours
I want to try it, but I think it needs not-empty wordforms.db I guess?
I will be grateful if you can provide the dataset or how to build it.

I guess it's WebCelex where I can get the similar database, can you show me the settings that needed for your project?

Thanks for your interest in the project, @q0115643 !
We have added the 'wordforms.db' file to the project so everything should run the same for you as it does for us. If you have any questions, don't be afraid to ask.
Best,
Jacob


Fix plain readme didn't render correctly on repo home page (#2705)

backport from #2705

LGTM

LGTM


XMPFiles/source/XMPFiles_Impl.cpp: fix arm build with gcc 10

Description
Fix the following build failure with exempi on arm with gcc 10 raised since version 2.6.0 and https://gitlab.freedesktop.org/libopenraw/exempi/-/commit/0872e35a30457d2ecf746a1bebdb7d94636d0e2f and https://github.com/adobe/XMP-Toolkit-SDK/commit/0872e35a30457d2ecf746a1bebdb7d94636d0e2f:
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: ../../XMPFiles/source/.libs/libXMPFiles.a(XMPFiles_Impl.o):(.rodata+0x5c): multiple definition of `typeinfo name for TXMPMeta<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >'; XMPFilesCoverage.o:(.rodata+0x0): first defined here

More information can be found on a similar issue here: https://github.com/OpenKinect/libfreenect2/issues/157
Fixes:

http://autobuild.buildroot.org/results/c440719de02a154c6bdae11bda06ea30c131c71d

Related Issue

Motivation and Context
This change is needed to avoid build failure with exempi: http://autobuild.buildroot.org/?reason=exempi-2.6.1
How Has This Been Tested?
This has been build-tested with buidlroot.
Screenshots (if appropriate):
Types of changes

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

Checklist:

[x] I have signed the Adobe Open Source CLA.
[ ]  My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Issue also occur on gcc 9.3.0 armhf

Hello! I've faced the same problem on arm32v7/ubuntu docker container and on Raspberry Pi OS 32-bit. I fixed the source code of XMPFiles_Impl.cpp according to your fixes and now it works fine, thank you! Can you please review this code and merge it to main?


Update plan-cloud-voicemail.md

@dstrome cc @roykuntz
Removing licensing requirement and adding reference back to Set Up Cloud Voicemail for additional steps required for Exchange Server. https://docs.microsoft.com/en-us/microsoftteams/set-up-phone-system-voicemail#set-up-cloud-voicemail-for-exchange-server-mailbox-users

@dstrome Can you let me know when this gets merged? Roy and I discussed a couple of other changes to make and I don't want to mess up the process by doing anything until this commit is done. thanks.


Expose HitCount and HitLineCount to CPUProfileNode

This exposes hitCount and hitLineCount from v8's cpuprofile node. It's useful in order to be able to see relative percentages of time spent in a v8 function and its descendants, although computing total time is left up to the presentation implementation.
Sample implementation:
func printTree(nest string, node *v8.CPUProfileNode) {
	file, name, line, col := node.GetScriptResourceName(), node.GetFunctionName(), node.GetLineNumber(), node.GetColumnNumber()
	selfHits, totalHits := node.GetHitCount(), totalHitCountForNode(node)

	fmt.Printf("[%d/%d hits\t]  %s%s() %s:%d:%d\n", selfHits, totalHits, nest, name, file, line, col)

	count := node.GetChildrenCount()
	if count == 0 {
		return
	}

	nest = fmt.Sprintf("%s  ", nest)

	for i := 0; i < count; i++ {
		printTree(nest, node.GetChild(i))
	}
}

func totalHitCountForNode(node *v8.CPUProfileNode) uint {
	totalHitCount := node.GetHitCount()

	count := node.GetChildrenCount()
	for i := 0; i < count; i++ {
		totalHitCount += totalHitCountForNode(node.GetChild(i))
	}

	return totalHitCount
}

The changes look good.

Could you update the changelog to reflect these two new functions on nodes?
Are there test assertions in the node suite that could cover these two new functions while also being reliable?


WIP chore(HLS): bump HLS version to 1.5.1

Bumping HLS to 1.5.1
A bit weird I did not get the same sha1 for the linux version there for I am quite sure the darwin may be wrong too (cannot test it).
Double check is required anyway.
Fix #209

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[ ] Commit sequence broadly makes sense
[ ] Key commits have useful messages
[ ] Relevant tickets are mentioned in commit messages
[ ] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[ ] Self-reviewed the diff
[ ] Useful pull request description
[ ] Reviewer requested

Thanks for your efforts @bhoudebert ; closing this as stale for now, but please re-open if you find the time! :)


document nix-systems/default-linux development requirement

I have received questions about failures like:
does not provide attribute 'pkgs.aarch64-darwin...'

For newcomers, it's probably best to clearly document that we do not support developing on systems other than x86_64-linux (see @lorenzleutgeb's justification: https://github.com/ngi-nix/ngipkgs/issues/24#issuecomment-2091429319)

AFAIK current status is that we do not support Darwin, but we do support Linux on architectures other than x86, most notably ARM.

AFAIK current status is that we do not support Darwin, but we do support Linux on architectures other than x86, most notably ARM. So both x86_64-linux and aarch64-linux are good, potentially also others.

Alright, just making sure :) IMO that should go into README.md because it affects "consumers", too.


add completions to homebrew package

https://github.com/notnmeyer/tsk/pull/100 & https://github.com/notnmeyer/tsk/pull/101


Dependabot/go modules/k8s.io/kubectl 0.26.1

/test e2e
Failed because CO wasn't installed?

Sorry, forget to add hold label.
Verified the PR after PR merged:
Verified with 4.12.2 + code in the PR.
I am not sure if the below errors are env issue or not. I can reproduce it very easily.
Error: Unable to process results from suite test: unexpected EOF
Details seen from below:
$ make
go build -o ./bin/oc-compliance ./cmd
$ oc get ssb
NAME   AGE
test   4h38m
$ oc get suite
NAME   PHASE   RESULT
test   DONE    NON-COMPLIANT
$ oc get scan
NAME                 PHASE   RESULT
rhcos4-high-master   DONE    NON-COMPLIANT
rhcos4-high-worker   DONE    NON-COMPLIANT

$ ./bin/oc-compliance fetch-raw scansettingbinding test -o resultsdir/
Fetching results for test scans: rhcos4-high-master, rhcos4-high-worker
Fetching raw compliance results for pod 'raw-result-extractor-s4b4r'.Fetching raw compliance results for scan 'rhcos4-high-master'......
The raw compliance results are avaliable in the following directory: resultsdir/rhcos4-high-master
Fetching raw compliance results for pod 'raw-result-extractor-vfj5q'.Fetching raw compliance results for scan 'rhcos4-high-worker'....
The raw compliance results are avaliable in the following directory: resultsdir/rhcos4-high-worker

$ mkdir resultsdir2
$ ./bin/oc-compliance fetch-raw scansettingbinding test -o resultsdir2/
Fetching results for test scans: rhcos4-high-master, rhcos4-high-worker
Fetching raw compliance results for pod 'raw-result-extractor-rhfp5'.Fetching raw compliance results for scan 'rhcos4-high-master'......
Dropping out copy after 0 retries
Error: Unable to process results from suite test: unexpected EOF

$ mkdir resultsdir3
$ ./bin/oc-compliance fetch-raw scansettingbinding test -o resultsdir3/
Fetching results for test scans: rhcos4-high-master, rhcos4-high-worker
Fetching raw compliance results for pod 'raw-result-extractor-nzhh9'.Fetching raw compliance results for scan 'rhcos4-high-master'..
The raw compliance results are avaliable in the following directory: resultsdir3/rhcos4-high-master
Fetching raw compliance results for pod 'raw-result-extractor-bs2pm'.Fetching raw compliance results for scan 'rhcos4-high-worker'..........
Dropping out copy after 0 retries
**Error: Unable to process results from suite test: unexpected EOF**

$ mkdir resultsdir4
$ ./bin/oc-compliance fetch-raw scansettingbinding test -o resultsdir4/
Fetching results for test scans: rhcos4-high-master, rhcos4-high-worker
Fetching raw compliance results for pod 'raw-result-extractor-fsn2v'.Fetching raw compliance results for scan 'rhcos4-high-master'..
The raw compliance results are avaliable in the following directory: resultsdir4/rhcos4-high-master
Fetching raw compliance results for pod 'raw-result-extractor-26fpf'.Fetching raw compliance results for scan 'rhcos4-high-worker'......
The raw compliance results are avaliable in the following directory: resultsdir4/rhcos4-high-worker


Update or remove outdated demos

Demos are broken or outdated. E.g. the Flink financial fraud demo is supposed to use KUDO 0.7 according to its README. But the operator only works on KUDO 0.8 though, while depending on packages that only work on KUDO 0.7.
The Flink modifications demo doesn't use operator packages at all.
These demos need to be updated or removed.

Then Flink financial fraud demo has been updated to work with KUDO 0.8 in https://github.com/kudobuilder/operators/pull/155.


Only one MathML element is detected

Looks jsdom fails to loop.

Switching from getElementsByTagName toquerySelectorAll seems enough.


feat: add has identity

Changes

add hasIdentity function to check if an account has an identity associated with them

Closes #139


Broken Link Anchors and Navigation for Headline Links

What happened?
Specifically, if the headline is a link, it breaks the generation of the link anchor and right side navigation.
Here is a page that reproduces it, just place it in /content/test.md so that Hugo doesn't complain about the first link:
---
date: 2022-02-11
title: Test
---

## [Test Page]({{< ref "/test" >}})

Headlines that link to another page on the blog have a messed up anchor with a "HAHA HUGO SHORTCODE" thing in them. The navigation on the right doesn't work for these.

## [Github](https://github.com/)

Links to other websites do generate an anchor, but also append the url to these anchors (might be intentional?). However the navigation on the right doesn't work, and instead links directly to the other website.

### [Smaller Github](https://github.com/)

From what I can tell, it's just the anchor name is being generated with the link included. The "HAHA HUGO SHORTCODE" turns into the appropriate link once you try typing it out in the content. Might be why the right navigation lists out URLs as their links, and then the inter blog one shows the shortcode. I assume we don't want this?

#### [Smallest Github](https://github.com/)

Or if we do want it, the navigation links on the right need to link to these anchors, not be broken or navigate to the URLs themselves.

Theme version
v2.0.4
Hugo version
v0.92.1
What browsers are you seeing the problem on?
Firefox
Relevant Hugo log output
No response

Unfortunately this is due to limitations in the TOC generation in Hugo.
With regards to the links in headings taking precedence over the anchor links, the theme only calls the default Hugo {{ .TableOfContents }} method and so there's no way to easily adjust this behaviour. Ideally these links should be stripped out of the TOC output.
See https://github.com/gohugoio/hugo/issues/7158 and https://github.com/gohugoio/hugo/issues/7557.
As for the shortcode "HAHA HUGO SHORTCODE" issue, this can be avoided by using the {{% shortcode %}} syntax which will process the shortcode before rendering the output. In your example, substitute the heading for ## [Test Page]({{% ref "/test" %}}) and this will avoid this issue, although will then still exhibit the linking behaviour described above.
See https://github.com/gohugoio/hugo/issues/6081.
In the meantime the workaround is to either not include links in headings or disable the TOC for the page where you need these links. In the future I might have to look at other ways to generate the TOC but decided that using the built in Hugo method is the cleanest for now.

Thank you for those references! I am new to Hugo so I haven't figured out some of the intricacies on how the pages are rendered yet. I'll switch my page to use the {{% shortcode %}} syntax in the headers, then at least all of my table of contents will just be links to the pages I was linking to. It's just a jump page to my other projects.
I don't think you need to reimplement a whole TOC if this built in one is working 99% correctly. I think it should be fixed upstream. But, if you do want to, feel free to re-open this issue. Regardless I am already watching the aforementioned Hugo issues too.
Thanks again!


Create NPM package for Monument

make this thing work in a nice npm package.

Now available through npm as monumentjs


[FLINK-17424][e2e] Further stabilize Elasticsearch in test_sql_client.sh

What is the purpose of the change
Another attempt to improve the error rate when downloading Elasticsearch. If this doesn't help, we need to put a loop around curl and retry ourselves. There is a --retry-all-errors but this is not available on all machines yet.
Brief change log

Continue download at last position if possible.
Use OSS version

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

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

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

I just found out that there is a no JDK version as well. It could further shorten the download time.


feat: migrate to new version of defuse contract

BREAKING CHANGE:
The defuse contract ID has been updated to a new version, which may affect existing integrations.
Ensure to update your configurations accordingly.

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Error while training

Hello! I am trying to train vits using the same dataset and recipes you have provided exactly, only thing I have changed is the paths in the recipes for the datasets. But for some reason I am getting this error:
/workspace/TTS/TTS/tts/models/vits.py:1454: UserWarning: The use of `x.T` on tensors of dimension other than 2 to reverse their shape is deprecated and it will throw an error in a future release. Consider `x.mT` to transpose batches of matrices or `x.permute(*torch.arange(x.ndim - 1, -1, -1))` to reverse the dimensions of a tensor. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3571.)
  test_figures["{}-alignment".format(idx)] = plot_alignment(alignment.T, output_fig=False)
 ! Run is removed from /workspace/Persian-tts-coqui/recepies/vits/vits_fa_female-April-24-2023_09+16AM-9a4e5f8
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/trainer/trainer.py", line 1591, in fit
    self._fit()
  File "/opt/conda/lib/python3.8/site-packages/trainer/trainer.py", line 1548, in _fit
    self.test_run()
  File "/opt/conda/lib/python3.8/site-packages/trainer/trainer.py", line 1466, in test_run
    test_outputs = self.model.test_run(self.training_assets)
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/workspace/TTS/TTS/tts/models/vits.py", line 1454, in test_run
    test_figures["{}-alignment".format(idx)] = plot_alignment(alignment.T, output_fig=False)
  File "/workspace/TTS/TTS/tts/utils/visual.py", line 18, in plot_alignment
    im = ax.imshow(
  File "/opt/conda/lib/python3.8/site-packages/matplotlib/__init__.py", line 1447, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/opt/conda/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 5523, in imshow
    im.set_data(X)
  File "/opt/conda/lib/python3.8/site-packages/matplotlib/image.py", line 711, in set_data
    raise TypeError("Invalid shape {} for image data"
TypeError: Invalid shape (10,) for image data```

Could you help me figure out what the issue is? Thank you, and great work on the model!

Hi ,
1- could you please tell more info about your environment .Please send result of this code:
wget https://raw.githubusercontent.com/coqui-ai/TTS/main/TTS/bin/collect_env_info.py
python collect_env_info.py

2- Do you using jupyter notebook to run codes?If yes please save your notebook with all outputs and send it here.

Hello! I can tell you about the environment of course, but that python script "collect_env_info.py" does not run. I am running this on a docker container, which is running on a Linux server with multiple GPUs linked to the container. Thanks!

OK. please send full execution log.
Probably it is because of your installed packages version, I dont know too much about docker but these resources could help you :

https://tts.readthedocs.io/en/latest/docker_images.html
https://github.com/synesthesiam/coqui-docker

It was in fact because of the package version! Thank you for the help. I had another question regarding phonemizing the dataset, how did you phonemize your dataset? any specific tools? Thank you

No , I just used espeak as phonemizer as you can see in my config use_phonemes=True, uses eSpeak  as default phonemizer .You can change phonemizer ,

https://tts.readthedocs.io/en/latest/models/vits.html?highlight=phonemizer#vitsconfig
https://tts.readthedocs.io/en/latest/implementing_a_new_language_frontend.html?highlight=phonemizer#implementing-a-new-language-frontend

But there are some good libs for that , like persian_phonemizer
and also mimic-3 has a method that also solves kasre ezafe (Ezāfe) problem , here is the code for that _fix_words


Support bulk publish in Azure Events Hub

Describe the feature
Support Bulk Publish API in Azure Events Hub.
New metadata to be added -

MaxBulkSizeInBytes: Maximum size of a bulk request in bytes from Dapr to Azure Event Hub.

Docs issue - https://github.com/dapr/docs/issues/2804
Release Note

RELEASE NOTE: ADD Bulk publish support in Azure Event Hub

/assign

Closing as completed with #2089


UserAvatar: Don't send auth headers to s3 backend.

See discussion at
https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/302.20redirect.20for.20avatar/near/1097413.
In #4367, I'd assumed that it would be fine to include the auth
headers even when they're unnecessary. That turns out not to be
true: the s3 backend doesn't want them.
Fixes: #4401

Merged! Thanks for spotting this issue and for the fix.

Merged! Thanks for spotting this issue and for the fix.


update compat helper

Codecov Report

Merging #6 (6ac1de8) into master (e108889) will decrease coverage by 0.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   83.52%   83.33%   -0.20%
==========================================
  Files           1        1
  Lines          85       84       -1
==========================================
- Hits           71       70       -1
  Misses         14       14

Impacted Files
Coverage Δ

src/MLJDecisionTreeInterface.jl
83.33% <0.00%> (-0.20%)
:arrow_down:

Continue to review full report at Codecov.

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

Codecov Report

Merging #6 (6ac1de8) into master (e108889) will decrease coverage by 0.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   83.52%   83.33%   -0.20%
==========================================
  Files           1        1
  Lines          85       84       -1
==========================================
- Hits           71       70       -1
  Misses         14       14

Impacted Files
Coverage Δ

src/MLJDecisionTreeInterface.jl
83.33% <0.00%> (-0.20%)
:arrow_down:

Continue to review full report at Codecov.

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