using DNK

sup, i have this code so far
`import SwiftUI
import DynamicNotchKit
let notch = DynamicNotchInfo(
systemImage: "figure",
title: "Figure",
description: "Looks like a person"
)
notch.show(for: 2)`
this is basically my first time using swift/swiftui so my bad if this is an easy fix.
on "notch.show(for: 2)" it says
Expressions are not allowed at the top level.
and on "import DynamicNotchKit" it says
No such module "DymanicNotchKit"
(yeah, i added it as a dependancy.)
how do i fix this?

When you add DynamicNotchKit into the project, you will need to add the scheme itself as a target.
As for the Expressions are not allowed at the top level., it means that you cannot simply call DynamicNotchKit from the top level. Since you are using SwiftUI, you will need to put it inside a view.
Anyways, if this is your first time using Swift, I would highly recommend going through some tutorials to get used to Swift before trying to use DynamicNotchKit :)

my bad, i figured out how to fix the expression error after posting this. also, i've watched some swift tutorials after this and still can't figure out how to add "the scheme itself as a target", am i watching the wrong tutorial or?

Make sure that when adding the package, you have selected the target (sorry not scheme) as so:

okay, that fixed it, but of course with every good thing theres a bad thing, lol.. when i did that, this error came out of nowhere, i searched reddit, stackoverflow, hacking with swift, etc and cant find a fix that would suit this.

my bad if im asking too many questions.

Since you are using SwiftUI, you will need to wrap it inside something like a button:
Button {
	let notch = DynamicNotchInfo(
		systemImage： "figure"，
		title： "Figure"，
		description： "Looks like a person"
	)
	notch.show(for: 2)
}, label: {
	Text("Show")
}

(there may be typos here)

er, yeah soo..

fun, is there a different way?

Yes, you will need to wrap the button in a SwiftUI view
Check these (just from a quick search):

https://www.hackingwithswift.com/quick-start/swiftui/how-to-create-and-compose-custom-views
https://developer.apple.com/documentation/swiftui/view

appears im not understanding something, neither of these really make me understand what im supposed to do here, do you mind explaining?

It will look something like this.
import SwiftUI
import DynamicNotchKit

struct ContentView: View {
	var body: some View {
		Button {
			let notch = DynamicNotchInfo(
				systemImage： "figure"，
				title： "Figure"，
				description： "Looks like a person"
			)
			notch.show(for: 2)
		}, label: {
			Text("Show")
		}
	}
}

Again, I would highly recommend getting comfortable with using SwiftUI by itself before trying to learn how to use DynamicNotchKit :)

i got it working, but just a question. how do i stop it from sliding in from the left and make it emerge only from the notch?

That shouldnt' be happening.. would yo be able to send your code?

yeah, it's really just normal code.
just was testing, if you want i can send a screen recording too.
summary; i made a project, imported DNK, made a playground in the project, put the code, and it didn't give me any errors except for this glitch.
`import SwiftUI
import DynamicNotchKit
let notch = DynamicNotchInfo(
systemImage: "sparkles",
title: "testing",
description: "working"
)
notch.show(for: 2)
`

I haven't tried using DynamicNotchKit from a swift playground, but maybe it might work if you make it run asynchronously using DispatchQueue.main.async { <DynamicNotchKit code> }? But I'm not sure, since I never intended for this to be run from a playground.

awesome, it works now. question though, can i make it topmost above all windows? when i switch windows (stage manager) while it's showing, the window infront overlaps the dynamic notch and goes over it.

Ohh that's interesting.. Right here, the dynamicNotch is set to be on the screensaver level (one of the highest levels for a window), so I'm not exactly sure why that would be happening.
This would be a super hacky solution atm, but try adding this right after initializing the dynamicNotch, but before showing it:
notch.windowController?.window?.level = window.Level(rawValue: NSWindow.Level.RawValue(CGShieldingWindowLevel()))

This would set the window to be on the highest possible level, which might fix the stage manager issue.

Ohh that's interesting.. Right here, the dynamicNotch is set to be on the screensaver level (one of the highest levels for a window), so I'm not exactly sure why that would be happening.
"This would be a super hacky solution atm, but try adding this right after initializing the dynamicNotch, but before showing it:"
notch.windowController?.window?.level = window.Level(rawValue: NSWindow.Level.RawValue(CGShieldingWindowLevel()))

This would set the window to be on the highest possible level, which might fix the stage manager issue.

and where would this go? before "notch.show(for: 2)"?

Yup!

Yup!

alright, i'll try it.

hmm, doesn't seem to work. do i have to import something?

Hmm.. try typing the windowController then the ., and see what autocompletion options come up. Maybe there's something similar to window that comes up?

Hmm.. try typing the windowController then the ., and see what autocompletion options come up. Maybe there's something similar to window that comes up?

like this?
import SwiftUI
import DynamicNotchKit
DispatchQueue.main.async {
let notch = DynamicNotchInfo(
systemImage: "sparkles",
title: "testing",
description: "working"
)
notch.windowController.window?.level = window.Level(rawValue: NSWindow.Level.RawValue(CGShieldingWindowLevel()))
notch.show(for: 5)
}

seems good to me!

seems good to me!

mm, okay. it gives me this.

Try chaining the optional using the ? and see what happens

you mean this?

Yes, and then remove window?.level and see what autocompletion can give you as an equivalent

same thing.

ohhh whoops I had a typo :P
It's NSWindow.Level, not window.Level

Try NSWindow.Level(.init(CGShieldingWindowLevel())) instead of window.Level(rawValue: RawValue(CGShieldingWindowLevel()))

cheers!

Try NSWindow.Level(.init(CGShieldingWindowLevel())) instead of window.Level(rawValue: RawValue(CGShieldingWindowLevel()))

nevermind. 😄
https://github.com/MrKai77/DynamicNotchKit/assets/157659892/b164a12e-c4c9-47ee-98c3-4081e103c07c

Nooo 😭
But it works correctly without stage manager when switching windows right? In that case, I'm confident that this is a MacOS bug.

Nooo 😭
But it works correctly without stage manager when switching windows right? In that case, I'm confident that this is a MacOS bug.

nope, doesn't work without stage manager either..

Alright, then it might be something with the project being a playground? Maybe since the popup is treated as an app window rather than a popuver.
Try putting the code inside a SwiftUI button and activate it from there maybe?

Alright, then it might be something with the project being a playground? Maybe since the popup is treated as an app window rather than a popuver.
Try putting the code inside a SwiftUI button and activate it from there maybe?

what should i put it as instead of a project? like, do i put it in a project? a workspace? and what do i put the code in? contentview.swift or?

Yes, the code would be put in ContentView (or any other SwiftUI view).

Yes, the code would be put in ContentView (or any other SwiftUI view).

kay, and just a normal project?
(target = app)

I haven't tried using DynamicNotchKit from a swift playground, but maybe it might work if you make it run asynchronously using DispatchQueue.main.async { <DynamicNotchKit code> }? But I'm not sure, since I never intended for this to be run from a playground.

quick question, is it possible to have the dynamic notch appear when my cursor goes into it? (similar to mediamate.)

Yes, you can call notch.checkIfMouseIsInNotch() to check if the mouse is inside the notch.


Only 3 departures are shown

Hi,
in my config file I wrote:
maxEntries: 6,
but only 3 departures are shown.
When don't use maxEntries at all it shows 4 departures.
What can I do to fix this?

Hi,
as a first step would be possible to share your config file?

Hi,
thanks for your reply. That issue is solved. It was caused by another module: https://github.com/vicmora/MMM-GoogleMapsTraffic
Now your module works just fine

Ok, thank you for the update.
Closing the issue now.


Duplicates with matching titles and DOIs failed to merge

I was looking through RMD to think about whether we can turn the automatic emails back on, and I found a duplicate group that I think should have merged automatically: https://metadata.libraries.psu.edu/admin/duplicate_publication_group/130481
@ajkiessl is this just due to timing (maybe it's going to merge and hasn't yet)? If so, I'm curious whether we'd expect auto-mergeable but not merged items at the top of the duplicate group list all the time, or if that's temporary as the new code does its thing. If they'll always be at the top of the list, people doing manual deduplication should probably start elsewhere.

@anaelizabethenriquez These aren't being merged because of a bug.  I should be able to get this fixed today.
Newly formed groups will show up at the top of the list, so yes, it would probably be better to start further into the list when manually deduping.

Thanks, @ajkiessl !
I'll let Lucretia know about starting deduplication in the middle of the list. Tagging @nmg110 so she's also aware.


Add some maths' functions

List of some important functions

[x] Absolute number
[ ] Aliquot Sum of a number
[ ] Area of various shapes
[ ] Arithmetic-Geometric Mean
[ ] Armstrong number
[x] Average Mean
[x] Average Median
[ ] Binary to Decimal conversion
[ ] Binary Exponentiation Iterative
[ ] Decimal to Binary conversion
[ ] Binomial Coefficient
[ ] Bisection Method
[ ] Function to check Co-prime
[ ] Decimal Expansion
[ ] Decimal Isolation
[ ] Degree to Radian Conversion
[ ] Euler Method
[ ] Eulers Totient
[x] Factorial
[ ] Factors
[ ] Fibonacci
[ ] Find HCM
[x] Find LCM
[x] Finding a minimum in a array of numbers
[ ] Function to check a number is Divisible by another number or not
[x] Function to check a number is Even
[x] Function to check a number is Odd
[ ] Function to check a number is Pronic
[ ] Function to check a number is Square free
[ ] Juggler Sequence
[x] Leap year
[ ] Matrix Multiplication
[ ] Number of digits in a number
[ ] Pascal Triangle
[ ] Perfect Cube
[ ] Perfect Square
[ ] Perfect Numbers
[ ] Prime check
[x] Radian to Degree Conversion
[x] Finding Square root
[x] Sum of Digits of a given number

Raised a PR to check perfect square - https://github.com/TheAlgorithms/TypeScript/pull/37

I implemented Factorial in #38

I implemented Sum of Digits of a given number in #39

I implemented IsLeapYear (gregorian calendar) in #40

I implemented IsLeapYear (gregorian calendar) in #40

Just link #40 to #10 then (as you did), no need to add a redundant comment (and trigger a redundant notification here).

@Owais28  Added CalculateMedian feature https://github.com/TheAlgorithms/TypeScript/pull/73

@Owais28 I Added #125 Create binary_to_Decimal_Conversion and prime_check

Hi @Owais28 I have made a PR for matrix multiplication feature.

