quick-der library, asn2quickder + hexio tools

Motivation for this change
Libraries and tools used in ARPA2 project.
Things done

[ ] Tested using sandboxing
(nix.useChroot on NixOS,
or option build-use-chroot in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[x] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

I changed/updated your pull request slightly here: https://github.com/Mic92/nixpkgs/tree/pr17579
Does this still work for you?

Yes, it does. Thanks for the rebase!

I rebased again, however I noticed that quickder does install any executable, but you created bin, sbin ... is this intented?

You are completely right. Those can actually be removed. Thanks for noticing.

Thanks!


Allow temporary printing to console

It would be nice to be able to temporarily print to console or print in place. For example, I would like to have output like
================================================
My Verbose Test Cases
================================================

Started Noisy Test Case

and then over time have it print out
Started Noisy Test Case ... Doing setup

Started Noisy Test Case ... Logging In

Started Noisy Test Case ... Entering Data

Started Noisy Test Case ... Submitted

Started Noisy Test Case ... Validating Results

Started Noisy Test Case ... Completed (and I am happy)

and then ends up like
================================================
My Verbose Test Cases
================================================

Started Noisy Test Case ... Completed (and I am happy)         | PASS |
------------------------------------------------------------------------------
My Verbose Test Cases                                                           | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output:  C:\sandbox\tooloud\output.xml
Log:     C:\sandbox\tooloud\log.html
Report:  C:\sandbox\tooloud\report.html

Each of these would be a log keyword call; something like
  Log    Entering Data    temporary=${True}

  Log    Completed (and I am happy)\n    in-place=${False}

or some other flag ?!?

Log keyword already has console argument for this purpose:
http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Log
Or did I get your usecase wrong?

I suppose Ed wants a real time messaging to console, showing only the current log entry which would be end in the final message. This is usually done sending a Carriage Return (CR) char, like '\r', in the beginning of log message. The problem with this is when output is redirected to file/stream not a display.

Sorry, I was sloppy above as that should have been more like
  Log    Entering Data    console=${True}    temporary=${True}

  Log    Completed (and I am happy)\n    console=${True}    in-place=${False}

The use case is thinking beyond printing to console but printing in place, like a flip-book. So given the robot file
*** Test Cases ***
Print In Place
    Log    Started Noisy Test Case ...    console=${True}
    Log    Doing setup    console=${True}
    Comment   ... Setup ...
    Log    Logging In    console=${True}
    Comment   ... Log in ...
    Log    Entering Data    console=${True}
    Comment   ...
    Log    Submitted    console=${True}
    Log    Validating Results    console=${True}
    Log    Completed (and I am happy)    console=${True}

the output is
==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...
.Doing setup
..Logging In
..Entering Data
..Submitted
.Validating Results
Print In Place                                                        .Completed
 (and I am happy)
Print In Place                                                        | PASS |
------------------------------------------------------------------------------
Console                                                               | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output:  c:\sandbox\output.xml
Log:     c:\sandbox\log.html
Report:  c:\sandbox\report.html

Instead I want to see (again more of a flip book and each one in outputted over time)
==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ... .Doing setup

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...  ..Logging In

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...  ..Entering Data

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...  ..Submitted

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...  .Validating Results

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ... Completed (and I am happy)

==============================================================================
Console
==============================================================================
Print In Place
Started Noisy Test Case ...  Completed (and I am happy)
Print In Place                                                        | PASS |
------------------------------------------------------------------------------
Console                                                               | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output:  c:\sandbox\output.xml
Log:     c:\sandbox\log.html
Report:  c:\sandbox\report.html

@HelioGuilherme66: Not just a carriage return but a 'back to beginning of buffer' character. [Sorry been a long time since I havbe done console printing. Sure there is a technical term for this...]

[Researching] Looks like I am meaning flushing stdout ... How do I write output in same place on the console?.
I am thinking out load here but also asking the community would they find this helpful and the core-developers if you see any issues with this idea.

I see. I'm afraid this kind of logic requires so low level control that using Log for it is hard and/or requires pretty complicated data. I'd rather try implementing this in a custom library first and then see could Log (or Log To Console) be enhanced without making data overly complicated.

I do like Ed idea, it would be useful in many cases

After thinking this a bit more, I would rather leave Log alone because it already has so many configuration options, but enhancing Log To Console would be possible. Do you have concrete ideas how it could be enhanced?

I would add a parameter -- something like "temporary", "flash", "remove_on_next_log", or ??? -- that when set to true would clear the current output buffer on the next print to log/console. I am still looking for the right terminology for this type of "printing in place" and thus base the optional parameter's name so this is obvious; maybe overwrite or overwrite_buffer??? But I know it is not "flushing" as I was starting to think above. That is the act of forcing the print buffer to be printed.
I was looking at the internals of the printing and starting to see how this may be implemented. What concerns me is making sure I have all the ways one can print covered so as not to cause issues with the comsole output. I would think this could work for Log as well and essentially the to-be-named optional parameter could be used on either keyword. If used on Log is would by default set that keywords console parameter to true.

You actually can accomplish this already, at least to some extend, by using Log Console with newlines (\n) and carriage returns (\r) in the test data. Try, for example, this:
*** Test Cases ***
Example
  Log to console    \nFOO    no_newline=True
  Sleep    1
  Log to console    \r------    no_newline=True
  Sleep    1
  Log to console    \rBAR

As you can see if you test the above, there's a problem that \r doesn't erase the earlier text but just moves the cursor to the beginning of the line. Thus you end up with BAR--- and not with BAR that you might expect/want. A solution is adding enough spaces at the end of the string. That could be done manually e.g. like ${SPACE * 10}, but perhaps enhancing Log To Console to accept the amount of padding as an optional argument would be better.
Even better than making the padding optional would be accepting the same format specification that Python's format() function accepts. It would allow configuring padding, alignment, etc. What do others think, should we add format_spec to Log To Console and perhaps also to Log keywords`? Should we even consider adding a separate keywords just for string formatting?

Notice that even with the format_spec enhancement I proposed above, logging to console like this wouldn't be too convenient. You would need to add a newline when you write the first message, add a carriage return on the following, omit adding newlines at the end except with the last message, and overwrite previous messages with enough spaces (with the challenge knowing how much is "enough"). All these could be solved by a custom library that uses the library listener interface to automatically add newlines or carriage returns depending on the test execution phase, and keeps track on how long messages were written to know how much spaces are needed to overwrite them. Such a library could also be clever enough to disable this kind of formatting when output is redirected into a file and it generally wouldn't work anyway.

Is this still relevant to someone? Anyone interested to make a more concrete proposal how this should work?

No comments by others than I since October. Closing.

update the logger.py file
def write(msg, level='INFO', html=False):
"""Writes the message to the log file using the given level.
Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default since RF
2.9.1), ``WARN``, and ``ERROR`` (new in RF 2.9). Additionally it is
possible to use ``HTML`` pseudo log level that logs the message as HTML
using the ``INFO`` level.

Instead of using this method, it is generally better to use the level
specific methods such as ``info`` and ``debug`` that have separate
``html`` argument to control the message format.
"""

if EXECUTION_CONTEXTS.current is not None:
    librarylogger.write(msg, level, html)
    stalog.info(msg)
else:
    logger = logging.getLogger("RobotFramework")
    stdout_handler = logging.StreamHandler(sys.stdout)
    file_handler = logging.FileHandler(filename='stability.log')
    handlers = [file_handler, stdout_handler]
    level = {'TRACE': logging.DEBUG // 2,
             'DEBUG': logging.DEBUG,
             'INFO': logging.INFO,
             'HTML': logging.INFO,
             'WARN': logging.WARN,
             'ERROR': logging.ERROR}[level]
    logger.log(level, msg)


How to handle "Unable to connect" error (ExpiredToken)

Screenshots

Version
Webchat Version: v4.9.0
Usage: As NPM Package in ReactJS App
Platform: Web Browser
Issue
As far as we know if webchat in the browser is kept unattended for a couple of hours then webchat's auto-refreshing-token fails it triggers ExpiredToken event. Webchat also displays "Unable to connect" error (as shown in the attached image above). After this, the user cannot send any message until he/she refreshes the page.
We could not find proper documentation on handling ExpiredToken event where webchat reconnects back and user resumes conversing with the bot.
Steps to reproduce

Use webchat to converse with the bot.
Keep it unattended for a couple of hours (with no internet connection)
Come back to webchat to resume the conversation

Expected behavior
We need to handle ExpiredToken event in a way that webchat gets a new token and reconnects to Directline and hence the user can resume his/her conversation seamlessly (without needing page refresh)

Thank you for the question, @bhushanvadgave
I want to make sure I understand your issue correctly. In your React app, DirectLineJS is able to refresh the token indefinitely so long as there is an Internet connection. You only encounter the expired token when there is no Internet connection. Is that correct?

@v-kydela Yes correct this is the scenario when the user comes back to webchat after a period of time (the period where there was no internet connectivity) and he/she tries to send a message.

@bhushanvadgave - Can we see the code you're using to generate your token and render Web Chat?

@v-kydela  Below are 2 snippets of the code
//some code here
const { token } = await makeApiCall({ method: "GET", path: '/dlauth/dltoken' });
const obj = createDirectLine({ token });
his.setState(() => ({ dlObj: obj }));
//some code here

//some code here
return (
      <ReactWebChat className={`${className || ''} web-chat`} directLine={dlObj} cardActionMiddleware={cardActionMiddleware} store={store} styleOptions={styleOptions} />
  )

@bhushanvadgave - When you detect an expired token you could call that token API again and then reload just your Web Chat component. I don't know if you'd consider that to be seamless since a new token means a new conversation.
You did say that you want to prevent the user from having to refresh the page, so what happens when you refresh the page? Is the conversation history preserved?

@v-kydela Reloading the webchat won't be a seamless experience.
On page refresh, the app reconnects to the same conversation using Reconnect API (through our server component; Directline secret is kept at the server). Since the Reconnect API provides new token along with other details the user could converse with the bot and conversation history is preserved as well. Below is a snippet of code
 const res = await makeApiCall({ method: "GET", path: `/dlauth/reconnect/${activeConversationId}?&wm=${watermark}` });
 const obj = createDirectLine({ ...res });
 this.setState(() => ({ dlObj: obj }));

On receiving ExpiredToken event, for reconnecting, we tried the DirectlineJS suggested approach with below code, but it did not work
const res = await makeApiCall({ method: "GET", path: `/dlauth/reconnect/${activeConversationId}?&wm=${watermark}` });
this.state.dlObj.reconnect(res);

@bhushanvadgave - It's still unclear to me what sort of help you need. When you say reloading the Web Chat won't be a seamless experience, is it because the user would see the component reloading? I need to know why you are unsatisfied with your options in order to know what would solve your problem.
Also, can you elaborate on what you mean when you say reconnecting did not work? Did it throw an error? What happened and how was it different from your expectations?

@bhushanvadgave - Are you still working on this?

I am closing this issue due to inactivity. We are still happy to provide help if you need any, though it may be a good idea to make a new post if that's the case. Please have a look at this to find out the best places to ask for help, and consider asking questions on Stack Overflow.


llc rearray update

This is an update to llc_rearrange.py. It now uses exclusively xarray to manipulate datasets and remove faces (all or a subset) as a dimension (before bit of xarray and numpy, which was slow).
Some more changes will come in the next couple of weeks. But this is usable now.
Could use more testing. I will add more in the follow up PR.

Hello @Mikejmnez! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file oceanspy/llc_rearrange.py:

Line 130:57: W291 trailing whitespace
Line 134:89: E501 line too long (92 > 88 characters)
Line 459:89: E501 line too long (146 > 88 characters)
Line 460:89: E501 line too long (94 > 88 characters)
Line 475:89: E501 line too long (116 > 88 characters)
Line 476:89: E501 line too long (125 > 88 characters)
Line 477:89: E501 line too long (91 > 88 characters)
Line 483:89: E501 line too long (89 > 88 characters)
Line 502:89: E501 line too long (125 > 88 characters)
Line 503:89: E501 line too long (94 > 88 characters)
Line 526:89: E501 line too long (127 > 88 characters)
Line 535:89: E501 line too long (145 > 88 characters)
Line 542:89: E501 line too long (90 > 88 characters)
Line 580:89: E501 line too long (135 > 88 characters)
Line 601:89: E501 line too long (117 > 88 characters)

In the file oceanspy/tests/test_llc_rearrange.py:

Line 91:89: E501 line too long (89 > 88 characters)
Line 92:89: E501 line too long (95 > 88 characters)

don't understand why these test fail. All these passed within the oceanspy_test environment...

I think the test failure is unrelated to this PR. I didn't have the time to look into it, but tests started failing last week in the master branch as well. https://github.com/hainegroup/oceanspy/actions/runs/1806606996

I think keeping track of why these test are failing is important, but there is a way to go through with this PR. The issue seems to be two failing tests associated test_anim_Hsection (lines 85-101 in test_animate.py).  One thing we could try is to comment those tests and go through the PR and fix this issue later...

@malmans2 What do you prefer?  Fix the failing tests first then merge or vice versa?

Huh, now the tests pass...

Huh, now the tests pass...

@ThomasHaine the issue is still there, I commented the two failing tests in test_animate.py. I don't know what the issue is yet, but I guess I am suggesting that if we are OK with moving forward with this PR before fixing the issue, for now, commenting two tests allows this PR to pass.

@ThomasHaine the issue is still there, I commented the two failing tests in test_animate.py. I don't know what the issue is yet, but I guess I am suggesting that if we are OK with moving forward with this PR before fixing the issue, for now, commenting two tests allows this PR to pass. I describe what the failing tests are in PR #212

Understood. I'm happy to merge.

Lets hear Mattia @malmans2 's opinion. This is clearly only a temporary solution. I just don't really have time to figure what the issue with the update in PR #212 is.

Hi!
I'm quite busy in the next couple of weeks and I don't have much time to look at it. Feel free to merge when you're ready (maybe Ali could take a quick look and approve?).
Regarding tests, don't worry about those, they are not related to this PR. But I don't think commenting out the tests is the way to go. I'd merge this PR even if tests are failing, then we'll address those issues in a separate PR.
Are you able to merge even if tests are failing? Let me know if you can't and I'll change your permissions, I think you are "maintainer" right now.

Got it. I didn't know you could approve with failing tests. I un-commented the failing tests (unrelated with this PR) and will wait for @asiddi24 to take a look at this PR.
I don't think I can merge when tests are failing..

You are admin now... can you merge? You should be able to see this:

You are admin now... can you merge? You should be able to see this:

Yes , I can now. wow, with great power comes great responsibility...


HDDS-9377. MutableStat.add in a seperate executor service

What changes were proposed in this pull request?
Move MutableStat.add(long stat) method call to the separate thread pool executor (in order to get rid of high lock contention on reading keys)
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9377
How was this patch tested?
Manual high-load test of reading of 15mln 1KiB files (3 clients in 100 thread - 300 threads in total)

Unit test failure seems to be related:
Tests run: 20, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 21.428 s <<< FAILURE! - in org.apache.hadoop.ozone.om.lock.TestKeyPathLock
Error:  org.apache.hadoop.ozone.om.lock.TestKeyPathLock.testLockConcurrentStats  Time elapsed: 15.061 s  <<< FAILURE!
java.lang.AssertionError: Expected 3 samples in writeLockHeldTimeMsStat: Samples = 2  Min = 100.0  Mean = 100.0  Std Dev = 0.0  Max = 100.0
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.apache.hadoop.ozone.om.lock.TestOzoneManagerLock.testSyntheticReadWriteLockConcurrentStats(TestOzoneManagerLock.java:589)
	at org.apache.hadoop.ozone.om.lock.TestOzoneManagerLock.testLockConcurrentStats(TestOzoneManagerLock.java:419)

I guess the test may need to wait for the stats to be updated in the background thread.

cc @tanvipenumudy @xBis7 can you please take a look?

Thanks @vtutrinov for working on this.
Please check acceptance test failures: https://github.com/vtutrinov/ozone/actions/runs/6455702689

done

Unit test failure seems to be related:
Tests run: 20, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 21.428 s <<< FAILURE! - in org.apache.hadoop.ozone.om.lock.TestKeyPathLock
Error:  org.apache.hadoop.ozone.om.lock.TestKeyPathLock.testLockConcurrentStats  Time elapsed: 15.061 s  <<< FAILURE!
java.lang.AssertionError: Expected 3 samples in writeLockHeldTimeMsStat: Samples = 2  Min = 100.0  Mean = 100.0  Std Dev = 0.0  Max = 100.0
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.apache.hadoop.ozone.om.lock.TestOzoneManagerLock.testSyntheticReadWriteLockConcurrentStats(TestOzoneManagerLock.java:589)
	at org.apache.hadoop.ozone.om.lock.TestOzoneManagerLock.testLockConcurrentStats(TestOzoneManagerLock.java:419)

I guess the test may need to wait for the stats to be updated in the background thread.

fixed by mocking MetricUtil method

M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeByte(int) ignored, but method has no side effect  At CodecBuffer.java:[line 415]
M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.setIndex(int, int) ignored, but method has no side effect  At CodecBuffer.java:[line 452]
M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.setIndex(int, int) ignored, but method has no side effect  At CodecBuffer.java:[line 473]
M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.setIndex(int, int) ignored, but method has no side effect  At CodecBuffer.java:[line 500]
M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeInt(int) ignored, but method has no side effect  At CodecBuffer.java:[line 393]
M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeLong(long) ignored, but method has no side effect  At CodecBuffer.java:[line 404]
M D RV: Return value of org.apache.ratis.thirdparty.io.netty.buffer.ByteBuf.writeShort(int) ignored, but method has no side effect  At CodecBuffer.java:[line [38](https://github.com/vtutrinov/ozone/actions/runs/6483198239/job/17607314089#step:7:39)2]

@vtutrinov these findbugs errors in CodecBuffer seem to be false positives, as writeByte etc. do have side-effects... And the CodecBuffer.java is not touched by the PR anyway.
Can you please try suppressing the problem in hadoop-hdds/common/dev-support/findbugsExcludeFile.xml by adding a match similar to the one below?
https://github.com/apache/ozone/blob/ae58e4a141cee0e9ccfa589fac96406dd15fceb6/hadoop-hdds/framework/dev-support/findbugsExcludeFile.xml#L18-L21

done

/pending considering an implementation of the lock-free metrics (non-synchronized methods) in parallel


Better UX by whole page scroll

Scrolling an entire page might be better.
Could be realized by using position: sticky.

Developing an experimental implementation, I noticed the idea of this issue does not work well with the editor.


Fix lint errors

We had one reference to an API 21 call and two parcelable objects missing
CREATOR fields.

This change is

+@anmatanm +@rachel-fenichel
Previously, googlebot wrote…
> Thanks for your pull request.  It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
>
> :memo: **Please visit  to sign.**
>
> Once you've signed, please reply here (e.g. `I signed it!`) and we'll verify.  Thanks.
>
> ---
>
> - If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address.  Check [your existing CLA data](https://cla.developers.google.com/clas) and verify that your [email is set on your git commits](https://help.github.com/articles/setting-your-email-in-git/).
> - If you signed the CLA as a corporation, please let us know the company's name.
>
>

Review status: 0 of 3 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: 0 of 3 files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Aliases in blade

Is it possible to make aliases for the blade to specify the path so <link rel="icon" href="{{<EMAIL_ADDRESS>}}" sizes="any">
import {defineConfig, loadEnv} from 'vite';
import laravel from 'laravel-vite-plugin';

const path = require('path')

process.env = {...process.env, ...loadEnv('dev', process.cwd())};
const SHOP_LANG = process.env.VITE_SHOP_LANG

export default defineConfig({
    plugins: [
        laravel({
            input: ['resources/' + SHOP_LANG + '/js/app.js'],
            buildDirectory: 'build/' + SHOP_LANG,
            refresh: true,
        }),
    ],
    resolve: {
        alias: {
            '@': path.resolve(__dirname, '/resources/' + SHOP_LANG + '/js'),
        },
    },
});

@webparadoxer I'm proposing that we lean on Laravel's Macro feature for this, rather than introducing a new concept.
This would allow you to do the following:
<?php

namespace App\Providers;

use Illuminate\Support\Vite;
use Illuminate\Support\ServiceProvider;

class ComposerServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        Vite::macro('langAsset', function ($asset) {
            // however you do this...
            $shopLang = config('acme.shop_lang');

            return $this->asset("/resources/{$shopLang}/images/{$asset}");
        });
    }
}

<link rel="icon" href="{{ Vite::langAsset('images/favicon.svg') }}" sizes="any">

See: https://github.com/laravel/framework/pull/44198

<?php
if (!function_exists('a')) {

    function a($path): void
    {
        echo \Illuminate\Support\Facades\Vite::asset("resources/" . env('VITE_SHOP_LANG') . "/{$path}");
    }

}

<img src="@php(a('images/logo.svg'))" alt="">
Yes, you can do so here and shorter, but of course I want to prescribe settings not in several places, this will avoid errors in the assembly and coding.

See the comment here for a solution to share your aliases between your JS and PHP implementations: https://github.com/laravel/framework/pull/44198#issuecomment-1250581953


Feature Request: Add setting for images to use their default width instead of scaling to 100%

Feature Requested
A setting (probably using Style Settings) that allows for small images to use their default sizing and not be stretched to 100% when importing
Relevant Screenshots
Image scaled to 100%

Image using default size

For reference, the embedded image is 388 pixels wide
Checklist

[x] The feature would be useful to more users than just me. (→ If it's only relevant to you, have you considered using a CSS Snippet?)

The current default of full stretching seems like it should be the opt-in option. I'll change embed stretching to be a style setting and add an image modification for a similar effect.

Fixed with 3.5.0

Thank you, looks great


How to pass some configuration

I need to pass some configuration (String) from env to Query or Mutation.
How to achieve this, data is type bound so unless I wrap them in a struct, it is not possible?

You can use JSON type.
https://docs.rs/async-graphql/2.5.13/async_graphql/types/struct.Json.html

Thanks


[e2e]: container push main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5792328842
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.container.push.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.container.push.main.default.slsa3.yml
Trigger: push
Branch: main
Date: Tue Aug  8 03:19:03 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5792906861
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.container.push.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.container.push.main.default.slsa3.yml
Trigger: push
Branch: main
Date: Tue Aug  8 05:02:42 UTC 2023
Tests are passing now. Closing this issue.


Scheduling uses system time per default instead of UTC?

From the following paragraph:
"Select a Schedule. This is a recurring date and time for starting and stopping the VMs in the target resource groups. By default, the schedule is configured to the UTC time zone. Selecting a different region is not available. To configure the schedule to your specific time zone after configuring the solution, see Modifying the startup and shutdown schedule."
I understood that in 'Add Solution'->Configuration I could only enter the schedule times in UTC.
Yesterday I created such a solution thinking it was scheduled in UTC, but when I looked at the parameters today it seemed like it was set in CEST (my system's time), eg. I had set the stop time yesterday at 11:59 PM in 'Add Solution' and today in the automation schedule the stop time was set to 9:59 PM UTC.
Can anyone confirm that this is so? If yes the documentation should be changed that the default is system time.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 225c9d05-83dd-b006-0025-3753f5ab25bf
Version Independent ID: 9eecef0c-b1cb-1136-faf7-542214492096
Content: Start/Stop VMs during off-hours solution (preview)
Content Source: articles/automation/automation-solution-vm-management.md
Service: automation
GitHub Login: @georgewallace
Microsoft Alias: gwallace

@reaperlord Thanks for bringing this to our attention. Your comment has been shared with the content owner for further review.

@reaperlord You are correct it is your local time.  I am in the process of updating the doc for other enhancements so I am incorporating the update you mention.

If I may make another suggestion: Based on my own use of the guide, I would say there is a small step missing at the end; namely making sure that the VMs you wish to control are connected in your newly created OMS workspace. For me as a new user this was not an inherently obvious step.

The VMs dont need to be in your OMS Workspace. The workspace is used for logging and for the solution itself.  The powershell runbooks use the standard Start-AzureRmVM and Stop-AzureRmVM cmdlets to start and stop the vms.

@reaperlord The information has been updated and is now live. #please-close

@reaperlord We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and tag me in your reply. We will gladly continue the discussion.


chore(deps): bump rbac plugin

Description
Fixes: https://issues.redhat.com/browse/RHIDP-4046
Bump RBAC plugin

/cc @divyanshiGupta
/cc @its-mitesh-kumar
/cc @jerolimov

/cherrypick 1.3.x

/lgtm

/lgttm

/retest

/lgtm

/lgtm

/test all

/override ci/prow/e2e-tests

unrelated test failures in last rerun https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/janus-idp_backstage-showcase/1648/pull-ci-janus-idp-backstage-showcase-main-e2e-tests/1836282648075440128
had successfull run before https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/janus-idp_backstage-showcase/1648/pull-ci-janus-idp-backstage-showcase-main-e2e-tests/1836160303595786240


NEW Change link and code text colours for readability

After discussion with @clarkepaul. Includes changes to the link and code colours for readability.
Issue https://github.com/silverstripe/doc.silverstripe.org/issues/155
Note: two separate P.R's will include further colour changes to the code blocks to use web accessible colours.

Yay! Thanks @sachajudd and @clarkepaul !

Yay! Thanks @robbieaverill !
It is important to get joy from the small things in life ;)


dcmp: support light-weight meta data comparison

Like rsync, let's add a mode to dcmp --sync where we can assume the source and target files are identical if their sizes and mod times are the same, but different otherwise.  In this mode, we can avoid reading the full contents of each file.
We could perhaps use this mode by default, again like rsync, and execute the full check if the user throws an additional option.

The --sync logic was moved to dsync, but it'd still be useful to have a light-weight compare option here, that only checks metadata.  Perhaps that can be constructed via a long command:
SIZE=COMMON<EMAIL_ADDRESS>However, that could be cumbersome.

Done


What shape should data be?

Hello! Thank you for your model!
Can you clarify me one more thing?
In your forward method the following is written:
"""Forward function of EvTexture
    Args:
        imgs: Input frames with shape (b, n, c, h, w). b is batch size. n is the number of frames, and c equals 3 (RGB channels).
        voxels_f: forward event voxel grids with shape (b, n-1, Bins, h, w). n-1 is intervals between n frames.
        voxels_b: backward event voxel grids with shape (b, n-1, Bins, h, w).

    Output:
        out_l: output frames with shape (b, n, c, 4h, 4w)
    """

Can you explain me how I should organize my data in, for example, calendar.h5 to feed the model?
I mean in calendar.h5 there are "images" ([H, W]) and "voxels" ([Bins, H, W])
I tried to take 2 images, stacked them ( torch.stack([ image1, image2] )
then I took voxels between these 2 images ( that is one f_voxel and one backward voxel )
then unsqueeze everything to get this one batch( "b" in the forward function )
Finally we get this shapes:
images: [1, 2, 3, H, W]
voxels: [1, 1, 5, H, W]
I tried to use the model: forward( images, voxels_f, voxels_b)
I really got an upscaled image but with awful quality
so, what did I do wrong, I used test data published in this repo. I understand that I probably did smth wrong with shapes or wrongly organized the data
BUT how exactly should I use h5 files with forward method? I want to know how to use "forward" method manually
Thank you!

Here is my code by the way:
with h5.File("preproccessed/events/Vid4_h5/LRx4/test/calendar.h5", "r") as h:
print("All frames ", len(list(h["images"])))
print(h.keys())
#print(list(h["voxels_b"].keys()))
print(list(h['images']))
# take 2 images
image1 = h['images']['000000']
image2 = h['images']['000001']
image1 = np.array(image1)
image2 = np.array(image2)
# take voxels between them
vf  = np.array(h['voxels_f']['000000'])
vb  = np.array(h['voxels_b']['000000'])
# stack them to get n = 2
device = "cuda"
image1 = torch.tensor(image1).to(torch.float32).cuda().permute(2, 0, 1)
image2 = torch.tensor(image2).to(torch.float32).cuda().permute(2, 0, 1)
images = torch.stack([image1, image2]).unsqueeze(0)

vf = torch.tensor(vf).to(torch.float32).unsqueeze(0).unsqueeze(0)
vb = torch.tensor(vb).to(torch.float32).unsqueeze(0).unsqueeze(0)

device = "cuda"
model = EvTexture()
model_path = 'experiments/pretrained_models/EvTexture_Vimeo90K_BIx4.pth'
weights = torch.load(model_path, map_location=device)
model.load_state_dict(weights["params"])

model = model.to(device)
images = images.to(device)
vf = vf.to(device)
vb = vb.to(device)

model.eval()
with torch.inference_mode():
    res = model(images, vf, vb)

# res shape: (1, 2, 3, 576, 704)

Here is my code by the way:
"""
with h5.File("preproccessed/events/Vid4_h5/LRx4/test/calendar.h5", "r") as h:
print("All frames ", len(list(h["images"])))
print(h.keys())
#print(list(h["voxels_b"].keys()))
print(list(h['images']))
# take 2 images
image1 = h['images']['000000']
image2 = h['images']['000001']
image1 = np.array(image1)
image2 = np.array(image2)
# take voxels between them
vf  = np.array(h['voxels_f']['000000'])
vb  = np.array(h['voxels_b']['000000'])
# stack them to get n = 2
device = "cuda"
image1 = torch.tensor(image1).to(torch.float32).cuda().permute(2, 0, 1)
image2 = torch.tensor(image2).to(torch.float32).cuda().permute(2, 0, 1)
images = torch.stack([image1, image2]).unsqueeze(0)

vf = torch.tensor(vf).to(torch.float32).unsqueeze(0).unsqueeze(0)
vb = torch.tensor(vb).to(torch.float32).unsqueeze(0).unsqueeze(0)

device = "cuda"
model = EvTexture()
model_path = 'experiments/pretrained_models/EvTexture_Vimeo90K_BIx4.pth'
weights = torch.load(model_path, map_location=device)
model.load_state_dict(weights["params"])

model = model.to(device)
images = images.to(device)
vf = vf.to(device)
vb = vb.to(device)

model.eval()
with torch.inference_mode():
    res = model(images, vf, vb)

# res shape: (1, 2, 3, 576, 704)

"""

Here is my code by the way:

with h5.File("preproccessed/events/Vid4_h5/LRx4/test/calendar.h5", "r") as h:
print("All frames ", len(list(h["images"])))
print(h.keys())
#print(list(h["voxels_b"].keys()))
print(list(h['images']))
# take 2 images
image1 = h['images']['000000']
image2 = h['images']['000001']
image1 = np.array(image1)
image2 = np.array(image2)
# take voxels between them
vf  = np.array(h['voxels_f']['000000'])
vb  = np.array(h['voxels_b']['000000'])
# stack them to get n = 2
device = "cuda"
image1 = torch.tensor(image1).to(torch.float32).cuda().permute(2, 0, 1)
image2 = torch.tensor(image2).to(torch.float32).cuda().permute(2, 0, 1)
images = torch.stack([image1, image2]).unsqueeze(0)

vf = torch.tensor(vf).to(torch.float32).unsqueeze(0).unsqueeze(0)
vb = torch.tensor(vb).to(torch.float32).unsqueeze(0).unsqueeze(0)

device = "cuda"
model = EvTexture()
model_path = 'experiments/pretrained_models/EvTexture_Vimeo90K_BIx4.pth'
weights = torch.load(model_path, map_location=device)
model.load_state_dict(weights["params"])

model = model.to(device)
images = images.to(device)
vf = vf.to(device)
vb = vb.to(device)

model.eval()
with torch.inference_mode():
    res = model(images, vf, vb)

# res shape: (1, 2, 3, 576, 704)

`Here is my code by the way:
with h5.File("preproccessed/events/Vid4_h5/LRx4/test/calendar.h5", "r") as h:
print("All frames ", len(list(h["images"])))
print(h.keys())
#print(list(h["voxels_b"].keys()))
print(list(h['images']))
# take 2 images
image1 = h['images']['000000']
image2 = h['images']['000001']
image1 = np.array(image1)
image2 = np.array(image2)
# take voxels between them
vf  = np.array(h['voxels_f']['000000'])
vb  = np.array(h['voxels_b']['000000'])
# stack them to get n = 2
device = "cuda"
image1 = torch.tensor(image1).to(torch.float32).cuda().permute(2, 0, 1)
image2 = torch.tensor(image2).to(torch.float32).cuda().permute(2, 0, 1)
images = torch.stack([image1, image2]).unsqueeze(0)

vf = torch.tensor(vf).to(torch.float32).unsqueeze(0).unsqueeze(0)
vb = torch.tensor(vb).to(torch.float32).unsqueeze(0).unsqueeze(0)

device = "cuda"
model = EvTexture()
model_path = 'experiments/pretrained_models/EvTexture_Vimeo90K_BIx4.pth'
weights = torch.load(model_path, map_location=device)
model.load_state_dict(weights["params"])

model = model.to(device)
images = images.to(device)
vf = vf.to(device)
vb = vb.to(device)

model.eval()
with torch.inference_mode():
    res = model(images, vf, vb)

# res shape: (1, 2, 3, 576, 704)

`

Thank you for your interesting question about using only two frames as input and obtaining high-resolution output frames. Based on the shapes you've mentioned, they seem correct:

Images: ([1, 2, 3, H, W])
voxels_f: ([1, 1, 5, H, W])
voxels_b: ([1, 1, 5, H, W])

However, I have a question: Have you successfully tested the script ./scripts/dist_test.sh [num_gpus] options/test/EvTexture/test_EvTexture_Vid4_BIx4.yml and obtained the results posted in the release?
I can suggest a simple way for you to quickly test it. You just need to modify the meta_info_file in the config file (link), specifically basicsr/data/meta_info/meta_info_Vid4_h5_test.txt, to replace its content with calendar.h5 2. After that, run the test script options/test/EvTexture/test_EvTexture_Vid4_BIx4.yml, which will only test the first two images of the calendar and output the results.
I tested this and received the following results:

for 000000.png, the PSNR is 23.64, and for 000001.png, it is approximately 23.60. The PSNR results in our release for the calendar images 000000/000001 are 25.26/25.40 respectively.

I believe that inferring with only two frames leads to lower PSNR compared to using the entire video, as our model employs a recurrent structure, and two frames provide limited information, resulting in slightly poorer outcomes.
Hope this helps!

Thank you, I'll try!


[gardening] IsolateReload_EnumInMainLibraryModified leaks in asan

There are new test failures on Revert "Revert "linter: Refactor prefer_collection_literals to use context type more""...Test field promotion interaction with dynamic..
The tests
vm/cc/IsolateReload_EnumInMainLibraryModified Crash (expected Pass)

are failing on configurations
vm-asan-linux-release-x64

--- Command "run_vm_unittest" (took 04.000211s):
DART_CONFIGURATION=ReleaseASANX64 out/ReleaseASANX64/run_vm_tests --dfe=/b/s/w/ir/out/ReleaseASANX64/gen/kernel-service.dart.snapshot --enable-experiment=records --sound-null-safety --ignore-unrecognized-flags IsolateReload_EnumInMainLibraryModified

exit code:
-6

stdout:
Running test: IsolateReload_EnumInMainLibraryModified
Done: IsolateReload_EnumInMainLibraryModified

stderr:
RELOAD REPORT:
{"type":"ReloadReport","success":true,"details":{"finalLibraryCount":19,"receivedLibraryCount":0,"receivedLibrariesBytes":0,"receivedClassesCount":0,"receivedProceduresCount":0,"savedLibraryCount":18,"loadedLibraryCount":1,"shapeChangeMappings":[{"type":"ShapeChangeMapping","class-id":1189,"instanceCount":1,"fieldOffsetMappings":[[8,8]]}]}}

=================================================================
==290079==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 94 byte(s) in 1 object(s) allocated from:
    #0 0x5582792dfe5d in strdup ../staging/llvm_build/tools/clang/stage2-bins/runtimes/runtimes-x86_64-unknown-linux-gnu-bins/compiler-rt/lib/asan/asan_interceptors.cpp:475:3
    #1 0x5582795e7967 in dart::Dart_TestHelperIsolateReload_EnumInMainLibraryModified(dart::Thread*) out/ReleaseASANX64/../../runtime/vm/isolate_reload_test.cc:6196:3
    #2 0x5582795e7967 in dart::Dart_TestIsolateReload_EnumInMainLibraryModified() out/ReleaseASANX64/../../runtime/vm/isolate_reload_test.cc:6174:1
    #3 0x55827932abca in dart::TestCase::Run() out/ReleaseASANX64/../../runtime/bin/run_vm_tests.cc:53:3
    #4 0x55827932aecf in dart::TestCaseBase::RunTest() out/ReleaseASANX64/../../runtime/bin/run_vm_tests.cc:65:11
    #5 0x5582799d3102 in dart::TestCaseBase::RunAll() out/ReleaseASANX64/../../runtime/vm/unit_test.cc:86:13
    #6 0x55827932b749 in dart::Main(int, char const**) out/ReleaseASANX64/../../runtime/bin/run_vm_tests.cc:414:3
    #7 0x55827932b01a in main out/ReleaseASANX64/../../runtime/bin/run_vm_tests.cc:445:29
    #8 0x7f56bbaf9082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16

SUMMARY: AddressSanitizer: 94 byte(s) leaked in 1 allocation(s).

Commit 4bddf8a25ff894f6a8ac9ee122a1eb2112fd2dd1, reproduces failure.
Ensuring failure does not reproduce on 144ea5b2066.
Commit 144ea5b2066, does not reproduce failure.
Bisecting 4bddf8a25ff...82bd6a2e43b (17 commits). Trying 5e60f8816a3.
Commit 5e60f8816a3, does not reproduce failure.
Bisecting 4bddf8a25ff...675a83240bb (8 commits). Trying f064b6149b8.
Commit f064b6149b8, does not reproduce failure.
Bisecting 4bddf8a25ff...ebc96ecb832 (4 commits). Trying b8ee3a99967.
Commit b8ee3a99967, does not reproduce failure.
Bisecting 4bddf8a25ff...53fb57ea5e9 (2 commits). Trying 53fb57ea5e9.
Commit 53fb57ea5e9, reproduces failure.
Bisected to 53fb57ea5e9.

@rmacnak-google it looks like the restoring of some shutdown logic is leaking some memory.
Possibly related:

https://github.com/dart-lang/sdk/issues/53441

Did we by restoring the shutdown logic create some of the races again?
Are these failures expected?

Looks like a genuine problem with the test - we should not attempt to reset callback if we never set it.
https://dart-review.googlesource.com/c/sdk/+/324562 with the fix


need some spectral files I/O

I couldn't find a function in pyspextool that reads in spectral files into a given structure (e.g., specutils spectrum structure). Is this an action item?

That is what I am working on next!


Would you like share us pre-trained model?

Dear Sir,
We appreciate your projects, thank you in advance.
It would be better if you can share us your pre-trained model. Would you like  ?

Oh, I forgot to upload my pre-trained model. I will upload to DropBox.
BTW, I have a plan to train on HQ dataset, but not recently.

I have upload to dropbox. See readme

Many thanks.


Added App Insights event tracking to 'Save chart as image' buttons

Context
AB#225439 AB#223210
Change proposed in this pull request
Custom event tracking for above feature.
Authored Kusto query to return custom events of this type, for future reporting.
Guidance to review
Build and copy front-end-components locally into Web. Set an app insights instrumentation key. Click on 'Save as image' on various charts. Observe App Insights event tracking, e.g.:

TimeGenerated
Name
ChartName
OperationId
UserId
Establishment
Feature
Identifier

2024-08-23T07:34:50.291Z
save-chart-as-image
total expenditure
41082ffdfb434ccfb544ba06e7eda659
rxCbaKpPR0Ex0IgCQM2qNe
school
benchmark-costs
107896

2024-08-23T07:39:16.11Z
save-chart-as-image
total teaching and support staff cost
41082ffdfb434ccfb544ba06e7eda659
rxCbaKpPR0Ex0IgCQM2qNe
school
benchmark-costs
107896

NOTE: The ClickAnalyticsPlugin tracks left and right mouse button clicks, so it is possible that duplicate rows are returned from the query in this PR

Checklist

[x] Work items have been linked (use AB#)
[x] Your code builds clean without any errors or warnings
[x] You have run all unit/integration tests and they pass
[x] Your branch has been rebased onto main
[x] You have tested by running locally

Nice one!


Load a subset of drains

Still working on documentation for drain_type, but at a high level, it appears that the following are the primary relevant ones:
Wetwell; Storm Water Inlet Drain; Area Drain, used in Mission Bay; Drain Box; Trench Drain; Catch Basin Drain; Drop Inlet
The balance of drain types are either on freeways (don't want folks adopting there), on tracks or otherwise inaccessible (MTA or Caltrans).
@afomi do you want me to modify the query to select only those? Or do you want to pick that off?
You can use SoQL and return a csv https://dev.socrata.com/docs/queries.html

Actually, I'll check in before we do any work here, it might be only 2 or 3 of those remaining categories. I'm waiting on verification.

Ok, have clarification on categories. @afomi I can adjust the rake task for loading drains to only select the appropriate categories. I'll just push my changes to that branch, if that works?
I won't touch anything regarding the schema adjustments in #17, I'll just add the categories to the dataset query.

Sounds good to me. We can chat more tonight.
On Wed, Dec 2, 2015 at 10:31 AM, Jason Lally<EMAIL_ADDRESS>wrote:

Ok, have clarification on categories. @afomi https://github.com/afomi I
can adjust the rake task for loading drains to only select the appropriate
categories. I'll just push my changes to that branch, if that works?
I won't touch anything regarding the schema adjustments in #17
https://github.com/sfbrigade/adopt-a-drain/issues/17, I'll just add the
categories to the dataset query.
—
Reply to this email directly or view it on GitHub
https://github.com/sfbrigade/adopt-a-drain/issues/64#issuecomment-161391075
.

--
Ryan Wold
(707) 673-6722

Thanks @afomi this is addressed by #24 closing


Artificer pack

Full transparency about the hand ordering, because we had a discussion about it :
While a hand select screen is up, the hand order does not change. Cards added to the hand as a result of the action with a AddTempCardInHand action are put to the right.
The one wrinkle it has is with actions that open a hand select screen and say, add a modifier to the selected card, because then, after clicking Done, the card is put to the right of the hand, not in its original place. This is consistent still, so I'm personally okay with it, but maybe you're not?
I don't immediately see how to change that behavior, but if it bothers you, just say so and I'll try to fix the issue.

Should be done? I'm not sure what else to do about Boost's wording tbh

Done!


Added MediaConvert queue and other resources

This is related to OCW Studio issue#456. Added media convert and a few other AWS resources based on the details in the issue.

:+1:


Flaky test: LoggingConnectionAdapterCanBeAddedBeforeAndAfterHttpsAdapter

This test fails occasionally with the following error:
System.IO.IOException : Authentication failed because the remote party has closed the transport stream.
   at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
   at System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 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)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Testing.HttpClientSlim.<GetStream>d__7.MoveNext()
--- 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 Microsoft.AspNetCore.Testing.HttpClientSlim.<GetStringAsync>d__1.MoveNext()
--- 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 Microsoft.AspNetCore.Testing.HttpClientSlim.<GetStringAsync>d__0.MoveNext()
--- 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 Microsoft.AspNetCore.Testing.TaskExtensions.<TimeoutAfter>d__0`1.MoveNext()
--- 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 Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.LoggingConnectionAdapterTests.<LoggingConnectionAdapterCanBeAddedBeforeAndAfterHttpsAdapter>d__0.MoveNext()
--- 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)
--- 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)
--- 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)
------- Stdout: -------
| [0.014s] TestLifetime Information: Starting test LoggingConnectionAdapterCanBeAddedBeforeAndAfterHttpsAdapter at 2018-07-24T22:59:13
| [0.138s] Microsoft.AspNetCore.Hosting.Internal.WebHost Debug: Hosting starting
| [16.079s] Microsoft.AspNetCore.Hosting.Internal.WebHost Debug: Hosting started
| [16.079s] Microsoft.AspNetCore.Hosting.Internal.WebHost Debug: Loaded hosting startup assembly Libuv.FunctionalTests
| [17.132s] Microsoft.AspNetCore.Server.Kestrel Debug: Connection id "0HLFHN4EFEI6B" started.
| [17.141s] LoggingConnectionAdapter Debug: ReadAsync[5] 16 03 03 00 C8
|                                           \x16\x03\x03\0È
| [17.143s] LoggingConnectionAdapter Debug: ReadAsync[200] 01 00 00 C4 03 03 5B 57 AF 53 A0 07 5D DC BE E1 C6 BD 40 0E F8 00 29 3F 00 79 51 F6 49 CC BA 7B CE 48 3E 6D BF C8 20 38 20 00 00 C3 7B 2C F9 7D C1 97 E4 C3 77 D9 C4 3C 91 49 6F AE A8 5C 8E C3 EE 29 62 CD 60 35 FC 00 34 C0 28 C0 27 C0 14 C0 13 00 9F 00 9E 00 9D 00 9C 00 3D 00 3C 00 35 00 2F C0 2C C0 2B C0 24 C0 23 C0 0A C0 09 00 6A 00 40 00 38 00 32 00 0A 00 13 00 05 00 04 01 00 00 47 00 00 00 0E 00 0C 00 00 09 6C 6F 63 61 6C 68 6F 73 74 00 0A 00 06 00 04 00 17 00 18 00 0B 00 02 01 00 00 0D 00 14 00 12 06 01 06 03 04 01 05 01 02 01 04 03 05 03 02 03 02 02 00 23 00 00 00 17 00 00 FF 01 00 01 00
|                                           \x01\0\0Ä\x03\x03[W¯S \x07]Ü¾áÆ½@\x0eø\0)?\0yQöIÌº{ÎH>m¿È 8 \0\0Ã{,ù}ÁäÃwÙÄ<Io®¨\Ãî)bÍ`5ü\04À(À'À\x14À\x13\0\0\0\0\0=\0<\05\0/À,À+À$À#À
À    \0j\0@\08\02\0
\0\x13\0\x05\0\x04\x01\0\0G\0\0\0\x0e\0\u000c\0\0    localhost\0
\0\x06\0\x04\0\x17\0\x18\0\u000b\0\x02\x01\0\0
\0\x14\0\x12\x06\x01\x06\x03\x04\x01\x05\x01\x02\x01\x04\x03\x05\x03\x02\x03\x02\x02\0#\0\0\0\x17\0\0ÿ\x01\0\x01\0
| [17.144s] Microsoft.AspNetCore.Server.Kestrel Error: Uncaught exception from the OnConnectionAsync method of an IConnectionAdapter.
| System.AggregateException: One or more errors occurred. ---> System.AggregateException: An error occurred while writing to logger(s). ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
|    at Serilog.Parsing.MessageTemplateParser.ParsePropertyToken(Int32 startAt, String messageTemplate, Int32& next)
|    at Serilog.Parsing.MessageTemplateParser.<Tokenize>d__1.MoveNext()
|    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
|    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
|    at Serilog.Events.MessageTemplate..ctor(String text, IEnumerable`1 tokens)
|    at Serilog.Parsing.MessageTemplateParser.Parse(String messageTemplate)
|    at Serilog.Extensions.Logging.SerilogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter)
|    at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exce
...

I haven't seen this failure for a month and it's now run as an InMemory functional test which should have improved reliability.


How to use local storage (disk)?

The server:
64G memory,
2T disk.
I want to analysis the 1 billion nodes. How to do?

The request is not specific enough. General suggestion is to go through the docs and papers.


Windows Mixed Reality Commander - Provide connect option to use installed device certificate

If a user chooses to install the device root certificate into the certificate store, it does not need to be retrieved from the device (unless the certificate changes).

closed with pr #133


bulk_create_intent_from_dataframe does not have parameter for language_code

I noticed that bulk_update_intents_from_dataframe allows language_code param to be passed in but bulk_create_intent_from_dataframe does not. Is this intended?
https://github.com/GoogleCloudPlatform/dfcx-scrapi/blob/66b349e2771e84f25f440f28b64a8788e729647a/src/dfcx_scrapi/tools/dataframe_functions.py

@zya-codes Temporarily intentional.😅
Under the hood, bulk_update_intents_from_dataframe is utilizing  update_intent which had the language_code arg implemented early on.
Similarly, bulk_create_intent_from_dataframe is utilizing create_intent which does not have the language_code arg implemented.
We realized this a couple of releases back and a fix was filed for it.
We've implemented the patch to include language_code for all Intent methods on our development branch and it should be merged in this week. 🤞

This is now resolved with the following PR:
https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/14


python3Packages.{shiboken6,pyside6}: 6.5.2 -> 6.6.0

Description of changes
Upstream started hardcoding /bin/bash in 4685aca4f so this rewrites that in a postPatch
Upstream also requires setuptools now in 709c3f0b8 and no longer falls back on distutils, so this adds the setuptools package to the python interpreter used for build
This also pulls in 6abde77c3 since it seems to fix a regression in --include-paths argument parsing in shiboken6 that some dependents need
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

16 packages built:

comic-mandown
comic-mandown.dist
normcap
normcap.dist
onedrivegui
onedrivegui.dist
python310Packages.pyside6
python310Packages.shiboken6
python311Packages.pyside6
python311Packages.shiboken6
retool
retool.dist
smb3-foundry
streamdeck-ui
streamdeck-ui.dist
syncplay

Result of nixpkgs-review pr 265987 run on aarch64-linux 1

16 packages built:

comic-mandown
comic-mandown.dist
normcap
normcap.dist
onedrivegui
onedrivegui.dist
python310Packages.pyside6
python310Packages.shiboken6
python311Packages.pyside6
python311Packages.shiboken6
retool
retool.dist
smb3-foundry
streamdeck-ui
streamdeck-ui.dist
syncplay

Result of nixpkgs-review pr 265987 run on x86_64-darwin 1

12 packages built:

comic-mandown
comic-mandown.dist
normcap
normcap.dist
python310Packages.pyside6
python310Packages.shiboken6
python311Packages.pyside6
python311Packages.shiboken6
retool
retool.dist
smb3-foundry
syncplay

Result of nixpkgs-review pr 265987 run on aarch64-darwin 1

12 packages built:

comic-mandown
comic-mandown.dist
normcap
normcap.dist
python310Packages.pyside6
python310Packages.shiboken6
python311Packages.pyside6
python311Packages.shiboken6
retool
retool.dist
smb3-foundry
syncplay

@ofborg eval

@lilyinstarlight please make sure that https://github.com/NixOS/nixpkgs/pull/268874 is also merged after this one.

Eval error looks unrelated.


Difference in the loss computation between paper and code

I'm trying to re-implement your approach.
In the paper in figure 3 you say "The unsupervised loss is then computed between the outputs of the auxiliary decoders and that of the main decoder.".

But actually in the model.py (master, lines 114-125) you do the folloing:
# Get main prediction
x_ul = self.encoder(x_ul)
output_ul = self.main_decoder(x_ul)

# Get auxiliary predictions
outputs_ul = [aux_decoder(x_ul, output_ul.detach()) for aux_decoder in self.aux_decoders]
targets = F.softmax(output_ul.detach(), dim=1)

# Compute unsupervised loss
loss_unsup = sum([
    self.unsuper_loss(inputs=u, targets=targets, conf_mask=self.confidence_masking, threshold=self.confidence_th, use_softmax=False)
    for u in outputs_ul
])

compute main decoder output
compute aux decoders output (can not understand why you are passing output_ul.detach() as it is ignored in aux_decoder's forward )
compute softmax for aux decoders outputs
compute loss between each element in aux decoders output and softmaxed aux decoders output

Main decoder's output is not used in unsupervised loss computation as it is absent in output_ul. In this line it is redefined
Am I wrong or your actual unsupervised loss computation is a little bit different than stated in the arxiv preprint?

Hi @EgShes
Thank you for your interest,
1- why you are passing output_ul.detach() ?
The predictions are ignored in some cases, but for some types of aux decoders like ObjectMaskingDecoder the predictions are used for computing the perturbation.
2- Main decoder's output is not used in unsupervised loss:
In this unsupervised loss computation, we have self.unsuper_loss(inputs=u, targets=targets) where u is one of the auxiliary predictions, and targets are the main decoder's predictions since:
x_ul = self.encoder(x_ul)
output_ul = self.main_decoder(x_ul)
targets = F.softmax(output_ul.detach(), dim=1)

Hope I answered your question.


Allow hiding for long parameters.

If using Typescript, sometimes just the type will display, and sometimes (such as with useCallback) the type can be very long, and make the line absurdly long.
Example:

It would be nice if there was an option to hide parameters over a configurable length.

Also it would be nice (if it is possible at all) to take into account wrap line length value and wrap line when it is exceeded with parameter annotations.


sorry.......

I need to dl a private video on youtube.
So I installed Python3.5 and youtube-dl.
And I run command　「 youtube-dl [https://www.youtube.com/watch?~~] 」　but it's invalid syntax.
Perhaps it's the initial mistake..., but would tell me how solutions?

Please post the full verbose log with -v. 'invalid syntax' does not provide sufficient information for digging the problem.

Submissions command is all.(URL abridgement)
What should I write additional?......

The command should be:
youtube-dl https://youtube.com/watch?v=YOURID

@DVassilev is right. Just open cmd.exe and type the commands.

thank you,but I cant

ValueError:Invalid IPv6 URL
']' is not recognized as an internal or external command,
operable program or batch file.

Brackets cause the error. Just type the URL:
youtube-dl.exe https://youtube.com/watch?v=YOURID


_sipinternaltls._tcp. should be an SRV record. It is marked as a A/AAAA

_sipinternaltls._tcp. should be an SRV record. It is marked as a A/AAAA

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a94881ba-6f06-a946-47a3-c9c683ddd303
Version Independent ID: 081684f7-3570-fdfd-c32d-90b6e07d81b4
Content: DNS requirements for Skype for Business Server
Content Source: Skype/SfbServer/plan-your-deployment/network-requirements/dns.md
Product: skype-for-business-itpro
GitHub Login: @jambirk
Microsoft Alias: jambirk

@swinster Thank you for pointing this out
I will get this A/AAAA record issue over to the Skype for Business writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

The article was updated recently, this was addressed. Closing the issue.


new GpuCounterConfig counter_group field

I'm working with the perfetto integration added to the Mesa3D project for the Intel GPUs.
Our HW does not allow to report all the available counters at the same time.
We instead have to enable them by groups.
Would it be possible to add a string counter_group name in the GpuCounterConfig definition so that we can enable a given group rather than let the user specify all the counters of a given group.
We also tend to have fixed group names across generations but there can be a bit  of variability in the counters that are available within a group.

But we cannot enable counters from 2 different banks at the same time.

That's what I was worried about and the current design does not describe that. It is currently describing a system where blocks have N counters, but can only enable M at a time, where M < N, but any block can be used. We could extend the GpuCounterBlock structure to reference other blocks that it's exclusive with.

way to specify the GpuCounterBlock name in the cfg file.

I'm not sure what config file you are referring. From what you wrote, I'm deducing that you have a counter, say "counter 5", that can be enabled on one of two or more banks and you want the Perfetto trace config to be extended from just "enable counter 5" to "enable counter 5 on bank 1", is that correct? If so, that doesn't currently exist. I think a way to handle such a counter would be to have multiple versions of it with different IDs for each bank.
Note, nothing currently honors the GpuCounterBlock message, so we can re-design it to suit your needs, but then we will need to make AGI respect it and change the UI to make it clear to the user what counter combinations are possible.
I'm about to go on vacation and will be absent until Dec 1st. If you'd like we can take this conversation to email (my email is my GH username @google.com).

But we cannot enable counters from 2 different banks at the same time.

That's what I was worried about and the current design does not describe that. It is currently describing a system where blocks have N counters, but can only enable M at a time, where M < N, but any block can be used. We could extend the GpuCounterBlock structure to reference other blocks that it's exclusive with.

way to specify the GpuCounterBlock name in the cfg file.

I'm not sure what config file you are referring.

I was referring to files like test/configs/scheduling.cfg

From what you wrote, I'm deducing that you have a counter, say "counter 5", that can be enabled on one of two or more banks and you want the Perfetto trace config to be extended from just "enable counter 5" to "enable counter 5 on bank 1", is that correct? If so, that doesn't currently exist. I think a way to handle such a counter would be to have multiple versions of it with different IDs for each bank.
Note, nothing currently honors the GpuCounterBlock message, so we can re-design it to suit your needs, but then we will need to make AGI respect it and change the UI to make it clear to the user what counter combinations are possible.
I'm about to go on vacation and will be absent until Dec 1st. If you'd like we can take this conversation to email (my email is my GH username @google.com).

It's not really urgent so we can deal with that when you come back.
I think a stop gap solution for us will be to load the provider with an option or env variable.
Have a good one!


Error in approximate calculation

I want to ask is there any way to test how large the data will result in the precision loss between the decrypt and real result would greater than one?

Choose parameters; feed input to this workflow encode --> encrypt --> decrypt --> decode --> output; compare input and output for precision loss. Modify parameters and input individually to run more experiments.


Restructure code for using paddle_xpu

PR types
Others
PR changes
Others
Description
Restructure code for using paddle_xpu.

 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.RuohengMa seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


lost access to a publisher, ghosted by<EMAIL_ADDRESS>after sending my verification data

my issue is the same as https://github.com/microsoft/vsmarketplace/issues/356

my extension is lambda-black
here is the repo ownership commit i was asked to make
the email address i'm trying to verify is linked to the repo is<EMAIL_ADDRESS>which is this github account's public email address visible on my profile as well as every commit in the lambda-black repo

Thanks for reaching VS Marketplace Team, Could you please out to us through our VS Marketplace Support<EMAIL_ADDRESS>alias for further clarifications.
Regards,
VS Marketplace Team

My issue is that I haven't got a response from<EMAIL_ADDRESS>in more than 20 days, despite following up on my last email multiple times, so I don't think following up on my emails can help here.

We have verified your ownership and will provide the required access as soon as possible. We will track your issue there.
Closing this issue.


Add DBInstance

Signed-off-by: Trenton Lawrence<EMAIL_ADDRESS>
Description of your changes
Adds DBInstance. This resource is basically just RDSInstance with API fields consistent with resources such as DBCluster and GlobalCluster.

Fixes #
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

I've created a number of DBInstances but there's a lot of things in this API. That said, quite a lot of it is the same code as in RDSInstance.

Just rebased on top of master

Working through the example DBInstance w/ @muvaf


GUI wallet is not aware when reindex is required when replacing wallet.dat

Actual behaviour
Wallet shows as synced even when replacing wallet.dat
Desired behaviour
Should prompt for reindex where required.
Steps to reproduce
Wait till current wallet is synced.
Close wallet.
Replace wallet.dat with another wallet.dat
Open up GUI.

I have confirmed that Qt also does not prompt for reindex. What is the particular error that you are experiencing?


Feature request: Multiple types support

With Matrix it's easy to build chat channels that are bridged to multiple messenger. It would be useful to be able to define multiple types for same resource. For example type=["matrix", "irc", "telegram"].
Also it should be possible to define join links for each of the messengers for easy joining.

We can't really support multiple types easily, but for now it's ok to just add multiple .json files (1 per resource).


Infrastructure Backup size requirements do not add up correctly

The math is incorrect for the recommended size of the backup directory. Seven backups @10GB per backup would be 70GB, not 140GB. Given the default setting for Infrastructure Backup is 2 backups per day, I think this means to say "Fourteen or 14" backups which would add up to 140GB total.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8873f195-3d34-8940-8019-90d4d99b16bf
Version Independent ID: 09b13864-5ef5-d148-9a6e-004661970735
Content: Recover data in Azure Stack Hub with the Infrastructure Backup Service - Azure Stack Hub
Content Source: azure-stack/operator/azure-stack-backup-infrastructure-backup.md
Service: azure-stack
GitHub Login: @Justinha
Microsoft Alias: justinha

@jgallucci32 Thanks for the feedback. We are investigating the issue and will update you shortly.

@jgallucci32 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@RohitMungi-MSFT @TravisCragg-MSFT I've updated the article as appropriate. Thanks!
https://github.com/MicrosoftDocs/azure-stack-docs-pr/pull/5212

@TravisCragg-MSFT Please assign to me @PatAltimore

@TravisCragg-MSFT Please assign to me @PatAltimore

Checked update was published.
#please-close

Checked update was published.
#please-close


A.12.IR221.TGR12.contactinformation, A.24.IR221.TGR25.datasetFeedContactinformation

This issue has been extracted from the issue list on:https://ies-svn.jrc.ec.europa.eu/issues/2685
Comment
Unresolved issue: 'A regular expression could be used to validate the email address. Several regular expressions are available; the workgroup could choose one.'
Proposed Change
Delete or resolve.

The note is a hint, which could be used when implementing an executable test.
Proposal: delete the note.


update time crate to 0.3

This is a draft PR to fix #2884 it still needs some clean up work, but I'd like to get feedback on this approach and the scope of the issue.
Changes:

update the time crate to 0.3

Caveats / Questions:

How does this project want to handle datetimes and TZ data? This PR disables touch filetime printing daylight savings time tests. time 0.3 removes timezone support and the Timespec DST flag (upstream issue https://github.com/time-rs/time/discussions/351). Unicode icu4x might provide longer term stability and allow us to localize dates and times for strftime %b and %c currently we assume LC_ALL=C e.g. from https://github.com/unicode-org/icu4x/issues/1317
Is #2884 for upgrading direct usage of time 0.1 or removing it from the dep tree entirely? This PR still uses time 0.1 indirectly via chrono.
How much do we care about RUSTSEC-2020-0071? To fix this we'd need chrono to update to time 0.3 and https://github.com/chronotope/chrono/pull/639#issuecomment-1075906922 suggests they aren't planning to. I can see spinning this off into a separate issue.
Related to ^ this PR uses the time 0.3 uses unsound_local_offset config. My read is that racing multithreaded reads of env vars are unlikely to be an issue for single threaded, short lived CLI utils, but I can do more in this PR to isolate and limit the number of fallible calls e.g. read offset once at load.

Tests:

[x] RUSTFLAGS="--cfg unsound_local_offset" cargo test --features=feat_require_unix_utmpx,feat_common_core passes locally with version:

rustc --version --verbose
rustc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: aarch64-apple-darwin
release: 1.58.1
LLVM version: 13.0.0

cool stuff, bravo :)
Answer:

about sec

I don't care about that RUSTSEC-2020-0071, afaik, nobody is using this crate in production and rust sec is less worrying that C's

How does this project want to handle datetimes and TZ data?

Just like GNU :)

about time 0.1

I would like to see that update to 0.3 everywhere (or switch to chrono)

See also https://github.com/uutils/coreutils/pull/3300

@g-k sorry for the ping :) do you have an update on this? This is the main blocker to have it in Debian :)
thanks

Oh getting it in Debian is exciting!
I'm not sure how to fix the remaining errors and I don't think I'll have time to finish it in a reasonable amount of time.
Happy to hand it off if someone else wants to pick it up.

I think I fixed all the issues but one:
$ stat -c %z /bin/sh
2021-11-26 17:20:49.310012278 +0100
$ ./target/debug/coreutils stat -c %z /bin/sh
2021-11-26 18:20:49.310012278 +0200

(note the +01 vs +02 for the TZ)
while the following work:
$ stat -c %z Cargo.toml
2022-04-23 21:46:14.564134437 +0200
$ ./target/debug/coreutils stat -c %z Cargo.toml
2022-04-23 21:46:14.564134437 +0200

Not sure what is going on?
Maybe a DST issue when the file was created?!

Something related to DST seems likely. The dates seem to match with when the timezone changes. If I touch 2 files and give them the dates before and after DST starts I get the same behaviour (all using GNU):
❯ touch -t 03260500 test1
❯ touch -t 03280500 test2
❯ stat -c %x test1
2022-03-26 05:00:00.000000000 +0100
❯ stat -c %x test2
2022-03-28 05:00:00.000000000 +0200

(I use %x because the creation time is not affected by touch)

Probably https://github.com/uutils/coreutils/blob/492f4fb84c56bd349dcabd72d4a11d71c3c7ad95/src/uucore/src/lib/features/fsext.rs#L744=

Warning: Congrats! The gnu test tests/touch/relative is no longer failing!
Error: GNU test failed: tests/touch/60-seconds. tests/touch/60-seconds is passing on 'main'. Maybe you have to rebase?

The GNU failure is
$ ./target/debug/coreutils touch -t<PHONE_NUMBER>00.60 f
touch: invalid date ts format '197001010000.60'

Actually, I am wrong:
Warning: Changes from 'main': PASS -2 / FAIL -1 / ERROR +3 / SKIP +0

Finally! :)
Warning: Changes from 'main': PASS +0 / FAIL +0 / ERROR +0 / SKIP +0
Not perfect. I am not happy with the long list of format_description in touch.rs
https://github.com/uutils/coreutils/pull/3319/files#diff-9565d8fad7b29837b3b468a61a809dc187fb351a72421ffe4b7c4879a8445b27R264=
I will land it to iterate from it
reported:
https://github.com/uutils/coreutils/issues/3505

Finally! This is amazing!


Add Top 50 Daily Playlists

Add Daily Song Charts playlists for 67 countries.

Cool! Thanks for contributing!


Sized floating implementation.

I really only wanted Double but apparently this is a more general type.

! @jystic Not sure about the RealFrac, I don't want to be Savage

👍 after comment fix


In what modes does the stride option work?

Previously, stride option worked in all modes except BSGS. In the latest version, this option does not work anywhere at all, or as before in the address, rmd160 and xpoint modes?

None, it doesn't work for any mode due a bug in the logic of the code.


ilxd SIGSEGV on faucet request

Running linux_386 version, got the below just after requesting a faucet distribution. Restarted, and everything seems to be fine again, including the coins requested being present in the wallet.
2023-06-26T16:13:00-04:00  [INFO]  PeerID: 12D3KooWD3P1EwabbpjQnCwpdrXg1HtbBv1LzSuFpuDLyjAievG6
2023-06-26T16:13:00-04:00  [INFO]  Listening on /ip4/<IP_ADDRESS>/tcp/9002
2023-06-26T16:13:00-04:00  [INFO]  Listening on /ip4/<IP_ADDRESS>/udp/9002/quic
2023-06-26T16:13:00-04:00  [INFO]  Listening on /ip4/<IP_ADDRESS>/tcp/9002
2023-06-26T16:13:00-04:00  [INFO]  Listening on /ip4/<IP_ADDRESS>/udp/9002/quic
2023-06-26T16:13:00-04:00  [INFO]  Listening on /ip6/::1/tcp/9002
2023-06-26T16:13:00-04:00  [INFO]  Listening on /ip6/::1/udp/9002/quic
2023-06-26T16:13:00-04:00  [INFO]  gRPC server listening on /ip4/<IP_ADDRESS>/tcp/5001
2023-06-26T16:13:00-04:00  [INFO]  Wallet started. Syncing blocks to tip...
2023-06-26T16:13:01-04:00  [INFO]  Wallet sync complete.
2023-06-26T16:13:16-04:00  [INFO]  Blockchain synced to tip
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x85248d3]
goroutine 433 [running]:
github.com/project-illium/ilxd/blockchain.(*ValidatorSet).WeightedRandomValidator(0xc55e2a0)
/home/runner/work/ilxd/ilxd/blockchain/validatorset.go:568 +0x163
github.com/project-illium/ilxd/blockchain.(*Blockchain).WeightedRandomValidator(0xc55ea80)
/home/runner/work/ilxd/ilxd/blockchain/chain.go:378 +0x8a
github.com/project-illium/ilxd/consensus.(*BackoffChooser).WeightedRandomValidator(0xc830030)
/home/runner/work/ilxd/ilxd/consensus/chooser.go:38 +0x2b
github.com/project-illium/ilxd/consensus.(*ConsensusEngine).pollLoop(0xc83e000)
/home/runner/work/ilxd/ilxd/consensus/engine.go:463 +0x67
github.com/project-illium/ilxd/consensus.(*ConsensusEngine).handler(0xc83e000)
/home/runner/work/ilxd/ilxd/consensus/engine.go:181 +0x205
created by github.com/project-illium/ilxd/consensus.NewConsensusEngine
/home/runner/work/ilxd/ilxd/consensus/engine.go:154 +0x5b2

Looks like the same error occurs when spending:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x85248d3]
goroutine 565 [running]:
github.com/project-illium/ilxd/blockchain.(*ValidatorSet).WeightedRandomValidator(0xb4d8070)
/home/runner/work/ilxd/ilxd/blockchain/validatorset.go:568 +0x163
github.com/project-illium/ilxd/blockchain.(*Blockchain).WeightedRandomValidator(0xb4d80e0)
/home/runner/work/ilxd/ilxd/blockchain/chain.go:378 +0x8a
github.com/project-illium/ilxd/consensus.(*BackoffChooser).WeightedRandomValidator(0xb738af0)
/home/runner/work/ilxd/ilxd/consensus/chooser.go:38 +0x2b
github.com/project-illium/ilxd/consensus.(*ConsensusEngine).pollLoop(0xb55aa80)
/home/runner/work/ilxd/ilxd/consensus/engine.go:463 +0x67
github.com/project-illium/ilxd/consensus.(*ConsensusEngine).handler(0xb55aa80)
/home/runner/work/ilxd/ilxd/consensus/engine.go:181 +0x205
created by github.com/project-illium/ilxd/consensus.NewConsensusEngine
/home/runner/work/ilxd/ilxd/consensus/engine.go:154 +0x5b2

Thank you for testing this out.
The bug is interesting because I'm skipping the error check on the weightedrand.NewChooser constructor. Which obviously would panic if the chooser is accessed after there was an error in the constructor.
But there can only be an error in the constructor if:

There are zero validators.
The total stake overflows an int64.

Oh you said you're on  linux_386. That cause an overflow if it's over an int32, which it might be.

I think the only way to fix this is to fork the WeightedRand library.

If you want to try pulling from master it should be fixed now.


Fix travis linux build

Add missing glfw dependencies for the newer trusty images.
Same as #1422 for 0.16 branch

I assume it's safe to merge this now, given the other was merged/worked. So we can unblock the other pending PRs
bors r+


Addressable should include a method to return it's address space as an inclusive range.

Every address space registration requires duplicate definition of the start and stop space.
    let rom = Memory::<ReadOnly>::new(0x7fea, 0x7fff).load(vec![
        0xa9, 0x01, 0x8d, 0x00, 0x80, 0xa9, 0x02, 0x8d, 0x01, 0x80, 0xa9, 0x03, 0x8d, 0x02, 0x80,
        0x4c, 0xea, 0x7f, 0xea, 0x7f, 0x00, 0x00,
    ]);
    let ram = Memory::<ReadWrite>::new(0x8000, 0xffff);
    let cpu = MOS6502::default()
        .register_address_space(0x7fea..=0x7fff, rom)
        .unwrap()
        .register_address_space(0x8000..=0xffff, ram

This information is already contained on the Addressable and the duplicate constants could be removed in favor of exposing a method to pull it from the object.

This issue was fixed in #123

This issue was fixed in #123


Drop support of Jetty Alpn

Motivation:
Jetty Alpn is required when the JDK runtime does not support ALPN using an agent. This is not required anymore since Netty 4.2 depends on Java 8 and Java 8 has been supporting ALPN since 8u252. Jetty Alpn is not supported anymore by the maintainers of the library (https://webtide.com/jetty-alpn-java-8u252/). A side motivation is the support of declarative module in Netty, since Jetty Alpn is not supported anymore, it would not provide proper descriptors.
Changes:
Remove dependency and handling of Jetty Alpn.
Results:
Netty does not depend anymore on org.eclipse.jetty.alpn:alpn-api .
Fixes #14227

This also applies to the main branch, where we haven't yet removed this.


Is it timestamp resolution is based on DWM oscillator ?

Hi, I am a little bit confused about timestamp.
My question is that
When I use DW1000Time::setTimestamp , will this func write to the DWM the timestamp value that I want.
Or it just write this to arduino SRAM?
If this is possible,there should be a resetTimestamp func in DW1000Time
Thanks

Yes it is. Since 8 Mhz arduino pro mini can not really cope with 38.4 Mhz timestamping resolution.

DW1000Time is an independent object. DW1000Time::setTimestamp sets the time of the object.


Editor: Drag and Drop

When dropping a resource over its corresponding component (i.e. a MeshCube over ComponentMesh) the resource gets replaced in the component. Which is the expected behavior.

But at the same time ViewComponent is also trying to create a new component with the resource attached to it leading to this error:

Shouldn't the component creation only happen if the resource is dropped over an empty space in ViewComponents?

The View listened in the capture phase, so first it tried to attach a new component, then the event was passed to the existing one. Changed that. Testing needed to watch out for side effects, if listining in the capture phase had some reason...

ok, I will watch out for side effects


Upgrade to qiskit_sphinx_theme 1.12

The 1.12 theme release is focused on stability, including CSS fixes. See https://github.com/Qiskit/qiskit_sphinx_theme/releases/tag/1.12.0rc1 for the changelog.
It allows us to de-duplicate custom_directives.py, versionutils.py, and _static/no_image.png.
This PR also:

Fixes incomplete pyproject.toml entry for how to build this distribution. It is highly recommended that all Python projects have this.
Enables -j auto with Sphinx to have parallelism. This should result in a faster docs build.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.48%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
9405

Relevant Lines:
10751

💛  - Coveralls


Can this work for jpeg or png images

Im trying to use this repo but it looks like it only supports nifit files. Is there a way to get it working for jpg or png files?
When trying to use regular png and jpg files, I get this error:
`Loading list of test images...
Loading Elastix registration parameters...
Building Multi-Atlas Segmentation model...
Building RCA Classifier...
Loop over test images...
1/34 Image filename: p4-6.png
  - Predicting segmentation...
Traceback (most recent call last):
  File "test.py", line 78, in <module>
    test_mas_rca(config)
  File "test.py", line 49, in test_mas_rca
    label, label_path, idxs = mas.predict_segmentation(
  File "/home/hanna/Downloads/seg_metrics/Multi-Atlas_RCA/models.py", line 44, in predict_segmentation
    idxs = self._atlas_selection(image_path)
  File "/home/hanna/Downloads/seg_metrics/Multi-Atlas_RCA/models.py", line 81, in _atlas_selection
    sitk.ReadImage(atlas_image) / 255.)))
  File "/home/hanna/.pyenv/versions/3.8-dev/lib/python3.8/site-packages/SimpleITK/SimpleITK.py", line 4421, in __truediv__
    return DivideReal( self, float(other) )
  File "/home/hanna/.pyenv/versions/3.8-dev/lib/python3.8/site-packages/SimpleITK/SimpleITK.py", line 27716, in DivideReal
    return _SimpleITK.DivideReal(*args)
RuntimeError: Exception thrown in SimpleITK DivideReal: /home/francesco/SimpleElastix/Code/Common/include/sitkMemberFunctionFactory.hxx:208:
sitk::ERROR: Pixel type: vector of 8-bit unsigned integer is not supported in 2D byN3itk6simple21DivideRealImageFilterE
`

@lucasmansilla

Hi @hdiggins,
The code works with png images. In fact, it was tested with that image format. About the reported error, I have just uploaded some changes to fix and improve the image loading.
Sorry for the delay.

@lucasmansilla Thanks for the update. I am now running into another error but it only occurs for some of the training images. Do you know why this would be happening?
Traceback (most recent call last):
  File "test.py", line 76, in <module>
    test_mas_rca(config)
  File "test.py", line 47, in test_mas_rca
    dice = rca.predict_dice({
  File "/home/hanna/Downloads/seg_metrics/Multi-Atlas_RCA/models.py", line 33, in predict_dice
    scores.append(dsc(utils.load_image_itk(atlas_label),
  File "/home/hanna/Downloads/seg_metrics/Multi-Atlas_RCA/binary_metrics.py", line 24, in dsc
    lom_filter.Execute(result_bin, reference_bin)
  File "/home/hanna/.pyenv/versions/3.8-dev/lib/python3.8/site-packages/SimpleITK/SimpleITK.py", line 44273, in Execute
    return _SimpleITK.LabelOverlapMeasuresImageFilter_Execute(self, image1, image2)
RuntimeError: Exception thrown in SimpleITK LabelOverlapMeasuresImageFilter_Execute: /home/francesco/SimpleElastix/build/ITK-prefix/include/ITK-5.1/itkImageToImageFilter.hxx:220:
itk::ERROR: LabelOverlapMeasuresImageFilter(0x55de5526ac20): Inputs do not occupy the same physical space!
InputImage Spacing: [1.0000000e+00, 1.0000000e+00], InputImage_1 Spacing: [3.5277778e-01, 3.5277778e-01]
	Tolerance: 1.0000000e-06

Also, for predicting dice scores, it seems to take around 1 sec to compare a test image with a single training image. Is there a way to speed this up? Would reducing the image sizes of both increase speed?

Hi @hdiggins,
It seems that registration is not being accurate enough in aligning the images and this could be reflected in the predicted segmentation. Can you share the images and Elastix parameter files to reproduce the problem?

data.zip
1_affine.txt
@lucasmansilla

Hi @hdiggins,
I have seen that your dataset contains images of different sizes. To predict the Dice scores with this code you first need to look for the most similar images and the image similarity metrics that are included here operate with images of the same size.
Have you solved this step in an alternative way?


Import ASGIDispatch from top-level httpx

Importing from submodules of httpx is deprecated since 0.11.0 and removed in 0.12.0.
Fix #1786

LGTM. Please merge for 20.3.

@wangqr Could you merge master to this so that the tests could pass, thanks!


Typo

"Incoming Steam" should be stream?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3d465d0f-2f3e-3543-5a25-2a93b31fe6d7
Version Independent ID: 349773df-a14c-4765-9330-44704be77047
Content: Azure Data Factory Data Flow Move Nodes
Content Source: articles/data-factory/concepts-data-flow-move-nodes.md
Service: data-factory
GitHub Login: @kromerm
Microsoft Alias: makromer

@hurtn Thanks for your contribution, I've addressed this issue in PR: https://github.com/MicrosoftDocs/azure-docs-pr/pull/76218.
The changes should be live EOD or tomorrow. We will now close this issue. In future, if you see any minor bug fixes in the doc, feel free to click on the edit button and submit a PR to update. we love to take community contributions.


Nuxt pages not being created when adding new collections in Directus

After using create-nuxtus to use the Nuxtus boilerplate, when creating a collection in Directus, the corresponding Nuxt page is not being created.
Tested using both no authentication and static token authentication in Directus, with neither working
Nuxtus-cli also shows "No directus collections found" if I attempt to create the page manually.

Hmmm. Any logs you can share (or a repo I can access and test)?
I'd expect an error in the console from npm run dev.

I created a brand new app using npx create-nuxtux test
On startup after running npm start:
><EMAIL_ADDRESS>start
> concurrently "npm run server" "npm run client"

[1]
[1] ><EMAIL_ADDRESS>client
[1] > cd client && npm run dev -- -o
[1]
[0]
[0] ><EMAIL_ADDRESS>server
[0] > cd server && npx directus start
[0]
[1]
[1] > dev
[1] > nuxt dev -o
[1]
[1] Nuxt 3.12.2 with Nitro 2.9.6
[1]
[1]   ➜ Local:    http://localhost:3000/
[1]   ➜ Network:  use --host to expose
[1]
[1] [nuxt:tailwindcss] ℹ Using Tailwind CSS from ~/assets/css/tailwind.css
[0] [14:03:28.049] WARN: "PUBLIC_URL" should be a full URL
[0] [14:03:28.051] WARN: Spatialite isn't installed. Geometry type support will be limited.
[0] [14:03:28.051] WARN: Upload directory (/home/jack/test/server/uploads) is not read/writeable!
[0] [14:03:28.093] INFO: Server started at http://<IP_ADDRESS>:8055
[1]   ➜ DevTools: press Shift + Alt + D in the browser (v1.3.6)
[1]
[1] [nuxt:tailwindcss] ℹ Tailwind Viewer: http://localhost:3000/_tailwind/
[1] ℹ Vite server warmed up in 1342ms
[1] ℹ Vite client warmed up in 1896ms
[1] [nitro] ✔ Nuxt Nitro server built in 815 ms

Creating a new page in Directus:
[0] [14:06:23] POST /collections 200 94ms
[0] [14:06:23] POST /relations 200 97ms
[0] [14:06:23] POST /relations 200 95ms
[0] [14:06:23] GET /collections 200 20ms
[0] [14:06:23] GET /relations 200 29ms
[0] [14:06:23] GET /fields 200 57ms
[0] [14:06:23] GET /fields 304 54ms
[0] [14:06:23] GET /notifications?filter[_and][0][recipient][_eq]=6db7ea64-313b-487a-8299-4c0741940885&filter[_and][1][status][_eq]=inbox&aggregate[countDistinct]=id 304 54ms
[0] [14:06:23] GET /notifications?aggregate[countDistinct]=id 304 52ms
[0] [14:06:23] GET /collections/test 200 65ms
[0] [14:06:23] GET /notifications?limit=25&fields[]=id&fields[]=subject&fields[]=message&fields[]=collection&fields[]=item&fields[]=timestamp&sort[]=-timestamp&page=1&filter[_and][0][recipient][_eq]=6db7ea64-313b-487a-8299-4c0741940885&filter[_and][1][status][_eq]=inbox 304 51ms
[0] [14:06:23] GET /fields 304 100ms
[0] [14:06:24] PATCH /users/me/track/page 204 23ms

Added page to "Public" user in Directus permissions
[0] [14:08:00] POST /permissions/ 200 21ms
[0] [14:08:00] GET /permissions?filter[role][_null]=true 200 47ms

Attempting to access page on Nuxt site:
[1]
[1]  WARN  [Vue Router warn]: No match found for location with path "/test"
[1]
[1]
[1]  WARN  [Vue Router warn]: No match found for location with path "/test"
[1]
[1]
[1]  WARN  [Vue Router warn]: No match found for location with path "/test"
[1]
[1]
[1]  WARN  [Vue Router warn]: No match found for location with path "/test"
[1]

Running create in the Nuxtus CLI
                         _                                  _   _
  _ __    _   _  __  __ | |_   _   _   ___            ___  | | (_)
 | '_ \  | | | | \ \/ / | __| | | | | / __|  _____   / __| | | | |
 | | | | | |_| |  >  <  | |_  | |_| | \__ \ |_____| | (__  | | | |
 |_| |_|  \__,_| /_/\_\  \__|  \__,_| |___/          \___| |_| |_|

No Directus collections found.

[0] [14:11:08] POST /auth/login 200 508ms
[0] [14:11:08] POST /auth/login 200 507ms
[0] [14:11:08] GET /collections 200 16ms

What's interesting is it looks like the Nuxtus extention hasn't been installed in Directus, as the extentions page just shows "No Extentions"

Thanks for the extra info. I think something has changed in the extension handling in recent DIrectus updates. I'm looking into it and will get back to you.

Okay, so for some reason the directus hook isn't being installed to the correct location. I'll update the install scripts to fix this, but in the meantime you can do a couple of manual steps to get things working:

Move the folder from /server/extensions/hooks/directus-extension-nuxtus-hook to /server/extensions/directus-extension-nuxtus-hook
Move the index.js file into dist/index.js
In /server/extensions/directus-extension-nuxtus-hook place this package.json

Restart nuxtus and the hook will be installed.

Fixed in v2.1.2 or follow the manual steps above to resolve on existing project.


deleted messages_controller and all pertaining tests

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
https://trello.com/c/RYRwEqia/1539-check-whether-anything-is-still-using-email-alert-api-as-substitute-database

I can see that we’ve removed the controller and routing for the messages endpoint (and associated tests), which is a good start. However, there is still a fair amount of code to remove and some database migrations to run.
I’d suggest stepping through the code (from the messages controller) and searching where the associated classes are called and removing them and their references. Message is part of the nomenclature in Email Alert API, meaning references to ‘Message’, message’, ‘messages’ etc all should all be related. As we’re removing the Messages endpoint, we should also remove all code relating to a ‘message’.
An example being, MessageHandlerService, which is called from the MessagesController. From within MessageHandlerService, we also see that Message, ProcessMessageWorker and message_created are all used. All of this ‘messages’ code (classes + references) should be removed.
There are a lot more instances of messages code than the above, you’ll either need to step through each controller and check for any message relating code, or (which will be a lot quicker): search in the repo for references to ‘Message’, ‘messages’ etc and remove accordingly. There are a lot of hits for Message so that should give you a good starting point. Searching in the repo by filename will also work well here.
We’ll also need to run some database migrations to remove the messages and matched_message tables and remove a message_id column from an existing table (https://github.com/alphagov/email-alert-api/blob/main/db/schema.rb#L160). This should be done after the application code has been removed (could still be within the same PR).
For the deleting of tables - we’ll want to have one migration per table. Some guidance on this can be found at: https://gist.github.com/chand/3c646d7ef8f32599ea17ae37c6ebde86.
For the removal of the message_id column, some guidance can be found at: https://riptutorial.com/ruby-on-rails/example/3491/remove-an-existing-column-from-a-table.


New Animations?

There appear to be some new animations in Apple’s “Join us. Be you.” jobs promo video.
It would be great if they could be incorporated into the screensaver.
Direct link to video (not sure if a higher res version is available): https://www.apple.com/jobs/global/media/acvideo/2020-index/us/2020USHero-HD-cc-us-2020_1280x720.mp4

The new ones look sick!

would love this too

I just wish I could work out HOW to install as screensaver on my MacBook Pro. I am not as knowledgeable as you guys.

Happy to see these made it in. Just wanted to mention that the download link in Readme.rd is still pointing to the old version.

Nicely spotted! Do you mind opening a PR with a fix?


[Model Update]: Return Request v2.0.0

Update Reason

add attributes: manufacturingPartID, OeNumber, mileage, productionDate, areaOfUsage, deliveryAddress, productGroup, arrivalDateAtCustomer

MS1 Criteria

[x] The model that should be updated exists
[x] The referenced use case exists
[x] The potential updates are discussed with all stakeholders
[x] A decision on versioning was made in consensus with the affected parties according to the guidelines.
[ ] The potential update will be either

[ ] backward compatible or
[x] a (chain of) migration strategy(-ies) from all non-deprecated previous versions to the new model will be developed

[x] A modeling steward has been assigned

Link to the current version of the return request model (v1.1.2)
https://github.com/eclipse-tractusx/sldt-semantic-models/tree/main/io.catenax.return_request/1.1.2

The discussion is required on providing the 'deliveryAdress' in the model