thanks Daniel - error trying to create new web assembly project

in Visual Studio 2019 (Version 16.4.2) , nuget package manager console
enter command:
dotnet new blazorwasm
result:
dotnet : No templates matched the input template name: blazorwasm. (either local or online, per long message)
Should I have entered the command somewhere else? I tried from cmd prompt and got same message ("couldn't find an installed template … searching online")
Perhaps there's a dependency I'm missing ...

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

ID: 542f38c4-1502-f739-372a-80c86c377491
Version Independent ID: 72c2a844-ffb2-4799-2c7a-a7a73d3b6833
Content: ASP.NET Core Blazor hosting models
Content Source: aspnetcore/blazor/hosting-models.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

Hello @toddharvey ... Reinstall the template with ...
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.2.0-preview1.20073.1

... per https://docs.microsoft.com/aspnet/core/blazor/get-started.
This has happened to me, too, but VS losing track of the template after upgrading VS doesn't seem to occur for me every update. Therefore, I haven't been able to pin down what to document. Blazor WebAssembly is Coming Soon! ⏳ After that, we won't have the separate template install step, and this sort of issue should be cleared up permanently.


UI React/Angular swap over script within QEWD-Ripple

need script that can swap the UI within the Ripple showcase demo
probably invokable from Swagger API page

@tony-shannon
Will you replace AngulaJS by ReactJS in the future?
Could you please tell me more details why did you develop ReactJS UI version?
Thanks

thanks @ZuzooVn
this issue is about supporting a choice of UI frameworks
So best to ask that question in the https://github.com/PulseTile/PulseTile/issues repo
In brief, we want to offer folk some choice of JS framework at the frontend (Angular & React), at least until there is a clear front runner.
See https://github.com/gothinkster/realworld to get a sense as to what swappable OS components could look like
T

The swapping works for both versions.
Here are the steps for swapping between the versions:
Option 1

Follow the URL:
http://dev.ripple.foundation/#/
Reload the page to get session token
You can type this link right in the browser URL field :
3.1) For React version: http://dev.ripple.foundation/api/ui/react
3.2) For Angular version: http://dev.ripple.foundation/api/ui/angular
Do hard Reload of the page to get new information displayed

Option 2
You can do the same actions using any program (Postman f.e.) for API requests:

Follow the URL:
http://dev.ripple.foundation/#/
Use this documentation http://dev.ripple.foundation/swagger-ui/dist/index.html for using right API requests.
2.1) GET /api/initialise (then use the token that is returned as the value of the Authorization header)
2.2) GET /api/ui/{type}     eg GET /api/ui/react    or GET /api/ui/angular
http://prntscr.com/h2ny14

What the API will do is to copy everything that is in the ~/ui-dist/{type} directory into the ~/qewd/www directory   - so you need to make sure that your latest React code is in ~/ui-dist/react   and that the latest working version of the Angular version is in ~/ui-dist/angular
@tony-shannon
Can I close this issue too?


unsupported command 'SELECT'

Jedis jedis = new Jedis(r.getAddr(), r.getPort());
jedis.select(1);
error:
redis_parse_req:1583 parsed unsupported command 'SELECT'

@smukil

Dynomite doesn't support SELECT command, you can see full list in here

@BaoHuaWang: For the record, there is a patch that supports a SELECT 0 command (which needs to modified slightly in order to apply to v0.6.22).


Improved UNet on Lesion Segmentation

Wrong files path. All student constructed document should be packed in one document under the ‘recognition’ document.
Algorithm can solve the problem, but no evidence. Average Dice Coefficient in testing dataset: 0.8, while no evidence. No Predicted Masks output.
Correctly using PyTorch to construct the Improved U-Net models and functions.
Good coding design.
Sufficient docstring and comment in the code, need some references.
Easy difficulty problem, no higher difficulty marks.
Wrong pull request branch, from local: main to shakes76: main


Multiple backends

This draft shows an approach how both Vulkan and GLES can be supported by a single executable. In the first commit, all traits specific to the backend are moved from the crate root to the common directory, which is included in both backends as separate modules using path attributes. In the following commits, the traits are made more abstract from specific backends:

The dependency of HasShaderBinding and ShaderBindable is inverted, so now, ShaderBindable depends on HasShaderBinding. Practically, none or both traits are implemented, so it makes no difference. But with this change, HasShaderBinding can be implemented independently of the backend.
The traits ResourceDevice and CommandDevice are made independent from the backend by making TextureViewDesc generic on the inner Texture.
Buffer handling becomes generic by introducing the Buffer trait. This allows to make the belt in blade-util generic over multiple backends.
The blade macro ShaderData is duplicated per backend and then re-exported in the blade-graphics crate, to make it easy to choose the matching one. This is gated by the derive feature.