@appgurueu

Hi, just checked and https://github.com/TheAlgorithms/TypeScript/pull/82 already solved "Function to check a number is Pronic". It should be ticked off.

Hi, I just checked and some of the ticks are missing in the above list.

Armstrong number: https://github.com/TheAlgorithms/TypeScript/pull/44
Decimal to Binary conversion: https://github.com/TheAlgorithms/TypeScript/pull/23
Function to check a number is Divisible by another number or not: https://github.com/TheAlgorithms/TypeScript/pull/43
Function to check a number is Pronic: https://github.com/TheAlgorithms/TypeScript/pull/82
Function to check a number is Square free: https://github.com/TheAlgorithms/TypeScript/pull/94

Updated. Thank you @marvinbuff 🙂

/attempt #207


I am using GROMACS as a molecular dynamics simulation tool and planning to use either MDAnalysis or mdtraj for analyzing collective variables. My question is whether these libraries support reading .xtc or .trr trajectory files generated from GROMACS simulations for identification of collective variables.

Details : -
Simulation Tool: GROMACS
Analysis Library Options: MDAnalysis or mdtraj
Could you please provide information on:
Whether MlColvar libraries can directly handle .xtc or .trr files.
Any recommended approaches or examples for using these libraries to identify collective variables from GROMACS trajectories.
If support for .xtc or .trr files is not available, are there alternative methods or tools recommended for this purpose?
Additional Context
I have experience using GROMACS for molecular dynamics simulations and have successfully generated .xtc or .trr trajectory files. However, I am seeking guidance on how to leverage mlcolvar to identify collective variables such as principal components or other relevant features.
Any insights or recommendations would be greatly appreciated!

Whether MlColvar libraries can directly handle .xtc or .trr files.

No, it can't. You should either use Plumed (suggested) or something else to process them.
With plumed you can also analyze trajectories from files using the driver command


[REQUEST] FinTube

Project Description
Easily add content from YouTube to your Jellyfin installation.
Project link
https://github.com/AECX/FinTube

I had to close this one after I made some changes in the main.


Add datasets and networks for membership inference evaluation

Description
Add Purchase100, Texas100, CIFAR100, and a multi-layer perception network for membership inference evaluation
How has this been tested?
It has been tested with configuration files in the pull request
Execute ./run -c configs/Purchase100/fedavg_multilayer.yml
Execute ./run -c configs/Texas100/fedavg_multilayer.yml
Execute ./run -c configs/CIFAR100/fedavg_resnet18.yml
Types of changes

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

Checklist:

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Hi @tianzheng4 ,
I tried to run the Purchase100 config file with non-IID sampler and got the following error:
[ERROR][15:57:41]: Task exception was never retrieved
...
  File "<plato home dir>/plato/samplers/dirichlet.py", line 44, in __init__
    target_list = datasource.targets()
  File "<plato home dir>/plato/datasources/base.py", line 108, in targets
    return self.trainset.targets
AttributeError: 'TensorDataset' object has no attribute 'targets'

Below is the configuration I used:
clients:
    # Type
    type: simple

    # The total number of clients
    total_clients: 100

    # The number of clients selected in each round
    per_round: 25

    # Should the clients compute test accuracy locally?
    do_test: false

server:
    address: <IP_ADDRESS>
    port: 8080
    # simulate_wall_time: true

data:
    # The training and testing dataset
    datasource: Purchase

    # Number of samples in each partition
    partition_size: 2000

    # IID or non-IID?
    sampler: noniid

    # The concentration parameter for the Dirichlet distribution
    concentration: 0.5

    # The random seed for sampling data
    random_seed: 1

trainer:
    # The type of the trainer
    type: basic
    # type: diff_privacy
    # dp_epsilon: 2
    # dp_delta: 0.00001
    # dp_max_grad_norm: 1

    # The maximum number of training rounds
    rounds: 100

    # The maximum number of clients running concurrently
    max_concurrency: 10

    # The target accuracy
    target_accuracy: 0.95

    # Number of epoches for local training in each communication round
    epochs: 5
    batch_size: 10
    optimizer: SGD
    learning_rate: 0.1
    momentum: 0.9
    weight_decay: 0.0

    # The machine learning model
    model_name: multilayer
    input_dim: 600
    num_classes: 100

algorithm:
    # Aggregation algorithm
    type: fedavg

results:
    # Write the following parameter(s) into a CSV
    types: round, elapsed_time, accuracy

    # Plot results (x_axis-y_axis)
    plot: round-accuracy, elapsed_time-accuracy

Thanks.

Hi @tianzheng4 ,
I tried to run the Purchase100 config file with non-IID sampler and got the following error:
[ERROR][15:57:41]: Task exception was never retrieved
...
  File "<plato home dir>/plato/samplers/dirichlet.py", line 44, in __init__
    target_list = datasource.targets()
  File "<plato home dir>/plato/datasources/base.py", line 108, in targets
    return self.trainset.targets
AttributeError: 'TensorDataset' object has no attribute 'targets'

Below is the configuration I used:
clients:
    # Type
    type: simple

    # The total number of clients
    total_clients: 100

    # The number of clients selected in each round
    per_round: 25

    # Should the clients compute test accuracy locally?
    do_test: false

server:
    address: <IP_ADDRESS>
    port: 8080
    # simulate_wall_time: true

data:
    # The training and testing dataset
    datasource: Purchase

    # Number of samples in each partition
    partition_size: 2000

    # IID or non-IID?
    sampler: noniid

    # The concentration parameter for the Dirichlet distribution
    concentration: 0.5

    # The random seed for sampling data
    random_seed: 1

trainer:
    # The type of the trainer
    type: basic
    # type: diff_privacy
    # dp_epsilon: 2
    # dp_delta: 0.00001
    # dp_max_grad_norm: 1

    # The maximum number of training rounds
    rounds: 100

    # The maximum number of clients running concurrently
    max_concurrency: 10

    # The target accuracy
    target_accuracy: 0.95

    # Number of epoches for local training in each communication round
    epochs: 5
    batch_size: 10
    optimizer: SGD
    learning_rate: 0.1
    momentum: 0.9
    weight_decay: 0.0

    # The machine learning model
    model_name: multilayer
    input_dim: 600
    num_classes: 100

algorithm:
    # Aggregation algorithm
    type: fedavg

results:
    # Write the following parameter(s) into a CSV
    types: round, elapsed_time, accuracy

    # Plot results (x_axis-y_axis)
    plot: round-accuracy, elapsed_time-accuracy

Thanks.

Hi @cuiboyuan
Many thanks for pointing out this issue! I have committed the fix, and it has been tested by the modified .yml files (change iid to noniid).
Execute ./run -c configs/Purchase100/fedavg_multilayer.yml
Execute ./run -c configs/Texas100/fedavg_multilayer.yml


Speed typing test

Aim

It will track your typing speed.
It is useful as one can improve their typing speed with regular practice.

Details

For a graphical user interface, I am going to use the pygame library which is used for working with graphics, along with some built-in modules of Python like sys, time and random library.
I will create some functions which would be responsible for starting the game, reset the game and few helper functions (i.e. accuracy and WPM (words per minute)). to perform calculations that are required.

I would like to work on this under GSSOC'21.

This already exists: https://github.com/avinashkranjan/Amazing-Python-Scripts/issues/720


!PU(link) not working with Explorer Charts

Works fine for Custom Charts, but not for Explorer Charts. This worked yesterday, so something has changed with maybe a new update by DT for Explorer Charts.

Fixed.


Add basic pnpm support

There's a pretty good chance the pipeline machines won't have pnpm and some adjustments will be required.  Having said that, there's probably no reason to roll this back if pnpm is absent because package installation would have failed for those repos anyway.

And, I was mistaken.  Turns out the whole run exits if pnpm is not present.  I'll roll it back shortly if I can't fix the pipeline.


Doctrine connection not reset on DB::reconnect()

Laravel Version: 5.4
PHP Version: 7.0
Database Driver & Version: MySQL

Description:

Calling DB::reconnect() calls DB::refreshPdoConnections() which will update the PDOs for the connection.
Connection::getDoctrineConnection() sets up a new doctrine connection if it does not exist yet, passes the current PDO and stores it in $this->doctrineConnection.

If the connection's PDO gets changed via DB::reconnect() the doctrineConnection property does not get updated and still holds the old PDO information. Queries using the doctrine connection will execute using wrong settings.
Steps To Reproduce:
Assuming two databases with identical structure ('table' containing a column 'column1'):
// running on db 'firstDb' according to db config
Schema::table('table', function (Blueprint $table) {
  $table->renameColumn('column1', 'column2');
});

Config::set('database.connections.mysql.database', 'secondDb');
DB::reconnect();

Schema::table('table', function (Blueprint $table) {
  $table->renameColumn('column1', 'column2');
});

This results in:

There is no column with name 'column1' on table 'table'.

Explanation:
While the first schema change works correctly, the second one wrongly still uses the old PDO information (ie running on db 'firstDb') and sees there is no 'column1' on it because it already got renamed. If the PDO change would have been propagated to the doctrineConnection it would see that the 'column1' still exists on 'secondDb'.
Workaround:
\App\Database\MySqlConnectionWithPDOFix:
<?php

namespace App\Database;

use Illuminate\Database\MySqlConnection;

class MySqlConnectionWithPDOFix extends MySqlConnection {

	public function reconnect() {
		$this->doctrineConnection = null;
		return parent::reconnect();
	}

	public function disconnect() {
		$this->doctrineConnection = null;
		parent::disconnect();
	}
}

\App\Providers\AppServiceProvider:
Connection::resolverFor('mysql', function($connection, $database, $prefix, $config) {
  return new MySqlConnectionWithPDOFix($connection, $database, $prefix, $config);
});

Edit: I just realised I had another line of code that was needed to make my initial fix working (Schema::connection('mysql')->getConnection()->reconnect()). Apparently calling DB::reconnect() does not call the connections 'reconnect()' method but simply disconnects and connects again - the doctrine connection is persisted through that as well. I have updated my workaround above to also reset doctrineConnection on disconnect().

5.4 is not supported anymore, please upgrade to 5.5 as we solved lots of issues between the two versions.


Missing v2 tag in go.mod

Hi, great lib! Could you please add version 2 definition in go.mod?
Cannot import module with generics:
<EMAIL_ADDRESS>invalid version: module contains a go.mod file, so module path must match major version ("github.com/jucardi/go-streams/v2")
Thanks in advance

