[Reflection] Zewo MapConvertible map cause EXC_BAD_ACCESS

MapConvertible mapping cause Memory Error !?
I talked to @paulofaria on slack, but I was using MapConvertible Class to Slack API Mapping. It seems like it mapped fine but causes EXC_BAD_ACCESS error and crash program.
Steps to reproduce
https://www.dropbox.com/s/ckc8zkixb3ih8rl/cotest.zip?dl=0
I made sample project, following code is fine when manual mapping but for Reflection mapping, it causes error when exiting do { } block.
import Venice
import Axis

co {
    do {
        let jsonstring = "    {    \"name\": \"Tomo\",  \"city\": \"Fukuoka, Japan\",  \"age\": 38  }"
        let buffer = Buffer(jsonstring)
        print("co routine mapping test [Manual Mapping Start]")
        let map = try JSONMapParser.parse(buffer)
        let result = User(manualMap: map)
        print("mapped: \(result.name), \(result.city), \(result.age)")

    } catch let error {
        print("Error \(error.localizedDescription)")
    }

    print("[Manual Mapping End]")

}

co {
    do {
        let jsonstring = "    {    \"name\": \"Tomo\",  \"city\": \"Fukuoka, Japan\",  \"age\": 38  }"
        let buffer = Buffer(jsonstring)
        print("co routine mapping test [Reflection Mapping Start]")
        let map = try JSONMapParser.parse(buffer)
        let result = try User(map: map)
        print("mapped: \(result.name), \(result.city), \(result.age)")

    } catch let error {
        print("Error \(error.localizedDescription)")
    }
    print("[Reflection Mapping End]")

}

Possible solutions
@robertjpayne said it could be swift problem. It could be. Or we use unsafe pointer without retaining and that causes release mapped object.

Awesome @tomohisa, I'll take a look at this.

Looks like it's actually an issue with C strings, not Venice. It's been resolved with a new Reflection release, 0.14.1. If you update your dependencies your project should run without a EXC_BAD_ACCESS error.


Added Program Section

modify community link

Signed-off-by: kolade Afeez<EMAIL_ADDRESS>Description
(PARENT) This PR fixes #298
(CHILD) This PR fixes #297
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