These changes are sufficient to support multiple backends in Zed, for example (https://github.com/zed-industries/zed/pull/14931). However, blade could be made more generic with extra traits (for example, Texture handling).
fixes #130

Hi @lukaslihotzki and thank you for experimenting with this!
The graphics library has a fairly large API. Making it polymorphic across backends is taking a tall at the code clarity and quality.
I wonder if we can expose it such that the user would enable "gles" as a feature and see this API:
blade_graphics::Device; // main device
blade_graphics::fallback::Device; // GLES device

So essentially GLES feature would bring another implementation exposed inside "fallback" namespace, and the user can use both. That would allow Zed (and other users) to potentially have different renderers, e.g. BladeRenderer and BladeFallbackRenderer, thus shifting the polymorphism to a higher level.

With #150 and #151, the diff shrinked from +434 −352 to +321 −254, so some progress is made on this. Nice!

Any interest in picking this back up? This is a blocker for zed on many devices (already mentioned in the issue reports related to this).


replace the length_value macro

length_value(parser1, parser2) gets a number from the first parser, selects that quantity of bits, bytes or char, and applies the second parser on the resulting slice. If there was enough data to take that slice and the second parser returns incomplete, length_value will return an error

fixed in 9b236b2


Add sorting and filtering to the sources table

The table of sources at /sources currently has pagination, but no sorting or filtering. This story covers adding sorting and filtering to the table in the UI, and to the corresponding resolver in the API.
AC's:

[ ] Functionality exists on the sources table in the UI to sort and filter the data by all columns.
[ ] The above functionality is connected to the API, so sorting and filtering works end-to-end

Sorting covered in https://github.com/icipe-official/vectoratlas-software-code/pull/236


Chapter 1 / 6 error in comments

Chapter 1 / 6 says ..
            // shader.frag has been modified yet again, take a look at it as well.
            _shader = new Shader("Shaders/shader.vert", "Shaders/shader.frag");
            _shader.Use();

when it should say...
            // shader.vert has been modified, take a look at it as well.
            _shader = new Shader("Shaders/shader.vert", "Shaders/shader.frag");
            _shader.Use();

This issue applies for 7-Transformations, not 6-MultipleTextures. I fixed it in a commit.


Main fix navigation view 1002

Pull request type
Please check the type of change your PR introduces:

[ ] Update
[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes

What is the current behavior?
Described in issue #1002
Issue Number: #1002
What is the new behavior?
Described issue fixed

Navigation View in Top and Bottom states changes the color while mouse is over or while is selected

Other information
Before:

After:

Square borders do not match the overall design and the style of Win UI 3, which does not have a background for top navigation when the element is active


@kanaabe => homepage fix

A recent upgrade of moment broke the home page due to a breaking API change. The fix is to import
moment-timezone instead of moment when we need access to timezone data (e.g. moment.tz()). The issue is described here ((https://github.com/moment/moment/issues/4313))
I missed this one import during the update.

Could you point to the PR that upgraded moment? A quick check of package.json/yarn.lock in Force and Reaction didn't immediately show anything recent.

@mzikherman Sure, https://github.com/artsy/force/pull/2527/files#diff-8ee2343978836a779dc9f8d6b794c3b2R7358


Plots for ItemResponseFunctions.jl

[ ] Fix information_plot for dichotomous models. This requires that scoring_function is implemented, i.e. https://github.com/JuliaPsychometrics/ItemResponseFunctions.jl/issues/8 is resolved.


Trigger a defined route

Is it possible to trigger a defined route?
Something like router.navigate('/about');?

https://reefjs.com/api/#reefrouter-prototype-visit

Thanks point mit to visit! Searched source after posting my issue and found navigate, but it's deprecated and so I'll use visit 👍


Update different-id.md

🚀 Deployed on https://663023d47ae76141545e3fdd--cozy-fox-0defec.netlify.app


Support manual background images

This pull request adds the option to manually choose a background-image for an iFrame.
This can be done, by using the data-uc-background-image attribute on the iframe.
If no background-image is provided, the current default will be displayed.
data-uc-background-image="https://picsum.photos/id/12/1920/1080.jpg"

Very useful. Would be great to get that merged. :)


Chore: set up ci for js bindings

Description
set up same pipelines we have for python bindings, but for js

This seems done.


Create auth token which doesn't expire

As of now the auth token generated are expired in 24 hours and we need to create the token again by login to cluster. Our cluster is for development purpose so the token shouldn't expire.

https://docs.openshift.com/container-platform/4.6/rest_api/oauth_apis/oauthclient-oauth-openshift-io-v1.html

Fixed in https://github.com/code-ready/snc/commit/91c6799b40ad9a90c67f37f4162c359d92dcdbed


Add tooltipProps to pass props to tippy

This adds an option tooltipProps which are passed through to the underlying Tippy.js library so it's possible to customise any and all the various props supported by Tippy. The spread operator is used to augment the default props being set, meaning that the defaults (e.g. arrow: true can be overridden).  In my specific case, I was mostly chasing access to the allowHTML and position props so I can fully customise the internals of the tooltip; only text-based content & the default positioning was previously possible.
I'm new to TS so let me know if this PR needs any adjustment.

Thanks @chrisrzhou, changes made and pushed.  See what you think

Hi @davidjb, apologies for closing this MR.  I updated/renamed master branch to main to avoid the master terminology for ongoing repos that I maintain.  You may have to open another MR for this against main.  There are also some updated changes based on addressing issues raised by people, as well as updating the linting/build dependencies.
Apologies for the inconvenience!

I literally made a bunch of updates and renamed the branches, that was so coincidental, and inconvenient that you made changes so fast.  Shoot me an updated MR and I'll review.  Sorry and thanks!

I literally made a bunch of updates and renamed the branches, that was so coincidental, and inconvenient that you made changes so fast.  Shoot me an updated MR and I'll review.  Sorry and thanks!

No worries, opened a new PR.


Allow overriding .drone.yml path globally

Context for this change:
We are using starlark for all of our pipelines.
Currently, we have to manually set the configuration file to .drone.star everytime we activate a repository.
We want drone to use .drone.star as default configuration file for newly created repos.
Change in this PR:

Add a configuration DRONE_YAML_FILE that allows overidding the default .drone.yml.
DRONE_YAML_FILE is default to .drone.yml for backward compatibility

 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.

You could even do that already today with a global webhook plugin.

I certainly didn't think of that!
That's really a clever way to use webhook to solve the problem.
Still, I think it'd be better to extract out the hard coded ".drone.yml"
and have a more simple & reliable (no network callback) solution rather
than relying on the  webhook.
On Thu, Feb 13, 2020, 11:50 PM Thomas Boerger<EMAIL_ADDRESS>wrote:

You could even do that already today with a global webhook plugin.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/drone/drone/pull/2919?email_source=notifications&email_token=ABK6ISZ6O3GV5EIPKRBPNNDRCV24XA5CNFSM4KTUFFYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELVXLYA#issuecomment-585856480,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABK6IS4YUFP4GVX67AFMVRDRCV24XANCNFSM4KTUFFYA
.

 All committers have signed the CLA.

This is a recommended use case for a configuration extension. You can learn more about creating extensions here: https://docs.drone.io/extensions/configuration/


feat: extends tailwind config styles

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

needed to use default fontsize in #51070, but it was overwritten by the config values, this aims to extend the values in config so it doesn't conflict with default tailwind styles

Would it be possible to use one of the defined sizes or add the newly used font to the list?

it would be tedious, I have faced similar issue while adding border and outline, I think we should remove the added values and keep the colors

text-base seem to have similar font size and line height as our text-sm.
Initially the font sizes where added because our used font sizes did not map to tailwind's.
Additionally, It is helpful to have all of the design tokens in one place for maintainability.

Initially the font sizes where added because our used font sizes did not map to tailwind's.
Having all of the design tokens in one place, and enforcing our a set of sizes would improve maintainability

now there are tailwind base styles that align with our usage in /learn, adding it will cause confusion because contributors won't understand why some base styles work and others don't, and which value is fcc-property and tw-property.

enforcing our a set of sizes would improve maintainability

People can easily get around this enforcement, they can add css inline styles, create .css files or use arbitrary-values. They are getting in my way more than helping.

That is why I am wondering if extending the config would be necessary?

Nope, the modal PR can be finished without it, but I would love to not deal with this inconvenience and complication again, if it breaks something we can revert it, and update the modal PR


Redis Base BurstControl and Backend Rate Limiting support.

Describe your problem(s)
With the current APIM architecture, We don't do the hazelcast clustering across Gateway nodes.
Due to that Backend and Burst Control-related counters are only available at per Gateway level.
Therefore to configure clusters across values, they have to divide by the no of gateways and configure it.
Due to this users will not be able to scale the gateway deployment as they required.
Describe your solution
This can eliminate by using the global counter.
How will you implement it

Update the Redis counter and replicate across the nodes.

#https://github.com/wso2/docs-apim/issues/4973 DOC issue


Lots of requests per second to the same .ts files

Browser: Chrome/Firefox
OS: Linux
Clappr Version: latest from cdn
Steps to reproduce:
When playing video I get lots of request for the same files yet the video doesn't seem to play (plays, finishes a segment, gets stuck for 1-2 segments, plays a single segment... )
Did you try to reproduce this issue at http://cdn.clappr.io/: Yes, same thing
Playing the m3u8 file on mpv/vlc works wonderfully. Looks like a player issue..

Edit, this doesn't happen (multiple requests per file) on https://cdn.jsdelivr.net/clappr/latest/clappr.min.js
but does on
http://cdn.clappr.io/latest/clappr.js

@DavidVentura jsdelivr is hosting an old version of Clappr, can you provide the stream for testing?

This happens for me as well ( Chrome on Arch linux)
I'm using wowza with DVR enabled.

@lordcris can you try to reproduce this error at http://dailymotion.github.io/hls.js/demo/ ?

I can't.
It works fine on http://dailymotion.github.io/hls.js/demo/
Using clappr this issue presents itself once I try and and click on random point on the timeline.
If you give me an exact time I will be happy to provide you with a testing stream.

@lordcris while using the https://cdn.jsdelivr.net/clappr/latest/clappr.min.js does any errors happens?

yes, they do.
I've made a test page http://testing.atanassov.net/
Once the video is playing you have to click on the timeline back and forth multiple times and the "HD" indicator will start flashing and the player will start downloading the same segments over and over again.

@lordcris I think the player is canceling the request and issuing a new request, it looks legit.
One thing I've noticed was that your master playlist seems to be malformed, all bitrates qualities are pointing to the same quality (1080p), making the adaptation stream not work properly. For instance you have a 426x240 pointing to a 1080p and so forth.
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=3978000,CODECS="avc1.100.41,mp4a.40.2",RESOLUTION=1920x1080
**http://cdn1.atanassov.net/myliveorigin/mystream_1080p/chunklist_DVR.m3u8**
#EXT-X-STREAM-INF:BANDWIDTH=2328000,CODECS="avc1.100.40,mp4a.40.2",RESOLUTION=1280x720
**http://cdn1.atanassov.net/myliveorigin/mystream_1080p/chunklist_DVR.m3u8**
#EXT-X-STREAM-INF:BANDWIDTH=1228000,CODECS="avc1.100.31,mp4a.40.2",RESOLUTION=854x480
**http://cdn1.atanassov.net/myliveorigin/mystream_1080p/chunklist_DVR.m3u8**
#EXT-X-STREAM-INF:BANDWIDTH=678000,CODECS="avc1.100.30,mp4a.40.2",RESOLUTION=640x360
**http://cdn1.atanassov.net/myliveorigin/mystream_1080p/chunklist_DVR.m3u8**
#EXT-X-STREAM-INF:BANDWIDTH=403000,CODECS="avc1.100.21,mp4a.40.2",RESOLUTION=426x240
**http://cdn1.atanassov.net/myliveorigin/mystream_1080p/chunklist_DVR.m3u8**

Great catch!
I fixed the malformed playlist but unfortunately the error keep appearing.

The hls.js error is a non-fatal "fragLoopLoadingError"

I could reproduce it on hls.js demo page http://dailymotion.github.io/hls.js/demo/ I think this is not a clappr's problem and maybe not even a hls.js problem, it seems like a problem on your stream.
@mangui what are you thoughts on this problem:
hls.js keeps retrying to download the same .ts files over and over again.
Steps:

go to http://dailymotion.github.io/hls.js/demo/ and try to play http://testing.atanassov.net/playlist.m3u8
wait for 4 seconds and then seek to the middle of the video
wait for 4 seconds and then seek to near of the initial of the video
the error "fragLoopLoadingError" will happen and player tries to re-download the same .ts files over and over again.

I see. It's a stream generated using wowza media server. Do you think it's related?

I think it's because if I never faced such thing and if you use a stable stream of hls (http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8) you probably will not be able to reproduce the same error. (I could not)
What's the source are you using to generate this hls? (rtmp, mp4... is it in your hand? can you run a mediainfo or any other tool to help understand the problems with this input??)
I don't know much of wowza to help you though.

I get this error on a livestream, playlist generated by nginx-rtmp. Other
players (such as mpv) can play the .m3u8 playlist just fine and they don't
complain about it being malformed
On 24 April 2016 at 12:09, Leandro Moreira<EMAIL_ADDRESS>wrote:

I think it's because if I never faced such thing and if you use a stable
stream of hls (http://www.streambox.fr/playlists/x36xhzz/x36xhzz.m3u8)
you probably will not be able to reproduce the same error. (I could not)
What's the source are you using to generate this hls? (rtmp, mp4... is it
in your hand? can you run a mediainfo or any other tool to help understand
the problems with this input??)
I don't know much of wowza to help you though.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/clappr/clappr/issues/930#issuecomment-213981201

--
Stack is the new term for "I have no idea what I'm actually using".

@DavidVentura it's hard to compare one player with another, for instance VLC plays almost anything it can, it "ignores" errors and even intelligently guesses things to make the video
If we're able to reproduce this issue and we think this is a playback problem, we should open an issue on hls.js project. What do you think?

this is the mediainfo of the file
mediainfo Youre.the.Worst.S01E10.Fists.and.Feet.and.Stuff.1080p.WEB-DL.DD5.1.H.264-NTb.mkv
General
Unique ID                                :<PHONE_NUMBER>80485480539114549867318716125 (0x8B01C22FBC7F258E96D767597725A6DD)
Complete name                            : Youre.the.Worst.S01E10.Fists.and.Feet.and.Stuff.1080p.WEB-DL.DD5.1.H.264-NTb.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 1 004 MiB
Duration                                 : 26mn 23s
Overall bit rate                         : 5 318 Kbps
Encoded date                             : UTC 2014-09-19 08:26:52
Writing application                      : mkvmerge v6.9.1 ('Blue Panther') 64bit built on Apr 18 2014 18:23:38
Writing library                          : libebml v1.3.0 + libmatroska v1.4.1
Cover                                    : Yes
Attachments                              : small_cover.jpg / cover.jpg / cover_land.jpg / small_cover_land.jpg
Released by                              : BLiN@BTN/HDB
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 26mn 23s
Bit rate                                 : 4 828 Kbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.097
Stream size                              : 911 MiB (91%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 26mn 23s
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 31.250 fps (1536 spf)
Compression mode                         : Lossy
Delay relative to video                  : -25ms
Stream size                              : 72.5 MiB (7%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : Yes
Forced                                   : No
I send it to wowza using this command:
ffmpeg -re -i Youre.the.Worst.S01E10.Fists.and.Feet.and.Stuff.1080p.WEB-DL.DD5.1.H.264-NTb.mkv  -vcodec libx264 -preset veryfast -maxrate  5000k -bufsize 10000k  -acodec aac -b:a 128k  -strict -2 -flags +global_header  -g 48 -f flv   "rtmp://:@wowza2.atanassov.net:1935/myliveorigin/mystream"
then the mediaserver transrates it in the stream you are seeing ( with the DVR option enabled)

Try to add a gop for each 30 frames -g 30 -r 30 instead of 48.

Can you test with this stream?
https://plataforma.especificosba.com.ar/hls/test.m3u8

Looks like it has something to do with the hls.js version being used.
https://github.com/dailymotion/hls.js/issues/407#issuecomment-214815377
Can you upgrade hls.js to 0.6.1 on clappr?

@DavidVentura nice catch :) I don't know since it's a pre-release build I don't feel comfortable, what do you think @clappr/core ?

I agree @leandromoreira I don't think we should use the pre release because it's not been as well tested as the major version. It sounds like a bug though so @mangui might be able to backport the fix into v0.5.x if you create an issue with hlsjs.
the other option is that you build clappr manually with 0.6.x by updating the package.json before you npm update.

I suppose we'll migrate when makes sense :)

Hi, I reach here with similar Issue on liveStreaming... after test on Dailymotion demo page, all works well with current stable relase of hls.js
Some plans to upgrade?

@cdgraff yeah we're planning to do a major upgrade that should include this (we'll try to organize and follow a flow of tasks here https://github.com/clappr/clappr/projects/1 )

Hi,
I'm facing the exact same issue, i'm using NGINX + RTMP module and clappr.
My stream has EXT-XDISCONTINUITY and after this the player just starts trying to get the same 27.ts and 28.ts over and over again.
#EXT-X-DISCONTINUITY
#EXTINF:1.001,
/conteudo/hls/9t8huwb_recordall/27.ts
#EXTINF:9.992,
/conteudo/hls/9t8huwb_recordall/28.ts
#EXT-X-DISCONTINUITY
Does anyone know a solution for this ?
in vlc it plays fine.


Cypress-plugin-steps don't work properly with cy.origin command

Description problem:

According cypress-plugin-steps docs  works similarly to cy.log() command. However it does not work properly when run with the cy.origin command.

Why is this needed?
it is necessary to continue with the numbering of the steps within the cy.origin command.

Not much I can do here, I’m limited with Cypress cy.origin() functionality. Theoretically, it could work by adding experimentalOriginDependencies: true to your cypress.config.js and then using Cypress.require('cypress-plugin-steps') inside cy.origin() command as mentioned in the docs, but I’m not 100% sure about the solution


Add as member to coderefinery

Adding myself as member, with description and picture.

great, thanks!

Thanks a lot Stefan!


Initial service client documentation

This moves the service client documentation out of README.md and splits
it between some top-level information in the Thrift module and detailed
documentation in the Thrift.Binary.Framed.Client module. Some of the
text has been revised in the process, but the overall coverage should
remain the same.

While i understand why you'd do this, I think that having documentation in the README.md file makes it so much easier for people browsing the repo to figure out how to use it (indeed, I've used it a bunch). When landed, this change effectively removes docs since there's no hex package published.
Also, moving docs into separate module-level documentation spreads them around and makes them harder to navigate, thought the changes to groups_for_modules mitigates this a bit.
Instead, you might want to consider adding a usage page to the documentation and linking from it on the top level docs.

Thanks for reading through this!

When landed, this change effectively removes docs since there's no hex package published.

This is something we plan on addressing shortly (by publishing the new package and docs).

moving docs into separate module-level documentation spreads them around and makes them harder to navigate

I've tried to be conscious of this by moving most documentation to the top-level Thrift module and moving the details to linked sub-modules, modeled after Ecto's documentation.

you might want to consider adding a usage page to the documentation and linking from it on the top level docs.

Is the advantage to that in keeping a separate markdown file in the repository? Once I bring in the server documentation, I was hoping that this kind of "usage" documentation would all be in Thrift, perhaps supplemented by some example projects as suggested in #288.
Alternatively, should we just keep a copy of all of this stuff in the README.md? My view was that we should limit it to just high-level setup and project information.

This is something we plan on addressing shortly (by publishing the new package and docs).

What's the time frame? We lose docs immediately, and I don't know what the priority is; 2.0 has been on deck for a long while.

Is the advantage to that in keeping a separate markdown file in the repository?

Yes, exactly.

Alternatively, should we just keep a copy of all of this stuff in the README.md?

That's an option, though you'd have to keep the top-level and module-level docs in sync, which might be a gotcha in the future.
I also think that in a project such as this, it's helpful to see what the generated server / client looks like, so you can compare it to other alternatives for clarity and ergonomics.
Just my $0.02

What's the time frame?

There isn't a fixed schedule. As documentation is one the last milestone items before releasing it, I've been trying to make progress on this front in my free time.

I also think that in a project such as this, it's helpful to see what the generated server / client looks like, so you can compare it to other alternatives for clarity and ergonomics.

I agree with this, and it's why we have those examples in the module documentation.
It sounds like we need to decide, overall, if we should put the majority of our effort into module documentation or dedicated text files. I don't have a strong opinion, but as our module documentation was pretty lacking, I've been focusing on that.

I've thought about this a little more. It seems like we're discussing three "classes" of documentation. I'll annotate them with where I think they go.

Detailed documentation often tied directly to methods (e.g. keyword options). [@moduledoc]
Guides that explain how to do something: set up the compiler, use a client, etc. [README.md, Guide.md, ...]
High-level overview documentation that explains the project, what it does, and how it works. [Thrift module, README.md]

Do we agree that we're primarily discussing (2) and that we're on the right track with (1) and (3)? If so, I think we're aligned.

Detailed documentation often tied directly to methods (e.g. keyword options). [@moduledoc]

I agree with this 100% - we don't need to be documenting keyword arguments at the root readme level.

Guides that explain how to do something: set up the compiler, use a client, etc. [README.md, Guide.md, ...]

Also very important. This PR currently removes all the client docs from the readme, but I think we should keep a minimal client usage example, and then provide a link to the Client module for detailed docs on keyword options, ie. (1).

High-level overview documentation that explains the project, what it does, and how it works. [Thrift module, README.md]

We should also have some of this. I like @scohen's idea of having an example of what a generated client/server looks like. Not sure how succinct it would be though

@jparise I agree with your analysis; and I think, if we can structure the docs along those lines, I'll be on board.
Also, if you merge this PR just before 2.0 is released, my concerns will be alleviated.

I restored most of the "Using the Client" documentation in the README.md. We can revise the overall README.md file in another pass.


Updates to create_subnet and describe_subnets responses

The structure of the responses to the create_subnet and the describe_subnets commands have changed recently, as testified by the official documentation:

create_subnet
describe_subnets

I modified the responses returned by moto to precisely mock the original ones. In the process, I also collected all the existing availability zones, because the previous data was outdated and inaccurate.
Although this is not documented, the Tags field is only included in the response if it has at least one element, thus the create_subnet response never has that field.

Coverage decreased (-0.006%) to 92.73% when pulling 249aaddf8fb6c91d520bcffde5b4b960a37e1bc5 on acsbendi:create-subnet-fixes into 1095b7d94bdd46b1bb2dbff0122994baf94f2eeb on spulec:master.

Nice job, great work. Fix conflicts and i'll merge

@terrycain Thank you, fixed now


[Wizard] Dynamically generated page disappeared when using *ngIf to show/hide

Select one ...  (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior

Use *ngIf to control page skipping and unskipping for dynamically created pages.

Actual behavior

Open wizard, hit "Toggle page 2 visibility" button twice. Click Next to page 2. The dynamically generated page content is missing.
Relevant issue: Open wizard, navigate to page 3, then navigate back to page 1. Hit button twice. It jumps to page 3 directly.

Reproduction of behavior

Include a link to the reproduction scenario you created by forking one of the Clarity Plunker Templates: https://plnkr.co/edit/8bkNAtzXiadhq4THKQS7?p=preview

Environment details

Angular version: 4.0.1

Clarity version: 0.9.1

@yaooluu : This appears to be two separate issues.
The first issue is the generated page content going away after toggling the second step. This is because the generated page content is only being inserted on ngAfterViewInit. You will likely want to change this to insert the page content either with ngOnChanges or in both ngAfterViewInit and ngOnChanges. I'll ping @youdz to set me straight on this if I'm confused.
The second issue is the navigation jumping to the third step. I believe that to be a bug.
If my assessment of the first issue is accurate, it's not a bug but a way that the dynamically generated wizard pages will need to interact/integrate with Angular.
If that is correct, we'll convert this to a stepnav bug and triage accordingly.

Hi @yaooluu, I think adding the dynamic pages this from the parent component (in this case, AppComponent) creates a lot of issues if you want to stay dynamic, and you end up reinventing the wheel by listening to every lifecycle event that happens. Right now, you'd need to listen to the Querylist changes, identify the ones that appeared, and re-insert the dynamic component. Not only is this painful to write and maintain, it also has no reason to fall under the responsibility of the app component.
I believe the correct solution is simply to use a "placeholder" page component that appends the real page to itself on init. I modified your plunker to show how it would work:
https://plnkr.co/edit/RjLGlkFkUmhpohNUCSvy?p=preview
Most of it stayed intact, but the dynamic creation moved into the MyPage component and happens on initialization. The whole point is that every time your *ngIf changes, you re-create a new MyPage instance which will run its ngOnInit().
I'm guessing not all pages are RealPage, but you use the index or something to identify the right component. This is still possible with the pattern I suggest, since the index or any other indicator can be passed as a simple input, and will already be set when ngOnInit() runs. You could also easily use a service that each MyPage component can inject in its constructor to request the correct component type.
So I believe the dynamic creation is a non-issue here, with the right pattern it works absolutely fine. The page jump when toggling page 2 is a real bug though, so I'll let @mathisscott triage this issue accordingly.

Awesome. Thanks, @youdz. If it's okay with you @yaooluu, I'm going to switch this issue over to the stepnav jumping. That looks like a real bug.
Thanks for the feedback, @yaooluu

@youdz Thanks for the explanation and workaround!
@mathisscott I think there're two concerns:

I believe the correct solution is simply to use a "placeholder" page component that appends the real page to itself on init.

For supporting dynamic page creation, do you think Clarity Wizard can provide this out of the box? (E.g. an input clrWizardPages which takes an array of page classnames)

The whole point is that every time your *ngIf changes, you re-create a new MyPage instance which will run its ngOnInit()

Re-creating the page every time will lose page data. Any developer that uses *ngIf to hide/show pages will have to save page data somewhere else when hiding the page and recover them when re-creating the page. This can be a pain for maintaining the wizard state...
In old wizard we're only visually showing/hiding and filtering the page through clrWizardStepIsSkipped. What's the design consideration regarding this feature in new wizard?
https://github.com/vmware/clarity/search?utf8=✓&q=isSkipped

@yaoolu
Thanks for the feedback.
I will answer what I can and leave the floor open for @youdz to fill in or correct any details I may miss.
The skipped feature of the old wizard was always a hack. There are performance reasons why you would not want wizard pages lurking around after they are deactivated. Consider if you had a wizard with three or four workflows, each with several data grids within them.
I would say that the proper approach is to not store data in your pages. That's what models are for. The pages should be consumers of the data in the model. Not only does that make it easier to reset the wizard (because you have a clear picture of your data in the model) but it also limits the responsibilities and concerns of the view layer of your application.
If you want to inject your own views inside a page, I would recommend keeping your models above those injected views. That way the state of your data is all-in-one place. If you wanted to pass that model down to your injected pages, I believe you could do that. If you needed the page to communicate up to whichever layer holds your model, you would likely need a service.

I have verified that bullet point 2 is fixed with the changes in #877
We may still want tweaks in the resulting behavior but we should open those as additional enhancements/fixes.


Fix integer overflow at the reservoir sampling

As the Reservoir sampling implementation is shared across shards and partitions, it may process more documents than an integer value can hold.
It must be protected against integer overflows to not add more that the defined maximum samples to the list (this limit is also in the integer range and such supporting sample sizes > integer is not needed).
The integer overflow results in bypassing the maximum samples boundary and can lead to node crashes due to OutOfMemory exceptions.

@mfussenegger I've add a commit to early terminate once this integer limit is reached.
Could you have another look please?


Don't fail with error when bash is not found or too old

As discussed in #2152 and #2200, click does not support bash shell autocompletion for bash versions older than version 4.4. I understand this and the rational behind this decision, and I am not requesting that this should be changed. However, the way that click makes developers aware of this version limitation has caused an issue with the ability for autocompletion generation to be scripted.
I have developed a CLI tool using click and I have tried to package it for the Homebrew package manager. As a part of the installation script, autocompletion scripts for bash, zsh, and fish must be generated at installation time. Homebrew isolates builds by removing /usr/local/bin and all user PATHs that are not essential for the build. This means that a newer version of bash (>4.4) will not be present at build time, even if it is present on the system, which causes click to fail to generate bash autocompletion, even if a user has a newer version of bash installed on their system:
Traceback (most recent call last):
  File "/Users/Olivia/Code/tldr-man/.venv/bin/tldr", line 6, in <module>
    sys.exit(cli())
  File "/Users/Olivia/Code/tldr-man/.venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/Olivia/Code/tldr-man/.venv/lib/python3.10/site-packages/click/core.py", line 1050, in main
    self._main_shell_completion(extra, prog_name, complete_var)
  File "/Users/Olivia/Code/tldr-man/.venv/lib/python3.10/site-packages/click/core.py", line 1125, in _main_shell_completion
    rv = shell_complete(self, ctx_args, prog_name, complete_var, instruction)
  File "/Users/Olivia/Code/tldr-man/.venv/lib/python3.10/site-packages/click/shell_completion.py", line 45, in shell_complete
    echo(comp.source())
  File "/Users/Olivia/Code/tldr-man/.venv/lib/python3.10/site-packages/click/shell_completion.py", line 326, in source
    self._check_version()
  File "/Users/Olivia/Code/tldr-man/.venv/lib/python3.10/site-packages/click/shell_completion.py", line 314, in _check_version
    raise RuntimeError(
RuntimeError: Shell completion is not supported for Bash versions older than 4.4.

This error is caused by the following function, which will  make bash autocompletion simply fail if it detects that an incompatible version is being used: https://github.com/pallets/click/blob/f45198a3bcaf41d72d31273f9e6a2e3dfeccd19b/src/click/shell_completion.py#L304-L325
It makes sense for bash autocompletion generation to always succeed, like it does for both zsh and fish (zsh and fish autocompletion generation will succeed no matter what, even if neither shell is present on the system). While it is important to notify the user if they are using a version of bash that is too old to be supported, it is a bug for this to cause autocompletion generation to fail entirely. I propose for these error messages to be changed into warning messages that are still displayed, but do not prevent the generation from succeeding.
I am willing to submit a pull request myself with the proposed changes if these changes are wanted.
Environment:

Python version: 3.10.12
Click version: 8.1.3

autocompletion scripts for bash, zsh, and fish must be generated at installation time.

No they don't, they can be generated at build time and installed to the correct locations.

autocompletion scripts for bash, zsh, and fish must be generated at installation time.

No they don't, they can be generated at build time and installed to the correct locations. That's actually the intended workflow when distributing an application.

With Homebrew, packages are built and installed in the same formula. Unless I misunderstood you?

I didn't realize it was built on the user's machine. I'm fine with modifying the check to be a warning at generation and an error at runtime. Happy to review aPR.

Thank you! I'll develop and submit a PR for review tomorrow.

A quick clarification: by "error at runtime", do you mean checking the bash version at the start of the bash script itself, and displaying the error message then?

The completion script calls click to produce the results, there's a method in the bash completer class that can be modified.

I moved the version check from the source method into the get_completion_args method, and it works. However, there is a problem with this implementation: Since bash completion does not work with versions <4.4, the completion script isn't able to call click to produce the results, since the script fails to call complete with the error bash: complete: nosort: invalid option name. This means that the check will not run in common usage. Notably, this does resolve the issue (Homebrew will now generate Bash autocompletion).
I see three solutions to this problem:

Write the BASH_VERSION check inside the Bash script itself by changing _SOURCE_BASH and then remove _check_version() entirely.
Publicly document the version requirement for Bash so that the error message is no longer required, and then remove _check_version() entirely, allowing for the autocompletion to fail with the error bash: complete: nosort: invalid option name.
Modify _check_version() to print a warning to stderr instead of raising an error.

Draft implementation in #2576.


statistics cards layout

they're not evenly distributed, maybe we can make them take the space dynamically somehow?

verified on:

Devnet
13a87cf


Start testing using Python 3.9

Will add this once https://github.com/actions/virtual-environments/issues/1740 is closed.


Types within HandlerFunc

Hi,
Is your feature request related to a problem? Please describe.
Don't know if this already exists but since there is no way to ask questions only bugs and feature requests I will go with feature request.
I usually go with request and response types within my handler functions. As recommended
https://pace.dev/blog/2018/05/09/how-I-write-http-services-after-eight-years.html
func (s *server) handleSomething() http.HandlerFunc {
    type request struct {
        Name string
    }
    type response struct {
        Greeting string `json:"greeting"`
    }
    return func(w http.ResponseWriter, r *http.Request) {
        ...
    }
}

When I add //@Success 201 {object} response
I see an error: ParseComment error in file /gofile.go :cannot find type definition: response
It looks like types within function will not be parsed.
Describe the solution you'd like
Parsing types within functions would be nice. Maybe there is a switch or parameter which I am not aware of.
Describe alternatives you've considered
It tried to give guidance in the comment like //@Success {object} handleSomething.response
Additional context
Since multiple handler functions could use the approach there could be of course be multiple types for request and response within the package.

Using this approach for building a RESTfull service the objects in your handler is not reusable and you may end-up having various definitions of the same entity.
Anyway, swagger doesn't parse code inside a function only the comments/annotation on top of them.


gpio: mcp23s17: use gpio_driver_data not config

fix incorrect gpio driver struct used in driver data.
This should not have caused any issue as currently
sizeof(gpio_driver_data) == sizeof(gpio_driver_config).
Signed-off-by: Simon Frank<EMAIL_ADDRESS>

@mbolivar-nordic The PR is ready to be merged.


Issue #1096 - Add Save-PodeRequestFile functionality - disable overwrite and return filepaths

Description of the Change
Added functionality to make it possible to disable overwriting files, and instead add a numerical suffix to the filename if it already exists in the directory. Enabled via Switch parameter.
Added functionality to make it possible to return a list of filepaths of the uploaded files. Enabled via Switch parameter.
Help comment updated to include parameters and an example.
Related Issue
Resolves #1096
Examples
Parameter NoOverwrite
If supplied, disables overwriting already existing files, and adds a numerical suffix to the filename if necessary.
F.x. if C:\pode\test.txt already exists and test.txt is uploaded again, it will be saved as C:\pode\test (1).txt
Parameter Return
If supplied, filepaths of all saved files will be returned as a list.
Usage
$filePaths = Save-PodeRequestFile -Key 'avatar' -Path 'F:/Images' -NoOverwrite -Return
Result
In the above example, if F:/Images already contains test.jpg and you're uploading the files test.jpg and asdf.jpg. test.jpg will be saved as test (1).jpg and asdf.jpg as asdf.jpg, the function will then return a list containing the following filepaths:
F:/Images\test (1).jpg
F:/Images\asdf.jpg

Hey @acommonusername,
Thanks for the PR! Looking at this there's quite a few use cases this would have to cover when -NoOverwrite is supplied:

File names with no extension: .gitignore
File names with multiple .: example.2023.05.11.txt
Files being saves to a PS Drive or SMB, in this instance Test-Path has to be used as [Path]::Exists(...) doesn't work
Existing file names with the (id) suffix that could range from 1 > 1000 - ie: this would result in 1000 exists checks

I have built something similar once before, and it would be worth moving the "file ID suffix builder" into it's own function in Private/Helpers.ps1; checking if -NoOverwrite was supplied back in Save-PodeRequestFile, and then calling the new function.
Using the logic I've built before, and combing your logic produces the following (which should cover all use-cases above):
param(
    $FilePath = 'C:\temp\tests.txt'
)

# check the initial file path, and use that if it doesn't exist
if (!(Test-Path $filepath)) {
    return $filepath
}

# vars for some regex
$fileRegex = '(.+)(\.(?=[^\\\/\.]+$))'
$idRegex = '^.+? \((?<id>\d+)\).*$'

# split the file path into base path and name
$filepath, $filename = $filepath -split '[\\/](?=[^\\\/]+$)'

# build a wildcard file name pattern for filtering existing files
# the regex check is for ".name" use cases where there is no extension
if ($filename -imatch $fileRegex) {
    $wildFilename = $filename -replace $fileRegex, '$1 (*)$2'
} else {
    $wildFilename = "$($filename) (*)"
}

# calculate the next "id" based on existing files
$nextId = 1
$files = @(Get-ChildItem -Name -File -Force -Path $filepath -Filter $wildFilename |
    Sort-Object -Property { $_.Length },{ $_ })

$lastId = $files[-1] -replace $idRegex, '$1'
if (($file.Length -eq $lastId)) {
    $nextId = $lastId + 1
} else {
    foreach ($file in $files) {
        if (($file -replace $idRegex, '$1') -ne $nextId) {
            break
        }

        $nextId++
    }
}

# generate the new file name
if ($filename -imatch $fileRegex) {
    $filename = $filename -replace $fileRegex, "`$1 ($($nextId))`$2"
} else {
    $filename = "$($filename) ($($nextId))"
}

# combine the new file name with the original base path, and return
$filepath = [System.IO.Path]::Combine($filepath, $filename)
return $filepath

For the -Return flag, you can actually return values directly from the foreach into an array and then return that 😄
# save the files
$filePathsList = @(foreach ($file in $files) {
    # logic

    if ($Return) {
        $filePath
    }
})

if ($Return) {
    return $filePathsList
}

Saves building list objects and appending to them 😉


RunspaceInvoke  is missing in Version7.4.1

Summary of the new feature / enhancement
I have found some alternatives in the discussion.
But, If I want to output an error message, which method should I use, I don't seem to have found an alternative in PowerShell.
out IList errors
public Collection Invoke(string script, IEnumerable input, out IList errors)
{
        if (_disposed == true)
        {
            throw PSTraceSource.NewObjectDisposedException("runspace");
        }
        if (script == null)
        {
            throw PSTraceSource.NewArgumentNullException("script");
        }

        Pipeline p = _runspace.CreatePipeline(script);
        Collection<PSObject> output = p.Invoke(input);
        // 2004/06/30-JonN was ReadAll() which was non-blocking
        errors = p.Error.NonBlockingRead();
        return output;
}

Proposed technical implementation details (optional)
No response

How about:
using (var pwsh = PowerShell.Create())
{
    pwsh.AddScript("Write-Error 'Bad'").Invoke();

    PSDataCollection<ErrorRecord> errors = pwsh.Streams.Error;
}

I'm not very familiar with the methods in Powershell.Is it possible to transmit error information to an object?
Just like:
using (var pwsh = PowerShell.Create())
{
    pwsh.AddScript("Write-Error 'Bad'").Invoke();

    PSDataCollection<ErrorRecord> errors = pwsh.Streams.Error;
    test=pwsh.AddScript("Write-Error 'Bad'").Invoke().xx(errors);
}

How about:
using (var pwsh = PowerShell.Create())
{
    pwsh.AddScript("Write-Error 'Bad'").Invoke();

    PSDataCollection<ErrorRecord> errors = pwsh.Streams.Error;
}

Thank you for your help. I'm not very familiar with the methods in Powershell.Is it possible to transmit error information to an object?
Just like:
using (var pwsh = PowerShell.Create())
{
    pwsh.AddScript("Write-Error 'Bad'").Invoke();

    PSDataCollection<ErrorRecord> errors = pwsh.Streams.Error;
    test=pwsh.AddScript("Write-Error 'Bad'").Invoke().xx(errors);
}

Invoke will return the output stream, you need to access Streams.Error after you run the invoke to get the error stream (and other streams).

Invoke will return the output stream, you need to access Streams.Error after you run the invoke to get the error stream (and other streams). See https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.powershell.invoke?view=powershellsdk-7.0.0#System_Management_Automation_PowerShell_Invoke for details on Invoke() and https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.powershell.streams?view=powershellsdk-7.0.0 for details of the Streams property.

Okay thanks Jordan, l've solved it now.


Feature Request: Toggle Password visibility while changing the password.

Is your feature request related to a problem? Please describe.
It is necessary for the user to know what password he/she has entered.
For this, there must be a button which toggles its visibility.

Describe the solution you'd like.
We can use react hook useState for implementing this functionality.
Additional context (if any)
I am contributor at gssoc'22.
Please assign this issue to me.

@Siddhesh777 Go ahead 👍


pyluxcoreforblender mismatched signature

Hi,
After I've compiled my branch after merging with the latest master, I've been unable to enable the LuxCoreRender on Blender
Using the latest BlendLuxCore, I've got the following error:
Traceback (most recent call last):
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/engine/base.py", line 84, in render_final
    final.render(self, depsgraph)
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/engine/final.py", line 49, in render
    _render_layer(engine, depsgraph, statistics, layer)
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/engine/final.py", line 61, in _render_layer
    engine.session = engine.exporter.create_session(depsgraph, engine=engine, view_layer=view_layer)
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/export/__init__.py", line 112, in create_session
    if not self.object_cache2.first_run(self, depsgraph, view_layer, engine, luxcore_scene, scene_props, is_viewport_render):
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/export/caches/object_cache.py", line 67, in first_run
    luxcore_scene, scene_props, is_viewport_render)
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/export/caches/object_cache.py", line 115, in _convert_obj
    luxcore_scene, scene_props, is_viewport_render)
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/export/caches/object_cache.py", line 146, in _convert_mesh_obj
    is_viewport_render, use_instancing, transform)
  File "/home/daniel/.config/blender/2.81/scripts/addons/BlendLuxCore/export/mesh_converter.py", line 41, in convert
    material_count)
Boost.Python.ArgumentError: Python argument types in
    Scene.DefineBlenderMesh(Scene, str, int, int, int, int, int, list, list, int)
did not match C++ signature:
    DefineBlenderMesh(luxcore::detail::SceneImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int)
    DefineBlenderMesh(luxcore::detail::SceneImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int, boost::python::api::object)
ERROR: Python argument types in
    Scene.DefineBlenderMesh(Scene, str, int, int, int, int, int, list, list, int)
did not match C++ signature:
    DefineBlenderMesh(luxcore::detail::SceneImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int)
    DefineBlenderMesh(luxcore::detail::SceneImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int, boost::python::api::object)
Error: Python argument types in
    Scene.DefineBlenderMesh(Scene, str, int, int, int, int, int, list, list, int)
did not match C++ signature:
    DefineBlenderMesh(luxcore::detail::SceneImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int)
    DefineBlenderMesh(luxcore::detail::SceneImpl*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned int, boost::python::api::object)

The definition is in: https://github.com/LuxCoreRender/LuxCore/blob/044d55f50de67177ff9789398e3712f36fd6b638/include/luxcore/pyluxcore/pyluxcoreforblender.h#L73-L90
I've modified this line and the implementations to match:
extern boost::python::list Scene_DefineBlenderMesh1(luxcore::detail::SceneImpl *scene, const std::string &name,
		const size_t loopTriCount, const size_t loopTriPtr,
		const size_t loopPtr,
		const size_t vertPtr,
		const size_t polyPtr,
		const boost::python::list &loopUVsPtrList,
		const boost::python::list &loopColsPtrList,
		const u_int materialCount,
		const boost::python::object &transformation);

extern boost::python::list Scene_DefineBlenderMesh2(luxcore::detail::SceneImpl *scene, const std::string &name,
		const size_t loopTriCount, const size_t loopTriPtr,
		const size_t loopPtr,
		const size_t vertPtr,
		const size_t polyPtr,
		const boost::python::list &loopUVsPtrList,
		const boost::python::list &loopColsPtrList,
		const u_int materialCount);

Now it is apparently working.
Is that change reasonable?
I don't know why this was not working for me while working on the Azure build I've downloaded.
My branch is just the one related to the Triplanar Mapping, so I don't I've changed anything related to that

The Scene_DefineBlenderMesh functions have been changed recently in LuxCore due to the multiUV support. boost::python::list is derived from boost::python::object. It should work with the first implementation, too.
The function definition in the error message expects a pointer (unsigned long) at position 8 and 9 which was the old definition. Are you sure that you used the recent pyluxcore.pyd within the BlendluxCore/bin directory? It seems that you combined a recent version of the Blender Addon with an old version of pyluxcore.

I have just compiled that and cloned the BlendLuxCore from the repo.
 I probably messed up something
Thanks


documentation on privilege escalation providers

I'm submitting a

[ ] bug fix
[ ] feature
[x] documentation addition

What is the current behaviour?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Documentation is needed for the new features in PR #479 and #481
Please tell us about your environment:
Version (comtrya --version):
Operating system:

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 26.84%. Comparing base (b574682) to head (ae7e048).
Report is 56 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #482      +/-   ##
==========================================
- Coverage   28.59%   26.84%   -1.75%
==========================================
  Files          85       85
  Lines        2301     2395      +94
==========================================
- Hits          658      643      -15
- Misses       1643     1752     +109

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Make docker update support port management as well

This was the most wanted use case in #3285. Something like:
docker update -p 80:8080 --rm-port 1234 containername
docker update -P anothercontainer # expose all unexposed ports

would do.
See the original issue for the rationale.

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

I also need this future

USER POLL
The best way to get notified of updates is to use the Subscribe button on this page.
Please don't use "+1" or "I have this too" comments on issues. We automatically
collect those comments to keep the thread short.
The people listed below have upvoted this issue by leaving a +1 comment:
@danpopHP

+1

+1 It would be great to be able to change configuration on a running container!

Except cpu, and mem. I wish below can be change too:
-e 'EXCLUDE_PORTS=5000,23333,24444'
--expose '25555'
-p 33000:80
--log-driver=syslog
--log-opt syslog-address=udp://localhost:514  \

I also need this feature. I want to expose a host port when the  container is existing

Until docker can apply those changes without killing and recreating a container, maybe an "-R" option can be implemented to docker update just as a wrapper for those action.
This would allow us to already use docker update (as an API) even while it's not yet "feature complete". Currently it's a ugly to have some things that require a kill/rm/run but other things that can be changed using update already.

It is a catastrophe, that you couldn't develop this trivial feature long ago.

It's surprising that a so obvious functionality is not already present.

It's surprising that a so obvious functionality is not already present.


chore: fix generate scripts

Our release script was failing because of this
https://github.com/eslint-community/eslint-plugin-mysticatea/actions/runs/3466159814/jobs/5789739583

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

Coverage data is based on head (10794f2) compared to base (a38dc5d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #44   +/-   ##
=======================================
  Coverage   97.18%   97.18%
=======================================
  Files          39       39
  Lines         391      391
=======================================
  Hits          380      380
  Misses         11       11

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

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


ISystemOperations.AuthenticateAsync now returns AuthResponse.

Fixes #493

@galvesribeiro - PTAL

Just one thing before we merge. Why is the tests failing? I'm out of my desk now and I can't check. Can you please fix it and push the update? Thanks!

It's failing MonitorEventsAsync_Succeeds. Running locally, it appears to be an intermittent failure.

@galvesribeiro @Emdot  errors on StreamUtils.MonitorStreamAsync methods are not related to this changeset but to previously existing changes.
Previous ContainerOperations.GetContainerLogsAsync task cancellation by disposing stream had some pitfalls, as it was disposing a stream while a streamReader was consuming from it.
Should be working fine now, pushed to #487  .
@Emdot feel free to review/fix/improve/criticise this PR. There is integrity within your criteria

@galvesribeiro, can you retrigger the build?

Just did. Same error as it seems... ☹

I see that this is a known bug in the test case. "// On CI/CD Pipeline exception is thrown, not always"
I think there's more of a problem here than I'm willing to fix:

It looks like the event streams are delayed. Some of the events from CreateImageAsync don't arrive until after MonitorEventsAsync starts, so they show up in _onJSONMessageCalled. Some of the events from TagImageAsync don't arrive until after the assertion.
I can't be sure that that's what's happening, since stdio might be buffered too. Adding some Console.Out.Flush and Console.Error.Flush calls between commands can help check for that.
This probably isn't what's going wrong in this case, but it's a bug anyway: Using MonitorEventsAsync this way has a race condition. Unless you await MonitorEventsAsync's Task, you can't guarantee that the monitoring has started, so you can miss messages. The fix would is to replace MonitorEventsAsync with something like StartEventMonitorAsync that returns a subscription.

Would you accept a PR to disable the broken test case, until someone fixes the underlying problems?

I wrote that up as #502.

@Emdot move the call to include a call to remove the image after tagging it, that should be enough in this case
await _client.Images.CreateImageAsync(new ImagesCreateParameters { FromImage = "hello-world" }, null, progressJSONMessage);
var task = Task.Run(() => _client.System.MonitorEventsAsync(new ContainerEventsParameters(), progressMessage, cts.Token));
await _client.Images.TagImageAsync(repository, new ImageTagParameters { RepositoryName = repository, Tag = newTag });
await _client.Images.DeleteImageAsync($"{repository}:{newTag}", new ImageDeleteParameters());
cts.Cancel();

I'm unwilling to fudge the tests to make them pass. If you fix the problematic code (as noted above) or disable the test, then this PR can proceed.


Prevent self-constraint

I just wrote this by mistake:
someView.verticalAnchors == someView.verticalAnchors

I meant to write the similar but distinct:
someView.verticalAnchors == someViewContainer.verticalAnchors

This could be caught at run-time by asserting that the sides of == are not ===.

Thanks for the input, but I'm going to leave this out for now. Extra logic required with every constraint created, to check if the LHS and RHS are "equal", and that doesn't seem like a good tradeoff for most cases.


[WIP] Make repo compatible with PRBT

Depends on https://github.com/rosin-project/automatica18_scan_and_plan_demo/pull/2.
Simulation is working if:

[ ] <inertial> block is added to base_link (ref)

Further improvements:

[ ] Substitute psir in own packages / files with prbt

The PR works for me :+1:

PR is finished now.
Except:

Simulation is working if:
inertial block is added to base_link (ref)

Depends on https://github.com/PilzDE/pilz_robots/pull/16


Fix crash on quit in CEF 2171 linux

Note: This is a merge into jasonsanjose/cef_2171_linux
Merge work from PR #458 from @nathanial. Update code to work with linux 2171.
@nethip can you try this and see if it fixes the bug? It seems to work better for me. It only crashed on quit once after a few dozen tries where the previous code crashed pretty consistently in my VM.

@jasonsanjose I had already made the change which was done by @nathanial, but I also ran into similar conditions like what you ran into. After this change the crash occurrence has reduced but the crash is still there. One of the side effects I observed with this change was to do with process quit. Though the window closes after clicking on the close button, the process was not getting killed at all(I saw this in the system monitor). Let me know if you are seeing similar results. If not we should merge this change.

@nethip Hmm, for once I have good news. For me, when the window closes (either the X or File > Quit) the processes also go away. Maybe try rebuilding with this branch?

So this is needed before PR #499 can be merged?

Not needed anymore. See https://github.com/adobe/brackets-shell/pull/619


Spoof dpi - Stopped working in Russia 05.10.24, worked perfectly for 2 months

Version
Spoof-dpi-v0.12.0
Operating System
OS Sequoia 15.0.1
How are you running SpoofDPI?
Just an app, worked perfectly for 2 months
Youtube doesnt work, twitter too, :(
Description
Stopped working yesterday's evening, nothing helped.

Does not work either for me ever since Oct. 5, 2024. Until this day it have worked perfectly for more than a month
Spoof DPI ver.:0.12.0
Mac OS ver.: Sonoma 14.6.1
Initially installed and then re-installed in order to make it work again (no luck though) via Home Brew.
Cannot reach out for YouTube, Linkedin, Twitter etc now

If doesn't working try to change the dns (<IP_ADDRESS> for example). It worked for me

macOS: Sonoma Version 14.7
ISP: Rostelecom
I confirm that after Oct. 5 SpoofDPI stoped working. Before that everything worked perfectly, although I noticed some delays in video stream transfer speed recently.
I've been trying fixing it since Oct. 5, didn't succeed so far. I tried --window-size 0 (also 1 and 2), --dns-ipv4-only and --dns-addr <IP_ADDRESS> nothing helped.

There is already an ongoing discussion in #258.


sync release_2.2.0_final to master

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 2
- Added 5

See the complete overview on Codacy


[BUG]: Colossalai-OpenMoE example failed to converge

🐛 Describe the bug
Setup
I am currently running the Colossalai/examples/language/openmoe project with the following experimental setup:

datasets: load_dataset("yizhongw/self_instruct", "super_natural_instructions"), I also tried "wikitext-2"
model: openmoe-base
batch size: 2
2 GPUs
parallel strategy:

pp_size=1
dp_size=1
ep_size=2
extra_dp_size=2
zero_stage=2

Issue 1: loss value is very large and cannot converge
I've encountered challenges during the training process where the convergence seems unachievable. The training loss value persists at an exceptionally high level (exceeding $1e10$) even after running 10 epochs. The logged information provided below showcases three final loss values: aux_loss, z_loss, and ZCrossEntropy(ce) loss. While the first two loss items appear normal, the ce loss is significantly larger.

Furthermore, in the default setup of the openmoe project, the data format is bf16. Considering this, I suspect the issue might stem from an overflow problem. Consequently, I attempted using fp16 (fp32 seems not supported in zero mode) but still encountered the same problem.
issue 2: when disable loading checkpoint, the loss value will be nan
Additionally, upon commenting out these two lines, the loss value tends to become nan. I wonder what datasets the provided pretrained weights (huggingface hpcaitech/openmoe-base) are based on?
https://github.com/hpcaitech/ColossalAI/blob/3dbbf83f1c46ae2a3b2947e1a5925c2b8af9f7b1/examples/language/openmoe/train.py#L314-L315

Are there specific aspects I should pay attention to or common pitfalls that might cause model training failures when working with openmoe? Your insights or suggestions on resolving this issue or optimizing the project would be immensely helpful. Thank you for your assistance!
Environment

torch 2.0.1+cu118
python 3.8.12

Thank you for your feedback; we will address this issue as soon as possible.

I also encountered this problem


[packager] Hangs on: index.ios.js  [development, non-minified, hmr disabled] 0%

Is this a bug report?
Yes

Have you read the Bugs section of the How to Contribute guide?
Yes

Environment

react-native -v:
react-native-cli: 2.0.1
react-native: 0.47.0
node -v:
v8.2.1
npm -v:
5.3.0
yarn --version:
0.27.5

Then, specify:

Target Platform: iOS, Android

Development Operating System: macOS

Build tools: xcode, android studio.

Steps to Reproduce

(Write your steps here:)

Start new project with react-native init BuildHangs
Run react-native run-ios within BuildHangs directory
Wait for ever for packager to build index.ios.js file.

Expected Behavior

Initial react-native application should start on iphone emulator.
(Write what you thought would happen.)
Actual Behavior

Nothing happen, it seams like index.ios.js file is not compiled, compilation process hangs (or exit). Packager hangs with output:
Loading dependency graph...
Bundling `index.ios.js`  [development, non-minified, hmr disabled]  ░░░░░░░░░░░░░░░░  0.0% (0/1)

(Write what happened. Add screenshots!)
Everything was working fine until today afternoon when it immediately stopped working. Probably brew update && brew upgrade has updated /something/ and react-native got broken.
Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

+1
2017-08-02 22:22:12.250 [warn][tid:main][RCTBridge.m:114] Class RCTCxxModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?

+1

Can confirm @prakashsejwani. Uninstalling watchman brew uninstall watchman got this working again for me as well.

Uninstalling watchman fixed this issue for react demo app, but in my main project I'm facing issue described in #910

Not sure if related, but regarding watchman my Packager console has this output:
React packager ready.

Loading dependency graph.../Users/<user>/Library/LaunchAgents/com.github.facebook.watchman.plist: Could not find specified service

Loading dependency graph, done.
Bundling `index.ios.js`  [development, non-minified, hmr disabled]  ░░░░░░░░░░░░░░░░  0.0% (0/1)Launching Dev Tools...
Bundling `index.ios.js`  [development, non-minified, hmr disabled]  100.0% (599/599), done.

Running launchctl unload -F $HOME/Library/LaunchAgents/com.github.facebook.watchman.plist fix both issues for me. Now I'm able to run react-native with watchman again :)
Thanks to @danielfarrell for figuring this out on https://github.com/facebook/watchman/issues/511#issuecomment-319764222

@dluksza how to open hmr?

@youmyyou I don't know how to open hmr, never did that and never was interested in opening it

@dluksza How do you open the dev menu?

@youmyyou could you figure out how to open hmr?

@joshuakelly work for me, tks.

I'm currently experiencing the same issue too right now. Uninstalling watchman only worked the first time. Running launchctl unload -F $HOME/Library/LaunchAgents/com.github.facebook.watchman.plist also doesn't work.

#15671 i fixed this issue and posted my fix hope It helps you


[Dio Manager] Use in web when the cookies is disabled

Request Statement
We are using cookies to store the authentication token, however, there will be issue if the client disable the cookies on their browser due to certain policy.
Since cookie manager has persistent functionality, we are thinking if it is possible to use cookie manager in web?
Solution Brainstorm
If not mistaken, the cookie jar which is using by cookie manager should have support for flutter web. It seems feasible to support the cookie manager for web.

cookie_jar is not working on Web either. So "support the cookie manager for web" should be impossible because of that, and the Web platform handles Cookies by itself. Persistence is only a mechanism for non-Web platforms.
Please provide more info if you think there are still unclear things after this comment.

Hi @AlexV525 ,
Thanks for looking into this.
I thought cookie jar is using universal_io package, and the package is supported for web?

A cross-platform dart:io that works on all platforms, including browsers.
You can simply replace dart:io imports with package:universal_io/io.dart.

Nevertheless, I can implement my own storage which is based on shared preference or hive which is supported for web.
The ideal case is to force user to enable the cookies but unfortunately it may not be possible due to certain policy, according to the customer. Does this make sense?