Need this too... please add v2

Done! Apologies for the delay, didn't realize my notifications were off


Hcl2 error in provider.tf

Hi!
I have an "assume_role" block in my provider.tf
provider "google" {
  version = "foo"

  assume_role {
    role_arn = "role"
  }
}

and I ran in this error:
2019/11/15 15:24:23 testdata/ok_default_config/providers.tf:5,3-14: Unexpected "assume_role" block; Blocks are not allowed here.

It seems that hcl2 libs are giving an error for a valid terraform format. Also the hcl2 repo is archived.
Are you aware of this issue?

Hi Marion !
Indeed hcl2 is now archived thanks for the information, I didn't notice !
For your issue, terraform-validator is not supposed to extract that block (yet ?). I have to make some further tests so that I can fix it.
What is your final need ? Juste perform terrform-validator as it is right now ? Or do you want to add a new kind of test for your assume_role block ?

Well, I compared google and aws provider's configuration pages. And I found that assume_role is an aws specific block which explain your issue.
BUT, I have the same issue when I create an aws provider .. so I still have to investigate further.

My final need is to run the terraform-validator without an error. Currently, we need to comment the block out to be able to run the command without error.
Having the option to ensure the block is there would be useful but it's not a priority :smiley:
Also, if you're looking for support I would be happy to help!

Thanks Marion,
I managed to fix the bug during lunch break, the PR is now created (#44), test are running. Once everything is ok on that side I'll create a new release :smiley:
About your proposal, feel free to propose improvement, issue, etc. Everyone is welcome here !
About the new feature it could be a good idea for the future, even though #38 is higher priority in my opinion.

%3.1.1 is there for you !

Release 3.1.1 is out !
Change your release version in your CI or use 3.x or 3.1.x version If you want to be updated automatically next time 😉

It works perfectly fine now!
I will play with the tool some more and see about improvements

Great, feel free !


pull request for e2e test at 11/10/2016 01:56:08

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.

Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


GitHub processor tests

This PR adds tests for the Github processor.
This PR uses a helper function from datapackage-pipelines that is pending to be merged: frictionlessdata/datapackage-pipelines#46 .
It also adds a simple sample processor useful for development.

Coverage increased (+3.9%) to 75.287% when pulling be9927948e30428b0b0d02a99553f709e9d9486d on feature/github-processor-tests into 19150fe9e186b0c5b962a0a3fdcd802b067a3f04 on master.


Update wave-reader.cc

Fix gcc13.x and above, 'uint8_t' was not declared in this scope

Thank you for your first-time contribution!


Reddit Scraper

Description
A short summary of what is included in your Pull Request.
Fixes #(31)
Type of change
Choosing one or more options from the following as per the nature of your Pull request.

NOTE: These boxes can be checked using [X]

[ ] Bug fix (non-breaking change which fixes an issue)

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

[X] Documentation Update

Checklist:
Please tick all the boxes that are fulfilled by your Pull Request.

[X] I have named my files and folder, according to this project's guidelines.
[X] My code follows the style guidelines of this project.
[X] My Pull Request has a descriptive title. (not a vague title like Update index.md)
[X] I have commented on my code, particularly in hard-to-understand areas.
[X] I have created a helpful and easy to understand README.md, according to the given README_TEMPLATE.
[X] I have included a requirements.txt file (if external libraries are required.)
[X] My changes do not produce any warnings.
[X] I have added a working sample/screenshot of the script.

Please follow the PR template @danieljo09 and also mention the related issue else it will be marked as spam

@AdityaJ7  thank you sm. its late for me rn, so ill fix my pr up tomorrow!

@AdityaJ7  How does this look?

@all-contributors please add @danieljo09 for code

@all-contributors please add @danieljo09 for code


svsm: pass the memory map to guest firmware

This change permits the SVSM kernel to adjust the memory map according to its own needs before passing it to the guest firmware.  This is necessary in case the SVSM requires additional memory beyond the SVSM carveout based on runtime state, such as the total amount of memory in the VM.  The memory map is presented in IGVM format, and its location is specified in the IGVM parameters established when the SVSM IGVM file is built.

I can take a look at the OVMF part of this and see if we can come up with a cross-platform solution.


getting an error like Undefined symbols for architecture x86_64

Hai, i followed the repo and installation step by step, I am getting an error like this while run in xcode please give me suggestions that how to resolve it

@zxcpoiu please respond i am facing this error from last two days i added $(inherited) in other linker flags, But still facing the error, please give me suggestions that how to resolve it

Please respond,give me suggestions that how to resolve it

I'm not always online, and not an expert neither, sorry about that.
I guess you should unlink all webrtc library on your xcode, and fellow instructions to get latest 0.10+ library. ( especially get it via git lsf )
a Product -> Clean may help.

when I encounter similar problems, I would try:

unlink all webrtc library on xcode
delete all react-native-webrtc folder in node_module
follow instructions to get webrtc lib via npm install and git lfs
a Product -> Clean in xcode may help.

please try #123 to see if it works.


chore: use separate docker image for mlflow server (#101)

Update prerelease of v0.3 branch with new changes
Signed-off-by: Avik Basu<EMAIL_ADDRESS>

Closing this, since will move everything into a new PR


feat(druid-shell): added window mode on wasm target

A window mode has been added: restricted area by canvas size will be
use to draw an application on a web page. The mode will be enabled if
canvas element has both attributes: height and width.
A fullscreen mode will be on by default (height or\and width
attrs are missed)

Not sure, is correct name "window mode" for that or not )

Thanks for the PR and sorry for the slow reponse! The CI is complaining because (1) it expects the code to be formatted with rusfmt and (2) there were some issues with the master branch. I've rebased and formatted, so hopefully it will succeed now.


Re-think createActions usage

Closing, we decided to use the redux toolkit instead of the current solution.


Clarify how multisig is used (with particular focus on paper wallet)

I wasn't sure I understood the manner in which the paper wallet fits into the quorum, or exactly what information needed to be saved where.
Figured that the best way to clarify was in a pull request that would clarify for other readers (if I'm correct).
I also added a high-level How it Works page to clarify usage flows as far as I understand them. Again, this is an exercise in exposing my (lack of) understanding, and turning that into hopefully useful explanation.

Thanks for the PR @sashafklein!
At this point, there are enough other signers (Passport, BB02, multiwallet, bluewallet, Jade, ledger?, etc) that I'm going to re-write the guide as a choose-your-own devices guide. Paper wallets will remain a viable option for recovery only, but they're no longer going to remain the default.

I would like to see clarification too on using a seedpicker paper wallet in a quorum. It's not clear what wallets support import of the seedpicker words.  I was not able to import these words into electrum and other Bip39 wallets to test the recovery process. (This was attempted on testnet with seedpicker and specter desktop )


Simpler way to generate secp256k1.ECIES()

Is your feature request related to a problem? Please describe.
secp256k1.ECIES() first gets the public key bytes then converts them to an ecdsa.PublicKey then uses this to generate a ecies.PublicKey. The first step is not needed as pk.ecdsa is already an ecdsa.PublicKey
Describe the solution you'd like

[ ] replace ECIES() (*ecies.PublicKey, error) with return ecies.ImportECDSAPublic(&pk.ecdsa), nil
[ ] investigate if ECIES() (*ecies.PublicKey, error) should be replaced with ECIES() *ecies.PublicKey or if ecdsa ecdsa.PublicKey should be ecdsa 7ecdsa.PublicKey and nil value check.
[ ] run go test ./...

[x] replace ECIES() (*ecies.PublicKey, error) with return ecies.ImportECDSAPublic(&pk.ecdsa), nil

[x] investigate if ECIES() (*ecies.PublicKey, error) should be replaced with ECIES() *ecies.PublicKey or if ecdsa ecdsa.PublicKey should be ecdsa 7ecdsa.PublicKey and nil value check.

[x] run go test ./...


Add swift5_tests to MetadataSections.

This PR adds a swift5_tests property to MetadataSections and populates it in the static constructors used on Linux and Windows. This section will be used by swift-testing to store test metadata for discovery at runtime (see https://github.com/apple/swift-testing/pull/210.)
This change is necessary because on Linux and Windows, section boundaries are not discoverable at runtime and so must be noted on a per-image basis at compile time. (This is also why MetadataSections and the static constructors are present in the first place.)
There are no compiler changes needed here. The compiler does not need special knowledge of the tests section emitted by swift-testing. The compiler does not itself need to emit anything into this section.
This change does not affect platforms that use the Mach-O binary format (i.e. Darwin) because on those platforms, there is API to find sections and segments at runtime.

@swift-ci please smoke test

That "ready for review" button is too easy to hit in the mobile app.

Addition of this is fine. Where is the content emitted? The Windows case is particularly interesting as that requires specific section naming (the content itself must be emitted into the B group so that the boundaries are properly ordered).

I believe it's going in the "C" section along with all the other emitted Swift section symbols. Mind helping me make sense of the macros in the SwiftRT-COFF source?

Worth noting the plan for the ABI for this section is to emit data only, no executable code, so I think it should be fine to do the same as what other sections do?

Re-reading the Windows section documentation here: I think we're fine?

As of right now, the content of the section is not emitted by any component. swift-testing will (hopefully/eventually) start emitting data in a future PR.
So I think all is well.


Value converters can lead to unexpected seed data operations in migrations

Shouldn't the C# generator emit the ValueConverter.ModelClrType instead of the ValueConverter.ProviderClrType (line 375) for properties in the snapshot, when a ValueConverter is set?
https://github.com/aspnet/EntityFrameworkCore/blob/680b887408744f5163c1e09ae4216072665c402b/src/EFCore.Design/Migrations/Design/CSharpSnapshotGenerator.cs#L366-L376
With the current implementation, if we supply a ValueConverter to a type mapping, some strange side effects happen when adding migrations. These include regeneration of seed data or unnecessary AlterColumn() calls.

For example, our MySqlDateTimeTypeMapping can use a value converter to convert between byte[] (model type) and DateTime (provider type), to support Timestamp/RowVersion columns (which use the database type timestamp but should be implemented as byte[] in the model).
For this model
public class TestEntity
{
    [Key]
    public int Id { get; set; }

    [Required, Timestamp]
    public byte[] RowVersion { get; set; }
}

and this context
public class Issue792Context : DbContext
{
    public DbSet<TestEntity> TestEntities { get; set; }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        // Debugger.Launch();
        modelBuilder.Entity<TestEntity>()
            .HasData(new TestEntity { Id = 1 });
    }
}

the following first migration is generated
protected override void Up(MigrationBuilder migrationBuilder)
{
    migrationBuilder.CreateTable(
        name: "TestEntities",
        columns: table => new
        {
            Id = table.Column<int>(nullable: false)
                .Annotation("MySql:ValueGenerationStrategy",
                            MySqlValueGenerationStrategy.IdentityColumn),

            /* Not sure if expecting table.Column<byte[]> here; works either way for us */
            RowVersion = table.Column<DateTime>(rowVersion: true, nullable: false)
                .Annotation("MySql:ValueGenerationStrategy",
                            MySqlValueGenerationStrategy.ComputedColumn)
        },
        constraints: table =>
        {
            table.PrimaryKey("PK_TestEntities", x => x.Id);
        });

    migrationBuilder.InsertData(
        table: "TestEntities",
        column: "Id",
        value: 1);
}

with the following snapshot:
        protected override void BuildModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "3.0.1-dev")
                .HasAnnotation("Relational:MaxIdentifierLength", 64);

            modelBuilder.Entity("IssueConsoleTemplate.TestEntity", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    /* Expecting b.Property<byte[]> here */
                    /* Side effect: .IsRequired() is missing */
                    b.Property<DateTime>("RowVersion")
                        .IsConcurrencyToken()
                        .ValueGeneratedOnAddOrUpdate()
                        .HasColumnType("timestamp(6)");

                    b.HasKey("Id");

                    b.ToTable("TestEntities");

                    b.HasData(
                        new
                        {
                            Id = 1
                        });
                });