Whoa! No small piece of work completed here, @koladeafeez. Thank you for taking this on.
There are a number of points of feedback to give here. I anticipate the reviewers being meticulous in their review. Be thankful if they are (it's through such feedback that an engineer grows) and be cognizant that scrutiny comes from a place of pride and love for the projects in the community.
A list of logos would have minimally sufficed. What you've accomplished here is more than I was expecting. Good stuff. 👍

Thank you @Nikhil-Ladha for the feedback, I will make the changes

Good improvement over here @koladeafeez . Just a few more things to rectify:

The background should be the same as the main page like this

The hover effect of the card needs some changes, the color change, and transform-scale should not happen instead, the effect that we have on the layer5.io site is nice to keep it here too. Like this:

I don't know if the effect is visible to you or not in the first card of the image, just a light black shadow with a minimal transition. Using a similar property from layer site transition: box-shadow .25s, -webkit-box-shadow .25s.
Also, please move the inline CSS to the external CSS file.

You gave a fantastic review. Thank you, I also like how it look now

You gave a fantastic review. Thank you, I also like how it look now

It's all your hard work visible up there on the site :tada:

Thanks @Neilblaze


V2 corporate console not loading projects with LF Projects, LLC as parent

Summary
When a corporate user clicks on 'osquery' or 'o-ran', the EasyCLA information does not load for them.
Background
In the member portal, click the listing under either 'project group' or 'No. of Projects' for the 2 projects O-RAN and OSquery. Neither project loads the easycla data. There are no errors in the console. The common factor for these projects is that LF Projects, LLC is the parent project.
Expected behavior
A child project or project group of 'LF Projects, LLC' should display in the same manner as a child project of "The Linux Foundation"
Screenshots
Does not load

Created PR to help resolve: https://github.com/communitybridge/easycla/pull/2617

Added support for projects with 'LF Projects, LLC' parent

Deployed to DEV

This appears to be resolved in Prod.


Cache Fix for Asset/Event listing

@DanielJMaher , @oceanzus
I know there is a code freeze, and this isn't critical but I just wanted to put it here so it didn't get lost.
This will GREATLY improve the performance of load times.

@oceanzus @FBRTMaka Do we understand the full implications of merging this?  Is there a possibility it messes with ANYTHING else?

This makes the caching work correctly.  If you want the asset list and event list cached then this is it.  Otherwise I an log a bug.

Like I said though, not critical.  If you don't need it then maybe just wait till next week.

I'm going to pull the trigger on this one since we need some speed improvements.


Redefinition of StrictlyNegativeInt

Description
Similarly to the issue #228, we would like to redefine the StrictlyNegativeInt with a minimal API.
Dependencies
This issue is blocked by the following ones:

[ ] #227

Checklist

[ ] Define the API with an interface.
[ ] Implement and test the builder and the toInt function, then update the public API binaries and check the generated documentation.
[ ] Implement and test the equals function, then update the public API binaries and check the generated documentation.
[ ] Implement and test the hashCode function, then update the public API binaries and check the generated documentation.
[ ] Implement and test the toString function, then update the public API binaries and check the generated documentation.
[ ] Make the type serializable.
[ ] Make the type comparable.
[ ] Refactor.
[ ] Update the Unreleased section in changelog.

We will not break the API doing this: it brings no tangible value to the library.


Pagination on data views

Hi
Can anyone tell me ho they are doing data table/view pagination using meteor-kitchen?
Thanks

Sorry for late answer... maybe it still helps:
Meteor Kitchen will not produce code with pagination (not yet).
If you are doing "manually" (without meteor-kitchen) this is how:
Principle is:

Your publication should receive argument "pageNumber" and "pageSize", and query should skip & limit resultset like this: someCollection.find({ ... }, { skip: pageNumber * pageSize, limit: pageSize, sort: { ... } } (assuming pageNumber is 0-based).

Both on the client and on the server, query should be sorted by the same field and direction (or you'll get strange results).

Client side, in your subscription, you need to pass pageNumber (usually kept in the Session variable like this: Meteor.subscribe("publicationName", Session.get("pageNumber"), pageSize).

Client side query should look exactly the same as at the server, but without "skip" argument, e.g.: someCollection.find({ ... }, { limit: pageSize, sort: { ... } }

Last thing, you need to update session variable pageNumber on user action (when user clicks "previous page" or "next page" button or if you are ambitious on scroll event. Because Session variable is reactive, your subscription and query will automatically re-run when you change pageNumber variable. e.g. code for next page is: Session.set("pageNumber", (Session.get("pageNumber") || 0) + 1) (ugly code says: get current page, if it's undefined then give me zero, and increase it by 1). :)

This will work but you'll need more: you need to know pageCount at the client so you can show/hide "next" button, but let's talk about "fine-tuning" later... :)


Ritaylor/appsdk 160423

Hi John - great work so far.  I've made some simplifications and structural changes.  I also added some comments inline.  Let's discuss.  thanks, Richard

Hi @richardtaylorrt, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Richard Taylor). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


lint:container throws an error if dsn is configured as an env variable

If you want to lint container using lint:container command it throws an error like
Incompatible use of dynamic environment variables "SENTRY_DSN" found in parameters.
caused by another error
The option "dsn" with value "%env(SENTRY_DSN)%" is invalid.
coming from vendor/sentry/sentry/src/Options.php:74
the strange thing is that bundle work fine with dsn from env variable, perfectly clears cache etc.
only linting container throws that error
it is not critical but DSN as env variable is very required thing because if you have many environments you can't just hard code dsn into yaml config
for now we can't run container linter during CI/CD process

Closing as this seems to be not fixable. I can also add this:

it is not critical but DSN as env variable is very required thing because if you have many environments you can't just hard code dsn into yaml config

Since newer version of Sentry server, you can use the new DSN which does no longer contains secret values, so hardcoding it in the YAML config is now doable.


segfaulting: DebugUtilsMessengerCallbackDataEXT::pMessageIdName may be null in debug callback

Running on MacOS the cargo run --bin debug example is segfaulting (after fixing a layer problem: layer VK_LAYER_LUNARG_standard_validation doesn't exist on MoltenVK but it has to be VK_LAYER_KHRONOS_validation, but that's another point not in this scope).

Source: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkDebugUtilsMessengerCallbackDataEXT.html#VUID-VkDebugUtilsMessengerCallbackDataEXT-pMessageIdName-parameter
(*callback_data).pMessageIdName is a null pointer for some debug callbacks (at least for two on my machine while testing)

[ ] Added an entry to CHANGELOG_VULKANO.md or CHANGELOG_VK_SYS.md if knowledge of this change could be valuable to users
[ ] Updated documentation to reflect any user-facing changes - in this repository
[ ] Updated documentation to reflect any user-facing changes - PR to the guide that fixes existing documentation invalidated by this PR.
[x] Ran cargo fmt on the changes

@DaAitch Thank you for the fix. Can you add an entry to the changelog, please?

@Eliah-Lakhin Sure.
Do you have an idea for this string https://github.com/vulkano-rs/vulkano/pull/1487/files#diff-365d1440144c1c4c8329f5e8f963d7b182434c8d6bd74c25b67d80d303535b9bR105 I think "Unknown Layer" is not correct anymore. It's called layer_prefix but maybe sth. like"Unknown message id name" is better? I don't know.

@DaAitch I think the more proper way of fixing it would be turning Message::layer_prefix into Option.
Also, in such case it will be a breaking change(which is fine), just we need to mention it in release logs. Something like: "Breaking Message::layer_prefix turned to Option to prevent segfaults when Vulkan message didn't provide pMessageIdName value"

@Eliah-Lakhin please check.

@DaAitch Merged. Thank you!


feat: implement du command

I tried to match the output 100% with the coreutils du package, however there might be some logic differences between the two implementations.
Some parts may behave differently, I noted them with // NOTE: this is not GNU coreutils compliant comments.
You can also see the features missing at the end of the Cli struct.
I have also changed the blutils string detection from the template, which I found a bit too long, so I tried to shorten it. I think it's even faster than the original implementation.
Performance-wise, this command lands far behind the coreutils du command, which might be due to the excessive amount of file stat and metadata checking.
Running both blutils du and coreutils du has the following results on my Documents folder:
./target/release/blutils du -ac -L ~/Documents  0.01s user 0.09s system 99% cpu 0.105 total
du -ac -L ~/Documents  0.01s user 0.05s system 91% cpu 0.058 total

As you can see, the coreutils du command is almost twice as fast, and without printing (using -s instead of -a), it's almost 3x faster (0.81 blutils vs 0.27 coreutils).

Okay this is great! I think the next focus should be on making it faster. Also I am considering scrapping the whole gnu
Compatibility thing and just making it POSIX compliant instead


Added a note

As per the author's recommendation, I have updated a note in the document.
Problem: https://github.com/MicrosoftDocs/microsoft-365-docs/issues/486

@nenonix @JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks.

Ready to go live.

@chrisda - PR has been copy edited and is ready for final review. This is based on this issue comment https://github.com/MicrosoftDocs/microsoft-365-docs/issues/486#issuecomment-540828898
Thank you.
cc: @kenwith


Full translator

Before publishing the next version: Check whether we always use the translator object - using Find usages on the methods without translator input!

Will do now!


dragonflybsd add memory alloc fn specifics

r? @JohnTitor
(rust-highfive has picked a reviewer for you, use r? to override)

@bors r+

:pushpin: Commit 3064ad02452b445ba6fc4a529a810f8d54cb47fa has been approved by JohnTitor

:hourglass: Testing commit 3064ad02452b445ba6fc4a529a810f8d54cb47fa with merge eeab21ec618f88543a2a5a2c820eb0c7ab41f874...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing eeab21ec618f88543a2a5a2c820eb0c7ab41f874 to master...


Remove pthread-win32 dependency on Windows

Hey.
I'm looking at using Chipmunk as a 2D physics engine for my game engine and I had some troubles compiling it under Windows because of the pthread dependency, so I did fix that.
I also reimplemented a very small pthread implementation based on Win32 API, this way we don't have to use pthread-win32 on Windows, which is a problem because it's LGPL-licenced.


fix: Remove bash set command

This fix solves:  Playbook 0_setup.yaml is failing on Ubuntu image #135

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Crash With Little Tiles Mod

Game crashed with little tiles mod as I tried to use to door functionality. Crash log:
crash-2017-01-23_19.47.58-server.txt
crash-2017-01-23_19.48.07-client.txt

Client and server both crashed??? wow

I'm not really sure what to make of this; Little Tiles uses its own separate world to simulate the tiny blocks doing things.
Still looking into it though

Old issue, closed.


Lots of TMPro NullReferenceException

I was developing on feature/xr_v2 branch, and I see lots of TMPro NullReferenceException in log.
How should I resolve it? Thanks!
08-03 09:29:32.860 13556 13579 E Unity   : NullReferenceException: Object reference not set to an instance of an object. 08-03 09:29:32.860 13556 13579 E Unity   :   at TMPro.TMP_Settings.get_fallbackFontAssets () [0x00000] in <00000000000000000000000000000000>:0  08-03 09:29:32.860 13556 13579 E Unity   :   at TMPro.TMP_Text.GetEllipsisSpecialCharacter (TMPro.TMP_FontAsset fontAsset) [0x00000] in <00000000000000000000000000000000>:0  08-03 09:29:32.860 13556 13579 E Unity   :   at TMPro.TMP_Text.GetSpecialCharacters (TMPro.TMP_FontAsset fontAsset) [0x00000] in <00000000000000000000000000000000>:0  08-03 09:29:32.860 13556 13579 E Unity   :   at TMPro.TextMeshPro.LoadFontAsset () [0x00000] in <00000000000000000000000000000000>:0  08-03 09:29:32.860 13556 13579 E Unity   :   at TMPro.TextMeshPro.Awake () [0x00000] in <00000000000000000000000000000000>:0  08-03 09:29:32.860 13556 13579 E Unity   :   at UnityEngine.Object.Instantiate[T] (T original) [0x00000] in <00000000000000000000000000000000>:0  08-03 09:29:32.860 13556 13579 E Unity   :   at TiltBrush.SketchControlsScript.Start () [0x00000] in <00000000000000000000000000000000>:0

Just want to check, have you imported the Text Mesh Pro Essential resources? https://learn.unity.com/tutorial/textmesh-pro-importing-the-package

@merulaxr Thanks, I think I miss that part. :)


Don't Merge! PR real time test for source branch full build

Docs Build status updates of commit 8964592:
:clock10: Full build: the average full build time is 5 min(s) 58 sec(s), this is based on the last 649 build(s) for this repository.

Docs Build status updates of commit 8964592:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details
Dependent Files

docfx.json
: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.


Update toolbar for missing icons

Some icons have gone missing following the most recent update to the toolbar package because the ion icons now need the md- prefix; also, stop is now called square.
see, e.g.
https://github.com/suda/tool-bar/releases/tag/v1.2.0
https://github.com/suda/tool-bar/issues/264

Thanks!


[Table] - Text Alignment inside table for inputs

Steps to Reproduce

Needed to write custom code to align text to right for inputs inside table

Expected
I expected that 'right aligned' would align text to right of inputs inside table
Result
Inputs inside table do not align their text.
Testcase
(fork this to get started)
http://jsfiddle.net/rduvhn8u/1/

Your test case is empty

Closing the issue until there’s a test case.


[Proposal] Logging frame work rework

This issue is to track the proposed logging frame rework. The proposed change would add the following interfaces to core
type LogEvent interface {
   Typ() LogSource  //returns the type of this log event i.e. character, sim, damage, etc...
   StartFrame() int  //returns the frame on which this event was started
   Src() int //returns the index of the character that triggered this event. -1 if it's not a character
   Write(keyAndVal ...interface{}) //write additional keyAndVal pairs to the event
   MarshalJSON() ([]byte, error) //custom JSON marshal implementation (to speed up serialization and avoid reflects)
   UnmarshalJSON(b []byte) error //custom JSON unmarshal implementation (to speed up serialization and avoid reflects)
}

type LogCtrl interface {
   NewEvent(msg string, typ LogSource, srcChar int) LogEvent
   NewEventWithFields(type LogSource, srcChar int, keyAndVal ...interface{}) LogEvent
   Dump() [][]byte //print out all the logged events in array of JSON strings in the ordered they were added
}

The idea behind it is fairly simple. Any time the sim needs to log an event, it would ask the LogCtrl to create it a new event. It can then write to this event and also pass it along to any subroutine that may need to write to it.
For example, the following code
c.Log.Debugw("favonius proc'd", "frame", c.F, "event", core.LogWeaponEvent, "char", char.CharIndex())

would be converted to
c.Log.NewEvent("favonius proc'd", core.LogWeaponEvent, char.CharIndex())

The primary use for LogEvent would be passing it along an attack chain, tracking all the things that goes into an attack.
Ideally, the event would be generated when the AttackInfo gets created. However AttackInfo is a struct that gets created manually (as opposed to using a helper function) and sometimes we reuse the same AttackInfo for different attacks (to save on allocs).
Alternatively we can have QueueAttack automatically create a LogEvent whenever called. However, snapshot is typically called before QueueAttack so to capture the snapshot mods, we'll still need to embed some information into each Snapshot (which is what we're doing now)
type Snapshot struct {
	CharLvl    int
	ActorEle   EleType
	ExtraIndex int                  //this is currently purely for Kaeya icicle ICD
	Cancelled  bool                 //set to true if this snap should be ignored
	Stats      [EndStatType]float64 //total character stats including from artifact, bonuses, etc...
	BaseAtk    float64              //base attack used in calc
	BaseDef    float64

	LogKeyAndVal []interface{}
}

This way, we can create a LogEvent on every QueueAttack call and append the snapshot information (if any) to the new LogEvent.

Here's a possible structure implement LogEvent
type log struct {
	sourceFrame int //frame this event originated
	showAt int //frame to display this log at??
	endFrame int //frame this event ends (if any)
	message string //main message
	eventType core.LogSource //type of log
	keyAndVal []interface{}
}

Currently being worked on in next branch


Control redirect unable to reset

I have something like this:
app: live
name: A,B and C
If I run curl ... app=live&name=A&newname=B
I can't 'go back' to A
curl ... app=live&name=A&newname=A doesn't work, nor does curl ... app=live&name=B&newname=A
So, If I'm playing A, want to see B for a while then go back to A, the video gets permanently stuck. What's the right way to do this?

Try this:
to show B
app=live&name=A&newname=BAK
app=live&name=B&newname=A
to go back to A
app=live&name=A&newname=B
app=live&name=BAK&newname=A


feat: Implement fast approximation of Gelu to improve performance

Description
Implement fast approximation of Gelu to improve performance (eg: BERT model)
Type of change

New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines of this project (You can use the linters)
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas and hacks
[ ] I have made corresponding changes to the documentation
[ ] I have added tests to verify my fix or my feature
[x] New and existing unit tests pass locally with my changes

@peri044 do you think we could do this through a lowering pass instead of having to write out the TensorRT implementation?

Also is this more accurate than the plugin?

Also is this more accurate than the plugin?
This is the same as the plugin. Plugin also used approximation with the commented formula
Pushed everything, now the PR is ready.


vultr.DnsRecord - MX and CNAME records

Hi,
when I created a new domain via "vultr.DnsRecord", it automatically adds a MX and a CNAME record. Why? How can I delete them?
import pulumi
import ediri_vultr as vultr

my_domain = vultr.DnsDomain("foobar", domain="foobar.foo", ip="<IP_ADDRESS>")

A     <IP_ADDRESS>         300
CNAME * foobar.foo    300
MX    foobar.foo      300 10
NS    ns1.vultr.com   300
NS    ns2.vultr.com   300

Thanks

Hey @dR3b,
according to the docs, you should create the DnsDomain resource without the IP address no records will be created.
And the. you can use DnsRecord to create the records!

Thanks! I only saw the example on this page: https://www.pulumi.com/registry/packages/vultr/api-docs/dnsdomain/
import pulumi
import ediri_vultr as vultr

my_domain = vultr.DnsDomain("myDomain",
    domain="domain.com",
    ip="<IP_ADDRESS>")

yeah, that's the official example from the Vultr TF provider! I had to check the Vultr API docs for more details! 🙈


ExecuteAsync has an exception occur when an arg is missing.

Stacktrace:
System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector)
   at Discord.Commands.CommandService.<ExecuteAsync>g__CalculateScore41_7(CommandMatch match, ParseResult parseResult)
   at Discord.Commands.CommandService.<>c.<ExecuteAsync>b__41_12(KeyValuePair2 x)
   at System.Linq.EnumerableSorter2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
   at System.Linq.Buffer1..ctor(IEnumerable1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
   at Discord.Commands.CommandService.<ExecuteAsync>d__41.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
   at Advobot.Command_Handler.<HandleCommand>d__4.MoveNext() in C:\Users\User\Documents\Visual Studio 2017\Projects\Advobot\Advobot\Advobot_Command_Handler.cs:line 51

Command:
public async Task Test(string input)
{
	await Actions.SendChannelMessage(Context, "test");
}

Input:
&&test

In the current 1.0.0 version ExecuteAsync produces an exception instead of only failing. In at least Discord.Net v1.0.0-rc3-00755 this would produce an IResult with IsSuccess = false and an Error/ErrorReason.

CalculateScore
#BlameFinite @FiniteReality

At least it knows your arg is missing :rofl:


revert Azure CNI to 1.0.4

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #3283
Special notes for your reviewer:
If applicable:

[ ] documentation
[ ] unit tests
[ ] tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

revert Azure CNI to 1.0.4

@jackfrancis @CecileRobertMichon What happened here?

#3283, along with a drop in network reliability across our E2E tests suggests we should revert this change and evaluate if it restores stability.

@PatrickLang @khenidak FYI

So where is the linked issue for https://github.com/Azure/azure-container-networking ? This puts us in a bad position because 1.0.6 included some DNS related fixes such as #3143 . Reverting to 1.0.4 regressed this


feat(link): add new link package

Note that there is one outstanding issue that i have not resolved yet for Breadcrumbs. Per the design specs, we are supposed to override the default separator component and replace it with an expandable icon menu. However,
from https://github.com/mui/material-ui/blob/master/packages/mui-material/src/Breadcrumbs/Breadcrumbs.js#L140 we see that it is not a simple proposition to override the default component that Breadcrumbs uses. We should discuss the extent to which we want to rewrite and maintain a fork of the provided breadcrumbs that supports a component override.


support noise encryption and token auth?

Are you planning to implement noise encryption and token (key) auth?

Oh , i not found noise “ Noise_NNpsk0_25519_ChaChaPoly_SHA256” for nodejs , if you can help “welcome”
My knowledge is not enough to implement fast the protocol

How about https://github.com/nazar-pc/noise-c.wasm


[ENH] Fix filter on bug with complement option

PR Description
Please describe the changes proposed in the pull request:

As per title.
Added an additional test with filtering by multiple criteria to prevent this bug from happening in the future.
Also sneaked in a small formatting fix for read_commandline documentation.

This PR resolves #988.

PR Checklist

Please ensure that you have done the following:

[ ] PR in from a fork off your branch. Do not PR from <your_username>:dev, but rather from <your_username>:<feature-branch_name>.

[x] If you're not on the contributors list, add yourself to AUTHORS.rst.

[x] Add a line to CHANGELOG.md under the latest version header (i.e. the one that is "on deck") describing the contribution.

Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Automatic checks
There will be automatic checks run on the PR. These include:

Building a preview of the docs on Netlify
Automatically linting the code
Making sure the code is documented
Making sure that all tests are passed
Making sure that code coverage doesn't go down.

Relevant Reviewers

Please tag maintainers to review.

@ericmjl

🚀 Deployed on https://deploy-preview-991--pyjanitor.netlify.app

@samukweku please do the honors!


Improve list in search plugins index

Description
This PR improves the list in the search plugins index page.
The list in https://opensearch.org/docs/latest/search-plugins/index/ was not easy to digest.
The list is not completely parallel yet, See lines 14 and 21. Ideas on how to fix that are welcome. Maybe this doesn't matter at all though, as the list formatting has already been approved so much. Let me know.
Issues Resolved
none
Checklist

[x] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Closing this PR since the search section will have a new structure soon.


Enum '@prisma/client' is in the interface for frontend

Hello @Brakebein
// Generator type for frontend
generator nestjsDto {
  provider                        = "prisma-generator-nestjs-dto"
  output                          = "../src/modules/types"
  outputToNestJsResourceStructure = "true"
  fileNamingStyle                 = "camel"
  noDependencies                  = "true"
  exportRelationModifierClasses   = "false"
  outputType                      = "interface"
  outputApiPropertyType           = "false"
}

enum Status {
  Y // CLOSED
  N // OPEN
  P // ON PROGRESS
  C // CANCEL

model PdScw {
  /// @description ID
  /// @IsNotEmpty()
  id String @id @default(dbgenerated("api.generate_custom_id('PdScw', 'id', 'SCW', 4)"))

   /// @description SCW STATUS
  /// @IsNotEmpty()
  /// @DtoCreateOptional
  /// @DtoUpdateOptional
  scwStatus Status @default(value: N)

  /// @DtoEntityHidden
  /// @DtoCreateOptional
  /// @DtoUpdateOptional
  createdBy String   @default("system")
  /// @DtoEntityHidden
  /// @DtoCreateOptional
  /// @DtoUpdateOptional
  updatedBy String   @default("system")
  /// @DtoEntityHidden
  createdAt DateTime @default(now()) @db.Timestamptz
  /// @DtoEntityHidden
  updatedAt DateTime @updatedAt @db.Timestamptz
}

result interface is

/**
 * Below is the status that should create an enum interface, not import from prism
 */
import {Status} from '@prisma/client'
import {MstMch} from '../../mstMch/entities/mstMch.entity'
import {MstDept} from '../../mstDept/entities/mstDept.entity'
import {MstCom} from '../../mstCom/entities/mstCom.entity'
import {User} from '../../user/entities/user.entity'

export interface PdScw {
  id: string ;
scwStatus: Status ;
scwStartAt: Date  | null;
scwProgresAt: Date  | null;
scwCloseAt: Date  | null;
}

Yes, unfortunately, this is still an open issue. enums in combination with noDependencies = "true" are not yet working. In this case, I would need to generate a additional enum file, which requires some more complex additions to the code and, hence, some time. I will try to tackle this the next days, but I can't promise when it will be done.

Thank you @Brakebein , if you have updated it will definitely be very helpful, I will wait for the closing of the issue

If noDependencies = "true, enums are now generated and referenced to an extra file enums.ts. Please checkout 1.24.0-beta1.


Add option for webgui and ssh to configure management IP

Preface
Howdy. In #4541 I've suggested to implement a workaround for a problem. The discussion made me realize that this was not the best approach.
Description
This PR contains a new solution that finally adresses the underlying issue and adds a simple option to make the management IP configurable. Let me know what you think.
Compared to #4541 this approach...

is easily understood: users can simply switch between both behaviours
does not increase code complexity (because it no longer manipulates the behaviour of another option/function)
is failsafe: it is not visible by default and a clear warning is shown when selected

In case you agree to merge this new option, then I'll happily update the documentation to include a description for the new option.
Screenshots
Default: listen on specified interfaces

Optional: listen on specified IP

(The option was added to both WebGUI and SSH, but they look the same so I've only added screenshots for the WebGUI option.)

@fraenki Just in case you did not recognize: I added a comment in an already resolved review comment...
Not sure if GitHub sends out notifications for comments in resolved reviews.

@fraenki Just in case you did not recognize: I added a comment in an already resolved review comment...
Not sure if GitHub sends out notifications for comments in resolved reviews.

I've rebased this against current master and resolved the merge conflict.
@8191 Thanks for your review!

I've rebased this against current master and resolved the merge conflict.
@8191 Thanks for your review!

I've rebased this against current master and resolved the merge conflict.
@8191 Thanks for your review!

I've rebased this against current master and resolved the merge conflict.
@8191 Thanks for your review!

@fraenki https://github.com/opnsense/core/issues/5086 is now implemented and you can disable IP aliases for binding :)


Not all sources being displayed

Extension doesn't display all sources beyond 14. The ones it picks are very random too. The ones it chooses ones i don't even commonly us. (Not sure why Playnite come up as a source)

The Playnite source is the default name for the games added without plateform.


RFE: Order github workflow steps based on label number.

Before https://github.com/listendev/argus/pull/314, the github workflow labels (translated into github_context.action field in json) were submitted without any prefix (number). After that change, it is possible for an event consumer to identify workflow label ordering just by splitting the github_context.action field using the first '.' found. Example:
3. Checkout
8. Some step after checkout
12. Another step after the previous

Use the prefixed number (XX.) to order/sort the steps in any front end screen. You may chose not to show the number because it won't start from 0 and it might have gaps in between them.
Example:

Thank you @rafaeldtinoco, this is great. I'll create a PR for this wathog-side now and bind it to this issue as well.


UnpBootAccordionView - Load More does not work

The Load More when pressed will simply disappear as opposed to loading more data.
This may be related to the issue found with ajaxload = No not working.  Suspicion regarding sessionScope / viewScope not having values for the UnpAccordionViewList to work with?
Loaded / signed the sample database for 1.3 and finding that the Accordion view for that is working.  Can't seem to isolate any real differences in the code being used to determine why its not working.
Not sure if the issue is due to the volume of data found in the view being used?  ( Approx 22,000 records ).

Would it be possible to have a look at your application with the issue? We've tested locally with databases up to 5000 docs, so I don't think that it's anything to do with the volume of data.

What is the best way to send you the application in question?  I can
provide you a login to see it via the web?
Reid
On Sun, Feb 22, 2015, 4:06 AM Matt White<EMAIL_ADDRESS>wrote:

Would it be possible to have a look at your application with the issue?
We've tested locally with databases up to 5000 docs, so I don't think
that it's anything to do with the volume of data.
—
Reply to this email directly or view it on GitHub
https://github.com/teamstudio/xcontrols-domino/issues/309#issuecomment-75426536
.

Hi Reid,
You can send the details to me at<EMAIL_ADDRESS>and I'll try and have a look this week.
Matt

Just updated to 1.3.1 and tried and the issue appears to still be present.  I will send you an e-mail with a link to the full database for your reference.

Full database is posted with a link to download sent to your e-mail ( matt ).

I adjusted the UnpBootAccordionViewList XPage to use 500 instead of 12 and it appears to be loading all the content for the category.  Not sure if that helps?

I finally got a chance to look at this (apologies for the delay). There are two issues in the app:
In the UnpViewLocatesByProperty XPage, for detailcolumn and summarycolumn you need to use the column titles in the view, not the programmatic names of the columns. When referencing the view, it's better to use the alias of the view as we have a bug with passing view names with backslashes in them.
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom"
	xmlns:unp="http://unplugged.teamstudio.com">
	<unp:UnpBootResources></unp:UnpBootResources>
	<xc:tofeHeader></xc:tofeHeader>

			<unp:UnpBootAccordionView xp:key="facet_1"
				viewname="v_unp_locateProperty"
				xpagedoc="UnpDocLocate.xsp" ajaxload="No"
				detailcolumn="locationNote" summarycolumn="streetNo"
				title="Locates by Street Name" id="viewStreet"
				expandfirstcategory="no">
			</unp:UnpBootAccordionView>

	<unp:UnpBootFooter synctype="alldbs"></unp:UnpBootFooter>
</xp:view>

In the sample above, I've changed the column titles in the view design to match the programatic names (it doesn't matter in this case as the view is hidden from users) and I've changed the view alias.
Matt


Need NAT performance tests

We need performance tests to run NAT with apache benchmark and compare it with Linux iptables performance.

Is this done?

Yes with PRs #335 and #358 we have NAT performance tests.


Consider removing mustIncludeDatum constraint

I couldn't find a scenario where the mustIncludeDatum constraint is needed (see this PR), so if there really is none we should maybe consider removing it

One may want to use mustIncludeDatum to have some backup in case the ODC request fails for some reason https://github.com/Plutonomicon/cardano-transaction-lib/blob/1999bb962141ffea09767f299a5759420097d189/src/Internal/Types/ScriptLookups.purs#L965-L971

Since it will fail for any datum that is not on-chain, it's the only way to use a new datum.


feature: recalculate labels

Did you check the docs?

[X] I have read all the flash.nvim docs

Is your feature request related to a problem? Please describe.
My setup:
flash.setup {
  labels = 'fdkjaslhpioqwertyuzxcvbnm'
}

This labels was sorted by convenience for  me.
Example:

I run flash.jump() and type c

Then i type o

And got not very comfortable labels. I expect fdkj in this case.
Can you add flag to config label = { is_recalculated = true }
Describe the solution you'd like

Describe alternatives you've considered

Additional context
No response

You can now set opts.label.reuse = "none".
Be aware that labels will now possibly change whenever you type extra characters for the search pattern, which is not great.

I thought it was implemented yet. Thank you!


Terminal needs SOME documentation

A great deal of power is in the direct execution of command through the terminal, but they aren't documented.
Some things I have "figured out" from emails like
move_absolute 0 0
move_absolute 100% 0
move_absolute 100% 100%
move_absolute 0 100%
But I am sure there are LOTS of other commands, but I have no idea where to look.  A Side/bar as an OPTION in terminal mode with command syntax would really be helpful.
What fires the laser for how long, what TOGGLES the laser
What sets the Travel speed
Lock/Unlock the rail
Are there any controller variables that are "remembered" that would be useful to know about?
Here is a Wiki I found of commands (http://edutechwiki.unige.ch/en/Lhystudios_M2_Nano#Commands) It includes some Meerk40T references

What fires the laser for how long,

pulse <duration-ms>
So console: pulse 200 fires the laser without moving it for 200 ms.

what TOGGLES the laser

+laser (WARNING: DO NOT JUST TYPE THIS!)
This would typically be bound to a key: bind space +laser when something starting with a + is bound it's triggered on keydown and the - form is triggered on keyup. So here hitting your spacebar fires your laser in place. (WARNING: DO NOT ALLOW A CAT TO BURN DOWN YOUR HOUSE!)

What sets the Travel speed

speed <speed-mm/s> in theory when the laser is rastering you can type: speed 200 and the laser will start moving at 200mm/s. Or speed 50 and the laser will change speed to that speed. You can also do speed +10 which will go 10mm faster than the current speed. And speed +10% which would make it go faster by 10% from the previous speed. Keep in mind these speeds would be lost when the laser changes its speed in common use. So the utility there is slightly mooted.

Lock/Unlock the rail

lock
unlock

These have no arguments.

Are there any controller variables that are "remembered" that would be useful to know about?

Within the actual controller itself? I don't think so. But, they are as follows.

bool: quit -- Flags the controller to shutdown when the current processing data is finsihed. This is so the CLI can do -a flag and have the controller thread terminate and allow it to exit the program.
int: usb_index -- This is the number of the usb. So setting this to 0 only gets the 1st device. 1 the 2nd, 2 the 3rd.
int: usb_bus -- This restricts the controller to attaching to only this usb bus index.
int: usb_address - This restricts the controller to attaching to only this usb address.
int: usb_serial - This does nothing.
int: usb_version - This restricts the controller to attaching to a CH341 chip only of this exact version. This can be used to tell one board from another board if you have more than one.
bool: mock -- This pretends you have a usb device while not really having one for debug purposes.
int: packet_count -- This is the count of the sent packets by the controller.
int: rejected_count -- This is the count of the rejected packets that failed. This value is useful but displayed in Controller and can show you if your connection is sketchy.
bool: autolock -- This is in preferences and locks the rail when finished with a process.
bool: autohome -- This adds a home in the spooler it doesn't do anything in controller.
bool: autobeep -- This adds a beep command in the spooler it doesn't do anything in controller.
string: board -- This is the board type. M2 is default but, A, B, B1, B2, M, M1 are also allowed. Setting this will mess with your speed codes and make the machine go really slow or wrong if setup wrong.
bool: rotary -- This is whether your rotary is set to work. Does nothing in controller.
float: scale_x -- This is the scale in the x direction for your rotary. It does nothing here.
float: scale_y -- This is the scale in the y direction for your rotary. It does nothing here.

Version 0.7.0 is adding bool: strict, this tells the controller to only ever engage with RB (Bottom, Right) directions initializations on the believe that versions of the M2 board prior to revision 4 circa 2014 which have a different stepper chip cannot actually correctly deal with other directions.  We lack the hardware to verify this, but we think it's the result of #272, which was a bit of a shock to us.
That wiki of commands are the LHYMicro-GL commands found within the board and reverse engineered. I know, I wrote that wiki.

What fires the laser for how long,

pulse <duration-ms>
So console: pulse 200 fires the laser without moving it for 200 ms.

what TOGGLES the laser

+laser (WARNING: DO NOT JUST TYPE THIS!)
This would typically be bound to a key: bind space +laser when something starting with a + is bound it's triggered on keydown and the - form is triggered on keyup. So here hitting your spacebar fires your laser in place. (WARNING: DO NOT ALLOW A CAT TO BURN DOWN YOUR HOUSE!)

What sets the Travel speed

speed <speed-mm/s> in theory when the laser is rastering you can type: speed 200 and the laser will start moving at 200mm/s. Or speed 50 and the laser will change speed to that speed. You can also do speed +10 which will go 10mm faster than the current speed. And speed +10% which would make it go faster by 10% from the previous speed. Keep in mind these speeds would be lost when the laser changes its speed in common use. So the utility there is slightly mooted.

Lock/Unlock the rail

lock
unlock

These have no arguments.

Are there any controller variables that are "remembered" that would be useful to know about?

Within the actual controller itself? I don't think so. But, they are as follows.

bool: quit -- Flags the controller to shutdown when the current processing data is finsihed. This is so the CLI can do -a flag and have the controller thread terminate and allow it to exit the program.
int: usb_index -- This is the number of the usb. So setting this to 0 only gets the 1st device. 1 the 2nd, 2 the 3rd.
int: usb_bus -- This restricts the controller to attaching to only this usb bus index.
int: usb_address - This restricts the controller to attaching to only this usb address.
int: usb_serial - This does nothing.
int: usb_version - This restricts the controller to attaching to a CH341 chip only of this exact version. This can be used to tell one board from another board if you have more than one.
bool: mock -- This pretends you have a usb device while not really having one for debug purposes.
int: packet_count -- This is the count of the sent packets by the controller.
int: rejected_count -- This is the count of the rejected packets that failed. This value is useful but displayed in Controller and can show you if your connection is sketchy.
bool: autolock -- This is in preferences and locks the rail when finished with a process.
bool: autohome -- This adds a home in the spooler it doesn't do anything in controller.
bool: autobeep -- This adds a beep command in the spooler it doesn't do anything in controller.
string: board -- This is the board type. M2 is default but, A, B, B1, B2, M, M1 are also allowed. Setting this will mess with your speed codes and make the machine go really slow or wrong if setup wrong.
bool: rotary -- This is whether your rotary is set to work. Does nothing in controller.
float: scale_x -- This is the scale in the x direction for your rotary. It does nothing here.
float: scale_y -- This is the scale in the y direction for your rotary. It does nothing here.

Version 0.7.0 is adding bool: strict, this tells the controller to only ever engage with RB (Bottom, Right) directions initializations on the believe that versions of the M2 board prior to revision 4 circa 2014 which have a different stepper chip cannot actually correctly deal with other directions.  We lack the hardware to verify this, but we think it's the result of #272, which was a bit of a shock to us.
That wiki of commands are the LHYMicro-GL commands found within the board and reverse engineered. I know, I wrote that wiki.

I could actually expose fix_speed found in the LaserSpeed code. Which makes all speeds 8.9% faster which actually makes them accurate. For an unknown reason the chinese software numbers were uniformly off by this amount. Consequently when I wrote LaserSpeed (which predates MeerK40t), I perfectly duplicated the values there because I needed to get Scorch to use the code for Whisperer. And not wanting to break things those were left in place. But, a speed of 100mm/s is actually going to go 91.1mm/s. The transitions between different accelerations was bound to that and I wanted people to be able to keep their whisperer speeds. So it was left there.
In fact, I've now corrected these in 0.7.0
https://github.com/meerk40t/meerk40t/commit/dd7edb92a6904b64bdbc921a952f8381250d5cbd

I could actually expose fix_speed found in the LaserSpeed code. Which makes all speeds 8.9% faster which actually makes them accurate. For an unknown reason the chinese software numbers were uniformly off by this amount. Consequently when I wrote LaserSpeed (which predates MeerK40t), I perfectly duplicated the values there because I needed to get Scorch to use the code for Whisperer. And not wanting to break things those were left in place. But, a speed of 100mm/s is actually going to go 91.1mm/s. The transitions between different accelerations was bound to that and I wanted people to be able to keep their whisperer speeds. So it was left there.
In fact, I've now corrected these in 0.7.0
https://github.com/meerk40t/meerk40t/commit/dd7edb92a6904b64bdbc921a952f8381250d5cbd

0.7.0 is getting a more advanced help command which exists in a more primitive form in 0.6.x
--- Context('1') Commands ---
left            <direction> <amount>
right           <direction> <amount>
up              <direction> <amount>
down            <direction> <amount>
move            move <x> <y>: move to position.
move_absolute   move <x> <y>: move to position.
move_relative   move_relative <dx> <dy>
home            home the laser
unlock          unlock the rail
lock            lock the rail
egv_import      Lhystudios Engrave Buffer Import. egv_import <egv_file>
egv_export      Lhystudios Engrave Buffer Export. egv_export <egv_file>
egv             Lhystudios Engrave Code Sender. egv <lhymicro-gl>
usb_connect     Connect USB
usb_disconnect  Disconnect USB
start           Start Pipe to Controller
pause           Pause Controller
resume          Resume Controller
abort           Abort Job
pulse           pulse <time>: Pulse the laser in place.
speed           Set Speed in Interpreter.
power           Set Interpreter Power
acceleration    Set Interpreter Acceleration [1-4]
--- Global Commands ---
bind            bind <key> <console command>
alias           alias <alias> <console commands[;console command]*>
consoleserver   starts a console_server on port 23 (telnet)
grid            grid <columns> <rows> <x_distance> <y_distance>
element         element <command>*: <#>, merge, subpath, copy, delete, *, ~, !
path            path <svg path>
circle          circle <x> <y> <r> or circle <r>
ellipse         ellipse <cx> <cy> <rx> <ry>
rect            adds rectangle to scene
text            text <text>
polygon         polygon (<point>, <point>)*
polyline        polyline (<point>, <point>)*
stroke          stroke <svg color>
fill            fill <svg color>
rotate          rotate <angle>
scale           scale <scale> [<scale-y>]?
translate       translate <tx> <ty>
rotate_to       rotate_to <angle>
scale_to        scale_to <scale> [<scale-y>]?
translate_to    translate_to <tx> <ty>
resize          resize <x-pos> <y-pos> <width> <height>
matrix          matrix <sx> <kx> <sy> <ky> <tx> <ty>
reset           reset affine transformations
reify           reify affine transformations
operation       operation <commands>: <#>, *, ~, !, delete, copy
classify        classify elements into operations
declassify      declassify selected elements
note            note <note>
cut             group current elements into cut operation
engrave         group current elements into engrave operation
raster          group current elements into raster operation
step            step <raster-step-size>
trace_hull      trace the convex hull of current elements
trace_quick     quick trace the bounding box of current elements
grblserver      activate the grblserver.
image           image <operation>
halftone        image halftone <diameter> <scale> <angle>
optimize        optimize <type>
embroider       embroider <angle> <distance>
plan.*          plan<?> <command>
ruidaserver     activate the ruidaserver.
camera\d*       camera commands and modifiers.
start           Start Camera.
stop            Stop Camera
fisheye         fisheye (capture|reset)
perspective     perspective (set <#> <value>|reset)
background      set background image
export          export camera image
camwin          camwin <index>: Open camera window at index
loop            loop <command>
end             end <commmand>
timer.*         timer<?> <duration> <iterations>
register        register
context         context
set             set [<key> <value>]
control         control [<executive>]
module          module [(open|close) <module_name>]
modifier        modifier [(open|close) <module_name>]
schedule        schedule
channel         channel [(open|close|save) <channel_name>]
device          device [<value>]
flush           flush
shutdown        shutdown
rotaryview      Rotary View of Scene
rotaryscale     Rotary Scale selected elements
window          wxMeerK40 window information
refresh         wxMeerK40 refresh

0.7.0 is getting a more advanced help command which exists in a more primitive form in 0.6.x
--- Context('1') Commands ---
left            <direction> <amount>
right           <direction> <amount>
up              <direction> <amount>
down            <direction> <amount>
move            move <x> <y>: move to position.
move_absolute   move <x> <y>: move to position.
move_relative   move_relative <dx> <dy>
home            home the laser
unlock          unlock the rail
lock            lock the rail
egv_import      Lhystudios Engrave Buffer Import. egv_import <egv_file>
egv_export      Lhystudios Engrave Buffer Export. egv_export <egv_file>
egv             Lhystudios Engrave Code Sender. egv <lhymicro-gl>
usb_connect     Connect USB
usb_disconnect  Disconnect USB
start           Start Pipe to Controller
pause           Pause Controller
resume          Resume Controller
abort           Abort Job
pulse           pulse <time>: Pulse the laser in place.
speed           Set Speed in Interpreter.
power           Set Interpreter Power
acceleration    Set Interpreter Acceleration [1-4]
--- Global Commands ---
bind            bind <key> <console command>
alias           alias <alias> <console commands[;console command]*>
consoleserver   starts a console_server on port 23 (telnet)
grid            grid <columns> <rows> <x_distance> <y_distance>
element         element <command>*: <#>, merge, subpath, copy, delete, *, ~, !
path            path <svg path>
circle          circle <x> <y> <r> or circle <r>
ellipse         ellipse <cx> <cy> <rx> <ry>
rect            adds rectangle to scene
text            text <text>
polygon         polygon (<point>, <point>)*
polyline        polyline (<point>, <point>)*
stroke          stroke <svg color>
fill            fill <svg color>
rotate          rotate <angle>
scale           scale <scale> [<scale-y>]?
translate       translate <tx> <ty>
rotate_to       rotate_to <angle>
scale_to        scale_to <scale> [<scale-y>]?
translate_to    translate_to <tx> <ty>
resize          resize <x-pos> <y-pos> <width> <height>
matrix          matrix <sx> <kx> <sy> <ky> <tx> <ty>
reset           reset affine transformations
reify           reify affine transformations
operation       operation <commands>: <#>, *, ~, !, delete, copy
classify        classify elements into operations
declassify      declassify selected elements
note            note <note>
cut             group current elements into cut operation
engrave         group current elements into engrave operation
raster          group current elements into raster operation
step            step <raster-step-size>
trace_hull      trace the convex hull of current elements
trace_quick     quick trace the bounding box of current elements
grblserver      activate the grblserver.
image           image <operation>
halftone        image halftone <diameter> <scale> <angle>
optimize        optimize <type>
embroider       embroider <angle> <distance>
plan.*          plan<?> <command>
ruidaserver     activate the ruidaserver.
camera\d*       camera commands and modifiers.
start           Start Camera.
stop            Stop Camera
fisheye         fisheye (capture|reset)
perspective     perspective (set <#> <value>|reset)
background      set background image
export          export camera image
camwin          camwin <index>: Open camera window at index
loop            loop <command>
end             end <commmand>
timer.*         timer<?> <duration> <iterations>
register        register
context         context
set             set [<key> <value>]
control         control [<executive>]
module          module [(open|close) <module_name>]
modifier        modifier [(open|close) <module_name>]
schedule        schedule
channel         channel [(open|close|save) <channel_name>]
device          device [<value>]
flush           flush
shutdown        shutdown
rotaryview      Rotary View of Scene
rotaryscale     Rotary Scale selected elements
window          wxMeerK40 window information
refresh         wxMeerK40 refresh

In addition, these commands also will return the doc_string of the command permitting much more advanced help to be provided with help <command>
Some of this might change a bit when I have commands define input and output types as string variables. Some commands like camera.* actually just give a camera type and the sub-commands within that take the camera data_type and modifies it, allowing command chaining in 0.7.x.
camera\d*       camera commands and modifiers.
start           Start Camera.
stop            Stop Camera
fisheye         fisheye (capture|reset)
perspective     perspective (set <#> <value>|reset)
background      set background image
export          export camera image

These are all part of the camera command. So camera stop start reconnects the camera calling stop and start on the camera. Whereas camera0 background does sets the bed background to the last frame of camera 0. Which is how multiple cameras work in 0.7.0, in theory this could also allow, export to export an image which could then be modified in image commands which are currently set in paradigm.

In addition, these commands also will return the doc_string of the command permitting much more advanced help to be provided with help <command>
Some of this might change a bit when I have commands define input and output types as string variables. Some commands like camera.* actually just give a camera type and the sub-commands within that take the camera data_type and modifies it, allowing command chaining in 0.7.x.
camera\d*       camera commands and modifiers.
start           Start Camera.
stop            Stop Camera
fisheye         fisheye (capture|reset)
perspective     perspective (set <#> <value>|reset)
background      set background image
export          export camera image

These are all part of the camera command. So camera stop start reconnects the camera calling stop and start on the camera. Whereas camera0 background does sets the bed background to the last frame of camera 0. Which is how multiple cameras work in 0.7.0, in theory this could also allow, export to export an image which could then be modified in image commands which are currently set in paradigm.

Did some documentation on this to help settle this issue:
https://github.com/meerk40t/meerk40t/wiki/Doc:-8.-Console-Terminal

Documentation is pretty good did a 20 minute video on it.
https://www.youtube.com/watch?v=c_QBZlNvhVo


feature_request(fix): remove leading spaces

1. Summary
It would be nice, if eclint fix will remove leading spaces for tabs users.
2. Argumentation
Some tools automatically generate files with leading spaces. eclint fix doesn't fix it and eclint check makes my builds failed.
3. MCVE

.editorconfig — I prefer tabs:

[*]
indent_style = tab
indent_size = 4

KiraECLint.styl — see Comment-Snippets issue for details:

/*
 * Kira Stylus comment
 */

KiraECLint.js — beginning of real file, that generate by grunt-modernizr:

/*! modernizr 3.6.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-webp-addtest-fnbind-printshiv-testprop !*/

Leading spaces in KiraECLint.styl and KiraECLint.js.
4. Steps to reproduce
eclint check
eclint fix
eclint check

5. Expected behavior
Remove leading spaces after fix, successful check.
6. Actual behavior
D:\SashaDebugging\Eclint>eclint check
KiraECLint.js
    02:01 ❌ invalid indent style: space, expected: tab
                                                        (EditorConfig indent_style https://goo.gl/8Qkrbr)
KiraECLint.styl
    02:01 ❌ invalid indent style: space, expected: tab
                                                        (EditorConfig indent_style https://goo.gl/8Qkrbr)
    03:01 ❌ invalid indent style: space, expected: tab
                                                        (EditorConfig indent_style https://goo.gl/8Qkrbr)

D:\SashaDebugging\Eclint>eclint fix

D:\SashaDebugging\Eclint>eclint check
KiraECLint.js
    02:01 ❌ invalid indent style: space, expected: tab
                                                        (EditorConfig indent_style https://goo.gl/8Qkrbr)
KiraECLint.styl
    02:01 ❌ invalid indent style: space, expected: tab
                                                        (EditorConfig indent_style https://goo.gl/8Qkrbr)
    03:01 ❌ invalid indent style: space, expected: tab
                                                        (EditorConfig indent_style https://goo.gl/8Qkrbr)

Thanks.

Think you need to set the block_comment option https://github.com/jedmao/eclint#block_comment

https://github.com/jedmao/eclint#support-for-doc-comments

@nschonni, @gucong3000, Status: partially fixed
+ — eclint check doesn't show errors

- — eclint fix doesn't remove leading spaces in comments

Is it possible remove leading spaces? They are not needed.
Thanks.

My comment was about comment blocks (😉 ) that were being flagged in your example. There are 3 editorconfig settings that deal specifically with comment blocks, that are separate from the indent settings.


angular-mocks package.json file does not depend on angular

This is kind of an issue with JSPM workflow. I seem to be forced to use the bower version of the installation rather than the npm version. Meaning:
jspm install npm:angular-mocks
This will install a package that has no idea that angular should be loaded before loading angular-mocks into the page. Installing from the bower.json works because it has the dependency listed correctly.
I prefer installing via npm rather than via bower because we have set up a local NPM cache.

I think that this can be solved using jspm peerDependencies: http://jspm.io/0.17-beta-guide/peer-dependencies.html or possibly a jspm shim dependency.
@onlywei can you take a look and suggest a solution that doesn't involve changing npm dependencies??

@petebacondarwin JSPM's peerDependencies feature seems like a way to resolve version conflicts when multiple packages depend on different versions of another package. It doesn't seem to apply here because the npm version of angular-mocks has no idea that there's a dependency on Angular at all.

@guybedford maybe you have some insight on this?

A JSPM  shim dependency then?

See https://github.com/jspm/registry/commit/94ebcfda771f8cbd1d0d2cb435152dab160829a1 for an example of an Angular override in the registry to shim the package dependency and module dependency (two separate things, the first for install, the second for module loading).

@guybedford - thanks for that. Are you saying that if a similar commit is made for each of the core angular modules then that would solve the problem for @onlywei ?

All that would be needed is the ability for jspm to know that it should load angular first. This can be as simple as the following in the package.json of angular mocks:
{
  "shim": {
    "angular-mocks": {
      "deps": ["angular"]
    }
  }
}

Alternatively this can be added with an override into the registry, but putting it in the original repo is preferred.
Note that the above shim config only works for global files - modules that aren't CommonJS or AMD or use a global UMD pattern.

We can add that. @onlywei fancy creating a PR for each of the bower-angular... repositories?

There are already some overrides for these repos in https://github.com/jspm/registry/tree/master/package-overrides/github/angular. Checking in those proven configurations into the original repos is definitely worthwhile. It is worth first testing the overrides locally and carefully considering any breaking changes where jspm users are already using these repos.
Just let me know if I can help further at all here.

Thanks @guybedford. @petebacondarwin I will try my hand at this soon, hopefully sometime next week.

@guybedford the package.json property is just called "shim"? It's not called "jspm-shim" or anything namespaced like that?

Yes exactly, more info here - https://github.com/jspm/registry/wiki/Configuring-Packages-for-jspm#shim-configuration.

@petebacondarwin @guybedford yep, test with that command works. I see the string: "deps angular"; on line 3 of angular-mocks.js with the override.

Closed via https://github.com/angular/bower-angular-mocks/commit/3f3116c4c74f7397bce13c14e4436ae8ecacc783.


Crushing [BUG]

hello so i am using (AdvancedRocketry 1.12.2-2.0.0-254 build -254 for 1.12.2) version on minecraft 12.2.2,
I have every mod i need and have updated.
but every time i place one of these block (altitude control block, orientation control block, and the station gravity control block) and try to interact with any of these block my game crushes, and if i try to break the block it crushes my game.

I need your LV version then.

LibVulpes 1.12.2-0.4.2-84 build -84 for 1.12.2

I am using LibVulpes 1.12.2-0.4.2-84 build -84 for 1.12.2

I need the log

AR isn't updated. Closing


Converting all files converts store / router and shouldn't

It seems router / store require there to be an index.js file so perhaps it shouldn't rename them.

The sourceFiles attribute should be added to your quasar.conf.js so that it will use the TS variants.

If it can't do that automatically, it should notify you and ask you to put it in manually.

I believe this happened because he chose "not to transform to ts"

Yeah sorry this is a dupe really: https://github.com/quasarframework/app-extension-typescript/issues/6

Closed in favor of #6.


feat: Add base error model, remove dupe error handlers and registration

As a step towards resolving issue #1369, this PR:

Adds a class BaseError to the core exceptions module for other exceptions to inherit from

Required: status_code, title, reason. Optional: err_code. (technical was not included as it only existed on one error at this time)

Updates all existing exceptions defined in external exceptions files to use BaseError, and updates them to meet its requirements if they did not already
Generates and registers exception handlers for all of BaseErrors children in the main application

(and as a result removes all excess handler definitions, handler registrations, and imports throughout the exception files and main app file)

Updates the documentation to reflect the new format

Put this back into draft, this morning I'll add edits to the documentation and descriptions/info to the base error since that's what people will be basing future exceptions off of

Looks good already. Only a few small comments.

Thanks! Think I got them all 👀


Proving lemmas doc

Reviewer checklist

[ ] Test coverage: stack test --coverage
[ ] Public API documentation: stack haddock

Thanks for the comments, I think I fixed them all, I'll probably merge tomorrow unless you have new suggestions/comments.


Remove closed botlists

Removed botlists:

[x] Divine Discord Bot list
[x] Cloud List
[x] Cloud Bot List

I'll get to it as soon as I can

Fixed published in v3.0.1


feature request: Add the ability to fetch the userinfo endpoint with the rauthy-client

Our backend would like to have the given_name, family_name and email, which aren't in the access_token. For that reason we would like to use the rauthy-client to fetch the userinfo from the /auth/v1/oidc/userinfo endpoint with the given bearer token. Does it make sense to implement something like that? The best approach would be an axum extractor, like the PrincipalOidc, which is doing the get request in the background.

Yes that's exactly what the /userinfo is for.
It would be require one less network roundtrip though, if you take the information directly from the id_token, which includes all of this by default, if the client requested the correct scope during sign in. Especially when you need these more often, I would maybe think about fetching this information only once directly after the login and then store it in a cookie or something like that.

The idea was more to outsource duplicate code. What you need to to is get that bearer token, do the get request and evaluate/parse it. If you have more endpoints which are using the userinfo it can be annoying.
I would not fetch the userinfo when the user is just using the PrincipalOidc. But if we have a seperate struct like UserinfoOidc, then the axum extractor could do the handling in the background (and in the future caching). :)

edit: Btw; as far as I know we also have no ability to get the Idtoken easily in the rauthy-client (or at least we have no validation). :D

Yes you do. The full id claims with additional data are being returned when a client does a callback:
https://github.com/sebadob/rauthy/blob/9f87af3dfb49b48300b885bf406f852579470193/rauthy-client/examples/axum/src/routes.rs#L65
The raw id_token is basically thrown away afterwards, because you usually don't need it anymore and do custom stuff for each app depending on the ID claims. You could serialize some data and put it inside an encrypted cookie. Then you would have everything available each time without additional lookups.
But, this is totally different how each app handles this.
The only thing we could do is maybe add a function for an existing PrincipalOidc like fetch_userinfo() which would do the request, but it would not avoid that much duplicate code, since you should avoid unnecessary network round trips.
Adding this is pretty simple though, so yes we can do this.

Ah I understand. The problem right there is, we are not using the cookie in our application. Our flow is that our client is doing the authentication with a public client and stores the access token and id token in the local storage. Our backend doesn't know something about the frontend client.Then the frontend client is just using the access token for the backend requests. It's not doing the entire authorization circle again and in that case not storing a cookie. ^^"
That is our current implementation and the easiest one. But maybe it makes sense to do the auth flow again and store the cookie as well, I thought it would be the easiest and best solution there. :D

I see. I would not do an additional fetch in the backend. This would be wasted resources and a really bad UX.
Usually, public clients are only used by SPA's that are simply not able to implement any backend code. If you would use a confidential client, all of this would actually be easier than the current approach imho.
If you want to stick with that flow, then yes you even are forced to do another roundtrip to userinfo at least once.
Another solution would be, that the client sends the id_token in an additional header as well, but then you have to validate it against the access token and make sure they are coming from the exact same auth flow to not introduce security issues. All of this would not be necessary with a confidential client, because you know exactly, that they match, when you get them from the /token endpoint and you have additional in-depth security because of the client secret.
For your use case though, where your backend is serving requests for a public client, it makes sense to add a fetch_userinfo() fn for the principal, absolutely.

One final question, just to be sure.
Imagine I have a Application (let's call it frontend), which is capable of doing server side rendering and also capable of doing hidden backend stuff.
And I have another application called Shop, which is just a rest backend api, and is of course capable of doing hidden backend stuff.
Then I could authenticate with the frontend with credentials and also write a secret cookie for id token validation, right? That also means that the shop could use the same secret cookie for the id token, right? Would both clients need separate client credentials (which I think should be the case).
And also one last question: That architecture would make it more secure, but the entire REST api would then be bounded to the browser. The idea behind a RESTful api is to be independent of the browser (concrete the cookie). This would mean that the full state is held by the client (which in my opinion is a big negative impact for a RESTful backend).
Source: https://softwareengineering.stackexchange.com/questions/141019/should-cookies-be-used-in-a-restful-api
Thank you very much for your time and I appreciate it! :heart:

Then I could authenticate with the frontend with credentials and also write a secret cookie for id token validation, right? That also means that the shop could use the same secret cookie for the id token, right?

That depends on your environment and your cookie settings.
You should always use Lax and where possible Strict cookies. When your different APIs and backends are running behind a reverse proxy and have the same origin, then yes you can access the cookies from each other.

Would both clients need separate client credentials (which I think should be the case)?

No. If they are running in different environments, you could improve the security a little bit in case your secret leaks at one place, so the other client is still "safe". But then you would have to use 2 different clients which means you need to maintain 2 different access tokens, because the aud / azp claim contains the client_id and this MUST always be validated. Without this validation, you could for instance use a valid access token which was meant for a completely different client. You must never skip this validation, which would fail, if you have separate clients.

And also one last question: That architecture would make it more secure, but the entire REST api would then be bounded to the browser. The idea behind a RESTful api is to be independent of the browser (concrete the cookie itself). This would mean that the full state is held by the client (which in my opinion is a big negative impact for a RESTful backend).

As so often, that depends.
For instance Rauthy's admin API is fully secured by a session cookie + CSRF token from local storage. This means it is bound to the browser by this definition. But, each endpoint can decide dynamically, if it uses the session cookies, or maybe an API Key from an Authorization header. So it really depends on how you build your API.
From a technical standpoint, Cookies are the most secure thing we can use these days for authentication from the browser. In the backend this does not matter. But even in the backend you can simply append a Cookie to your request, if you like, so your API would not be "bound" to the browser, even if it requests cookies. Rauthy's integration tests are a good example. I am not using a headless browser or something like that to test everything, only standard Rust test functions. If you append your data correctly, you have no issues.
Only using a token from a local storage can be attacked easily, if your user has a malicious browser extension. These can access the local storage for each website your are visiting, which is a security nightmare imho. This does not apply to the session storage, but saving your token there means you need to do a fresh login each time you close the browser / tab.
The only really safe method that needs at least multiple vulnerabilities is using secure http only cookie + csrf token from local storage appended to request headers with JS / WASM.
At the end of the day, a cookie being sent to the backend is only another HTTP header value.

Thanks, that was a really good answer. I thought a lot about the architecture and on long term we will use SSR with cookies. But right now our application is most of the time a standard SPA (we do some SSR, but that's just for SEO stuff, like a product page). The backend itself is just a REST-Api. Mixing things up wouldn't help. The trade off for more security isn't worth it right now. The REST Backend is completely stateless and the Frontend (which is most of the time a SPA, and only for some endpoints a SSR) scale up quite easily, increasing the worker amount isn't such a big deal there and it's also helping to split between the client and the backend. That's the reason why we choose the local storage. But I'll definitely keep that in mind for the future. :3
But I am open for changes, maybe I still understand it wrong. :D I think my knowledge increased a lot, thanks to you. :)
btw; I think you can assign the issue to me if you like. I would add a fetch_userinfo to the rauthy-client, which shouldn't take too much time. Then this issue could be closed.

There are ways to use local storage in a stateless way without the risk of evil extensions peeking at your data.
What I did for another application for instance was, that I stored the token encrypted. Then, even if an extension or XSS would be able to grab it, it was basically useless. Then I did a single roundtrip to the backend right after login which generated a random encryption key for me and at the same time, stored it encrypted again in an http only cookie.
I would then use this key to store the token encrypted and only keep this key in memory.
When the app would be opened the next day, it only needed to get this key from the backend once with the very first render. It would just read the existing cookie, decrypt it and return my encryption key.
This seems a bit tedious at first, but it made it possible to enhance the security for a pretty huge legacy backend application that just expected the token, but wanted a bit more protection against such stuff. In the end it was way less work to do this than to modify hundreds of existing endpoints.
There are a lot of tricky things and footguns when dealing with such stuff. But for most applications you dont need the highest amount of security. Its always a tradeoff...

btw; I think you can assign the issue to me if you like. I would add a fetch_userinfo to the rauthy-client, which shouldn't take too much time. Then this issue could be closed.

Thanks. I would have done it today, since this is a tiny thing, but I just did not have the time to do it.

I am still working on it, sorry if it takes longer than expected. If someone needs them asap, ping me. Otherwise it's low prio. :)


My Bins page doesn't use  when available

I am continuously baffled why I need to add a meta description tag in order to give my jsbin projects titles. If anything, the description tag should make a description paragraph about the project. And if there's a title available, use it. Also, if this change is made, it would be wise to not auto-fill the title with "JS Bin"

Related to #1390, #2106, #511. Looking forward to the title in my bin's <title> being its title in "my bins".


Lots of warnings?

I did a fresh clone and npm start, and there are tons of warnings everywhere.  For example:
WARNING in ./app.ts
(6,58): Cannot find module 'angular2/angular2'. (2307)
WARNING in ./app.ts
(7,9): Module '"angular2/router"' has no exported member 'RouteConfig'. (2305)
WARNING in ./app.ts
(14,48): Cannot find module 'angular2/angular2'. (2307)
WARNING in ./bootstrap.ts
(4,25): Cannot find module 'angular2/angular2'. (2307)
WARNING in ./bootstrap.ts
(11,29): Cannot find module 'angular2/angular2'. (2307)
WARNING in ../typings/ng2.d.ts
(34,32): Cannot find name 'List'. (2304)
WARNING in ../typings/ng2.d.ts
(329,33): Cannot find name 'List'. (2304)
WARNING in ../typings/ng2.d.ts
(358,33): Cannot find name 'List'. (2304)
I'm guessing this has to do with forgetting to include some typescript files somewhere, but I'm not sure.

can you run tsd install

I don't have any sort of tsd command in my path.  I tried running ./node_modules/.bin/tsd install which did do something but the errors still occur.

ya try ./node_modules/.bin/tsd install and npm start

@ctindel sorry I found the problem. this was due to tsd publishing breaking changes as patched versions and then they tried to revert them

That doesn't change anything.
I also tried doing a global install of tsd but that doesn't change anything either.
I'm also trying add in the LoggedInRouterOutlet stuff from the auth0 sample since your sample doesn't have authentication stuff yet.  So I created a LoggedInOutlet.ts in the same directory as app.ts and even though they both start with this line:
///
I'm still getting this warning/error at npm start time:
WARNING in ./LoggedInOutlet.ts
(3,82): Cannot find module 'angular2/angular2'. (2307)
I feel pretty comfortable with angular2 code at the moment but all this custom typing stuff is really unclear to me what is going on behind the scenes or why any of it is needed, and it seems like every sample angular2 application out there does it totally differently.
At this point I'm just trying to get your sample to start without any warnings or errors.  :)
Thanks for your help!

@ctindel type in ./node_modules/.bin/tsd link

OK calling that tsd link seems to have removed some warnings.  Is that just something you have to do every time, or one time?

just once

OK.  I have a few more questions which I think are related.  Why am I not able to do this:
import {Http, Headers} from 'angular2/http';

It gives me this error:
Error: Cannot resolve module 'angular2/http'
It seems like I need to make this ngHttp/http, but I can't figure out why?
Also, I tried adding this to my App class:
@RouteConfig([
  new Route({ path: '/',       redirectTo: '/home' }),
  new Route({ path: '/home',   as: 'home',   component: Home }),
  new Route({ path: '/login',  as: 'login',  component: Login }),
  new Route({ path: '/signup', as: 'signup', component: Signup })
])

But I get these errors:
WARNING in ./app.ts
(31,3): Supplied parameters do not match any signature of call target. (2346)
WARNING in ./app.ts
(32,3): Supplied parameters do not match any signature of call target. (2346)
WARNING in ./app.ts
(33,3): Supplied parameters do not match any signature of call target. (2346)
WARNING in ./app.ts
(34,3): Supplied parameters do not match any signature of call target. (2346)

@ctindel can you update this file to latest
https://github.com/angular-class/angular2-webpack-starter/blob/master/src/typings/ng2.d.ts

No, the warnings still happen.

the problem is due to an error in typings that angular provided. If you update the webpack config then it will ignore that warning
https://github.com/angular-class/angular2-webpack-starter/blob/master/webpack.config.js
the angular/http problem will be available next release so at the moment we have to include a local version

Is ignoring the warning really the best solution?  Or are we just needing to wait for the angular team to update the typings in tsd or something?

ignoring and waiting for the angular team to fix it seems to be the best solution at the moment :/

OK, sounds good.
Can you do me a favor?  Can you pull https://github.com/ctindel/reader and go into the www directory and run npm install && npm start?
I am getting a really bizarre NoAnnotationError "Cannot resolve all parameters for DomRenderer" error that I have no idea what is going on or even how to debug it because the stack in the javascript console doesn't tell me much of anything.
This source is basically just a fork of your app, plus I tried to start adding the LoggedInRouter stuff.

@ctindel yeah that error is due to the reflect-metadata version
https://github.com/angular-class/angular2-webpack-starter/commit/a753691ca5253ec546b780ff80ccb56e6cfa98b2#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R47
delete reflect-metadata in node_modules and install that version

@ctindel I updated the repo to alias angular2/http and fixed the reflect-metadata issue


Treeview refresh on site load

If you click a site in the treeview, the treeview will close. I think because it reloads its data.

I was unable to reproduce this bug. What i did:

added sub pages
added sub sub pages
opened the tree for the sub sub page, click on it. click on other pages - no reload

this appears when the cmsPageBlock directive is in use in one of those blocks, cause it forces a reload of the menu.


Use deploy workflow from ISO GR extension

Wrong repository.  This issue should be filed in an actual WLCS registry repo.


Why in the world are we showing the parameters this way in the workspace job view?

Not that I think its a bad thing...but as a biologist, I am bemused by seeing this parameters section at the top of my job when I am trying to view it.  I think we could come up with a better way of summarizing the parameters than showing it this way?  It takes up a lot of room and distracts the eye from seeing the downloads below.  Maybe we could make it clickable, if its really necessary?

Okay, having said that, I just used the parameters to figure out what algorithm I used to run the tree job.  So it is useful, but not very understandable.  Could we summarize the parameters for the user (like FastTree with progressive refinement, or RaxML with no refinement)?  That would make it a bit clearer as to what is going on.

I have also complained about it in the past. We should try to present parameters in a more biologist friendly way. We should try to address it as part of genetic work space / jobs browser or streamlined workflow tasks.
-M
Sent from my iPhone

On Aug 11, 2017, at 9:41 AM, ARWattam<EMAIL_ADDRESS>wrote:
Okay, having said that, I just used the parameters to figure out what algorithm I used to run the tree job. So it is useful, but not very understandable. Could we summarize the parameters for the user (like FastTree with progressive refinement, or RaxML with no refinement)? That would make it a bit clearer as to what is going on.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I'll work with Rebecca to design the new top part of the page.  These modifications should include the job id (from issue #1705).

https://github.com/PATRIC3/p3_web/pull/566

PR for develop branch: https://github.com/PATRIC3/p3_web/pull/573

deployed on production.


Parametric type hinting for control paths

I would like to type hint that my custom term expects a control which has a certain type of path. E.G. only VirtualBrownianTree not UnsafeBrownianPath.
Ideally the code would look something like this:
from diffrax import AbstractTerm, ODETerm, WeaklyDiagonalControlTerm

class CustomTerm(AbstractTerm)
    ode: ODETerm
    cde: WeaklyDiagonalControlTerm[VirtualBrownianPath]

I'm not sure if this is already possible, or would require a change to the code. My thought was to do something like the following:
class _ControlTerm[T: Union[AbstractPath, Callable]](AbstractTerm):
    vector_field: ...
    control: T = ...

class WeaklyDiagonalControlTerm[T](_ControlTerm[T]):
    ...

I'm not very experienced with the more advanced aspects of type hinting so perhaps there is a better way, or this is already possible? Any thought are much appreciated

This seems reasonable to me! I'd be happy to take a PR adding this. Note that we don't yet insist on Python 3.12 and above, so I think we'd annotate this as something like
_Control = TypeVar("_Control", bound=AbstractPath)

class _ControlTerm(AbstractTerm, Generic[_Control]):
    control: _Control = ...


Error: Could not create GL context

Hi. Thank you for your great code.
I met following error after running binary program.
bash build-extern.sh
cmake .
make
./bin/surface_splatting

Error
Failed to initialize OpenGL:
Error: Could not create GL context
Segmentation fault

Can you advise me something?

Thank you for reaching out and your interest in using this code. Sorry, for the late reply. The error originates from this glviz/src/glviz.cpp#L312 line. I updated to SDL 2.30.0 recently. You could give current master another shot if this problem is still relevant for you.


Setup basic typescript support

Authzed node internally makes use of types, but then wraps them in javascript, destroying the types and making them unavailable to the client. With this PR we correct this behaviour and make the types available to developers using this package.

Have you pushed this to npm somewhere already so it can be tried out?

How do you use NewClient then? It is of type {}. Do you refine it further when using it?

Because of the use of Proxy, a type for NewClient is not generated. For now we're casting it to 'any'. This PR is more about exporting the types that are already there but simply not exposed, which covers most of the more complex functionality.

I have read the CLA Document and I hereby sign the CLA

recheck

Btw I'll merge and cut a new release of the client tomorrow.


High latency and low FPS on Linux

Please follow the general troubleshooting steps first:

[X] I carefully followed the instructions in the README and completed successfully the setup wizard.
[X] I read the ALVR Wikis here and here

If your issue is about games not working, please open an issue for every game and list the game in the title.
Bug reports:
On starting steamVR the latency is very high (100-200ms) and the framerate is very low (30fps)
Environement
CPU: i7 10700
GPU: RTX 3080
OS: Linux Manjaro (Kernel version 5.15)
ALVR Version: 16.0.0
SteamVR Version: Latest

Router is plenty fast, Oculus air link works totally fine (on Windows).
Moonlight is working properly.

On linux with Nvidia, currently only software encoding with the CPU is supported, so performance will be quite poor. It also doesn't provide us with some information that we need to get the frame lined up with the pose properly, so they tend to get out of sync, and result in jitter.
TLDR: Unfortunately, ALVR isn't really usable on linux with Nvidia, at least for now. There is work being done for the Nvidia support, but as to when (or if) that releases is TBD.

Thanks for the response, sad to hear that it isn't (yet) supported.

@icheered I believe the last release brings Nvenc and should allow good performance from now on.

Just tested with 17.0.1 on Arch using the AUR package. I am getting similar results to OP even with NVENC (confirmed in ALVR log page).

Same as urbenlegend, high latency even with nvenc

Things have improved a lot with version 18, but latency is still slightly higher than with Virtual Desktop on Windows, and the resolution seems to be a lot lower.

temporary fix for the resolution was to lower refresh rate and up resolution and bitrate? it didint change the overall latency much. but it made the image marginially more clear.

Tried on Arch Linux, version 18 and nightly 19 using nvenc. Works properly only when resolution set to 50%. Everything above makes it unusable. On the same setup on windows and AirLink everything works perfect. Anything new about this issue?


Bug: It's not possible to use CustomData for an XMLView inside of a CustomListElement

Hey there 👋
I'm experiencing a pretty strange behavior in SAP UI 5, which is reproducible in 1.71.12 as well as 1.74.0 (I didn't test it in other versions, TBH, but I assume the behavior will be there as well).
So, what's the problem?
According to the documentation, there is the CustomData concept to add, eh, well, custom data to a control. If you follow the documentation on it, this works fine for a lot of cases. However, I found one case where it doesn't work (and it doesn't make any sense, so I assume it's a bug):

If you use custom data with e.g. a Button, things are fine 😊
If you use custom data with a Button inside of a CustomListItem in a List, it works as expected 🎉
If you use custom data with an XMLView, it works as well 🌟
If you use custom data with an XMLView inside of a CustomListItem in a List, it does not work any more 😢

In this case, "it does not work" means that the custom data simply does not get attached, as can be simply verified in the SAP dev tools.
Is there a special reason why this is not supported, or is this actually a bug? Unfortunately, a simple example is somewhat larger, and so far we only have it running in a private project, so I can't share the repo, but basically it's simple to reproduce.
Any thoughts on this? Ideas? …?

Can you please post some example XML how exactly you added the custom data in the fourth scenario?

Of course, he we go:
<List items="{state>/employees/}">
  <CustomListItem>
    <mvc:XMLView viewName="de.syna.ui5Example.components.moni.employee.employee">
      <mvc:customData>
        <core:CustomData key="employee" value="blah" />
      </mvc:customData>
    </mvc:XMLView>
  </CustomListItem>
</List>

Basically, the value right now is hard-coded, actually we would love to use data-binding here, but to tighten things we now went for a hard-coded string first.
Is there anything else you would need?

PS: Just to make our intention clear – we have created a view for a single list item, and we have created a view for the entire list, and we bind the entire list to an array of objects, and would now love to forward a single item to each list item. Using custom data seemed like a good approach to do this (writing custom components would also work, but this is something we'd like to avoid due to the required amount of effort here), this is how we ran into this…
If, maybe there's another solution, we're open for this as well 😊
However, this seems strange…

No, that's sufficient and already explains the problem.
<View>, <XMLView>, ..., <Fragment> elements are special in the they only refer to an embedded,  external resource (another view or frame), but they don't allow the embedder to modify that embedded resource.
That's why they can't have content (like custom data).

Okay… and what is the intended way of passing over data to a sub view in the way I outlined it in https://github.com/SAP/openui5/issues/2840#issuecomment-598773940 ?

Each view instance will inherit the binding context ("item" on the model level) from the containing list item. So any relative binding inside the view will be resolved relative to the binding context of the containing (Custom)ListItem.
Does that help?

Yes and no 😉
Conceptually I (think I) understand what you mean, however, I don't realize how to access this inherited binding inside the child's controller (we want the child view to be independent, and to be usable within or without the surrounding list).

How would the standalone use case look like? And what exactly would the controller like to do with the binding context?
Binding control properties can be done declaratively in the view.xml. Bindings don't care whether the context is inherited from a parent or created locally (e.g. via an object binding).
Just to sketch the idea:
Outer View:
<List items="{/employees}">
  <CustomListItem>
    <mvc:XMLView viewName="sample.view" />
  </CustomListItem>
</List>

Nested View:
  <mvc:XMLView>
    <m:Text text="{Name}"/>
  </mvc:view>

Controller Code for Nested View:
  var oContext = this.getView().getBindingContext();
  var sName = oContext.getProperty("Name");

Standalone usage of nested view:
  XMLView.create(...}.then(function(oView) {
    oView.bindObject("/employees/0"); // single object of the expected structure
  });

Hmmm 🤔
This is exactly what we already had tried, but getBindingContext only returned undefined. May it be that this is because we try to execute this in the onInit function of the nested view?

To take a step back – what would be the ideal solution for us is if we could attach some data via data binding to the child view (in the parent view's XML), and then have access to this data in the child view's controller's onInit function.
Is this possible?

Hi @goloroden,
first of all: Sorry for the late reply.
In the onInit hook of the controller the binding context is undefined because the model has not even loaded the data und the binding context is not even created. Therefore, the best practice would be to register a callback in the onInit function with this.getView().attachModelContextChange(function(....);. The callback is executed if the context of the view changed. With that you have access to the propagated context and you can do anything you want with the context object.
Hope this answers your question. If not please reopen the issue.
Best Regards,
Florian


Implement TR069 Protocol Controller

Closing this item as TR069 communication will not be handled by DP but rather Magmas enodebd.


Bump to opset 12 and update Dockerfile to use nvidia cuda 10.2 image instead of nvidia pytorch image

As part of changes to move to opset 12.

Update Dockerfile to use NVIDIA CUDA 10.2 base image with pytorch 1.6-rc2 build.
Update ONNX export to target opset 12.
Bump ORT branch to recent commit near master (near 6/30).

Still require:

Awaiting official onnxruntime 1.4 release branch (to rebuild image).

layer_norm_transform(model)

remove and clean up the transformation files

Refers to: nvidia-bert/ort_addon/ort_supplement/ort_supplement.py:89 in 5345da3. [](commit_id = 5345da348225f0ada62739cf37225c58a4f065c1, deletion_comment = False)

gpt-2 example has step (4) for building/register/push docker: https://github.com/microsoft/onnxruntime-training-examples/tree/master/huggingface-gpt2#Setup
I think we should include the same for bert.

pip install \

since you are installing the wheel, we could remove/update the step in README - "To build and install the onnxruntime wheel on the host machine, follow steps here"

Refers to: nvidia-bert/docker/Dockerfile:116 in 5345da3. [](commit_id = 5345da348225f0ada62739cf37225c58a4f065c1, deletion_comment = False)

gpt-2 example has step (4) for building/register/push docker: "Prepare the docker image for AML"
I think we should include the same for bert.

So this is in 2. Build the ONNX Runtime Docker image. Are you suggesting we move this up to the Setup sequence? I would agree that's better - though we need to mention there's no need to build if you want to use official image.

pip install \

since you are installing the wheel, we could remove/update the step in README - "To build and install the onnxruntime wheel on the host machine, follow steps here"
Refers to: nvidia-bert/docker/Dockerfile:116 in 5345da3. [](commit_id = 5345da3, deletion_comment = False)

So the wheel is installed within the Docker image. The instructions referenced are for building onnxruntime on the host machine. The instructions referenced look OK - though they use environment variables instead of build flags. The Dockerfile at the root level can also serve as a guide for the user to follow (so we could reference that too).

yes, step 2. I see the two scenarios are a little bit different. So you can ignore.

In reply to: 655608059 [](ancestors = 655608059)

ok

In reply to: 655646313 [](ancestors = 655646313)

python ./workspace/BERT/data/bertPrep.py --action download --dataset wikicorpus_en

there are two issues reported in these steps - perhaps we can create another PR for it. @natke

Refers to: nvidia-bert/README.md:58 in 9f58a1e. [](commit_id = 9f58a1ee08deeb584b1a3c477ed9638951f9315d, deletion_comment = False)

git config core.sparseCheckout true

do we still need this step (this line and below)? I had an issue once, so I usually skip these two lines.

Refers to: nvidia-bert/README.md:21 in 0d32fd8. [](commit_id = 0d32fd8fad76cc8f58ed05d3353a0a62b8ba12e8, deletion_comment = False)