Amplify Output button increases vertical size

The existing "Amplify output" button increases horizontal size, but when returning a large data structure and/or sending a larger amount of data to stdout, the small vertical size is frustrating. Especially so on larger screen where there is more real estate to work with.

increase vertical size too when "Amplify output" is clicked.
regular size unchanged at 300px
"Amplified" size at 600px

This preserves existing logic by keeping the amplify setting client side only, and not relying on state managed via the liveview process. It could be done that way, but kept it consistent with current implementation.
https://github.com/livebook-dev/livebook/assets/27223/8279a63d-8ae5-4bf3-9dc5-32d44db9ae42

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

This looks good to me but I wonder if we should go with a bit more conservative change, such as 450? Or maybe we should make the height configurable altogether, I don't know.

This looks good to me but I wonder if we should go with a bit more conservative change, such as 450? Or maybe we should make the height configurable altogether, I don't know.

@josevalim 450px still feels a bit small. At least when generating more output on a larger monitor where you want to optionally be able to use the screen real estate more effectively.
A few ideas:

"Amplify output" button becomes modal, rather than a toggle. ie, have 3 or more modes that alternate each time you click. Could start default narrow/short -> wide/short -> wide/tall -> back to narrow/short. Alternatively could have a number of stateful "radio" buttons for size rather than one that cycles through modes.
A cell setting UI option for "number of lines in output" or similar ("lines" is more user friendly than px size)
Some special annotations embedded in comments at the top of a code/markdown input cell controlling output height
Jupyter notebooks has a "Disable scrolling for outputs" right click menu option which maximises the height to match the actual output. I don't love this, as it is either too short by default, or really too tall for large output when disabled.

What are your thoughts?


Submissions to the leaderboard not working

I was trying to upload a submission and I got this error:

The file had the same format as previous submissions so I doubt it is a local error.
Thank you so much again for your help!

is it still happening ?

I just tried and it is still happening

I just tried a submission (ground truth file) and all is good on my side.
Are you behind a VPN of some kind. No code has been changes since your last submissions.
Which leaderboard is it ?

I'm not using a VPN; I also tried with different networks.
It is for the findings-public-test-set.
Do you know what events in the code of the webpage may trigger the "Notification: error Backend is offline or received critical error"?
A colleague of mine also tried and got the same error with different .txt files and different team names than mine and got the same error.

Can confirm that I also cannot submit to findings-public-test-set. Others seem fine.

I just did a ground truth submission again and everything seems fine.
What is the size of your file?
can one of you guys send me your file at jbdel at stanford dot edu? Thanks for your patience

I did increase the upload timeout, in case your files are too big

Thanks oscarloch for providing me a file. It allowed me to fix the issue.
Please tell me if your face further problems.


[SPARK-38013][SQL][TEST] AQE can change bhj to smj if no extra shuffle introduce

What changes were proposed in this pull request?

Add a test case in AdaptiveQueryExecSuite.
Why are the changes needed?

AQE can change bhj to smj, and it requires two conditions:

no extra shuffle introduce, otherwise the built-in cost evaluator will ban it
AQE does not think the join can be planned as broadcast join. That says the cost statistics in normal planner is not accurate.

It's counterintuitive, but it's an expected behavior as AQE designed.
Does this PR introduce any user-facing change?

no
How was this patch tested?

Pass CI

cc @yaooqinn @cloud-fan @HyukjinKwon  if you have time to take a look

@dongjoon-hyun thank you, addressed comment

Merged to master/3.2


feat(batch): Introducing converting batch plan to batch executor

What's changed and what's your intention?
RT
Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

We have some conflicts, and close it first.


macvlan acces from same host

Im make macvlan for VirtualDSM, synology have adress <IP_ADDRESS>, rest my PC have adresses from same IPs. Host, where i have docker and VirtualDSM have adress <IP_ADDRESS>.
From all my PC i can connect to both, <IP_ADDRESS> and <IP_ADDRESS>, but when i login to my main NAS (<IP_ADDRESS>) i cant even ping my Virtual on 19 adress, what i make wrong?

Works fine :)
Just I need find solution for SS licenses :D


too many checkpoints

Once I run demo app, the cmd begins the endless downloading of checkpoints.
Why are there so many extra checkpoints besides the mentioned ones?
Why does this project need so many checkpoints?

There are really really many many many many many many many many many many many many checkpoints......


Intersect: Rectangle to Rectangle

Won't set the IntersectResult to false. This can be a problem when IntersectResults are being passed.

Fixed this in 1.2.2 (or earlier)


Unable to preview window in editor with TrayIcon

There is error in XAML editor when TrayIcon is specified.

Problem was in IconSource property. Fixed by replacing property type from Stream to Object.


Camera is not being released. camera.release() not working

Please state the information for your system

OpenCV version: 2.4.10
Host OS: Linux (Ubuntu 14.04)

In which part of the OpenCV library you got the issue?

Camera capture and releasing

Expected behaviour
I have a program that have two "programs" inside, in each one of them the camera will be open, but from a different class. When the first class close it supposed to release the camera. I have an camera.release() there, but it's not working.
Actual behaviour
The camera keep on, the light, and it's not being released, when i try to access it from the other "program" it gives

HIGHGUI ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
VIDIOC_STREAMON: Bad file descriptor
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/schirrel/Github/opencv/opencv-2.4.10/modules/highgui/src/window.cpp, line 261
terminate called after throwing an instance of 'cv::Exception'
what():  /home/schirrel/Github/opencv/opencv-2.4.10/modules/highgui/src/window.cpp:261: error: (-215) size.width>0 && size.height>0 in function imshow

Code
while (!janela->FINALIZADA || !FIM) {
            camera >> frame;
....
....
...
if (key == 99) {
                 cv::destroyAllWindows();
                camera.release();
                break;
            }
}

@CoderSquirrel thank you for the bug report, but you are for the moment using OpenCV 2.4.10 which is actually quite old and has had a huge amount of fixes since then. Might you be up to testing with the latest 2.4 branch first to ensure that the problem is still valid?

thanks for the answear @StevenPuttemans, so i will update my instalation and i comeback it it persists;

@CoderSquirrel , feel free to reopen this issue if it is reproduced on latest 2.4 or master branch version.

HI @StevenPuttemans  and @mshabunin I have update my opencv, the newest.
The good thing is the light at the camera turns off when i release.
The bad thing, i still get the error:

Unable to stop the stream: Device or resource busy
ERROR: Could not open camera
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/schirrel/Github/opencv/modules/highgui/src/window.cpp, line 281
terminate called after throwing an instance of 'cv::Exception'
what():  /home/schirrel/Github/opencv/modules/highgui/src/window.cpp:281: error: (-215) size.width>0 && size.height>0 in function imshow
The program has unexpectedly finished.

Please, provide output of cv::getBuildInformation and add minimal reproducing example.

@mshabunin sorry for delay, i had a problem with my computer, i'm install opencv again, the latest, and provide you the information

Return of cv::getBuildInformation :

General configuration for OpenCV 3.1.0-dev =====================================
Version control:               3.1.0-608-gaf64ecd
Platform:
Timestamp:                   2016-05-10T23:27:27Z
Host:                        Linux 4.4.0-22-generic x86_64
CMake:                       3.5.1
CMake generator:             Unix Makefiles
CMake build tool:            /usr/bin/make
Configuration:               RELEASE
C/C++:
Built as dynamic libs?:       It is not allowed.