#pragma warning restore 612, 618
        }

I am not sure, if ModelClrType needs to be emitted for the table.Column<> call (probably not), but I think it should be emitted for the b.Property<> call.
Adding an additional migration (without any change to the model), will now recreate the seed data, as the source and target property will be considered changed.
Notice that as a side effect of using ProviderClrType, the [Required] annotation does not result in .IsRequired() being emitted in the snapshot (though nullable: false made it into the Up() script), because ProviderClrType is System.DateTime in our example and is not nullable.
However, our ModelClrType is byte[] and therefore nullable, which now can result in AlterColumn() calls (that set the nullable state of the property) being generated for every migration.
https://github.com/aspnet/EntityFrameworkCore/blob/680b887408744f5163c1e09ae4216072665c402b/src/EFCore.Design/Migrations/Design/CSharpSnapshotGenerator.cs#L396-L401

This is tracked on our repo by https://github.com/PomeloFoundation/Pomelo.EntityFrameworkCore.MySql/issues/792.

@lauxjpn Thanks for reporting this, and thanks for your ongoing work on the MySQL provider. It does look like there is a bug here (@AndriySvyryd and @bricelam have fixed a few things in the snapshots recently) but using the store type in the snapshot is intentional.
The reason is that snapshots persist for a long time, even while the application and its types are evolving. Consider, for example, a MyMoneyType defined in an application and used for properties in the model with an appropriate value converter. If MyMoneyType is used in the snapshot and is then modified or deleted, it will likely break existing model snapshots. So we try to only use "provider types" in the snapshot, since these are likely to be stable.
The reason this should work is because all migrations ultimately cares about are what changes to make to the database. It doesn't matter if the model type changes as long as the store type stays the same. That being said, this is has been a significant source of bugs, of which this is likely one.

[...] but using the store type in the snapshot is intentional.

Just clarify, this issue is not about the use of database store types like varchar or datetime in the snapshot, but about the use of the provider (CLR) type ValueConverter.ProviderClrType instead of the model (CLR) type ValueConverter.ModelClrType when a value converter has been specified for a type mapping.

Let's assume the following two custom types exist:
public struct MyVanillaMoneyType : System.Double
{
    // [...]
}

public struct MyStrawberryMoneyType : System.Int32
{
    // [...]
}

We then define the following type mapping MyVanillaMoneyTypeMapping:
public class MyVanillaMoneyTypeMapping : MyMoneyTypeMapping
{
    public MyVanillaMoneyTypeMapping(
        [NotNull] string storeType,
        Type clrType,
        ValueConverter converter = null,
        ValueComparer comparer = null,
        int? precision = null)
        : this(
            new RelationalTypeMappingParameters(
                new CoreTypeMappingParameters(
                    clrType, // CLR type
                    converter,
                    comparer),
                storeType, // databse store type
                precision == null
                  ? StoreTypePostfix.None
                  : StoreTypePostfix.Precision,
                System.Data.DbType.Double, // DbType
                precision: precision))
    {
    }

    // [...]
}

Here MyVanillaMoneyTypeMapping just maps a supplied CLR type to a database store type of mymoney. The default implementation already does this correctly for MyVanillaMoneyTypeMapping. If we want to map another CLR type like MyStrawberryMoneyType, we can provide a ValueConverter.
For our example, we instantiate two different objects of this type mapping in our RelationalTypeMappingSource derived class like this:
private readonly RelationalTypeMapping _myVanillaMoneyTypeMapping
            = new MyVanillaMoneyTypeMapping(
                "double", // database store type
                typeof(MyVanillaMoneyType)); // CLR type;

private readonly RelationalTypeMapping _myStrawberryMoneyTypeMapping
            = new MyVanillaMoneyTypeMapping(
                "double", // database store type
                typeof(MyStrawberryMoneyType), // CLR type
                new StrawberryToVanillaConverter(), // value converter
                new StrawberryComparer()); // comparer

We have now mapped both CLR types, MyVanillaMoneyType and MyStrawberryMoneyType, to the database store type of mymoney.
When we run this later, the value converter of _myConvertedMoneyTypeMapping will have the following properties set:
StrawberryToVanillaConverter.ModelClrType = typeof(MyStrawberryMoneyType);
StrawberryToVanillaConverter.ProviderClrType = typeof(MyVanillaMoneyType);

Let's define our model:
public class MyIceCreamWallet
{
    public MyVanillaMoneyType VanillaMoneyProperty { get; set; }
    public MyStrawberryMoneyType StrawberryMoneyProperty { get; set; }
}

When we generate the initial migration, we get the following code:
protected override void BuildModel(ModelBuilder modelBuilder)
{
    modelBuilder.Entity("MyNamespace.MyIceCreamWallet", b =>
        {
            b.Property<MyVanillaMoneyType>("VanillaMoneyProperty")
                .HasColumnType("mymoney");

            /* This should be MyStrawberryMoneyType NOT MyVanillaMoneyType */
            b.Property<MyVanillaMoneyType>("StrawberryMoneyProperty")
                .HasColumnType("mymoney");

            b.ToTable("MyModelEntities");
        });
}

The line b.Property<MyVanillaMoneyType>("StrawberryMoneyProperty") should be b.Property<MyStrawberryMoneyType>("StrawberryMoneyProperty").
This is not the case, because the C# generator emits ValueConverter.ProviderClrType instead of ValueConverter.ProviderClrType.

The line b.Property("StrawberryMoneyProperty") should be b.Property("StrawberryMoneyProperty").

The migrations model differ calculates what needs to be changed in the database to reflect the changes between the snapshot and the current model. It does not care about ModelClrType, only the ProviderClrType is needed. In fact the snapshot doesn't have access to custom value converters, so if it only had the ModelClrType it would not be able to get the ProviderClrType.

It seems that this leads to wrong calls in the Up()/Down() methods though, even if no actual change was made for the migration, because the differ compares apples and oranges, I mean MyVanillaMoneyType for the source property and MyStrawberryMoneyType for the target property.
To make this concrete again for the original problem with:
[Required, Timestamp]
public byte[] RowVersion { get; set; }

The following script is generated every time a migration (even without change) is added:
public partial class NoChange : Migration
{
    protected override void Up(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.DeleteData(
            table: "TestEntities",
            keyColumn: "Id",
            keyValue: 1);

        migrationBuilder.InsertData(
            table: "TestEntities",
            column: "Id",
            value: 1);
    }

    protected override void Down(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.DeleteData(
            table: "TestEntities",
            keyColumn: "Id",
            keyValue: 1);

        migrationBuilder.InsertData(
            table: "TestEntities",
            column: "Id",
            value: 1);
    }
}

The following code is responsible for that:
https://github.com/aspnet/EntityFrameworkCore/blob/6148e6bc5eda687b9b2698112af785bd733fa358/src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs#L1797-L1859
For the model property RowVersion, the sourceProperty is of CLR type System.DateTime (because of the snapshot definition I am complaining about) with an implicit default value of DateTime.MinValue, and targetProperty is of type System.Byte[] with an implicit default value of null.
This ultimately leads to the following line being true:
https://github.com/aspnet/EntityFrameworkCore/blob/6148e6bc5eda687b9b2698112af785bd733fa358/src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs#L1833
Which results in the seed data being recreated:
https://github.com/aspnet/EntityFrameworkCore/blob/6148e6bc5eda687b9b2698112af785bd733fa358/src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs#L1854

@lauxjpn Yes, there are certainly issues in the seed data diffing code.

For this particular case we shouldn't even be comparing the values as the property is ValueGenerated.OnAddOrUpdate
In general if the ProviderClrType is not nullable then the converted value should be dafault(ProviderClrType) until https://github.com/aspnet/EntityFrameworkCore/issues/13850 is fixed

@AndriySvyryd While I look at it a bit closer, maybe we can make it work for the Pomelo provider by tweaking our BytesToDateTimeConverter implementation the handle the null / default cases properly.

@lauxjpn That would only work after  #13850 is fixed, currently we don't invoke the value converters for null values

@AndriySvyryd Sorry, I forgot about the SanitizeConverter issue again.
After that is fixed, our BytesToDateTimeConverter should return DateTime.MinValue for null values and we should be fine:
https://github.com/aspnet/EntityFrameworkCore/blob/6148e6bc5eda687b9b2698112af785bd733fa358/src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs#L1826-L1828

Then there is still this issue left:

Notice that as a side effect of using ProviderClrType, the [Required] annotation does not result in .IsRequired() being emitted in the snapshot (though nullable: false made it into the Up() script), because ProviderClrType our source property is System.DateTime in our example and is not nullable.

And if we drop the [Required] attribute like so:
[Timestamp]
public byte[] RowVersion { get; set; }

We suddenly get the following script generated on every migration:
public partial class NoChange : Migration
{
    protected override void Up(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.AlterColumn<DateTime>(
            name: "RowVersion",
            table: "TestEntities",
            rowVersion: true,
            nullable: true,
            oldClrType: typeof(DateTime),
            oldType: "timestamp(6)",
            oldNullable: true)
            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
    }

    protected override void Down(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.AlterColumn<DateTime>(
            name: "RowVersion",
            table: "TestEntities",
            type: "timestamp(6)",
            nullable: true,
            oldClrType: typeof(DateTime),
            oldRowVersion: true,
            oldNullable: true)
            .OldAnnotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
    }
}

I've added that fix to the PR.

@AndriySvyryd Awesome, thanks!

On a second look we can't yet mark them as non-nullable before #13850 is fixed as we can still send nulls


[QUESTION]

[x] I've read the docs of nestjs-pino
[x] I've read the docs of pino
[x] I couldn't find the same question about nestjs-pino
Question
I am working with decimal js and I want to log like this:
const a = new Decimal(123);
this.logger.debug(a);

If I build up a default setting, I get the following output:
{"level":20,"time":1654109511243,"pid":1234,"hostname":"abcd","context":"AppService","s":1,"e":2,"d":[123]}

I tried to fix this problem with the pino:logMethod, but in the nestjs-pino if the Logger:call gets an object, it reasigns from a simple object, so later it cannot be detected by instanceof.
https://github.com/iamolegga/nestjs-pino/blob/master/src/Logger.ts#L52
I build up here two possible solution on the main and solution2 branches:
https://github.com/Hudi89/nestjs-pino-minimal-example
Small change in Logger:call and using pino logMethod:
https://github.com/Hudi89/nestjs-pino-minimal-example/blob/main/src/app.module.ts
Only change in Logger:call.
https://github.com/Hudi89/nestjs-pino-minimal-example/blob/solution2/src/app.module.ts
What do you think how I could do it in a nice way without monkey patching?
Please mention other relevant information such as Node.js version and Operating System.
    "decimal.js": "^10.3.1",
    "nestjs-pino": "^2.6.0",
    "pino-http": "^7.1.0",

node v16.15.0

I believe the most common use case is when object is passed as a record for several values, for example { foo: 'bar', baz: 'qux' }. The problem is that you want to pass this object as some self-sufficient value, right? But it's impossible to determine which of these is desired. I think the most easier way is just pass already stringified value or pass an object with a single prop { decimal: decimal }

Yes I want to pass directly a Decimal object to the logger and as I can see the only obstacle is the merging the message with the objArg. Can you tell me what is the reason to merge the logging message into the objArg instead of using it similarly in every branch of the if statement?
First argument objArg, second the message, rest are the extra optional params.
How you do it:
https://github.com/iamolegga/nestjs-pino/blob/master/src/Logger.ts#L52
How I think should we do it:
https://github.com/Hudi89/nestjs-pino-minimal-example/blob/main/src/app.module.ts#L45
What is the reason you are merging message with the objArg? Cannot we use the same signature for object as well?

I cannot say now, I need to setup a project and check what output will be there. If this leads to the breaking change in logging result this should be a new major release, which I would like to avoid, because a lot of projects who already use it as is should change a lot of code, which is unwanted.
I'm closing this as I've provided two quick solutions: stringify object before passing to logger or pass it wrapped in object.
If you think this is a bug let's compare this behavior with the underlying pino-http, what result will be if pass this decimal object to the logger in raw express + pino-http example.


PSSM generation

Hello! I've been trying to wrap my mind around PSSM generation from an arbitrary protein taken out of pdb.
After reading the ProteinNet paper and checking out this repo, I'm still confused on the process you use. Right now I assume the pipeline:
FASTA sequence fed to jackhmmer -> esl-weight.
Down from this point it's a bit unclear to me.  Are there any opensource utilities I can use to generate a binary-style PSSM (with the additional context columns) utilized by ProteinNet, or are there any arguments to esl-weight that I'm missing?
Thanks! Apologizing in advance if my question has already been discussed somewhere, couldn't find any directions on this.

You've probably seen it already but this script contains the commands used to generate PSSMs in ProteinNet.

Yes, figured it out - thanks!


Minor tweaks

Made some minor clarifications, made requirement of token_secret consistent, and moved up info on auto-creating config file.

Added Powered by Lightning Charge logo to standardize.


check-html-links issue with extra characters

Hey I’m running this to clean up some of the broken links on 11ty-website but am seeing some strange characters in the output which are not present in the output HTML.

Running npx check-html-links _site on https://github.com/11ty/11ty-website/

huh... very strange... I tested this extensively before on the 11ty-website... but it seems some updated change something...
it seems sort of an utf8 encoding issue 🤔
hmmm I debugged it a little and my current hunch is a buffer overflow in sax-wasm 😅
will need to find a way to reproduce it in an isolated case... 🤔

huh... very strange... I tested this extensively before on the 11ty-website... but it seems some updated change something...
it seems sort of an utf8 encoding issue 🤔
hmmm I debugged it a little and my current hunch is a buffer overflow in sax-wasm 😅
will need to find a way to reproduce it in an isolated case... 🤔

ah so in the end I was passing on broken stream chunks to sax-wasm 🤦♂
sooo there are a few big files in there e.g. bigger than the 16KB node default for... I had these issues before so I knew how to increase this it's limit but I forgot to sync this across the reading and parsing stream 🙈
which lead me to the wrong assumption of being an issue with sax-wasm... while the reading was the problem...
anyway it's fixed now 👍

ah so in the end I was passing on broken stream chunks to sax-wasm 🤦♂
sooo there are a few big files in there e.g. bigger than the 16KB node default for... I had these issues before so I knew how to increase this it's limit but I forgot to sync this across the reading and parsing stream 🙈
which lead me to the wrong assumption of being an issue with sax-wasm... while the reading was the problem...
anyway it's fixed now 👍

Awesome, thank you!

Awesome, thank you!

Just tested and it works perfect 🏆🏆🏆

Just tested and it works perfect 🏆🏆🏆


Add a startup filter which initializes the key ring before the server starts

Resolves #233  by running key ring initialization before the thread pool is consumed by processing requests.
Depends on #240

What release does this go into now?

We merged to 'dev' which means this will go into the next release. We are currently calling this "2.0.0-preview3"

So no chance of getting this into 1.x for folks still there?

We can consider it. Let's track that discussion here https://github.com/aspnet/DataProtection/issues/242. We occasionally back-port fixes to 1.x if we feel they are very important and won't break most users.