@alalek yes, this error usually occour when the camera wasn`t release or in use also


Support infra-param JDK for OpenJDK

Description:
TestGrid needs to support OpenJDK1.8 as a infra-param-JDK and then provide infra-combinations with it.

Suggested Labels:
Priority/Highest Type:Improvement

Related Issues:
#560

Created necessary AMIs with relevant tags to achieve the $subject.


Help Wanted: Review and Update iOS Setup documentation

Review the existing iOS Setup documentation steps for accuracy and update as needed.
Additional Mattermost Mobile App steps may be missing from this content, such as Apple Authentication using a code.
Prerequisites: Experience with and access to Mattermost Mobile Apps and an Apple mobile device is needed to complete this technical review and apply required updates.

Hi @cwarnermm, I'd like to contribute to this issue.

We appreciate your help with this, @shiyanshirani! Thank you!

@shiyanshirani - Are you actively working on this? Would you like to keep it assigned to you?

I am not working on this project.

Thanks for confirming, @shiyanshirani.

@cwarnermm I would like to take this up. Also, do we need to use an iPhone only or iPads would be okay as well?

Thanks, @Rutam21! I appreciate your help with this ticket!
Please prioritize iPhone devices first, then note any change in the user's experience via iPad (if applicable).


test Open Workload group switch in PR pipeline

Open Workload group switch in PR pipeline

run buildall

run buildall

run buildall


Update cbioportal dependencies to the latest

Fix #151

Oops... Looks like it only breaks the style in scatter plot, other pages are fine

Good news is scatter plot tooltip issue seems to be fixed.
Bad news is OncoKB tooltip is broken (see https://deploy-preview-152--signaldb.netlify.app/gene/NF1?cancerType=Nerve Sheath Tumor)


sig#919 - Enable technical User Page to create multiple technical Users

Description

As a creator of a new App/Service
When i register a new App/Service
Then i want to be able to choose 1-5 technical Users i want to create and what roles should be assigned per user.
**The Screenshots are only Mockups and do not reflect the Design in the later implementation. The Design should be aligned on the shared components and the standards defined **

Acceptance Criteria

[ ] As soon as the screen loads the user should be able to select the roles for the first mandatory user
[ ] The user should be able to add another user by clicking a button
[ ] The user should be able so select the respective roles for the second technical user to be created
[ ] The user should be able to add a maximum of 5 users to an App/Service

Additional Information

@cofinityux do you want to provide some feedback ?

In terms of UX this technical user extension creates more complexity on this screen. Since the technical integration step also includes the adding of app roles, it would be better to separate these two interactions in 2 different steps for the sake of cognitive load reduction. Is this planned?

Currently its not planned to seperate it but if you have a good idea or a mockup that explains our frontenders how to split this i would be more than happy.

Further questions/remarks:
If a user can add more than one technical user, should they be able to provide name and description (as in the regular technical user creation in the Portal)?
Is there a limit of created technical users? In case of more than one created technical user, there must be a usable overview for the user to view and edit the configurations. To repeat the whole list of external and internal technical users would unnecessarily overload the page. We could think about a modal option here (add technical user button opens a modal where everything can be configured. After confirmation the technical user shows up in e.g. a list and can be easily viewed and edited).

In the registration of an app we define more like "templates" of the technical user that will be created later on. The naming of these technical users is then done during creation as soon as someone if subscribing the app/service and therefor receives his users.
Limitation should be configurable but i would limit it to maximum 5 for the moment.

@MaximilianHauer once again, simplification and reduction is the key. We could use existing components and behaviour to make this process easier.
1 + 2: initial step is for setting the scene and explaination of what is needed and why + 1st decision: technial user yes or no (is there still the possibility of apps not requiring any technical users? If not, the checkbox can be removed.
3 + 4 + 5: adding a technical user works via CTA and opens a modal – behavior is than same as in technical user creation (same interaction should always be implemented the same, simplifies the process and speeds up process due to recognition of interaction)
6: technial user is added into list (on hover tooltips can appear if not all technical user roles can be displayed in table), edit button opens modal again for configuration, delete button triggers a confirmation popup ("are you sure you want to delete....") followed by a toast message for confirming action (I havent drafted these two, but I guess it's clear).
TBD if ticking the checkbox (if it stays an option) after technical users are created, will only disable the table but keep the technical user or delete all the created items (edgecase, a user changes their mind).
We can gladly discuss in detail in a meeting session, if needed.
FYI: In the screens attached I already separated the "app roles & permissions" and the "technical integration".

thank you for the mocks and explanation :) clearly much more logical to include it as you proposed.

updated acc and test cases accordingly , included your mocks into description


shrine/storeoutfits DBD endpoint changed

Hey Nexure, I tried adding you on steam/discord weeks ago but I guess you haven't seen those invites.
Anyways I think that the dbd backend address for guest logins/shrine/outfits changed from
latest.live.dbd.bhvronline.com to steam.live.bhvrdbd.com. However I am not able to get shrine from those endpoints. (I wasn't able to before the change either). After logging in as guest, I get a response from shrine endpoint: "Unable to find requested data in shrine market catalog".
Outfits work, however they are outdated, only 407 entries are shown. I can't for the life of me figure out how to solve this. I tried contacting the creator of dbd leaderboards website on his discord but he just deleted my message.
Hope you have some time to look into it as you have way more knowledge than me in this regard. Thanks!

Heyyo, I've gone ahead and changed the endpoints, I'm currently fixing more stuff. I may release the update soon!

I see, good to hear you still work on this project. Hopefully that will answer some questions once you update it. I am basing a very simplified node server on this, and can't get shrine to work :)

Yeah, its been sometime since I've worked on it. Also gonna fix some issues with it not getting the latest DLC (its probably located in another PAK file)

Fixes have been pushed, and this issue is solved.


Definition of isOutputRange warped due to "put" implementation

monarchdodra reported this on 2012-07-31T04:22:05Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=8483
CC List

hsteoh
issues.dlang (@jmdavis)
yebblies

Description
This is a copy paste from the forum. It was originally written as both an analysis and a proposed solution to a problem.

TL;DR:
"put" allows placing a range of objects inside an output range, which warps the definition of "isOutputRange" The exact kind of errors it creates is this:

----
alias int[] A; alias int[] B;
A a = new int[](2);
B b = new int[](1);
assert(isOutputRange!(B, A));
if(!b.empty)
  b.put(a);
----
Here b is not empty as output range of A object, b is not empty, yet putting a inside b creates an empty range exception.

But more generally, the entire problem lies with the fact that B is NOT an output range of A objects.

Please find the original abstract in the next post.

monarchdodra commented on 2014-08-09T18:28:36Z
(In reply to hsteoh from comment #2)
> In light of recent realizations that output ranges are really only useful
> with specific operations at the end of UFCS chains, such as
> std.algorithm.copy or std.format.formattedWrite (and arguably, the latter
> could be rewritten to return an input range instead), I'm wondering if we
> should just get rid of output ranges altogether and just have .copy be the
> one-stop function for implementing data sinks.

The two issues with that are:
1. Copy is "Range to ouput sink". So you can't just do: "copy(1, myIntegerOutput)"
2. Copy is implemented on top of output range definition and the "put" primitive.

Unless you had something else in mind in terms of "one-stop function for implementing data sinks"? I mean (IMO), I see "copy" as pretty much the same thing as "put", but with reversed args, making it UFCS friendly.

I had honestly wondered about adding a "putInto" into phobos, which is basically just out reversed:
5.square().putInto(myOuputRange);

issues.dlang (@jmdavis) commented on 2014-08-10T03:37:46Z
(In reply to hsteoh from comment #2)
> In light of recent realizations that output ranges are really only useful
> with specific operations at the end of UFCS chains, such as
> std.algorithm.copy or std.format.formattedWrite (and arguably, the latter
> could be rewritten to return an input range instead), I'm wondering if we
> should just get rid of output ranges altogether and just have .copy be the
> one-stop function for implementing data sinks.

Are there discussions on this? I have seen no discussions or evidence that there's anything fundamentally flawed with output ranges and put. There's the problem with std.range.put and UFCS, but that can be fixed by creating a different function for a range to implement for std.range.put to use rather than implementing a function call put. What issues are we talking about here that make output ranges flawed?

- Jonathan M Davis

hsteoh commented on 2014-08-10T04:04:33Z
I didn't say anything was *flawed* with output ranges. I just said that they are not *as* useful because, being sinks, any code that uses them will terminate the processing chain, making it non-composable with any subsequent data processing. IME, I've also found that code that takes output ranges as parameters tend to be limited in reusability, and tends to uglify downstream code since you have to store the data somewhere, or use hacks to allow further processing of data, etc..

In fact, all cases of output range usage that I encountered while writing range-based code can be more profitably refactored to return input ranges instead, and use std.algorithm.copy for when I actually want to use an output range. This makes the majority of the code composable, and therefore much more reusable, than if I had used output ranges everywhere. Basically, anything that looks like func(inputRange, outputRange) can be rewritten as newFunc(inputRange).copy(outputRange), where newFunc returns an input range instead of writing the results to an output range.

So, since anything that takes an output range can always be rewritten as something that returns an input followed by std.algorithm.copy, it follows that the usefulness of output ranges seems to be restricted to std.algorithm.copy. Being such, then, it seems that the logical next step is to eliminate the concept altogether, and just have std.algorithm.copy implement all the semantics of output ranges.

monarchdodra commented on 2012-07-31T04:22:15Z
**************************************************
I'm really very sorry that this is such a long post, but I'd like
to make request for a serious change to Phobos, so I think it
should be as complete as possible.

Thank you to those who have the patience to read it and consider
it.

**************************************************
Abstract:

  This is a formal request for the deprecation of the the support
for accepting ranges of elements for the function "put" ie
(put(OutRange, RangeOfElements)).

  As convenient as this functionality may be is, it undermines
the very definition of what constitutes an output range, and
creates some fundamental problems when trying to deal with them.

  put(Range, RangeOfElements) doesn't actually bring anything to
the table that would be missed.

**************************************************
Explanation:

  The problem is not "put" in and out of itself, but rather that
it is the fundamental definition of what constitutes an output
range. In particular, because you cannot extract elements from
output ranges, and because an output range can potentially
support multiple types, you cannot write:
  "ElementType!OutputRange" => this will yield "void" on a 'true'
output range. Rather, you have to individually query if the range
is an output for specific types:
  "isOutputRange!(OutputRange, SomeElement)"

  The catch is that the definition of "isOutputRange" is just
"does "put(range, element)" compile". This means that
essentially, as soon as a range is an output for elements, it
becomes an output for ranges of elements, for ranges of ranges of
elements, for ranges of ranges of ranges of elements, for ...

For example: int[] is an outputRange of int (obviously), but it
is also defined as an output range of int[], int[2], and
int[][]...
This is clearly not right.

**************************************************
Problems put creates for template restrictions:

  At it simplest, it prevents any algorithm from properly working
with outputRanges. This is the definition of "copy":

Range2 copy(Range1, Range2)(Range1 source, Range2 target)
  if (isInputRange!Range1 && isOutputRange!(Range2,
ElementType!Range1))

See the trap?  Imagine the function fill. It works
the same as "copy", but it can also take an "element" as an
argument. One would be tempted to write this pair of signatures:

void fill(Range1, Range2)(Range1 target, Element filler)
  if(isOutputRange(Range1, Element))

void fill(Range1, Range2)(Range1 target, Range2  filler)
  if(isInputRange!Range2 && isOutputRange(Range1,
ElementType!Range2))

You can try to write this, but if you do, the code will never
work. ANYTHING that matches the range fill, will also match the
element based fill, since the target range supports "put" from a
range... For example:
int[2] a = [1, 2];
int[] b = new int[](8);
fill(b, a); //ambiguous call...
//Are you copying a "range" or an "element"?
//Answer: Who know! Honestly: if b is an output range of a, WHICH
IS THE RIGHT CALL?

  The only way to really avoid this problem (as is currently done
in algorithm.d) is to add: "is(typeof(range.front = filler))",
but this defeats the very requirement of outputRange (outputRange
does not have front), and bumps the algorithm's requirements up
to "inputRange".

  Long story short, it is not currently possible to write
templates that reliably support an outputRange restriction.

**************************************************
Problems put creates for implementation:

  The big problem about put is that it makes outputRanges _lie_
about what they support. Here is an example at its simplest:

alias int[] A; alias int[] B;
A a = new int[](2);
B b = new int[](1);
assert(isOutputRange!(typeof(a), typeof(b)));
if(!b.empty)
  b.put(a);

  In this code:
*b is an output range of A.
*b is not empty.
*putting an A inside b creates a empty range exception !?

  While this example might look "cute", it is also unacceptable
behavior. if b is a non-empty range that supports "elements A",
then it _HAS_ to be able to support a put. In this case, b
clearly does not support elements of type A.

  I'm sure you can imagine the kinds of problems this can caue
for a template developer.

**************************************************
Why we don't need put(Range):

  Quite simply: because we have the higher order function. The
convenience "put(Range)" is nothing more than a glorified
algorithm. Instead of using put, the user should make a call to
copy. "copy" is designed specifically for copying an input range
into an output range. Why duplicate this functionality into put?
Calling copy is much more honest and accurate about what is
actually happening.

**************************************************
Problems regarding removing put(Range):

  In theory, the only problem this would create is breaking code
which can be legitimately replaced by “copy” without any
change.

  It *could* also break some templates, as some ranges would
seize reporting themselves as outputRanges of Ranges, but, quite
frankly, I think those algorithms are unsafe to begin with, and
are operating on incompatible types.

**************************************************
Conclusion:

  I think I've shown the problems that put(Range) creates.
Problems that are simply insurmountable. On the other hand,
"e.put(range)" brings nothing that can't be rewritten as "copy(e,
range)". For all these reasons, I think it would be best to get
rid of it.

monarchdodra commented on 2014-08-10T07:54:19Z
In a nutshell, I have issues with an input range being able to be an output range, because there is no way to determine if it is "full".

Heck, even if we could, I resent the notion that an output range could be "full" at all!

Honestly, I wish we had never mixed the notion of (Input)Ranges with output ranges. IMO, we should have had:
-InputRange
-InputRange && hasAssignableElements (writeable output ranges)
-Sinks (like "writeln", or "container.put")

And to be honest, I've almost never seen anyone use the OutputRange interface on an input Range. The only case I know of is "copy". And I don't think it should.

hsteoh commented on 2014-08-09T15:03:54Z
In light of recent realizations that output ranges are really only useful with specific operations at the end of UFCS chains, such as std.algorithm.copy or std.format.formattedWrite (and arguably, the latter could be rewritten to return an input range instead), I'm wondering if we should just get rid of output ranges altogether and just have .copy be the one-stop function for implementing data sinks.

issues.dlang (@jmdavis) commented on 2014-08-10T06:08:58Z
Hmmmm. Well, that's certainly food for thought. Output ranges are definitely for when you're writing out the final output, not for composability. However, in many of the cases where an output range would be used, copy wouldn't make sense, because the destination is really output (e.g. the console or a file) and not a new input range. So, I question that it makes sense to try and replace output ranges with copy, though I concur that in many cases where you might use an output range, it makes more sense to use an input range and then feed that into an output range if that's what you want.

Regardless, I think that it's something that merits a larger discussion in the newsgroup.

The one thing that I keep meaning to bring up with output ranges is the lack of ability to determine whether they're full (which becomes even more complicated when dealing with stuff like chars where you can't know ahead of time whether it's going to fit thanks to different encodings), but it's certainly never occurred to me that copy could be thought of as a replacement for output ranges.

issues.dlang (@jmdavis) commented on 2014-08-10T08:17:30Z
(In reply to monarchdodra from comment #7)
> In a nutshell, I have issues with an input range being able to be an output
> range, because there is no way to determine if it is "full".
>
> Heck, even if we could, I resent the notion that an output range could be
> "full" at all!

Arrays are input ranges, and calling put on them fills them rather than appending to them, so yes, they can get full. And given that it's likely not all that uncommon to be dealing with fixed size buffers, I would expect that there would be plenty of cases where you'd want to write to something using ranges, and it could get full.

> Honestly, I wish we had never mixed the notion of (Input)Ranges with output
> ranges. IMO, we should have had:
> -InputRange
> -InputRange && hasAssignableElements (writeable output ranges)
> -Sinks (like "writeln", or "container.put")
>
> And to be honest, I've almost never seen anyone use the OutputRange
> interface on an input Range. The only case I know of is "copy". And I don't
> think it should.

I concur. While it might make sense for something to operate as both an input range and an output range (e.g. fill it as an output range and then empty it as an input range), I think that having front work as a way to write to a range rather than it having to having something specific to output ranges was a mistake.

Regardless, the simple fact that the closest thing that we have to a built-in output range (arrays) can get full and yet the output range API does not take that into account is a major indicator that output ranges need at least a minor overhaul if not a major one.

hsteoh commented on 2014-09-22T04:09:27Z
Would it make sense to extend the definition of output range to include a .full method?

yebblies commented on 2014-08-10T08:07:51Z
(In reply to hsteoh from comment #2)
> In light of recent realizations that output ranges are really only useful
> with specific operations at the end of UFCS chains, such as
> std.algorithm.copy or std.format.formattedWrite (and arguably, the latter
> could be rewritten to return an input range instead), I'm wondering if we
> should just get rid of output ranges altogether and just have .copy be the
> one-stop function for implementing data sinks.

std.format.formattedWrite is the best thing ever.


Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[ ] iOS
[x] Android
[ ] UWP
[x] .NET Standard

Version of Library
6.2.6
Version of OS(s) listed above with issue
.NETStandard 2.0.3
Android 9.0
Steps to Reproduce

Create a blank Xamarin Forms application with .NET Standard selected as the code sharing strategy or create a blank app a Prism blank app (same result).
Install "Plugin.BluetoothLE" to all projects from the solution (v6.2.6)
Install "System.Threading.Tasks.Extensions" to Android project. (v4.5.2 or v4.5.3)
Build the Android project.

Expected Behavior
Build succeded.
Actual Behavior
Can not resolve reference: System.Threading.Tasks.Extensions, referenced by System.Reactive. Please add a NuGet package or assembly reference for System.Threading.Tasks.Extensions, or remove the reference to System.Reactive.	testnoprismBLEPlugin.Android
It is the same isssue as this: https://github.com/aritchie/bluetoothle/issues/331
I have same version of VS2017, 15.9.15, but I couldn't fix it as he did.
Thanks in advance!

The issue doesn't really have anything to do with this library.  If those workarounds aren't working, I suggest you talk to Xamarin or upgrade to VS2019

Yeah, it does not really have to do with this library, but it is not letting us use it :(
If anyone else have the same problem in the future, I solved it by installing System.Threading.Tasks.Extensions v4.4.0 (only in Android - iOS project).
Thank you anyway


libcurl3 is not available in final image but conflicts with other packages

Describe the bug
libcurl3 is not in the final image, as it is replaced by libcurl4 when installing curl (on Ubuntu 18.04). It is still installed during the process which leads to other packages being uninstalled because of incompatibilities.
Area for Triage:

Question, Bug, or Feature?:

Bug
Virtual environments affected

[ ] macOS 10.15
[ ] Ubuntu 16.04 LTS
[x] Ubuntu 18.04 LTS
[ ] Windows Server 2016 R2
[ ] Windows Server 2019

Expected behavior
libcurl3 is not installed at all.
Context
I am trying to build this image on Google Cloud. I managed to change the builder, start from an Ubuntu 18.04 LTS image, and complete the process, but when starting a new VM from the resulting image I could not connect to it with SSH.
SSH authorizations and users are managed by https://github.com/GoogleCloudPlatform/compute-image-packages, which provides systemd services running on the machine. They are preinstalled on GCP-provided images, but if you ever need to create your own images the packages to install are documented here.
Actual behavior
I ran the packer build in debug mode, checking on the builder VM the process as it went along.

In https://github.com/actions/virtual-environments/blob/master/images/linux/ubuntu1804.json#L126 the script scripts/installers/1804/basic.sh is run, which in turn in line 32 installs libcurl3.
Installing libcurl3 conflicts with libcurl4 which is required by curl, so libcurl4 is removed and with it google-compute-engine-oslogin.
In line #116 curl is installed, which will bring along libcurl4 and uninstall libcurl3.

The result is that libcurl3 is not available, but unfortunately google-compute-engine-oslogin was already removed so all future SSH connections fail.
Note: I only tested this on the Ubuntu 18.04 image, I don't know if it is also present on the 16.04 version.

👋 @nymous, did you find any workaround for this? Would not installing libcurl3 by erasing these lines work?

Yes that's exactly what we did, we skipped installing libcurl3 (but we forked an old version so these lines were different ^^)

Reopened this issue to revisit it one more time

Hello, thank you for your response. We have investigated it one more time and unfortunately, we can’t remove libcurl3 from image because we worry of breaking changes (backward compatibility of these packages):
 mongodb-org-mongos : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed.
 hhvm : Depends: libcurl3 (>= 7.28.0) but it is not going to be installed.
 php7.4-curl : Depends: libcurl3 (>= 7.44.0) but it is not going to be installed.
 php7.3-curl : Depends: libcurl3 (>= 7.44.0) but it is not going to be installed.
 php7.2-curl : Depends: libcurl3 (>= 7.44.0) but it is not going to be installed.
 mongodb-org-shell : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed.
 php5.6-curl : Depends: libcurl3 (>= 7.18.0) but it is not going to be installed.
 php7.1-curl : Depends: libcurl3 (>= 7.44.0) but it is not going to be installed.
 php7.0-curl : Depends: libcurl3 (>= 7.18.0) but it is not going to be installed.
 mongodb-org-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed.

We would like to avoid customers impact on Ubuntu 18.04 image.
Btw, Ubuntu 20.04 doesn’t have libcurl3.


Allow for top-level file comments

A file generated by Theo can't have documentation comments (as far as I know.)
Maybe institute a comments key in the global area, like so?
global:
  category: 'web'
  type: 'color'
  comments: 'This would be a commented out line that would appear at the top of the file.'

Right now this is not supported. The global property is merged into each token, so we'd need to figure out some other way. Since token files are ultimately all flattened together when imported, maybe this could be an option that get's passed in when calling theo.convert().

How about the following format:
example.yml
meta:
  name: "optional name"
  description: "comment or multiline comment here"

This way in the output file, when set it would get separators of each file section based on whether the meta info has been filled in or not.
My specific use case would be to set a comment in the first base SCSS file to notify users that it's a generated file and should not edit directly.
Thoughts?


'parentNode' is null or not an object – in IE<9

In IE <9 the SWF does not load and I get the error message — 'parentNode' is null or not an object.
Line: 20, Char:345

I'm having the same issue as well. Any update on this would be greatly appreciated. Thanks.

Yeah, I see to be having the same issue. For me IE8 keeps reporting a the error 'parentNode' is null or not an object. In the uncompressed version, it is Line 584, character 5. Having traced it through the calls, it seems the issue is coming from the createPlayer() function call:
// Tracing this out in IE8 debugger reveals it returns a length of 0...
return wrapper.getElementsByTagName('audio')[0];
It can't seem to find the  element. Weird thing is that like other users this works fine when I have the player (like the example pages), but when I have a string created, injected, then later initialize the player it throws this issue.


uqcsbot bingo

uqcsbot should definitely have a cog for playing bingo. Each player who joins gets a randomly generated bingo card containing various events to happen. Once someone gets a bingo, then uqcsbot should broadcast that in the games channel.
Some other points:

Ideally, items could be stored in the database so more can be added without changing code
Some decent style interface to mark items off, probably using new Discord app command features.

This was written as an idea off the top of my head, so discussion and changes to the idea are very welcome

My preference would be for items in code in a configuration file (cc: haiku exceptions) because let's be honest, the barrier-for-entry on changing the code is significantly lower than the barrier-for-entry on twiddling the DB

You know what, I agree with that.


Redirect issue

Hey, So I created this shortened link and when I click the link, it opens in a new tab: first the short-link: https://linksimplify-57f95a96384c.herokuapp.com/wCP3q3 and then it should convert to animishy.co for this example but instead it converts to https://linksimplify-57f95a96384c.herokuapp.com/animishy.co (it's assuming that the long URL is a sub-page of the main project instead being an individual website.

@AnimishY You need to put https:// or http:// in Long URL :) https://animishy.co , http://animishy.co , That should work!

I will soon make validators for the Long URL Field I guess to minimize the misunderstanding


Update DevDependencies!

This is the latest update for the dev-dependencies for the current version!

@daneden @eltonmesquita review this one... update dev-dependencies for the current version 3.7.0

@WarenGonzaga opss... wait I forget to replace it with npm shrinkwrap... let me push another...

@daneden it is now okay to merge!


https://babeljs.io/repl/   ReferenceError: $ is not defined

When I go on  the "try it out" page I got the error
ReferenceError: $ is not defined

making the page unusable.

Browser, OS etc?

sure,
Linux Ubuntu ,  Firefox 35.0

Possible Cloudflare issue since the only reason $ would be undefined is if jQuery didn't load. /cc @thejameskyle

interesting enough,  I don't see the javascript being load in the network panel
and if i try to open directly
https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js
(which is in the html source) It opens correctly

I don't see why this would be a cloudflare issue. These are pointing to cdnjs so you'd be noticing issues with a lot of sites if that were the case. I'll try out my Ubuntu VM

@thejameskyle Just a stab in the dark since that's the only thing I can think of.

I'm not seeing any issues

indeed it's weird, certainly a bug on my side, I've refreshed the cache, shutdown my VPN, and now it works correctly.

Out of interest, what VPN do you use?

Astrill


Is RDF* supported

Can I generate RDF* (aka RDF star) statements with the RML mapper?

Hi,
We are investigating support for RDF* with RML and hope to have a software release with RDF* support later in 2021.
As of right now, it might be possible to generate RDF data with reified statements using RML and then create RDF* using this tool. However, we have not tried this.

Hi,
We are investigating support for RDF* with RML and hope to have a software release with RDF* support later in 2021.
As of right now, it might be possible to generate RDF data with reified statements using RML and then create RDF* using this tool. However, we have not tried this.


Overplotting in circuit browser on v2-dev

Description of the problem
overlap of edge score and arrow can occur if edge length is too short:

LPC1 (FlyEM-HB:1681683226) (VFB_jrchk002)
LPLC4 (FlyEM-HB:1718645916) (VFB_jrchk082)
default settings
Overlap of edge scores can also occur where edges overlap:

LAL086(AVM09)_L (FlyEM-HB:1541684136) (VFB_jrchjwnt)
M_vPNml51_R (FlyEM-HB:2383731281) (VFB_jrchk0y1)
This form is for VFB2 bug reports and feature requests.
If you need help, please use the forum.
Describe the bug or feature request in detail.
Always include a code snippet, screenshots, and any relevant data to help us understand your issue.
Browser

[x] All of them
[ ] Chrome
[ ] Firefox
[ ] Internet Explorer

OS

[x] All of them
[ ] Windows
[ ] macOS
[ ] Linux
[ ] Android
[ ] iOS

These examples at least seem to be fixed


Messages from blocked users are always displayed on the phone

Bug Report
Current Behavior
Messages from blocked users are always displayed on the phone when watching a replay.
Expected behavior/code
On twitch on a pc, we no longer see messages from blocked users at all and even in replay.
Environment

bttv-android version: v0.8.2-beta
Android version: On different versions of android

Additional context/Screenshots
Bug reported by xplod62

How does the normal Twitch app behave?

On the official twitch application we also see messages from blocked people.

Then that has to be classified as intended behavior.

Okay, so it's clear for this concern if someone brings up this topic again. ☺


Make YouTube Video Downloader

I want that video but how?
Use the pytube library to create a simple YouTube video downloader that allows users to download videos directly to their device.

Hey Can I work on this issue? Please assign it to me


2024.1.0b0 doesn't work well with Frigate

Using latest version (5.0.0.beta3 because of frigate 0.13 beta 7)
Logs:
Logger: homeassistant.components.camera
Source: helpers/entity_platform.py:368
Integration: Camera (documentation, issues)
First occurred: 18:42:42 (4 occurrences)
Last logged: 22:28:50

Error while setting up frigate platform for camera
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1273, in add_to_platform_finish
    await self.async_internal_added_to_hass()
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 744, in async_internal_added_to_hass
    self._rtsp_to_webrtc = await self._async_use_rtsp_to_webrtc()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/camera/__init__.py", line 761, in _async_use_rtsp_to_webrtc
    if CameraEntityFeature.STREAM not in self.supported_features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable

Cameras all work well from the frigate interface itself. It is the integration itself. Some sensors seem to be working. Others are just unavailable.

I was suggested to point to https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation/ for more guidance on the issue at hand.


[CIT-394] fix build on windows

Proposed changes
The point is not to have a supported version on windows but to have a bare minimum of build and test.

Add unix and windows module for the flockfile crate. The windows version does nothing.
Move the module users from the tedge crate to its own tedge_users crate.
Use the  tedge_users crate in the tedge_mapper and the dm-agent.

Types of changes
What types of changes does your code introduce to thin-edge.io?
Put an x in the boxes that apply

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactorings that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have read the CONTRIBUTING doc
[ ] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[ ] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

Codecov Report

Merging #267 (23d14ee) into main (ef3e461) will increase coverage by 0.08%.
The diff coverage is 67.92%.

@@            Coverage Diff             @@
##             main     #267      +/-   ##
==========================================
+ Coverage   65.87%   65.96%   +0.08%
==========================================
  Files          64       65       +1
  Lines        3634     3637       +3
==========================================
+ Hits         2394     2399       +5
+ Misses       1240     1238       -2

Impacted Files
Coverage Δ

common/flockfile/src/windows.rs
0.00% <0.00%> (ø)

common/tedge_users/src/unix.rs
33.33% <ø> (ø)

common/tedge_users/src/windows.rs
0.00% <ø> (ø)

mapper/collectd_mapper/src/main.rs
0.00% <0.00%> (ø)

mapper/tedge_mapper/src/main.rs
0.00% <0.00%> (ø)

tedge/src/cli/certificate/error.rs
30.00% <ø> (ø)

tedge/src/cli/certificate/remove.rs
0.00% <0.00%> (ø)

tedge/src/cli/connect/command.rs
0.00% <ø> (ø)

tedge/src/cli/disconnect/disconnect_bridge.rs
0.00% <ø> (ø)

tedge/src/command.rs
0.00% <ø> (ø)

... and 8 more

Continue to review full report at Codecov.

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


How to pass on command line arguments unchanged?

Please consider this Justfile:
test *args='':
    bash -c 'while (( "$#" )); do echo - $1; shift; done' -- "{{args}}"

When running:
$ just test first "second arg" third
... I get ...
- first second arg third
What syntax should I use for {{args}} in the Justfile to pass on arguments unchanged, i. e. to get as result:
- first
- second arg
- third

🤷🏻♂

The best thing to do is to turn on positional-arguments, which passes positional arguments to each recipe line, which avoids unwanted splitting:
set positional-arguments

test *args='':
    bash -c 'while (( "$#" )); do echo - $1; shift; done' -- "$@"

This works for me, but feel free to reopen if it doesn't work for your use case!

Will try, thanks!
Probably "$@" is what I should have been trying (and know from bash), but did not notice it in the README.


fix: changing response data types

Please check if the PR fulfills these requirements

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
Any static_value is converted to a string when reading information about a template or device.

What is the new behavior (if this is a feature change)?
This commit changes how an attribute type in a response JSON is generated. This will now rely on "value_type" attribute. It follows JSON specification, i.e., valid types are number, string, boolean, array, object and null. Any other types will be rendered as a string.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Yes.

Is there any issue related to this PR in other repository? (such as dojot/dojot)
This is connected to dojot/dojot#1024

Other information:

I tried to manually merge this branch with development, but let's do this once it is approved. It added to many commits from other PRs.


Easily repositionable/resizable widget

The widget should be easy to reposition and resize, since it can easily get in the way of the actual page.

Perhaps draggable, snapping to the sides of the page?


Add winloop support

Before submitting

[ ] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
[x] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[ ] Did you write any new necessary tests?

What does this PR do?
Adds winloop support for windows, as uvloop is not compatible with windows.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

hi @jakaline-dev, thanks for the PR. Took a quick look at winloop and it looks good but doesn't seem to be widely used so I am not sure how well tested it is.

Closing this since we won't be supporting winloop by default. Users can still do -
import litserve as ls
import winloop
winloop.install()

api = ls.examples.SimpleLitAPI()
server = LitServer()
server.run()


Knoxville, TN (based partially on Nashville, TN example)

To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE***]
Hello,
My name is [YOUR NAME], and my address is [YOUR ADDRESS]. I am writing to say that I am strongly against the provisions found in the FY2020-2021 budget.
The mayor’s budget would spend $60.7 million ($58 million of which comes directly from the Knoxville City General Fund of $164.5 million, or 35%) on a “public safety” system that does not keep us safe. The vast majority of that money would be spent on police, jails, and courts. That means the mayor wants to spend more on cops and cages than on almost all public goods combined. Fully 1/3 of the full-time government positions in this city are police officers. This isn’t how we create public safety. True public safety requires fully-funded and community-controlled resources, not more police and jails.
In the midst of a budget crisis, the mayor is proposing we increase spending on police and jails, and decrease spending on social services, transit, and other critical public goods. This is unacceptable and will not keep us safe. The mayor has stressed the necessity of fiscal austerity during these trying times, but these cuts come at the expense of necessary community services instead of a massively overfunded police force.
Overpoliced communities are not safe communities. Thriving communities are safe communities, and communities thrive when they are well-resourced. We deserve a budget that divests from policing and jails and uses that money to invest in our community.
Sincerely, [YOUR NAME] [YOUR ADDRESS] [YOUR EMAIL] [YOUR PHONE NUMBER]

Edited to correct budget information; data is provided for the city of Knoxville specifically, not Knox County generally.

on it


documentation request:  pool-seq user story

i'm a newbie to sequencing analysis & working on a pooled sample project for the first time.  i've found this slide deck from Yeaman lab  to be helpful, but expert curated examples of pooled sample DNA variant calling and RNAseq abundance & other pipelines in one place would be very useful.
thanks to all for continuing to develop and maintain this project.

Hi @mjsduncan !
our documentation is here: https://bcbio-nextgen.readthedocs.io/en/latest/index.html
Unfortunately, we are not doing joint DNA+RNA analysis. You could run a DNA variant calling and RNA-seq alignment/abundance separately.
SN


Dont read from output store

Another change towards #47
(still in progress)

@glennhickey Sorry, I accidentally deleted the output store while this unit test was running. You'll likely need to rerun the test.
I'm currently testing out adding uuids to the output store buckets.

@glennhickey Looks like it passed anyway, I guess that further validates this pull request.

ok, merging now in interest of keeping master up to date.  hope to finish off #47 shortly.


upgrade to go v1.17 and logr v1.2

Signed-off-by: Soule BA<EMAIL_ADDRESS>Upgrading to go v1.17. Also upgrading logr to V1.2 now that the others flux projects have done so.
Test results

Codecov Report

Merging #139 (9592647) into main (0e29201) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #139   +/-   ##
=======================================
  Coverage   59.63%   59.63%
=======================================
  Files          77       77
  Lines        4065     4065
=======================================
  Hits         2424     2424
  Misses       1125     1125
  Partials      516      516

Impacted Files
Coverage Δ

stash/client.go
67.70% <0.00%> (ø)

Continue to review full report at Codecov.

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


Reverting name to List_ and updating Nyaa provider

Sorry, to ask for two different things in the same request.  I don't know how to ask separately.
I didn't change the version in the addons.xml, though.

Why are you changing the name of list to list_?

What do the changes for nyaa achieve?

@hoshsadiq answering your first question, the function as named list_ to avoid shadow to the native function list.  However, in my previous contribution, updating the ehp.py, I've changed to list.  The change is more cosmetic and to continue the naming.
About the second question.  I'm addressing this issue:  https://github.com/elgatito/script.elementum.burst/issues/42

Cool, in the future make sure you mention these things so people understand why a PR is raised :)

Ok, but I was following the conversation with elgatito
#40
I didn't know that it was more people involved

Sorry, I'm not a core dev, I was simply curious as I do use nyaa as well :)


can you include the number of forks?

I'm collecting the dependents data of pandas, Django and so on.
Besides the number of stars, the number of forks is needed.

yes, technically possible


Owned [NamedField] for Fields

The current signature of Fields::Named hold a borrowed slice of NamedField. As far as I can tell, it's designed for 'static definition of rust structs. This makes it difficult to define dynamic Structable for a map like we talked in #53 .
Perhaps we can make it a Cow for the dynamic scenario.

@sunng87 just to clarify here, is it the slice that should be owned, or the NamedFields that should be owned?

@hawkw I think I need for both. I'm trying to construct a Structable from a JSON object, which may have dynamic fields that are determined at runtime, in order to get O(1) access to the fields via valuable API.
Type like this works best for my scenario:
pub enum Fields<'a> {
    /// Named fields
    Named(&'a [NamedField<'a>]),

    OwnedNamed(Vec<OwnedNamedField>),  // where OwnedNamedField hold an owned String instead of str

    /// Unnamed (positional) fields or unit
    Unnamed,
}

Right, I'm looking into a possible change like this. But, I'm not totally sure if I understand why this change is necessary. If you have a Vec of field names, can't you just pass a borrowed slice of that Vec into Fields::Named?

That sounds reasonable. It has been a while since last time I'm running into this issue. Let me check my feature branch again to refresh my context about this.

@sunng87 let me know if that solution works out for you; I'd like to get this issue figured out soon, because if we do add code to make owned named fields possible, we would probably have to make some breaking changes, and it would be nice to figure out what's necessary here before releasing 0.1.

Sorry for late response. I may still have issue with current NamedField vector. My use-case is to implement Structable for serde_json::Value and its internal Map<String, Value>. Because the map has dynamic fields so I use StructDef::Dynamic here.
impl<'a> Structable for Map<String, Json> {
    fn definition(&'a self) -> StructDef<'a> {
        let field_defs: Vec<NamedField<'a>> = Vec::new();
        // add field names

        let fields = Fields::Named(&field_defs);

        let def = StructDef::Dynamic {
            name: "Json",
            fields,
        };

        def
    }
}

There are two issues from this piece of code:

The lifetime 'a from StructDef<'a> should be same as the Map because the field names in StructDef borrows str from the map. But I got error[E0308]: method not compatible with trait with my code above.
The NamedField vector is created within the function so it's impossible to borrow it outside.

OwnedNamed(Vec<OwnedNamedField>) in my previous comment can fix both 1 and 2 issue.

Another suggestion is to make name of StructDef::Dynamic an Option<String> because the json object is typically anonymous in term of a type.

At some point, I'd say that the type isn't a structable but a mappable.
I think it would be fair to add some additional trait fns that make it easier to work w/ json objects. Eg. get(&str) -> Option<Value<'_>> or something like that.

The only concern with Mappable is it doesn't seem to have O(1) access to value with given key name.


Develop

Codecov Report

Merging #30 (333cc14) into master (0f9d4c4) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #30   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           68        67    -1
  Lines          935       905   -30
=========================================
- Hits           935       905   -30

Flag
Coverage Δ

unittests
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

stweet/auth/__init__.py
100.00% <ø> (ø)

stweet/auth/simple_auth_token_provider.py
100.00% <100.00%> (ø)

...tweet/tweets_by_ids_runner/tweets_by_ids_runner.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Codecov Report

Merging #30 (333cc14) into master (0f9d4c4) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #30   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           68        67    -1
  Lines          935       905   -30
=========================================
- Hits           935       905   -30

Flag
Coverage Δ

unittests
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

stweet/auth/__init__.py
100.00% <ø> (ø)

stweet/auth/simple_auth_token_provider.py
100.00% <100.00%> (ø)

...tweet/tweets_by_ids_runner/tweets_by_ids_runner.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


fix: countryCode property in Input type phone number

Description
Fix countryCode property in Input type phone number
Fixes #7475
Type of change

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

How Has This Been Tested?
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:white_circle: Total coverage has not changed
No changes to code coverage between the base branch and the head branch

@somangshu I don't think this completely solve the issue here. When I try to bind the Input1.text I don't get the country code. There is also no other property which has the country code. Not sure, if this was a part of the original issue. Please review the deploy preview.

@riodeuno I can see that for the type phone number the {{input.countryCode}} works and returns the short code, This however should return the int code and not the short code.
@vicky-primathon I see that this does not function well in case of the currency as well. We need to fix the issue.

@riodeuno I can see that for the type phone number the {{input.countryCode}} works and returns the short code, This however should return the int code and not the short code.
@vicky-primathon I see that this does not function well in case of the currency as well. We need to fix the issue.

@somangshu  in case of currency, selected country code can be accessed as {{input.currencyCountryCode}}
Should we expose single api i.e {{input.countryCode}} for both phone number and currency selected country code.

@somangshu in case of currency, selected country code can be accessed as {{input.currencyCountryCode}}
Should we expose single api i.e {{input.countryCode}} for both phone number and currency selected country code.

@vicky-primathon when I check:

currencyCountryCode does not return anything. It should return the ISO code
currencyCountryCode should be changed to currencyCode.
The countryCode should return the phone extension ex: +91

Let me know if you have any doubts

Note for QA: We need a regression test for these types of input widgets.
cc @YogeshJayaseelan @vivekverma2312

@vicky-primathon

If input field is empty then {{Input1.countryCode}}  - {{Input1.text}} is showing undefined in text box.

During migration {{Input2.currencyCountryCode}}{{Input2.text}} is not migrating to {{Input2.currencyCode}} {{Input2.text}}. Due to this changing currency in Input widget do not change the currency in text widget.

@vicky-primathon @riodeuno I disagree to CountryCode changing to DialCode, this is not the generic convention.
cc @Nikhil-Nandagopal
Also since this is blocked by the backend migration, should we close this or draft it until unblocked

@somangshu I don't have strong opinions on this. countryCode works.
@vicky-primathon Let's make this into a draft for now.

@riodeuno I said that because the name used in the first release used countryCode and if we continue with it we will not need any migrations.

@vicky-primathon Lets close this PR since we're gonna introduce a v2 of input widget. We will do these changes on the v2.


Get-WGPackage

Hi,
First of all: great work guys!
I'm building small GUI on Winget with your wingettools.
Now Get-WGPackage seemed to work fine but suddenly stopped working.
F.e. Get-WGPackage Firefox shows no output.
Found https://www.powershellgallery.com/packages/WingetTools/0.6.0/Content/functions\Get-WGPackage.ps1 but didn't help me with analysis.
Any idea howto troubleshoot?
Thanks!
Steven

Hmm..... This works for me with no errors.

What version of PowerShell are you running? What version of the WingetTools module? The most recent version is 1.0.0.

You could also try running the native Winget command.
winget show --name firefox --source winget

And see what you get.

Thanks, Winget is working fine. But wingettools via search Firefox |§get-wgpackage converts it to a powershell object and that's exactly what I need to list the result in a gridview.
That suddenly stopped working and then I noticed that the get-wgpackage didn't give output.
I did update software via Winget on my Windows 10 machine, maybe some dependency broke?
Note that I do have output via get-wgpackage Firefox but the lines - it lists several- below headings (name, id , version etc) are empty.

What version of winget are you using?
winget --version

And what is the exact command you are trying to run?

I did install Winget via wingettools today, so I assume Winget is the latest version(?)
I have a textbox which contains the item to search for in value $textbox
I first do a $result = get-wgpackage $textbox.text | out-gridview -passthrough
Then the selection in the gridview is passed to Winget install $result.id
But the gridview suddenly appeared empty :-(
Then I saw the command is also empty when running get-wgpackage firefox
I have it on both a production system as well as a vanilla w10 system to which I install prereqs (wingettools, nuget, winget etc).
No clu why it suddenly stopped working.

On a new Win10 system I can do this:

I can also pipe the command to Out-Gridview. At a prompt run:
Get-WGPackage Firefox -verbose

and paste the verbose output. That might help show where things are breaking down.

Thanks for your input!
Really strange, but I fail to reproduce the issue now. Have several W10 machines to test with but none of them has the issue now.
I'll have to test things again and hopefully can reproduce to update this item and find root cause.

I suppose it could have been a back-end problem with the package repository. I'll leave this issue open for now.

I could reproduce on another (company build) system. Might be related to that system (on which it worked before).
Below the output. As you can see the output is empty.
PS C:\WINDOWS\system32> get-wgpackage firefox -Verbose
VERBOSE: [16:08:13.1092192 BEGIN  ] Starting Get-WGPackage
VERBOSE: [16:08:13.1517023 BEGIN  ] Using source winget
VERBOSE: [16:08:13.1517023 BEGIN  ] Using Parameter set name
VERBOSE: [16:08:13.1517023 PROCESS] Invoking: winget show --source winget --name 'firefox'
VERBOSE: [16:08:15.0580108 PROCESS] Converting winget data
VERBOSE:
Gevonden Mozilla Firefox [Mozilla.Firefox]
Versie: 96.0.3
Uitgever: Mozilla
URL van uitgever: https://www.mozilla.org/en-US/
Ondersteunings-URL van uitgever: https://support.mozilla.org/en-US/
Auteur: Mozilla Foundation
Koppelingspad: firefox
Beschrijving: Firefox Browser, also known as Mozilla Firefox or simply Firefox, is a free and open-source web browser
developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation.
Firefox uses the Gecko layout engine to render web pages, which implements current and anticipated web standards.
In 2017, Firefox began incorporating new technology under the code name Quantum to promote parallelism and a more
intuitive user interface.
Firefox is officially available for Windows 7 or newer, macOS, and Linux.
Its unofficial ports are available for various Unix and Unix-like operating systems including FreeBSD, OpenBSD, NetBSD,
illumos, and Solaris Unix.
Startpagina: https://www.mozilla.org/en-US/firefox/
Licentie: Mozilla Public License Version 2.0
Licentie-URL: https://www.mozilla.org/en-US/MPL/2.0
Privacy-URL: https://www.mozilla.org/en-US/privacy/websites
Copyright-URL: https://www.mozilla.org/en-US/foundation/trademarks/policy
Opmerkingen bij de release: Fixed an issue that allowed unexpected data to be submitted in some of our search telemetry
(bug 1752317)
URL voor opmerkingen bij de release: https://www.mozilla.org/en-US/firefox/96.0.3/releasenotes/
Installatieprogramma:
Type: Msix
Download-URL:
https://download-installer.cdn.mozilla.net/pub/firefox/releases/96.0.3/win64/multi/Firefox Setup 96.0.3.msix
SHA256: 449b02744455d86692c4eea0aabbb268ced75d54cc45772cfe2bc3cdc6659422
Releasedatum: 2022-01-26
VERBOSE: [16:08:15.0580108 CONVERT] Processing package data
VERBOSE: [16:08:15.0892598 CONVERT] Creating object
Name                           ID                             Version              Description

VERBOSE: [16:08:15.1048852 END    ] Ending Get-WGPackage

This helps. At least I can see that winget is getting the package. Now I need to see what the package data isn't getting properly processed by the function.

I wonder if there is a culture problem with the output from winget and my parsing function. Can you run winget show --name firefox --source winget | out-file winget-firefox.txt and attach the text file? That will give me something to test with.

Yeah, I found at least one problem already with the regex patterns where I made the silly assumption winget output would always be in Engilish.

Definitely, a language issue that is going to be complicated to resolve.

Thanks for the input. Could I (temporarily) force the output to English? That would be fine for me as a workaround.

This is apparently a known problem with Microsoft Store apps which, I think Winget is using behind the scenes. In my research, I found a reference to https://docs.microsoft.com/en-us/powershell/module/international/set-winuserlanguagelist?view=windowsserver2019-ps which might solve the problem. You might be able to add English. I tried adding NL-NL. Or you would need a system running the En-US culture.
I think I have a fix for the function. The challenge is the custom formatting file which assumes English. I'm not sure how to handle that yet.

Thanks! I ll look into it. If I can make it work, I ll let you know the details.

This works for me as a quickfix:
$OriginalLangList = Get-WinUserLanguageList
Set-WinUserLanguageList en-BE -Force -ErrorAction SilentlyContinue
get-wgpackage firefox
Set-WinUserLanguageList -LanguageList $OriginalLangList -Force

That should work for the native winget command. The problem is that the Get-WGPackage is trying to parse and format the native output. The function is building a custom object based on the output. The challenge is that the property names of the object you create are different than what I create. That's the work I have to figure out.

There is no easy fix on my part. Winget is inconsistent in the data that it returns so it is next to impossible to create a consistent object. Then we have the language issue. I think the best I can do is add some clarity to the documentation and recommend the WinUserLanguage workaround.
Can you run this and post the result:
Get-Culture
Get-UiCulture
$OriginalLangList = Get-WinUserLanguageList
Set-WinUserLanguageList en-BE -Force -ErrorAction SilentlyContinue
get-wgpackage firefox -verbose  |  Select *
Set-WinUserLanguageList -LanguageList $OriginalLangList -Force

It may be easiest to start a transcript, run the commands, then post the file. This will help with my documentation and help me better understand what is happeining.

Closing the issue as stale but will happily re-open.


Select by name doesn't seem to work.

$ fbsimctl list |grep Grank
47D58B42-82D9-4E81-AAE7-FF52A1DE35D6 | Grank | Shutdown | iPhone 6 | iOS 10.1
$ fbsimctl Grank boot
Failed to Parse Command '["Grank", "boot"]' does not match '[fbsimctl {{ [output] | [management] | --set <directory> }}* [targets]? [target-format]* {{ [action] ... -- [action] }}+

... and then 400 lines of splurge which might be better hidden behind '--help'.
Is 'Grank' not what
[targets/query] Target: Queries
===============================

    --first <int> | <udid> | --state=creating | --state=shutdown | --state=booting | --state=booted | --state=shutting-down | --arch=i386 | --arch=x86_64 | --arch=armv7 | --arch=armv7s | --arch=arm64 | --simulators | --devices | <os-version> | <device-name>

means by 'name'?
The reason I'm interested in 'name' is because it was supported by simctl and was a convenient way to persist pre-booted simulators without having to maintain an index file mapping udid to worker thread.
Incidentally, 'Grank' was created under fbsimctl, but renamed by 'xcrun simctl rename'.
/usr/local/Cellar/fbsimctl/0.3.0/bin/fbsimctl
Thanks.

"Name" does not mean the user-supplied name that you've provided, but the model of the iPhone. This should probably be clearer as this is currently ambiguous. I've just landed some substantial changes to how a Simulator configuration is considered, so I should be able to augment and disambiguate this with an actual device name.

I'll probably have some changes out next week to add something like --name=


Installing Perl crashes PowerShell

Installing Perl (<IP_ADDRESS>) makes PowerShell crash during the download of the Strawberry Perl portable package (x64).
scoop status then indicate:

these apps failed to install:
perl

OS: Win10 Pro 64 bits

I have the same problem (Win10 Home 64 bit).
Managed to work around it by redirecting the output when installing (e.g. scoop install perl > output.txt). Looks like this avoids the crash thanks to this line.

I had similar problems on downloading ModgoDB and Git recently. PowerShell crashed during downloading. May it something to do with some timeouts? I saw this problem only when downloading just released versions. I assume many people were downloading at the same time and the servers were busy. Is there anything to tune in the scoop download procedures?

I've also had this randomly occur during the download with multiple different apps. It generally works to completion if I just immediately re-run the same command.
I'm betting it has something to do with the callbacks used during the download process.

While it usually works on the second time for me as well, I couldn't install Erlang at all. The longer download made it impossible to reach 100% before the inconsistent "powershell has stopped working." Sometimes it happens immediately, but it managed to get up to 60%+ at times.
@william-ellis's suggestion works, thankfully!

I've disabled the percentage complete display, which seemed to be causing the problems.

Is $wc.dispose() needed only with percentage complete?

It seems to work okay.


confusing behavior on updating function type

It prints rc_testcase.zip which looks like a race
int32_t main(int32_t arg1, char** arg2, char** arg3)
int32_t main()

This is exactly expected behavior. You're making an analysis change in a background thread. If you would like to block after updating analysis, you'll need to use: https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.BinaryView.update_analysis_and_wait

This is exactly expected behavior. You're making an analysis change in a background thread. If you would like to block after updating analysis, you'll need to use: https://api.binary.ninja/binaryninja.binaryview-module.html#binaryninja.binaryview.BinaryView.update_analysis_and_wait


feat: Bengali language support

🚀 Description
Added language support for "Bengali"
📄 Motivation and Context
I am from Bangladesh and have used this library for a few projects. As Bengali support was not available I added it
🧪 How Has This Been Tested?
Tested on my local project
📷 Screenshots (if appropriate)

📦 Types of changes

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

✅ Checklist

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

I am from Bangladesh and have used this library for a few projects. As Bengali support was not available I added it


AvField validate a boolean

I would like to do something like
<AvField
validate={{boolean: {
value: customFunction(value)',
errorMessage: 'It is not valid'}
}}
/>
Is it currently possible ?
An other question, can I access the input value in the object passed to validate without having to do a custom onChange on AvField ?
Thank you

Ok sorry, I found it.
validate={{async: this.customFn}}


QSV 264 not encoding via GUI

I am no expert but I have taken it as far as I can go.

Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz - QSV capable
Docker compose has
devices:
- /dev/dri:/dev/dri
Log shows that QSV is enabled

Tried various presets with changed video to encoder > H264 (Intel QSV). All errored out except Hardware > H265 (QSV) (with H264 (Intel QSV) selected. It encodes but only has audio no picture. I reviewed some of the other issues and edited /config/ghb/presets.json and added lowpower=0 to VideoOptionExtra. That did not work either. Below is log output for review. Please advise if there are any further questions.
Your help is greatly appreciated.
`[21:49:47] gtkgui: Modified Preset: /Hardware/H.265 QSV 1080p
[21:49:47] Starting work at: Sat Oct  1 21:49:47 2022
[21:49:47] 1 job(s) to process
[21:49:47] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "fdk_aac",
"Gain": 0.0,
"Mixdown": "stereo",
"NormalizeMixLevel": false,
"PresetEncoder": "fdk_aac",
"Quality": -3.0,
"Samplerate": 0,
"Track": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "none"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 0,
"Minutes": 25,
"Seconds": 50,
"Ticks": 139567426
},
"Name": ""
}
],
"ChapterMarkers": false,
"File": "/output/video.mkv",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"Filters": {
"FilterList": [
{
"ID": 6,
"Settings": {
"mode": 0
}
},
{
"ID": 13,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 1080,
"width": 1920
}
}
]
},
"Metadata": {
"Name": "video"
},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/storage/video.mp4",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ChromaLocation": 1,
"ColorInputFormat": 0,
"ColorMatrix": 1,
"ColorOutputFormat": 0,
"ColorPrimaries": 1,
"ColorRange": 0,
"ColorTransfer": 1,
"Encoder": "qsv_h264",
"Level": "auto",
"Options": "",
"Preset": "balanced",
"Profile": "auto",
"QSV": {
"AdapterIndex": 0,
"AsyncDepth": 0,
"Decode": true
},
"Quality": 15.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[21:49:47] CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
[21:49:47]  - Intel microarchitecture Sandy Bridge
[21:49:47]  - logical processor count: 8
[21:49:47] Intel Quick Sync Video support: yes
[21:49:47]  - Intel Media SDK hardware: API 1.255 (minimum: 1.3)
[21:49:47]  - Decode support:  h264
[21:49:47]  - H.264 encoder: yes
[21:49:47]     - preferred implementation: hardware (any) via ANY
[21:49:47]     - capabilities (hardware):  la+downs vsinfo opt1 opt2+ib_adapt+nmpslice
[21:49:47]  - H.265 encoder: no
[21:49:47] hb_scan: path=/storage/video.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image /storage/video.mp4
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2646: nav_get_title_list(/storage/video.mp4/) failed
[21:49:47] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[21:49:47] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/video.mp4':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: mp41isom
creation_time   : 2022-09-07T17:46:51.000000Z
Duration: 00:25:50.75, start: 0.000000, bitrate: 16071 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080, 15872 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc (default)
Metadata:
creation_time   : 2022-09-07T17:46:51.000000Z
handler_name    : VideoHandler
vendor_id       : [0][0][0][0]
encoder         : AVC Coding
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
Metadata:
creation_time   : 2022-09-07T17:46:51.000000Z
handler_name    : SoundHandler
vendor_id       : [0][0][0][0]
[21:49:47] scan: decoding previews for title 1
[21:49:47] scan: audio 0x1: aac, rate=48000Hz, bitrate=196002 Unknown (AAC LC) (2.0 ch) (196 kbps)
[21:49:47] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/224/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[21:49:47] scan: supported video decoders: avcodec qsv
[21:49:48] libhb: scan thread found 1 valid title(s)
[21:49:48] Starting Task: Encoding Pass
[21:49:48] Skipping vfr filter
[21:49:48] Skipping crop/scale filter
[21:49:48] job configuration:
[21:49:48]  * source
[21:49:48]    + /storage/video.mp4
[21:49:48]    + title 1, chapter(s) 1 to 1
[21:49:48]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:49:48]    + data rate: 16071 kbps
[21:49:48]  * destination
[21:49:48]    + /output/video.mkv
[21:49:48]    + container: Matroska (libavformat)
[21:49:48]  * video track
[21:49:48]    + decoder: h264_qsv 8-bit (yuv420p)
[21:49:48]      + bitrate 15872 kbps
[21:49:48]    + Output geometry
[21:49:48]      + storage dimensions: 1920 x 1080
[21:49:48]      + pixel aspect ratio: 1 : 1
[21:49:48]      + display dimensions: 1920 x 1080
[21:49:48]    + encoder: H.264 (Intel Media SDK)
[21:49:48]      + preset:  balanced
[21:49:48]      + profile: auto
[21:49:48]      + level:   auto
[21:49:48]      + quality: 15.00 (QP)
[21:49:48]      + color profile: 1-1-1
[21:49:48]      + chroma location: left
[21:49:48]  * audio track 1
[21:49:48]    + decoder: Unknown (AAC LC) (2.0 ch) (196 kbps) (track 1, id 0x1)
[21:49:48]      + bitrate: 196 kbps, samplerate: 48000 Hz
[21:49:48]    + mixdown: Stereo
[21:49:48]    + encoder: AAC (libfdk_aac)
[21:49:48]      + bitrate: 160 kbps, samplerate: 48000 Hz
[21:49:48] sync: expecting 46475 video frames
[21:49:48] hb_display_init: using VA driver 'i965'
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /opt/intel/mediasdk/lib/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[21:49:48] encqsvInit: using encode-only path
[21:49:48] encqsvInit: H.264/AVC High profile @ level 4.0
[21:49:48] encqsvInit: TargetUsage 4 AsyncDepth 4
[21:49:48] encqsvInit: GopRefDist 4 GopPicSize 32 NumRefFrame 2
[21:49:48] encqsvInit: BFramesMax 3
[21:49:48] Unknown Header.BufferId=1347637059
[21:49:48] encqsvInit: RateControlMethod CQP with QPI 15 QPP 17 QPB 19
[21:49:48] encqsvInit: MBBRC on
[21:49:48] sync: first pts audio 0x1 is 0
[21:50:13] reader: done. 1 scr changes
[21:50:13] qsv_enc_init: using 'hardware (1) via VAAPI' implementation, API: 1.255
[21:50:14] work: average encoding speed for job is 0.000000 fps
[21:50:14] aac-decoder done: 72691 frames, 0 decoder errors
[21:50:14] h264_qsv-decoder done: 0 frames, 46477 decoder errors
[21:50:14] sync: got 0 frames, 46475 expected
[21:50:14] mux: track 0, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[21:50:14] mux: track 1, 72693 frames, 31015681 bytes, 160.00 kbps, fifo 131072
[21:50:14] Finished work at: Sat Oct  1 21:50:14 2022
[21:50:14] libhb: work result = 0
(ghb:1010): GLib-GIO-CRITICAL **: 21:50:14.205: g_bus_watch_name_on_connection: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(ghb:1010): GLib-GIO-CRITICAL **: 21:50:14.205: g_dbus_connection_signal_subscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(ghb:1010): GLib-GIO-CRITICAL **: 21:50:14.205: g_dbus_connection_call_internal: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
`

Anyone Anyone...Bueller
Seriously can anyone please provide direction. Thanks

I'm having the same problem. It seems there were other recent issues with qsv h265 recently which had a workaround, but it doesn't seem to apply to our h264 problem.

@leslieamartinez, HandBrake only support Intel CPU 6th gen and higher.  See https://handbrake.fr/docs/en/latest/technical/video-qsv.html

I'm having the same problem. It seems there were other recent issues with qsv h265 recently which had a workaround, but it doesn't seem to apply to our h264 problem.

Can you please provide link to the workaround ?


A d.ts file for magic leap api exposures

needed for typescript references / IDE intellisense
From the page https://github.com/webmixedreality/exokit/blob/master/docs/magicleap.md
A few questions shown as comments
There are 2 MLEyeTracker ( one commented out right now )
Javadoc style comments improve the IDE intellisense, but was shooting for accuracy first.

Also, not sure this is in a place where it will be found.  It is metadata, but for the user, not the building of exokit.

Maybe this interface file (with comments) could replace the .md?

Added the comments from the doc.  Kind of by 'definition' this obsoletes the .md file.
Something does look odd about eye now that I removed the second definition.  Shouldn't MLEyeTracker.eyes be an array to handle both eyes?

Ok, eyes is now an array.  In process of actually making sure it works in an IDE.  Using Netbeans with a Typescript add-in, I am not getting those entry points quite working yet.  I used interfaces so browser could be extended, but I do not think browser is in the main d.ts file to be extended yet.
The other stuff seems coming thru fine.  Paragraphs do not really in Netbeans, but not sure if this is universal.  No real harm in as programs which generate documentation from files like this may well use this.
Current screen shot.  Stay tuned:

I just made browser a module &  magicLeap a class within & it works.
Am just going down every object & the intellisense working good.  But starting randomly re-assigning things which probably do nothing.  There is a readonly attribute which can be added for code enforcement.  I set MLMeshUpdate.count to readonly & transpiler errors.

Do you wish to indicate which should have readonly, or just edit yourself after I have done my last PR?

Also there is ReadonlyArray, e.g. wrist : ReadonlyArray<Float32Array>;
Some of this might seem obvious, but does produce an error during writing when encountered.  Much better than at debug.

Probably pretty important to let one know what the position / rotations represent.  y-up or z-up?  Left or right handed?

It's right-handed, y-up, z-toward.

Think it is ready.  Also tested with Microsoft Visual Code (different from Microsoft Visual Studio 201x).  This is a multi-platform editor used by many.  Did as expected.  Normally d.ts files are generated, so hand built ones need more testing.

For future, this is the typescript used to exercise:
export class MagicLeap {
    public static isOnMagicLeap() : boolean {
        return browser.magicLeap !== null;
    }

    public test() : void {
        let mesher : MLMesher = browser.magicLeap.RequestMeshing();
        mesher.onmesh = (arg: MLMeshUpdate[]) => { arg[0].count; };
        mesher.destroy();

        let meshUpdate : MLMeshUpdate;
        meshUpdate.id.replace('w', 'W');
        meshUpdate.type = 'unchanged';
        meshUpdate.positionBuffer.is32Bits;
        meshUpdate.positionArray.buffer.slice(3);
        meshUpdate.normalBuffer.capacity + 4;
        meshUpdate.normalArray.BYTES_PER_ELEMENT;
        meshUpdate.indexBuffer.references;
        meshUpdate.indexArray[3] - 6.3;
        meshUpdate.count > 5;

        let eyeTracker: MLEyeTracker = browser.magicLeap.RequestEyeTracking();
        eyeTracker.fixation.position.byteOffset;
        eyeTracker.eyes[0].blink;
        eyeTracker.destroy();

        let planeTracker: MLPlaneTracker = browser.magicLeap.RequestPlaneTracking();
        planeTracker.onplane = (arg: MLPlaneUpdate[]) => { arg[0].id.substring(4); };
        planeTracker.destroy();

        let planeUpdate : MLPlaneUpdate;
        planeUpdate.id.substr(6);
        planeUpdate.position[2].toFixed(3);
        planeUpdate.rotation.subarray(1);
        planeUpdate.size.set([2,3], 2);

        let handTracker : MLHandTracker = browser.magicLeap.RequestHandTracking();
        handTracker.onhands = (arg : MLHandUpdate[]) => { arg[0].pointer[0] + 3; };
        handTracker.ongesture = (arg: MLGestureUpdate) => { arg.hand.charAt(2); };
        handTracker.destroy();

        let handUpdate : MLHandUpdate;
        handUpdate.hand === 'left';
        handUpdate.pointer.position;
        handUpdate.grip.rotation[3];
        handUpdate.rotation[0];
        handUpdate.wrist.length;
        handUpdate.wrist[2].buffer;
        handUpdate.wrist[2][1] + 34.2;
        handUpdate.fingers.length;
        handUpdate.fingers[0].length;
        handUpdate.fingers[0][0].length;
        handUpdate.fingers[0][0][0].buffer;
        handUpdate.fingers[0][0][0][1] - 9;
        handUpdate.gesture === 'pinch';

        let gestureUpdate : MLGestureUpdate;
        gestureUpdate.hand === 'left';
        gestureUpdate.gesture === 'pinch';
        gestureUpdate.position[2] * -8.6;
        gestureUpdate.rotation.byteOffset;

        let transform : MLTransform;
        transform.position[0] * transform.rotation[3];

        let eye : MLEye;
        eye.blink ? eye.position[0] : eye.rotation[2];

        let image : HTMLImageElement;
        let imageTracker: MLImageTracker = browser.magicLeap.RequestImageTracking(image, 4);
        imageTracker.ontrack = (arg? : MLTrackingUpdate) => { if (arg) arg.position.buffer.byteLength; };

        let trackingUpdate : MLTrackingUpdate;
        (trackingUpdate.position[1] / trackingUpdate.rotation[2]) + trackingUpdate.size;
    }
}

Enjoy!

Awesome, thanks! This should be a lot better than the existing .md.


fix(callable): __call cannot be in a nested metatable

if a metatable doesn't itself have a __call function, but gets one through another metatable, then the original object is NOT callable. Lua will query the metatable using rawget, and hence will not return the nested __call function
Reported by @tmillr here

@alerque I updated the test by actually calling it to verify it is non-callable. Passes on all the engines.


Add Image.from_file(image_path)

For:

[ ] Python: https://github.com/rerun-io/rerun/pull/3481
[ ] Rust

Let's do whats fastest for us to write, probably using PIL

Note: rust already has comparable helpers on TensorData. Unclear we need an alternative helper for rust until we introduce the proper archetype version.


fix: Initial scroll sizing

Updated dependencies and updated styles generation

Coverage increased (+0.004%) to 98.345% when pulling 72f0dd318b4a111d73a57167b74d4a3093c6bdd4 on rkarivanov/dependencies into 2fd5d2c95ed9bbb7005248661c6c0af0d6d0c05c on master.


Revalidation should allow stale response to be used

Before this change, a fresh response was revalidated and a stale response was always rejected
Now, cache is used when fresh, then stale response are revalidated (as the spec says)

Thanks for the PR, but I'm going to close this since this repo has been EOL for a while now.


Optimized Model instantiation a bit

Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module
Alias some repeat accesses inside the method to use the slightly faster local lookups
Use tuple to iterate remaining kwargs as it's faster to construct
Cache Field.get_default to avoid running through all the logic on every call
Use a cached list of the properties on the model class to avoid repeat isinstance calls

I ran the model_creation benchmark from djangobench with the below patch applied to hit the property path (plus django/djangobench#28 😉 ):
diff --git a/djangobench/benchmarks/model_creation/benchmark.py b/djangobench/benchmarks/model_creation/benchmark.py
index fef47b1..1e81b74 100644
--- a/djangobench/benchmarks/model_creation/benchmark.py
+++ b/djangobench/benchmarks/model_creation/benchmark.py
@@ -1,16 +1,19 @@
 import time
 from djangobench.utils import run_benchmark

+
 def setup():
     global Book
     from model_creation.models import Book

+
 def benchmark():
     global Book
-    Book.objects.create(title='hi!')
+    Book.objects.create(title='hi!', title2='hi!!')
+

 run_benchmark(
-    benchmark,
+    benchmark,
     setup=setup,
     meta = {
         'description': 'Time of a Model.objects.create() call.',
diff --git a/djangobench/benchmarks/model_creation/models.py b/djangobench/benchmarks/model_creation/models.py
index 80fbbbe..59df046 100644
--- a/djangobench/benchmarks/model_creation/models.py
+++ b/djangobench/benchmarks/model_creation/models.py
@@ -1,4 +1,13 @@
 from django.db import models

+
 class Book(models.Model):
     title = models.CharField(max_length=100)
+
+    @property
+    def title2(self):
+        return self.title
+
+    @title2.setter
+    def title2(self, value):
+        self.title = value

I see about a 4% speed boost:
$ python -m djangobench.main --control master --experiment optimize_model_init --trials 100000
Running all benchmarks
Control: Django 1.11.dev20161122184918 (in git branch master)
Experiment: Django 1.11.dev20161122210859 (in git branch optimize_model_init)

Running 'model_creation' benchmark ...
Min: 0.000176 -> 0.000169: 1.0405x faster
Avg: 0.000198 -> 0.000190: 1.0387x faster
Significant (t=48.561337)
Stddev: 0.00003 -> 0.00004: 1.1058x larger (N = 100000)

🚀


[#94] Change Create Button

I also looped in issue #95(Change Name of Generic Document) as it was a small text change.
NOTE: this branch alone will still produce the 500 errors when attempting to upload a file.  Those issues are resolved on a different branch.

There are some formatting difficulties whereby the standard message for the 1GB warning, etc., have moved from the side of the page to the bottom below the create document button where they may not be visible. Was this intended? Please see these before and after screen shots:
https://gist.github.com/cbcunc/c4268de5371da071f135ed697d1d77f1

Good catch!  looks like there was and extra  tag included in there from the commented code.


fix generation of router breaking when two modules have same name

LMK how I did
fixes https://github.com/Synthetixio/synthetix-v3/issues/792
notes:

test was added to verify this specific case in the future
the name might look kind of long/ugly, lmk if its unacceptable, but people
probably won't be looking at the router very often so its not issue i'm guessing

this is no longer relevant with the router being migrated to typescript, and many other changes.


Updating Landscape documentation with the correct docs website URL.

Minor documentation change.

Thanks! I'll get this deployed in the next few days. :cake:


use adapter functions in dbt seed

Fixes https://github.com/fishtown-analytics/dbt/issues/515

Closing in favor of: https://github.com/fishtown-analytics/dbt/pull/618


feat: add optional params to getTopNews() method

Pull Request Template
Description
Now getTopNews can get optional language and region params.
Implement #19
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have checked my code and corrected any misspellings

Thanks! :)