Ok, thanks. One my my customers was on the original issue/thread here, and from their perspective data protection is in essence broken and unusable until this fix makes it into a release (as I'd imagine anyone else trying to use data protection, especially in azure). They aren't really in a position to move to 2.0 anytime soon.


z5py-based batch providers

do not merge yet
Someone mentioned it would be nice to have an N5 batch provider, so here it is (along with zarr, because that comes for free with z5py).
I've just factored all the hdf5source logic (for implementation and tests) into a base class and made thin subclasses which support hdf5, n5 and zarr. The n5 and zarr tests automatically skip if z5py isn't available. If we want to run those tests in CI it means using conda, which means no tox (sadface). My bad, I can switch back to conda if required.
Currently these changes depend on an unreleased version of z5py, but I've asked Constantin very nicely so maybe it will be released soon :)

Oops, messed up the git history. Now with tests!

Thanks a lot.
I suggest we put each of the concrete sources in individual files. It reads a bit odd to say from gunpowder.hdf5_source import N5Source.
What is the purpose of infer_source_type? I don't see it used anywhere. Is your idea to replace the Hdf5Source with Hdf5LikeSource, and any file name can be given? That might not work in general, as N5 and zarr "files" are directories that do not necessarily have an extension.
Also, please avoid whitespace edits.

I suggest we put each of the concrete sources in individual files. It reads a bit odd to say from gunpowder.hdf5_source import N5Source.

Agreed.

What is the purpose of infer_source_type? I don't see it used anywhere. Is your idea to replace the Hdf5Source with Hdf5LikeSource, and any file name can be given? That might not work in general, as N5 and zarr "files" are directories that do not necessarily have an extension.

True. It was mainly just that given the logic was generic over those data source types it might be a useful shorthand. If someone gave it a path without one of those extensions it'd just throw a KeyError anyway. Explicit being better than implicit, and what with splitting the sources out into their own files, I can remove it.

Also, please avoid whitespace edits.

Sorry, I think that was my IDE.
Constantin's released the relevant version of z5py so once I've fixed those points, this could be merged. Shall I switch the travis build back to conda so that we can run the tests on the new sources in CI? The logic and tests are all identical to the Hdf5Source, which is tested, but it's probably still best to actually run them.

This is blocked by a z5py bug, fixed here: https://github.com/constantinpape/z5/pull/38
It's still failing to import z5py for the moment but I'll assume it's related until the PR is in.

Note: https://github.com/constantinpape/z5#a-note-on-axis-ordering
z5py effectively transposes data from xyz into zyx on the way out. Built-in attributes like shape are handled internally, but user-set attributes will not be. Specifically, resolution and offset will be one way round if the data was created with z5py (and the creator didn't take care to flip them on the way in) and the other way round if created with the reference implementation. It should probably be flipped on the way out, on the assumption that the user has taken due care in the creation of the dataset.

What is the state of this PR? Still blocked by the z5py release?

Yeah, sorry, this is pretty stale now.
There is a runtime glibc dependency which will make the tests fail and I'm not sure whether it's possible to fix that on the z5py side https://github.com/constantinpape/z5/issues/43
Is master the right branch to rebase on now?

Yes, the master branch is the right one to rebase on.

OK, here's the situation.
As per https://github.com/constantinpape/z5/issues/43 , on travis, z5py won't install from conda properly, due to some compiled - most likely something which would be pulled in by installing a more recent GCC version than either travis or conda has by default.
However, using a minimal example here https://github.com/clbarnes/z5_boost_bug/tree/libgcc-fix I can only trigger this type of failure on py3.4. Python 2.7 works fine on that test repo. I considered that maybe the mixture of pip/conda installs in gunpowder was the issue, but that shouldn't affect the existence of compiled libraries given the conda install of z5py is done first. I'm kind of stumped.
I've done the rebase on master, and I can run the z5-based provider tests fine locally, so it works, and the tests skip rather than fail the build if z5py doesn't install properly. But "it's fine locally" isn't what CI is for :P

@clbarnes, does that mean we can run the z5 CI test on python2.7 at least?

The z5_boost_bug test repo works on py2.7 (along with 3.5 and 3.6). the gunpowder z5-based tests fail (or rather, skip, because that's what they do when z5py isn't installed) on py2.7, with the same error as the z5_boost_bug repo does on py3.4.
The gunpowder z5-based tests run fine locally, on py2.7, with a clean conda environment. I'll experiment a bit more today but it's a head-scratcher.

I suggest we remove the the "do not merge" warning, merge, and open an issue about the skipped test instead.
Also, I just created a branch release-v1.0. Would you mind rebasing the PR on that instead of master? Thanks a lot!

There are a couple of subjective changes in the last few commits: firstly, I've renamed test_suite.py to __main__.py which allows people to just python -m tests, as well as passing it arguments to change the verbosity (-vv etc.). I also changed the prints in the tests to logs, and used skipIf rather than guard clauses for tests dependent on inaccessible extras (malis, DVID etc.) - this makes the output cleaner and more informative.
I'm going to write some docs for the new sources too.

This can go in; I have a local commit which adds autoclass statements to nodes.rst.txt for N5Source and ZarrSource but I'm not sure whether I need to run something else to get jekyll to turn that into HTML. Maybe a make recipe would be helpful for that?

Thanks a lot!
Regarding the docs: There is a Makefile in docs/build which will create the HTML. For now, it won't be necessary to do so, though. I am currently rewriting and consolidating the docs in branch update_docs. Creating HTML now will only introduce noise that later has to be merged.


Patched i guess but goodluck

Yikes does not work or patched but big W on the project.

Can confirm this

It's because you need to download roblox's proprietary launcher and get their new client (RobloxPlayerBeta.exe)

https://setup.rbxcdn.com/version-a5b3a0b177fa44c5-Roblox.exe


2GB Model size limit in CP-SAT Python

What language and solver does this apply to?
Version: v9.0.9
Platform: Python (possibly others)
Describe the problem you are trying to solve.
I am generating some quite large models (~3GB).
These models cannot be sent to the solver due to the 2GB limit of ProtoBuf.
Message operations_research.sat.CpModelProto exceeds maximum protobuf size of 2GB:<PHONE_NUMBER>

Describe the solution you'd like
Implement splitting of the model proto when it exceeds the 2GB limit such that the solver can still attempt solving.
Describe alternatives you've considered
My model could be split into two parts/phases, but that would significantly complicate the search for optimality.
Additional context
Some models slightly below the 2GB limit have given quite decent results, so I do not think the request is unreasonable, especially with the upcoming RAM density increase with DDR5.

This is a protobuf limitation. We cannot change it ourselves.

Ok,
In the Protobuf repository, there is this issue, confirming that there are no plans for allowing messages larger than 2GB.

Note that if you remove all variable names, you can scrape a little memory.
Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53
00
Le mar. 7 sept. 2021 à 15:23, Henrik Sejer Pedersen <
@.***> a écrit :

Ok,
In the Protobuf repository, there is this issue
https://github.com/protocolbuffers/protobuf/issues/1004#issuecomment-159423511,
confirming that there are no plans for allowing messages larger than 2GB.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2753#issuecomment-914302904,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3OCW33RFSIAWMDIIVTUAYG3ZANCNFSM5DSGOLXQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


[Bug] number line rerender annoying

This feature is buggy:

Every time I open new script the column splashes (rerender) and it's very annoying. So I disabled it:
"cody.inlineChat.enabled": false,
but now it does not works:

I just want to disable buggy column splash (rerender) feature and remain Ask Cody Inline menu item.
Please fix it.

Thanks for reporting @BachiMjavanadze.  We will dig in.
cc @beyang


Worker can finish a job without the required permissions

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

Expected Behaviour

The worker (annotator) can't finish a job with the "Finish the job" button, since that would skip the validation stage completely.
Current Behaviour

The worker can press the "Finish the job" button, and the job is put into the acceptance stage and the completed stage. This skips the validation stage, and if this job is the only one in the task, then the task shows that it is completed.
Possible Solution

The stage and state modification permission should be implemented on the iam/opa side.
Steps to Reproduce (for bugs)

Create an organization
Create a task in the organization
Assign the job to a worker
With the worker, open the job and press the "Finish the job" button on the annotation topbar

Your Environment

Git hash commit (git log -1): 237f98d5f834af3f752aa001ff95457701a311e5
Docker version docker version (e.g. Docker 17.0.05): Docker 20.10.11
Are you using Docker Swarm or Kubernetes? No
Operating System and version (e.g. Linux, Windows, MacOS): Linux
Other diagnostic information / logs:

cvat_opa - doesn't log any incoming policy requests
cvat - doesn't show any errors

@bseres99 , thanks for the contribution! The fix looks right. Also please remove TODO:  comments. It is already documented here: https://github.com/openvinotoolkit/cvat/blob/develop/cvat/apps/iam/rules/jobs.csv


Fix trigger config validation

The manifest v2 implementation splits up parsing into steps that are organizationally easier to manage, but which also broke standalone validation of trigger config (without actually invoking spin up). This was left out of Spin 2.0 as it seemed to be "just" an error message quality problem, but I didn't consider that this also impacts spin deploy where if a user doesn't first test a manifest with spin up they may deploy an app that just won't work.
Ref https://github.com/fermyon/spin/issues/1950

@lann could you share more context on things that need to be validated? I see that the linked reference issue has been resolved.

The linked issue was only vaguely related. The problem is that the manifest parsing code doesn't do any schema checking on trigger config; it just passes it through to the locked app JSON. The trigger executor will eventually validate it in spin up but that means spin deploy isn't validating it, which makes it more likely that someone will deploy bad config.


created new docker image for microsoft management API

Status
Ready
Description
A new docker image for the microsoft management API integration.

Closing this since a relevant docker image was found


Event test 2

Purpose
See #119
Changes
Tested the following events:

EncryptedSelfAmountAdded
UpdateEnqueued
ContractInitialized
ModuleDeployed
DelegationRemoved
TransferMemo
Upgraded
DataRegistered
NewEncryptedAmountEvent

Can you resolve the conflicts, please :slightly_smiling_face:


fix: Update UG to elaborate boundaries of update and create commands

Codecov Report
Base: 60.29% // Head: 60.29% // No change to project coverage :thumbsup:

Coverage data is based on head (4c5c8ea) compared to base (7287c9c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #190   +/-   ##
=========================================
  Coverage     60.29%   60.29%
  Complexity      552      552
=========================================
  Files           103      103
  Lines          2065     2065
  Branches        209      209
=========================================
  Hits           1245     1245
  Misses          748      748
  Partials         72       72

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add vector methods

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@7938fc8). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #1   +/-   ##
=======================================
  Coverage        ?   94.21%
=======================================
  Files           ?       16
  Lines           ?     1019
  Branches        ?        0
=======================================
  Hits            ?      960
  Misses          ?       59
  Partials        ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Teams Adaptive Cards Not Displaying All Elements in Bot Framework

Steps to reproduce

We are experiencing an issue where adaptive cards in Microsoft Teams, created through the Bot Framework, are not displaying all elements. Specifically, we have a card with 15+ buttons that displays correctly on a webpage, but when viewed in the Teams app, it only shows up to 4 buttons.
Expected behavior
All 15+ buttons should be displayed in the adaptive card within the Teams app, as they are on the webpage.

Actual behavior
Only 4 buttons are displayed in the adaptive card within the Teams app, with the rest not visible.
Error details
No response

Thank you for reporting this, we will check this and get back to you.

@deeptishashidharaiah - Please note that in Teams up to 6 button actions are supported. Remaining buttons will be shown as secondary actions.
https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/design-effective-cards?tabs=design#actionset:~:text=Primary actions%3A-,As a best practice%2C include 1-3 primary actions. You can have up to six.,-Desktop

We verified this at our end by adding 9 button actions.
In web chat: All buttons are visible.

In Teams client: Only 6 buttons are visible and remaining are visible and remaining actions are shown as secondary actions.

Thanks for quick response @Meghana-MSFT ,
In our case, we dont see that secondary actions to expand remaining buttons

yes thats the very reason we opened this issue, this issue only occurs in teams app not in web page

@Meghana-MSFT  any update?

@deeptishashidharaiah - Could you please let us know if you are checking in Teams desktop or Teams web client?

My experience is same for teams web(https://teams.microsoft.com/v2/)  or teams app

@deeptishashidharaiah - We have raised a bug for this, we will keep you posted on the updates. Thank you.

Thank you! lets keep this ticket open till then

@deeptishashidharaiah - This bug has been fixed. you should see an ellipsis for the other action buttons in your card. We tested this issue in Teams web (client version is 1415/24110115716.) and Desktop (Microsoft Teams version 24341.1300.3292.5164.) clients. The card is rendering properly in both clients.


Brandons changes

@CrashAbandoncoot and I have tested these changes, so I am going to go ahead and merge them.


docs.rxresu.me returning 404 and crashing self-hosted site

Describe the bug
https://docs.rxresu.me/ is returning a 404, leading to a health check failure on the server docker container and the site throwing an error.
Product Flavor

[ ] Managed (https://rxresu.me)
[X] Self Hosted

To Reproduce

Restart docker container
Try to browse to site
View logs from server container

Expected behavior
Site loads without error
Screenshots
Server logs:

<EMAIL_ADDRESS>start:server /app
pnpm -F server start:prod

@reactive-resume/server@ start:prod /app/server
node dist/main

[Nest] 42  - 08/05/2022, 8:10:27 AM     LOG [NestFactory] Starting Nest application...

[Nest] 42  - 08/05/2022, 8:10:57 AM   ERROR [HealthCheckService] Health Check has failed! {"database":{"status":"up"},"app":{"status":"up"},"docs":{"status":"down","message":"Request failed with status code 404","statusCode":404,"statusText":"Not Found"}}
Desktop (please complete the following information):

OS: MacOS
Browser: Brave
Version 1.41.100

This is causing an issue on self hosted instances as the server is hardcoded to ping docs.rxresu.me and if not available it causes the server health checks to fail and render the backend unavailable. The self hosted version should not be forced to ping home

You're right about that, mistake on my part to include the health check to check the managed app. Should have rather been a env URL. Thank you for the PR :)

@AmruthPillai Can you release new docker images, they are currently broken due to this issue.


TLS record HMAC 1: PSA key in transform

This is a preparatory task, in order to gradually migrate record HMAC computations to PSA, we first need to have the HMAC keys held by PSA and referenced from the transform, in addition to the existing copy for now: that is, when MBEDTLS_USE_PSA_CRYPTO is enabled, both key/contexts are present (this is temporary).

[ ] In struct mbedtls_ssl_transform, in parallel to the existing md_ctx_enc/md_ctx_dec, add two members of type mbedtls_svc_key_id_t.
[ ] In mbedtls_ssl_transform_init() set those to 0, and in mbedtls_ssl_transform_free() call psa_destroy_key() on them.
[ ] In ssl_tls12_populate_transform(), set appropriate attributes and import the keys to the slots (see existing call to mbedtls_md_hmac_starts()).

Follow-ups: #5177, #5178, #5179

@mpg this has been implemented in #5434


Question: How to add CzmlDataSource to ac-layer?

Intended outcome:
Inspired by this Cesium Sandcastle I'd like to add time dynamic CzmlDataSources to ac-layer.
What is the best way to achieve this with Angular Cesium?
Actual outcome:
I can add the time-dynamic entity to CesiumViewer but not to the ac-layer.
How to reproduce the issue:
To reproduce, follow angular-cesium getting started and paste this to the root component:
import { AfterViewInit, Component } from '@angular/core';
import { AcNotification, MapsManagerService } from 'angular-cesium';
import { Observable } from 'rxjs/Observable';

@Component({
  selector: 'app-root',
  template: `
              <ac-map>
                <ac-layer acFor="let entity of timeDynamicEntity$" [context]="this">

                    <!-- Some component to add time dynamic entities to ac-layer -->
                    <!-- <ac-time-dynamic-entity></ac-time-dynamic-entity> -->

                </ac-layer>
              </ac-map>
            `,
})
export class AppComponent implements AfterViewInit {

  // Observable to add entities to ac-layer
  timeDynamicEntities$: Observable<AcNotification>;

  constructor(private mapsManagerService: MapsManagerService) { }

  ngAfterViewInit() {

    // Example from
    // https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML%20Point%20-%20Time%20Dynamic.html&label=CZML
    const czml = [{
      "id": "document",
      "name": "CZML Point - Time Dynamic",
      "version": "1.0"
    }, {
      "id": "point",
      "availability": "2012-08-04T16:00:00Z/2012-08-04T16:05:00Z",
      "position": {
        "epoch": "2012-08-04T16:00:00Z",
        "cartographicDegrees": [
          0, -70, 20, 150000,
          100, -80, 44, 150000,
          200, -90, 18, 150000,
          300, -98, 52, 150000
        ]
      },
      "point": {
        "color": {
          "rgba": [255, 255, 255, 128]
        },
        "outlineColor": {
          "rgba": [255, 0, 0, 128]
        },
        "outlineWidth": 3,
        "pixelSize": 15
      }
    }];

    // Returns a Promise.<CzmlDataSource>
    const promise = Cesium.CzmlDataSource.load(czml)

    /***********************************************************
     * This works...
     ***********************************************************/
    const viewer = this.mapsManagerService.getMap().getCesiumViewer();
    viewer.dataSources.add(promise);

    /***********************************************************
     * ... but something like the following would be nice,
     * so that we could use angular-cesium for layer management.
     ***********************************************************/
    this.timeDynamicEntities$ = new Observable(observer => {

      Cesium.CzmlDataSource.load(czml).then(entity => {

        // next() AcNotifications to timeDynamicEntities$

        // observer.next({
        //   actionType: ActionType.ADD_UPDATE,
        //   id: 'timeDynamic',
        //   entity
        // })

      })

    })
  }
}

Version

<EMAIL_ADDRESS>

Hi there,
Currently we don't have any special components or utils for CzmlDataSource,
So the way to add Czml to your globe is using cesium viewer just as you did.
The idea of using CzmlDataSource with ac-layer is definitely cool, I would also consider creating a component that accepts CZML and add it to your viewer.dataSources.
We will consider adding it to our road map, and of course  PR is always welcomed :)

Thanks for the answer.
I'll give it a try and create a component that accepts CZML. If successful I'll create a PR :-)

added in #232 .
THX!!


Container exits with error after parsing all the pages in a drawio file (but before saving them I think)

First of all, thank you for this docker image. I've used it to generate my projects documentation for a few months now. It's quite a help over actually installing drawio in a container like I used to do.
I was hesitant to open an issue, because to be honest I don't feel like the issue is on your side (everything runs fine locally), but I couldn't find another way to contact you.
But recently, I's started to fail, when ran inside gitlab ci with (included gitlab logging). Link to job here:
(...)
f606d8928ed3: Pull complete
b12d8cf0de1c: Pull complete
b8e6bcd1d515: Pull complete
8de90f6451c7: Pull complete
ba5ead58bd49: Pull complete
26a09477beda: Pull complete
35601e7137ce: Pull complete
f7c4e6ccc541: Pull complete
Digest: sha256:4039852b209a09e743492c85580991fa74e88a5286f759aa1bf6489a5352383b
Status: Downloaded newer image for rlespinasse/drawio-export:latest
+ export file :
++ export page 1 : Keys-OpenDSU
+++ generate png file
++ export page 2 : Keys-Glass
+++ generate png file
++ export page 3 : OpenDSUBuiltins
+++ generate png file
++ export page 4 : GlassWallet
+++ generate png file
++ export page 5 : eGovernance
+++ generate png file
++ export page 6 : eGov-deployment
+++ generate png file
++ export page 7 : Wallet
+++ generate png file
++ export page 8 : dApp
+++ generate png file
++ export page 9 : Dids
+++ generate png file
++ export page 10 : TrustSequence
+++ generate png file
Cleaning up project directory and file based variables 00:01
+ grep pipefail
+ set -o
+ set -o pipefail
+ set -o errexit
+ set +o noclobber
+ eval '$'\''rm'\'' -f /builds/glass-project1/wallet/glass-toolkit.tmp/CI_SERVER_TLS_CA_FILE
'
++ rm -f /builds/glass-project1/wallet/glass-toolkit.tmp/CI_SERVER_TLS_CA_FILE
+ :
+ exit 0
ERROR: Job failed: exit code 1

this is a previous successfull job' log: Link to job here
Running with gitlab-runner 15.4.0~beta.5.gdefc7017 (defc7017)
  on green-5.shared.runners-manager.gitlab.com/default xS6Vzpvo
  feature flags: FF_USE_FASTZIP:true
Preparing the "docker+machine" executor 00:13
Using Docker executor with image docker:18.09.7-dind ...
Starting service docker:18.09.7-dind ...
Pulling docker image docker:18.09.7-dind ...
Using docker image sha256:25a1e57c774167d28c44d88fa296f3e1122c6d79e99b98653c899b170393bbd6 for docker:18.09.7-dind with digest docker@sha256:a490c83561c1cef49b6fe12aba2c31f908391ec3efe4eb173225809c981e50c3 ...
Waiting for services to be up and running (timeout 30 seconds)...
Using docker image sha256:25a1e57c774167d28c44d88fa296f3e1122c6d79e99b98653c899b170393bbd6 for docker:18.09.7-dind with digest docker@sha256:a490c83561c1cef49b6fe12aba2c31f908391ec3efe4eb173225809c981e50c3 ...
Preparing environment 00:01
Running on runner-xs6vzpvo-project-39103536-concurrent-0 via runner-xs6vzpvo-shared-1666206983-61883250...
Getting source from Git repository 00:05
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/glass-project1/wallet/glass-toolkit/.git/
Created fresh repository.
Checking out 3d361e52 as master...
Skipping Git submodules setup
Restoring cache 00:16
Checking cache for dependencies-master-/builds/glass-project1/wallet/glass-toolkit-protected...
Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/39103536/dependencies-master-/builds/glass-project1/wallet/glass-toolkit-protected
Successfully extracted cache
Not downloading cache drawio-master-/builds/glass-project1/wallet/glass-toolkit-protected due to policy
Executing "step_script" stage of the job script 04:51
Using docker image sha256:25a1e57c774167d28c44d88fa296f3e1122c6d79e99b98653c899b170393bbd6 for docker:18.09.7-dind with digest docker@sha256:a490c83561c1cef49b6fe12aba2c31f908391ec3efe4eb173225809c981e50c3 ...
$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 18.09.7
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 5.4.109+
Operating System: Alpine Linux v3.10 (containerized)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.599GiB
Name: 61e2f9b11e18
ID: CPDO:P7YG:234A:VWSX:C56P:4LTE:Y63M:DBSI:OVVM:TF6M:LC7I:VNIB
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false
Product License: Community Engine
WARNING: API is accessible on http://<IP_ADDRESS>:2375/ without encryption.
         Access to the remote API is equivalent to root access on the host. Refer
         to the 'Docker daemon attack surface' section in the documentation for
         more information: https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
$ docker pull rlespinasse/drawio-export
Using default tag: latest
latest: Pulling from rlespinasse/drawio-export
9b99af5931b3: Pulling fs layer
ce0c8fe68871: Pulling fs layer
f71902d57642: Pulling fs layer
fcb33905f7dc: Pulling fs layer
4085194b3ff0: Pulling fs layer
761005e2fadf: Pulling fs layer
0a635b124163: Pulling fs layer
1496afa9d450: Pulling fs layer
fcb33905f7dc: Waiting
4085194b3ff0: Waiting
761005e2fadf: Waiting
0a635b124163: Waiting
1496afa9d450: Waiting
ce0c8fe68871: Verifying Checksum
ce0c8fe68871: Download complete
fcb33905f7dc: Verifying Checksum
fcb33905f7dc: Download complete
4085194b3ff0: Verifying Checksum
4085194b3ff0: Download complete
761005e2fadf: Verifying Checksum
761005e2fadf: Download complete
0a635b124163: Verifying Checksum
0a635b124163: Download complete
9b99af5931b3: Verifying Checksum
9b99af5931b3: Download complete
1496afa9d450: Verifying Checksum
1496afa9d450: Download complete
f71902d57642: Verifying Checksum
f71902d57642: Download complete
9b99af5931b3: Pull complete
ce0c8fe68871: Pull complete
f71902d57642: Pull complete
fcb33905f7dc: Pull complete
4085194b3ff0: Pull complete
761005e2fadf: Pull complete
0a635b124163: Pull complete
1496afa9d450: Pull complete
Digest: sha256:f787e2812953ce79e65cb641c435f80bcfb6b93e9e354a067a94c4761723b197
Status: Downloaded newer image for rlespinasse/drawio-export:latest
$ echo "setup complete"
setup complete
$ for FILE in $DRAWIO_DIR/*.drawio; do # collapsed multi-line command
converting workdocs/drawings/Architecture.drawio to image...
+ export file :
++ export page 1 : Keys-OpenDSU
+++ generate png file
++ export page 2 : Keys-Glass
+++ generate png file
++ export page 3 : OpenDSUBuiltins
+++ generate png file
++ export page 4 : GlassWallet
+++ generate png file
++ export page 5 : eGovernance
+++ generate png file
++ export page 6 : eGov-deployment
+++ generate png file
++ export page 7 : Wallet
+++ generate png file
++ export page 8 : dApp
+++ generate png file
++ export page 9 : Dids
+++ generate png file
++ export page 10 : TrustSequence
+++ generate png file
converting workdocs/drawings/GlassDSUBaseConcepts.drawio to image...
+ export file :
++ export page 1 : KeySSIAndDSUTypes
+++ generate png file
++ export page 2 : GlassDSUs
+++ generate png file
converting workdocs/drawings/IdentityManagement.drawio to image...
+ export file :
++ export page 1 : Request1
+++ generate png file
++ export page 2 : Request2
+++ generate png file
++ export page 3 : Request3
+++ generate png file
++ export page 4 : TrustChain
+++ generate png file
++ export page 5 : infrastructure
+++ generate png file
converting workdocs/drawings/Presentations.drawio to image...
+ export file :
++ export page 1 : Wallet
+++ generate png file
++ export page 2 : Instalation
+++ generate png file
++ export page 3 : eGovernance
+++ generate png file
++ export page 4 : eGovernanceToKeySharding
+++ generate png file
++ export page 5 : KeySharding
+++ generate png file
++ export page 6 : KeyShardingDetail
+++ generate png file
++ export page 7 : Feature_SingleSignOn
+++ generate png file
++ export page 8 : Feature_eGov1
+++ generate png file
++ export page 9 : Feature_eGov2
+++ generate png file
converting workdocs/drawings/UIMocks.drawio to image...
+ export file :
++ export page 1 : RegisterLogin
+++ generate png file
++ export page 2 : Environemnt_eGov
+++ generate png file
++ export page 3 : IdentifyFor
+++ generate png file
++ export page 4 : Query
+++ generate png file
++ export page 5 : Payment
+++ generate png file
converting workdocs/drawings/Usecases.drawio to image...
+ export file :
++ export page 1 : GreekStudyPortugal
+++ generate png file
++ export page 2 : Erasmus
+++ generate png file
++ export page 3 : Job
+++ generate png file
++ export page 4 : TurkVisa
+++ generate png file
converting workdocs/drawings/dApp_sequence_diagram.drawio to image...
+ export file :
++ export page 1 : Build
+++ generate png file
++ export page 2 : Instalation
+++ generate png file
converting workdocs/drawings/eGovArquitecture.drawio to image...
+ export file :
++ export page 1 : eGovArchitectureDiagram
+++ generate png file
++ export page 2 : eGov Entity Mapping
+++ generate png file
$ mv $DRAWIO_DIR/export/*.png ./workdocs/resources
$ echo "Finished conversion"
Finished conversion
Saving cache for successful job 00:03
Not uploading cache dependencies-master-/builds/glass-project1/wallet/glass-toolkit-protected due to policy
Creating cache drawio-master-/builds/glass-project1/wallet/glass-toolkit-protected...
workdocs/resources/*.png: found 39 matching files and directories
Uploading cache.zip to https://storage.googleapis.com/gitlab-com-runners-cache/project/39103536/drawio-master-/builds/glass-project1/wallet/glass-toolkit-protected
Created cache
Cleaning up project directory and file based variables 00:00
Job succeeded

and this is the gitlab job configuration:
build-drawio:
  stage: build
  image: docker:20.10.16
  variables:
    # Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
    DOCKER_HOST: tcp://docker:2375
    DOCKER_TLS_CERTDIR: ""
    DRAWIO_DIR: "workdocs/drawings"
    CI_DEBUG_TRACE: "true"
  services:
    - docker:20.10.16-dind
  cache:
    - key: dependencies-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
      paths:
        - node_modules/
        - .npm/
      policy: pull
    - key: drawio-$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
      paths:
        - workdocs/resources/*.png
      policy: push
  before_script:
    - docker info
    - docker pull rlespinasse/drawio-export:v4.5.0
    - echo "setup complete"
  script:
    - |
      for FILE in $DRAWIO_DIR/*.drawio; do
        echo "converting $FILE to image..."
        docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE
      done
    - mv $DRAWIO_DIR/export/*.png ./workdocs/resources
    - echo "Finished conversion"
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'
      changes:
        - workdocs/**/*
  interruptible: true

From what I can gather, there was no change on the container between these two jobs (I tried with the previous version with the same result).
My question to you was:
1 - have you ever come across this kind of error?
2 - is there a way to add more logging to the output? maybe I can find the problem on my own (Couldn't find it in the documentation)
I appreciate the help if you can give it (and reject this issue after you read it. like I said, I really don't think the issue is on your side)
Cheers,
Tiago

Thanks for the detailed error report, I move this issue to https://github.com/rlespinasse/drawio-export since it related to the container more than the application itself.


Updated LayerZero's endpoints and executors URLs

Fixed incorrect LayerZero's endpoints and executors URLs in cross-chain message using LayerZero documentation for improving navigation.

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1

@deepakA18
Hello, thanks for contributing and for building on Base 🔵
There is currently a merge conflict on this PR; could you please resolve?

Resolved conflicts, Pardon for the delay! @wbnns

@deepakA18
Closing this PR since the changes have already been made. Thanks!


DS-2545: Show collections the user can submits items to only.

The JSPSelectColletionStep and JSPStartSubmissionLookupStep already set
the collections -the user can submit to- as request attribute. The JSPs
us these argument already. This commit lets the SelectCollectionTag use
this attribute too instead of looking for the collections on itself.

Cherry-pick of #937 for dspace-5_x branch.

We don't really need a cherry-pick PR, if the original PR (see #937) is accepted, we just cherry-pick and push to master. I recommend this PR be closed.


AT to AP - Strange link, or link applied to wrong text

Just ran across an odd issue I thought I would bring up here. A Bluesky post bridged over to ActivityPub has a link in a weird place.

Bluesky post here: https://bsky.app/profile/aielcakes.bsky.social/post/3kuiqjn63762z
ActivityPub side here: https://darkfriend.social/<EMAIL_ADDRESS>
The original Bluesky post has an @ mention for bsky.app which is displayed as a link on Bluesky. On the AP side there is no link on the @ mention, but there is a link on a different set of 9 characters.
User page on fed.brid.gy: https://fed.brid.gy/bsky/aielcakes.bsky.social
Unfortunately it doesn't look like there's a log available for that post.

I'm seeing the same issue with hashtags and @ mentions as well.

Bluesky original post: https://bsky.app/profile/did:plc:6es2dmxav4uel3q67xhkgyox/post/3kuilbhibek2v
ActivityPub side example: https://mastodon.social/<EMAIL_ADDRESS>
The first hashtag is properly mapped to a fediverse hashtag, but not the following ones. They also display a link displacement, same for the following @ mention.
User page on fed.brid.gy: https://fed.brid.gy/bsky/origasky.bsky.social

Oof, yeah. Sorry! Will fix.

Background: snarfed/granary@e08550ef5b2216739d840f284a34474857d110de interacted badly with #990 and https://github.com/snarfed/bridgy-fed/commit/b4124bd23fb21f8b2ca1cc11dfe15dfaefc6f779. I'm rolling back snarfed/granary@e08550ef5b2216739d840f284a34474857d110de, which should fix this regression, but that means AP => Bluesky profile bios still won't have meaningful whitespace, ie newlines won't show up. I'll need to figure that out.

Sadly Mastodon's .status__content p { white-space: pre-wrap } style doesn't apply to profile bios, they have class account__header__content instead.
https://github.com/snarfed/bridgy-fed/blob/551637f6a1091c9317446001245b5fd94d9d2680/activitypub.py#L810-L816
Good motivation, really I want to bring back the \n => <br> translation anyway instead of depending on a project-specific CSS like that to preserve whitespace.

OK, the regression here should be fixed. Example: https://bsky.app/profile/snarfed.bsky.social => https://indieweb.social/<EMAIL_ADDRESS>I'll leave this open to figure out the rest.

OK, fixed preserving whitespace in AP => Bluesky bios. Example: https://bsky.app/profile/evan.cosocial.ca.ap.brid.gy


policy: Fix breakages on v1.15 branch

Following the merge of 02d28d9ac9, the v1.15 branch was broken due to
the wrong function signatures and undefined struct field being used.
It's unclear why the CI did not catch this.
Fixes: 02d28d9ac9 ("policy: Fix broad deny with except bug")
Signed-off-by: Chris Tarazi<EMAIL_ADDRESS>

/test-backport-1.15


Not able to list "Web App On Linux"

The websites created on Linux app service plan can't be listed using webapp list command.
21:22 $ az webapp list -ojson
[]

The app service plan can be listed correctly:
21:22 $ az appservice plan list
Kind    Location      MaximumNumberOfWorkers  Name       NumberOfSites  ProvisioningState    Reserved    ResourceGroup        Status
------  ----------  ------------------------  -------  ---------------  -------------------  ----------  -------------------  --------
linux   West US                            3  plan-s1                1  Succeeded            True        trdai-exp-permanent  Ready

@yugangw-msft
I'm on latest dev code / Mac OS.

This is a server breaking change, that the app type for linux webapp was changed over to app,linux, which breaks the client side filter.  Let me double check with them before fix this.
Note, linux webapp is not GA yet

Has the fix for this been released in Azure SDK 2.x yet? If so which version?


Standardize XSL files.  Fix spelling.

Indents, lowercase HTML tags, blank lines

Thanks for the PR. Applied to 10.0.x. Back-porting shortly.


space in nodist dist?

Do you think it would look better if there was a space before the version for nodist dist output?  Now it looks crowded:
nodev5.4.0
  iojsv1.0.0

Not sure if the v is needed either.  Perhaps use an @ like some CLI prompts do if you prefer to not to have spaces.
Thanks for your tool!

Thanks for reporting! I also found the current solution for io.js support to be a bit of an awkward compromise. This will be fixed in 0.8 (more specifically by #110).


[MRG] Refactor reporting.py module as directory to prepare for incorporating GLM Reporter

@bthirion As you suggested and A Abadie mentioned, making piecemeal changes over multiple PRs. This is straight forward. Once this is merged, We can work on the GLM Reporter PR again.

I have incorporated the feedback (except one). Anything more?