WrapAction does not respect hard wrap setting

Thanks for fixing #40!
As of version 1.6.0-SNAPSHOT, the WrapAction no longer respects the "Hard wrap at" setting. I'm not sure if the fix for #40 broke this, or if it was some other change.
Example
Both comment paragraphs had the WrapAction applied to them. The vertical line is at the 80-character hard wrap limit.

Settings

IDE version

Interesting. @mgartner I couldn't reproduce.

However, can you check if you have a custom right margin override setting?

The plugin honors that override if it's present.

I do have it set, but also at 80:

The problem may specific to certain platforms.
I am using the plugin with PyCharm on two systems, one running Windows and the other running Pop!_OS (similar to Ubuntu).  When I updated the plugin today on both systems, there were no problems on Pop!_OS, but on Windows, the wrapped text extended past column 80 (perhaps wrapping to column 100).  I couldn't find any relevant difference in the PyCharm settings on the two system.  In particular, both had the hard wrap set at 80.
On the Windows system, setting the right margin override to 80 didn't change the behavior.  (Before today I have never tried the right margin override--instead I have just had the hard wrap set to 80.)

Well, that's interesting. I'll try to reproduce on Windows!

FWIW, I'm running macOS 11.5.

👍 I was able to reproduce on a Mac and am looking at it now.

I will say I also see this problem on my 11.5 Mac as well.

Can confirm, after updating from 1.4 to to 1.6.0-SNAPSHOT, on macOS 11.4, the plugin no longer respects the "Right margin override" setting when wrapping JS comments that use the // operator.  Wrapping does occur, but the margin setting is not respected.

Should be fixed in 1.7.0, now published to the Plugins Marketplace.

The problem is resolved on my Windows system.  Thank you so much!  This plugin makes a huge difference in my daily work.

Thanks @abrookins!!!

Thanks @abrookins! I've been living in the dark ages these past few weeks.


My AdMob account got disabled using this plugin...

The reasons named in the email from Google were:
Violations found:

Enables dishonest behavior:
We do not allow content that:
helps users to mislead others.
promotes any form of hacking or cracking and/or provides users with instructions or equipment that tampers with or provides unauthorized access to software, servers, or websites.

I am more than a little shocked at this, as I have implemented all the ads as per instructions. Anyone else had a similar experience?

Hi @gkovac42
Did you add your store link to the Admob dashboard? Looks like your app was reviewed and violate rules
I don't think using this package would violate any rules. Not sure why you think this is a bug?

I don't know. I'm just desperate I guess. This came out of the blue, without any prior warnings or further explanations from the AdMob team. I'm utterly confused. I'm just trying to display a few banner ads within my Play Store published game. I have been doing it for more than a year, using the same ad setup without any issues, and only switched to this plugin recently, so I thought I'd ask here. My appologies if it's completely unrelated to this plugin.

@gkovac42
I suggest you contact admob support, to make sure it is the misdetection, Perhaps some user content violated rules? I am not sure.
This definitely doesn't look like a plugin issue as the reasons are not related to the package functionality
Closing,  If you disagree, please write in the comments and I will reopen it.
Thank you

Same case :(


Update test-coverage.md

Please re-submit this pull request - explaining this change.

<source> generates a warning and cancels code coverage.


Example Room

Create a room with Kirk's art to see how everything works together.

Didn't merge as separate branches. Accidentally uploaded it to main.


Relicense 02-html-full as CC0?

@wilkos-dans --  is it possible to re-license 02-html-full to CC0 license? I am not sure who is the copyright holder as you adapted it from a previous example?
I've included a cache of 02-html-full in the unit tests for signposting.py but this raised a few challenges:

The CC-BY license require I attribute authors -- so I modified LICENSE however the file says the author is Josiah Carberry (the example ORCID) -- so this is misleading
I am unable to modify the HTML without also adding notification of changes. For instance I wanted to remove the schema.DC bits that are not related to signposting.

Apache Software Foundation considers CC-BY as a Category B license - that "maybe" included. This is mainly due to CC-BY having anti-DRM measures. This is generally a good idea for AV media, but for this HTML test it means a theoretical DRM-Signposting library based on signposting.py may need to delete 02-html-full. Such "restrictions on use" are counter to open source licenses like Apache License and GPL.

Hi @stain, Yes, I think we can. The license is meant as an implementation example, so imho we can change this to whatever suits us. if CC0 is more practical than we'll use that, or apache-2. Also the author mentioned is not the author of the file I took as an example. I think we will need to change this author to a non-extisting person? I dont think we need to mention the 'previous' example copyright holder, for this is just an implementation of open standards? Anyone will come up with this result in the end. I'd be happy to make the changes in the 02-full-example. Should I do that in this repository? The LICENSE file and the accompanying json should then also be edited, I guess?

Hi, @wilkos-dans -- are you able to propose the above change to this example, or should we have a go at the a2a hackathon tomorrow?

Hi @stain , I am not really into licensing. But what I understand from you until now, is that the given ORCID of the fictitious person, is not appropriate under the proposed CC0 license? If so, we can change the name/orcid to mine for instance?
What about the org_id/ROR, which is an (arbitrary) existing institute? Should we also use another ROR then? Like DANS' ROR? https://ror.org/008pnp284


Minor doc fixes

Various modifications, I advise reading commit by commit.
I think enclosing explicit types written in the dosctring with _ is by far the easiest and most robust solution to avoid the issue we have currently with the type annotation leaking into the Parameters section.

Here's the difference with align.
Before:

After:

Sorry this PR is becoming fluffy, I just had tons of small stuff in mind 😅

Concerning commit 73d7771, it does exactly the same as the previous version, it's just a little cleaner 😉


[Locale modal]: optimize component to lower DOM node count

Currently this component has a DOM node count which can be lowered. Solutions to consider are removing duplicate/unnecessary nodes and lazy loading content.
Node audit

Nodes
Comments
Inters

2734
770
1155

@kennylam might be good time to redesign the locale modal

@kennylam @ljcarot I think there's work on this underway from @areagan1030

@kennylam @ljcarot @andy-blum Yes, we do have some work in the pipeline being guided by Joseph Dombroski. Putting a push on getting this to a good spot, so we can set up some time to share with Carbon team and keep this moving forward.


How can I off right alt?

Issue Report Checklist

[V] Searched the issues page for similar reports
[V] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Greetings.
I use spyder first time today, but some problem occured.
As you know saw my ID, I am korean. so I using right alt for change English-Korean input.
I am using spyder at Ubuntu 20.04 LTS, so set right alt deactivates its original function and uses it as a Korean-English key.
It works at Pycharm, Python IDLE, chrome, gedit, and other programs except settings. (lannguage change is freely!)
But when I use spyder, it works by right alt key.
No other key input to switch to the input period, so I cannot add footnotes.
can you help me about deactive right alt key work as left alt key?
+PS.
I deactivated ALT_R function, but I still cannot Korean-English change.
What steps reproduce the problem?

What is the expected output? What do you see instead?
input language changes between English-Korean(this function that I set right alt key's)
Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

Spyder version: 4.2.5
Python version: 3.8
Qt version:
PyQt version:
Operating System name/version: Ubuntu 20.04 LTS

Dependencies

PASTE DEPENDENCIES HERE

Hey @koreanraichu, thanks for reporting. I don't understand very well: what happens in other application after you press right alt? If you can post a video or animated gif of that (using Peek, for example), it'd be great. Thanks!

Hi @koreanraichu thank you for the feedback! I was trying to check this in a virtual machine but then I'm not totally sure to how to reproduce the problem you are having.
Checking, seems like the default system shortcut to change languages is Super + Space which works for me when using Spyder. However, seems like you set the Switch input source shortcut to be the AltGr key, right? I tried doing that but I was unable to set the shortcut just to AltGr or a combination containing AltGr.
Regarding Spyder my guess is that we are handling AltGr keystrokes as Ctrl+Alt at least in the Editor but not totally sure. What happens if you try to use the shortcut to change input having the focus in the IPython Console, for example?
Let us know

@ccordoba12

Since the main language is Korean, I am writing while switching between Korean and English inputs. As you can see from this gif file, the right alt key plays a role in changing the input method. Usually, there is a separate key to change the language input, which is recognized as the right alt key on Linux.

This function works normally when input in programs such as pycharm, Google Chrome, and gedit, but it is not only available in spyder. If you look at the gif above, it says Hangul every time I change the input language, but the spelling does not show the sign Hangul and the language does not change. I solved the recognition with the right alt key, but the input language is not changing.

Hi.
Thanks for your fast feedback.
I tried super+space but It doesn't work. and, I set input scroll key for
alt+shift, but it doesn't works in spyder too.
Thanks.

@koreanraichu
Spyder는 qt 환경에서 실행 되는데 Spyder가 실행되는 환경에 QT 한글 입력기가 설치되지 않아서 발생하는 문제 같습니다. 이런 경우 리눅스 내부에 설치된 한글 입력 Library를 Spyder가 설치된 Python 환경에 복사해 주면 보통 해결됩니다.
저는 한글 입력을 위해 fcitx를 사용하고 Python은 anaconda를 이용하고 있어서 다음과 같은 명령어로 문제를 해결할 수 있었습니다.
cp /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so ~/anaconda3/plugins/platforminputcontexts

사용중인 한글 입력기(ibus, nimf, fcitx)환경과 Python 환경을 확인하시고 위의 명령어를 조금 수정하시면 Spyder에서 한글 입력이 가능할 겁니다.
좋은 하루 되세요.

@ok97465 복사해봤는데 안되네요... 저도 fcitx 쓰고 anaconda 쓰는 중이라서 복사했는데 안 먹힙니다.

@koreanraichu, did you install Spyder and fcitx-qt5 from conda-forge? As far as I understand, that's the only way to have Korean/Japanese/Chinese input for Spyder when using it through Anaconda on Linux.

@ccordoba12 I installed spyder by 'pip install spyder'. fcitx-qt5 from conda-forge mean install fcitx by 'conda install~' command? if this is right, I will try it.

I meant that you need to install Spyder by running the following commands in a terminal:
conda create -n spyder-env -c conda-forge python=3.8 spyder fcitx-qt5
conda activate spyder-env
spyder

That Spyder version should behave as the other Linux apps in your system.

Oh, that's what I understood.
I will try that and I will reply if problem not solved.
thanks for your answer!

@ccordoba12 OMG Thanks! you solved this problem!!!

No problem and glad you can use Korean input in Spyder now.
Closing this issue then since it's solved.


Works great apart from when using gmail

It was not working with gmail but then i used my own and it worked great! Love this script! So lightweight!

For gmail smtp, I recommend to use TLS protocol with port 587. See the example/send.php file.
Please take note that using your own password in gmail may not work as expected.
Its better to create application specific password and/or enable less secure apps.
https://support.google.com/cloudidentity/answer/6260879?hl=en
https://support.google.com/accounts/answer/185833?hl=en


Fix NaCl initialization issues when running on desktop OSes

Currently, usage of the "make run"/"make test" commands in the repository is burdened due to NaCl initialization errors returned by Chrome.
The errors are transient and go away after waiting for ~1 minute, but it's still making the development process much more cumbersome.
Meanwhile we don't officially support the Smart Card Connector app on non Chrome OS systems, we could look into fixing that issue in order to simplify development experience.
One potential idea is to add retries into our JS code that loads NaCl modules.

What would be required to get this working on non Chrome OS systems?

@hcldan Do you mean this particular bug report (delayed NaCl initialization in tests) or the Smart Card Connector in general? For the former, we're not actively investing into NaCl support anymore, given that the framework has been long deprecated.
As for the latter, the Connector app can technically work on desktop platforms, but in a typical user setup this would be useless, since the OS-level drivers/daemons already grab the USB access before Chrome. It can be made working, but after disabling those OS-level systems, which is obviously too cumbersome for the end user and would break other smart card applications that run outside Chrome. To put it differently, Chrome OS is unique in the sense that it doesn't have OS-level smart card drivers/middleware, and that role is delegated to extensions via the chrome.certificateProvider API. I'm curious to know about your use case.

@emaxx-google I'm exploring ways on how to do smartcard e2e encryption via the web.  Ideally my PWA would have capabilities to do this like a native app would.
I thought if this worked on chrome in general, I might be able to bundle my pwa with an extension that would call into this, and let me access the smartcard. Sounds like that's a dead end.

@hcldan I see, thanks for explaining the use case. Based on what we just discussed, there doesn't seem to be a way to write such a single implementation that would work universally. I think you'd need to integrate with the OS-specific smart card stacks, potentially with the help of a companion "traditional" application that would be installed into the OS and communicated to via nativeMessaging.

Closing the bug as there's no plan to support Smart Card Connector on desktop systems.
However, a quick update regarding cross-platform smart card development: there's an ongoing effort to bring a cross-platform "Web Smart Card API":

https://github.com/WICG/web-smart-card
https://bugs.chromium.org/p/chromium/issues/detail?id=1386175


DragDrop throwing COM error 'class not registered'

Describe the bug
When calling DragDrop.DoDragDrop() from inside a PointerMoved handler in debug mode, the call throws a COM exception.
To Reproduce
This is a control I'm developing. The idea is to drag-drop a tile from Actions to Tasks which are both ItemsControls.

The source is the following XAML:
<Border Grid.Row="1" Margin="0,5,0,0"  Background="GhostWhite"> <ScrollViewer VerticalScrollBarVisibility="Auto"> 	<ItemsControl ItemsSource="{Binding Toolbox}" Background="GhostWhite" Margin="2"> 		<ItemsControl.ItemTemplate> 			<DataTemplate> 				<Border CornerRadius="3" BorderBrush="LightSteelBlue" BorderThickness="1"                                       Background="{Binding TileBackground}" Margin="0,0,0,3"                                       **PointerMoved="Toolbox_MouseMove"**                                       ToolTip.Tip="{Binding Description}"                                       Tag="{Binding}"> 					<Grid Height="32"> 						<TextBlock Text="{Binding Name}" VerticalAlignment="Center" 							Margin="10,3,3,3" ToolTip.Tip="{Binding Description}"/> 					</Grid> 				</Border> 			</DataTemplate> 		</ItemsControl.ItemTemplate> 	</ItemsControl> </ScrollViewer> </Border>
This is the code I'm using.
   public async void Toolbox_MouseMove(object sender, PointerEventArgs e)
    {
        var pt = e.GetCurrentPoint(null);

        if (pt.Properties.IsLeftButtonPressed)
        {
            var ui = sender as Control;
            if (ui != null && ui.Tag != null && ui.Tag is IRuleItemCore ir)
            {
                // Package the data.
                DataObject data = new DataObject();
                data.Set("IRuleItemCore", ir);
                var fmts = data.GetDataFormats();

                // Initiate the drag-and-drop operation.
                await DragDrop.DoDragDrop(e, data, DragDropEffects.Copy | DragDropEffects.Move);
            }
        }
    }

As soon as the DoDragDrop is called I get:

Stack trace
at Avalonia.Win32.Interop.UnmanagedMethods.DoDragDrop(IntPtr dataObject, IntPtr dropSource, Int32 allowedEffects, Int32& finalEffect)
at Avalonia.Win32.DragSource.DoDragDrop(PointerEventArgs triggerEvent, IDataObject data, DragDropEffects allowedEffects)
at Avalonia.Input.DragDrop.DoDragDrop(PointerEventArgs triggerEvent, IDataObject data, DragDropEffects allowedEffects)
at DBControlsAV.ProgramUI.ProgramCore.RulePageCore.<Toolbox_MouseMove>d__59.MoveNext() in C:\Users\Werewolf\Documents\GitHub\DBControlsAV\DBControlsAV\ProgramUI\ProgramCore\RulePageCore.cs:line 421
I've also tried this using DataFormats.Text and a basic text string ("test') and it fails there too.
Expected behavior
The IRuleItemCore object should be passed to the drop target on the other column, but the drop method is never called.
Screenshots
See above.
Desktop (please complete the following information):

OS: Windows 10
Version: Avalonia UI 11.0.2

Additional context
Reran it in release mode and may have additional info:

check out Avalonia.Behaviors. There you can find working examples for it.

Reading through the source for Avalonia.Xaml.Behaviors/Avalonia.Xaml.Interactions.DragAndDrop and my use looks pretty much identical other than not bracketing the initial move distance. I added that in and it made no difference.
I'd like to keep my code as close as possible to the original WPF version so gluing in classes and having to modify my XAML, VMs and code behind to fix what might be a bug in Avalonia seems counterproductive. (Then again, since the Drop event isn't an attached property for some reason... I already have to.)
And it really shouldn't throw a COM Exception - that should be caught by the Avalonia framework and rethrown with perhaps more helpful information. Trying to catch it won't make sense on other platforms that aren't using COM.
From the screenshot I included in the update, it looks more like an issue with the _wrapper object and looking over the change logs, by coincidence, there were mods to the _wrapper object in DragDrop on Monday this week, but I'm using the Nuget version, so... no easy way to check.

Found it.
The problem was the drop routine signature.
I had it as "public void Ruleset_Drop(DragEventArgs e)" when it should have been "public void Ruleset_Drop(object sender, DragEventArgs e)"
Because I started by trying to attach it as an event in Xaml and was getting weird error messages like 'cannot find setter with parameters like...' I misinterpreted the error to mean I had to remove the "object sender" (it seemed to be suggesting that there should only be a DragEventArgs parameter).
I fixed all the other events which ARE attached (like PointerPressed) but because this one went through an AddHandler, which can't check the required type, it didn't catch the error and bang.
Ironically, the original WPF code was correct and I changed it in response to the error messages I was getting.
Anyway, closing the bug and just suggesting type checking and error messages can be improved.


When will be released RTM Suport on nuget packages?

Currently working on it now in this branch and aiming to release this week.  Also see #2138.


[C++][Improvement] Add validation of different levels for builders in C++ library

Proposed changes
Similar to the GraphAr C++ SDK writers, we could add the implementation of various validation levels in the builders (VerticesBuilder & EdgesBuilder).  A strong validation level could ensure the consistency of data types between the data and meta info before being written.
Types of changes
What types of changes does your code introduce to GraphAr?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

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.

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA
[x] Lint and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments
solve issue #171

About the validation level of writer or builder, I have some idea, it may not be right, but we can discuss together.

As my understanding , beside the global validation level for builder and writer, you also provide a fine-grained validation that every adding vertex/edge/table could have a validation level itself. The fine-grained validation is a little complicated to me.  In my opinion, the validation for the same builder or writer better to be consistent.
A similar example is the validation level of MongoDB
The expose of the Validate method which means that the object is not just a Builder or Writer, but also a Validator to user. Do we want to give the context that Builder is also a Validator?

We expose the method to users so they can check if an operation is valid before applying.

About the validation level of writer or builder, I have some idea, it may not be right, but we can discuss together.

As my understanding , beside the global validation level for builder and writer, you also provide a fine-grained validation that every adding vertex/edge/table could have a validation level itself. The fine-grained validation is a little complicated to me.  In my opinion, the validation for the same builder or writer better to be consistent.
A similar example is the validation level of MongoDB
The expose of the Validate method which means that the object is not just a Builder or Writer, but also a Validator to user. Do we want to give the context that Builder is also a Validator?

We expose the method to users so they can check if an operation is valid before applying. In my opinion, The Validator is a necessary part of Builder or Writer. It is not used for validate the data itself, but to validate an operation of Builder or Writer.

understand, that make reason to me (but i still think is a little complicated). We can merge the pull request first and discuss about this at next meeting.

About the validation level of writer or builder, I have some idea, it may not be right, but we can discuss together.

As my understanding , beside the global validation level for builder and writer, you also provide a fine-grained validation that every adding vertex/edge/table could have a validation level itself. The fine-grained validation is a little complicated to me.  In my opinion, the validation for the same builder or writer better to be consistent.
A similar example is the validation level of MongoDB
The expose of the Validate method which means that the object is not just a Builder or Writer, but also a Validator to user. Do we want to give the context that Builder is also a Validator?

We expose the method to users so they can check if an operation is valid before applying. In my opinion, The Validator is a necessary part of Builder or Writer. It is not used for validate the data itself, but to validate an operation of Builder or Writer.

understand, that make reason to me (but i still think is a little complicated). We can merge the pull request first and discuss about this at next meeting.

I agree with you. This pull request is a step towards aligning the validation levels for Builder with Writer, since Builder is a high-level wrapper of Writer.
However, we could continue this discussion after merging this change to focus on developing a more comprehensive and consistent approach to validation across all of GraphAr's tools and libraries,  not just for Builder and Writer.


why get such an error?

Title

#
Uncaught ReferenceError: CodeFlask is not defined

Is there any image? Are you making sure to start CodeFlask only after the script is imported?
Try this:
window.onload = function() {
    //... your CodeFlask code inside here
    // will only run when page is fully loaded
}

I have the same error, but nothing works.

Same error message:
typeError: CodeFlask is not a constructor
var flask = new CodeFlask;

Using exactly the same code as in demo
window.onload = function() {
  var flask = new CodeFlask;
    flask.run('.code-editor');
}

Yes the following code that @kazzkiq has posted does work which I tested since I was able to recreate the issue:
window.onload = function() {
     //... your CodeFlask code inside here
     // will only run when page is fully loaded
}

Also in addition to that if you get an error saying...

TypeError: undefined is not an object (evaluating 'opts.enableAutocorrect')

that means you have to change your javascript to include the code type like this:
flask.run('#my-code-wrapper', {
	    language: 'js'
});


Use build number rather than commit ID for migration jobs

Commit ID seems to be too long.
Review checklist

[ ] First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.
[ ] If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).
[ ] If anything changed with regards to the public API, are those changes also documented in the apiary.apib file?
[ ] Are all the changes covered by tests? Think about any possible edge cases that might be left untested.

👍 Good idea


Bits from the GitHub Query sandbox app

Related to https://github.com/dotnet/docs/issues/36476

Looks like there are some NRT warnings. Do you plan to address them?

Those have been there for as long as I can remember, and they're in a different project altogether. But I can update them.


[Feature]: Introduce IT translation

🚀 Feature Request

Introduce IT translation

Describe the solution you'd like

Integrate react-i18next
Build data structure to manage translation
Introduce Italian translation

Describe alternatives you've considered
Nothing

Additional context
In my opinion it is necessary to scale the application

@leonardoarcari I am currently working on this functionality because I consider it necessary.

@leonardoarcari I am currently working on this functionality because I consider it necessary.

Good stuff mate, thanks! I agree it would help spreading the adoption in the Italian community.
QQ: How you handle <span> in localized text? E.g. I'd like to make some words in a string italic or with heavier font?

QQ: How you handle  in localized text? E.g. I'd like to make some words in a string italic or with heavier font?

i18n allows to interpolate strings in these situations. I use the component <Trans>.

Resolved in #56


add in ProcyonDecompiler.java in dev3

settings.setForceExplicitImport(true); in ProcyonDecompiler.java for solve "Cannot find symbols" on some decompiled sources in dev3

Done


enable better minification with uglify-es

turn on compression and names mangling (consider all properties starting with a double underscore private and mangle them)
bundle size minified gzipped: 4.31 kB (was 5.44 kB)

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Create Kubernetes metadata files for deployment

As a DevOps Engineer
I need to create the necessary Kubernetes metadata files for deployment (deployment.yaml, service.yaml, secrets.yaml, postgres.yaml, etc.)
So that Kubernetes will know how to deploy and manage my application efficiently and securely
Details and Assumptions

Familiarity with Kubernetes concepts and architecture

Acceptance Criteria
Given a containerized application and required configurations
When I create and apply the Kubernetes metadata files for deployment
Then Kubernetes successfully deploys, configures, and manages the application according to the defined resources and configurations

Dupe of #58
Closing this.


fix: resolve nil condition for es query

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

28 of 28 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 84.155%

Totals

Change from base Build<PHONE_NUMBER>9:
0.1%

Covered Lines:
6910

Relevant Lines:
8211

💛  - Coveralls


Codecov defaults

I have found Codecov quite verbose and annoying without some modification. To automatically tone down the issues I usually setup a .codecov.yml with the following options:
coverage:
  status:
    patch: false
    project:
      default:
        threshold: 50%
comment:
  layout: "header"
  require_changes: false
  branches: null
  behavior: default
  flags: null
  paths: null

Happy to discuss and/or modify them.

I'm happy to put this in, I like all of theses, but I don't think I have ever seen the comment: flags: ... or the comment: paths: ... setting anywhere. What do those do?


Support enable or disable auto delete schema at the broker level

Is your enhancement request related to a problem? Please describe.
Currently, we can delete the topic without deleting its schemas (I think the topic and the schema are managed separately to make this behavior possible) through bin/pulsar-admin topics delete-partitioned-topic persistent://tenant/namespace/topic. in this case, there will be a significant problem for topic with schemas, that is,  its schemas still remain but the topic no longer exists.
I'm not sure what is the biggest benefit of these remained schemas, perhaps these remained schemas can be reused when we recreate topic. However, when these remained schemas are no longer suitable for the reconstructed topic, it will obviously become a burden.
In addition, a series of schema operations (get, delete, upload, etc.) also need to be controlled after enabling auth. At present, the role with the tenant permission can complete the above operations of the schema. Obviously, the control granularity should be further converged. In fact, the operations on the schema should be reduced to the role with the lookup topic permission(details in this issue). Unfortunately, the case that schemas exists but topic no longer exists causes not get topic auth policies.
Describe the solution you'd like
One of the most direct ways is to delete the topic and delete the schema at the same time. In the implementation, we can remove the deleteSchema option, but this will be inconsistent with the behavior of the previous version, because this is a breaking API change.
https://github.com/apache/pulsar/blob/ba5809553344f074c5dce15618a70f3b20d368c7/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java#L481-L498
In fact, we can add a key allowedAutoTopicDeletion  -> allowedAutoDeleteSchemas in broker.conf, so schemas that topic not exists can be automatically deleted when allowedAutoTopicDeletion -> allowedAutoDeleteSchemas value is true (default: false). And in this case, we can determine whether the role is allowed to operate the schema according to the topic auth policies.

Very confused, not sure why the topic was removed but the schema is still there. I think we can start a discussion to remove the --deleteSchema option, to make sure the schema should be deleted when deleting the topic.
For the topic auto-deletion, we should enable topic auto-creation and schema auto upload, so I think it's not reasonable to keep the schema after the topic has been deleted. It will bring surprises to a newly created topic with the same name as deleted one, users don't upload any schemas but the new topic will with an existing schema automatically.

Very confused, not sure why the topic was removed but the schema is still there. I think we can start a discussion to remove the --deleteSchema option, to make sure the schema should be deleted when deleting the topic.
For the topic auto-deletion, we should enable topic auto-creation and schema auto upload, so I think it's not reasonable to keep the schema after the topic has been deleted. It will bring surprises to a newly created topic with the same name as deleted one, users don't upload any schemas but the new topic will with an existing schema automatically.

I think it is necessary to discuss about ‘remove the --deleteSchema option’, because it is more profitable to ensure that the consistency of the topic and the schema exist than the inconsistency, mainly in two points:

Avoid the impact of residual schema on new topic(has same name with the deleted topic)
Able to better converge schema operation permissions

In addition, I am sorry and I need to correct that the possible configuration is allowedAutoDeleteSchemas  not allowedAutoTopicDeletion, its effect is to delete the schema when deleting the topic.


feat: player predicate to control who to send info entries to

Addresses issue #2076
Currently Minestom has no way to prevent info entries from being sent to players through the API.
This change introduces a predicate to implement custom logic against who should receive entry packets from a player
Simple example, only send entries to other players who are in a specific list
player.setInfoEntryUpdateRule(receiver -> list.contains(receiver))

Would it be better to raise an event instead of using a predicate? Benefits are multiple listeners can modify the tablist recipients. Could be something like PlayerTablistAddEvent, PlayerTablistRemoveEvent, both would include a modifiable List representing the players receiving the packets. Also wouldn't have to evaluate a predicate against every player on the network every time someone joins.


[Urgent - 6.0.3 npm release] ./lib/* is half empty

Did you change anything in npm ignore or smtg? Or maybe the release script?

dup #1769


Fatal signal 11 (SIGSEGV) on android

adb logcat>>>
03-21 22:47:33.148 21597-24508/? A/libc: Fatal signal 11 (SIGSEGV) at 0xbbadbeef (code=1), thread 24508 (mqt_js)
It only happens on android.
I finally found the code below leading to the bug
export var shouldRelogin = async function(ws, data) {
    tlog('shouldRelogin');
    apps.emit('shouldRelogin');
};

I accidentally put the async keyword before the function but the body doesn't have an await.
When I delete the async keyword, the collapse disappeared.
Using RN 0.21

So if you make a mistake in the code it fails? :smiley:

It shouldn't be collapse when we miss place the async in front of the function.
And if someone met it, it maybe very very hard to find this bug when the code base is large.
Because You cannot see any clue from the collapse information.

I'm getting this on RN 0.32

@npomfret I changed to use Promise not async because babel just translate async to Promise and chrome debug cannot source-map correctly with async. Forget about async, it's not mature.


[SPARK-40154][Python][Docs] Correct storage level in Dataframe.cache docstring

What changes were proposed in this pull request?
Corrects the docstring DataFrame.cache to give the correct storage level after it changed with Spark 3.0. It seems that the docstring of DataFrame.persist was updated, but cache was forgotten.
Why are the changes needed?
The doctoring claims that cache uses serialised storage, but it actually uses deserialised storage. I confirmed that this is still the case with Spark 3.5.0 using the example code from the Jira ticket.
Does this PR introduce any user-facing change?
Yes, the docstring changes.
How was this patch tested?
The Github actions workflow succeeded.
Was this patch authored or co-authored using generative AI tooling?
No

@srowen you reviewed the corresponding change for .persist() a few years back. Can you review this change as well?

Merged to master/3.5/3.4


Madgwick/sensor fusion is not required

I am pretty sure that the angle/axis vector you are getting from the controller is already properly computed on the controller. It is encoded as a unit vector multiplied by the angle. Further integration using Madgwick may actually destabilize the tracker orientation, and it isn't a cheap computation anyway. Works for me anyway.

Hmm... Would you like to do a PR removing it?

Indeed, it is running at 60 Hz.
I posted a fix. Also added a reset by holding the home key for one second.

I posted a fix.

Oh? Where?

Sorry- forgot pull request. Need approval.

Ah, I think you directly pulled the repo. You need to fork it on github first, then clone yours localy, push the new commits and then you'll be able to do a PR from github.

I think you should be able to do all this from github directly by going to this link:
https://github.com/mrdoob/daydream-controller.js/edit/master/DaydreamController.js

Thanks! Still learning Git. Hope this worked.
Thanks for making this available! It is a huge help for me. And Three.js is very elegant. I love using it.


Access result of route handler on server side middleware

Describe the feature
From my stackoverflow question: https://stackoverflow.com/questions/76323883/nuxt-3-after-response-middleware
I have a use-case where I would like to call a middleware after the response went through the route handler. The docs describe that the standard server middleware only runs BEFORE the request is handled (https://nuxt.com/docs/guide/directory-structure/server).
What I'd like to accomplish is:
// file: server/api/test/index.ts
export default defineEventHandler(async (event) => {
    return { "test": true }
})

When I call the endpoint via GET /api/test I would like the response to be:
{ "result": { "test": true } }
So basically mapping all APIs response in a object with key "result". This is quite easy to do with express middleware and other frameworks as you can usually await the route handler's result and then just wrap the result in the object.
It seems that currently there is no way to access the route handler's response inside of a server side middleware. Within most frameworks (i.e. express) you can usually await the response within the middleware function.
Suggested syntax which would be desirable:
// file: server/middleware/test.ts
export default defineEventHandler(async (event) => {
  // Before
  console.log('New request: ' + getRequestURL(event))
  const result = await event.requestHandler // any function/property that can be await that contains the result
  // After (wrap in result object)
  return { result };
})

Additional information

[ ] Would you be willing to help implement this feature?
[X] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

Would you raise this as a feature request on h3 instead?
https://github.com/unjs/h3


Add Solr String To String Array Flexibility #137

🗒 Summary
As solr is being developed some types change between strings or string arrays. This pull request adds an expected type that the client will expect from solr. It will then convert all values to arrays and use that type instead. This way it won't break the client due to unexpected type if solr types suddenly change.
⚙ Test Data and/or Report
Run normally. All values will look the same. Tested build process is successful.
♻ Related Issues
fixes #137

Also, SonarQube recommends simplifying your algorithm. Not required that get fixed, but may be worth taking a look at for next time.


chore: set ARShowCreateAlertInArtistArtworksListFooter as ready for r…

Description
This PR set show create alerts in artist artworks list footer as ready for release.

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
#nochanges
Need help with something? Have a look at our docs, or get in touch with us.

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against 76823dc442320bf7b911b16c3be25d0eb970ecfe


Standard API

There's not really a standard API for JMESPath implementations, but most of the implementations look kind of the same, and it would be good if jmespath-java didn't stray too far from the existing APIs.
In Python there are two main APIs, there's the search API:
result = jmespath.search('foo.bar', input)

and the compile API:
expression = jmespath.compile('foo.bar')
result = expression.search(input)

In Ruby there's only the search API (caching is done internally by default so there's no equivalent of the compile API):
result = JMESPath.search('foo.bar', input)

In PHP this is the search API:
$result = JmesPath\search($expression, $input);

and if you want to cache your expressions you create a runtime:
$runtime = new JmesPath\AstRuntime();
$runtime('foo.bar', $input);

In JavaScript there's only the search API:
jmespath.search(input, "foo.bar")

There's no API docs for the Go implementation as far as I can tell, but I think this is how the search API works:
result, err := Search("foo.bar", input)

and the compile API:
precompiled, err := Compile("foo.bar")
result, err := precompiled.Search(input)

Finally in Lua the search API looks like this:
local result = jmespath.search("foo.bar", input)

There's no compile API, but like in PHP you can create a runtime that will do caching:
local runtime = jmespath.runtime{cache = true}
runtime("foo.bar", input)

None of these would work very well in Java, especially not when there will be multiple backends, so the question is, how close can we get? How should the Java API work to feel familiar?

For reference, the current implementation of jmespath-java has no search API, and the equivalent to the compile API looks like this:
Adapter<JsonNode> adapter = new JacksonAdapter();
Query query = Query.fromString(adapter, "foo.bar");
JsonNode result query.evaluate(adapter, input);

I don't care much for the search API, I don't really see the use for it, if you really don't want to cache your compiled expressions you can write that API yourself easily enough.
If we changed things around we could have a compile API that looked something like this:
Runtime<JsonNode> jmespath = new JacksonRuntime();
Query<JsonNode> query = jmespath.compile("foo.bar");
JsonNode result = query.search(input);

That feels pretty close to the other implementations. The difference from what we have now is that the adapter would be renamed "runtime" (does that matter? should we keep "adapter"?), and the query object would keep a reference to the adapter/runtime. That's probably a good idea anyway (even though I've tried to keep Query adapter-agostic so far I'm beginning to doubt the usefulness of that).

That feels pretty close to the other implementations. The difference from what we have now is that the adapter would be renamed "runtime" (does that matter? should we keep "adapter"?), and the query object would keep a reference to the adapter/runtime. That's probably a good idea anyway (even though I've tried to keep Query adapter-agostic so far I'm beginning to doubt the usefulness of that).

I like it better than the current version. I'm not sure it is the intention of the name "runtime" in the other projects, but here I think it actually makes more sense than adapter. The way I see it, it is a runtime that provides a set of primitives upon which the query/search functionality is built. The fact that some of those primitives adapt seems like a not so important detail to me.
I'm not sure why this would require Query to know about the internals of the runtime, but the fact that you cannot supply different adaptors/runtimes to different searches only seems like an advantage to me. With the proposed interface, nothing prevents the JacksonRuntime from actually returning a Query subclass (assuming the Query class is not final).

It wouldn't require the Query class to know about the internals of the runtime, what I meant was that Query would keep a reference to a runtime. I think we are in agreement besides that point of confusion.


test_sslextension: skip test that cannot work with no-tls1_2

Fixes runchecker failure of no-tls1_2 build.
Checklist

[x] tests are added or updated

24 hours has passed since 'approval: done' was set, but this PR has failing CI tests.  Once the tests pass it will get moved to 'approval: ready to merge' automatically, alternatively please review and set the label manually.

Merged to master. Thank you for the reviews!


Add finagle-commons-stats dependency to examples proj

This PR fixes the Finagle server without metrics warning when running the example Todo app. The warning is displayed when navigating to the admin dashboard. The twitter-server lint rule is defined here and requires you have the finagle-commons-stats jar on your classpath (see details here).

Codecov Report

Merging #754 into master will decrease coverage by 0.76%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #754      +/-   ##
==========================================
- Coverage   80.55%   79.78%   -0.77%
==========================================
  Files          35       35
  Lines         653      653
  Branches       18       18
==========================================
- Hits          526      521       -5
- Misses        127      132       +5

Impacted Files
Coverage Δ

core/src/main/scala/io/finch/Input.scala
84.84% <0%> (-15.16%)
:x:

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 74044ab...84d8de3. Read the comment docs.

Thanks @wslulciuc!
I think finagle-commons-stats has been retired like 3 hours ago. Maybe add finagle-stats instead?

@vkostyukov : impeccable timing, sure I'll see if adding finagle-stats works as well.

@vkostyukov : Replaced and verified finagle-stats fixes the warning.

Thanks @wslulciuc! This looks good to me!

Thanks again @wslulciuc! Just merged it in.


Error: RUNTIME_ERR1028: Error encountered while parsing teal file: unknown opcode "txnas" for teal version #5

Describe the bug
A small note: I am using develop which I shouldn't.
I get this error while trying to use Txn.application_args inside of a For
Expected Behavior
It should support txnas
Current Behavior
It throws, saying the opcode does not exist
Full StackTrace:
at opcodeFromSentence (algo-builder/packages/runtime/build/parser/parser.js:326:15)
      at parser (algo-builder/packages/runtime/build/parser/parser.js:414:29)
      at Interpreter.executeWithResult (algo-builder/packages/runtime/build/interpreter/interpreter.js:384:49)
      at Interpreter.execute (algo-builder/packages/runtime/build/interpreter/interpreter.js:365:29)
      at Runtime.run (algo-builder/packages/runtime/build/runtime.js:553:21)
      at Ctx.addApp (algo-builder/packages/runtime/build/ctx.js:206:22)
      at Runtime.addApp (algo-builder/packages/runtime/build/runtime.js:381:18)

Possible Solution
Steps to Reproduce

Create a subroutine with a for and iterate through the AppArgs array

Environment

OS: [e.g. iOS] Ubuntu
Node.js version: 16
algob version: last(develop)

Hi @Lumene98, txnas & related ops will be available after this is merged to develop. The PR is currently open. Sorry for trouble

Hi @Lumene98, txnas & related ops will be available after this is merged to develop. The PR is currently open. Sorry for trouble

It's my bad, I wasn't aware of that


ANSIBLE0012: also allow register with command.

In my playbook I need to gather some system values by running custom commands and registering them into variables.
I can not use ansible-facts for this.
Example use case:
- name: Get ansible-lint version
  command: ansible-lint --version
  register: ansible_lint_version_output

- name: Register ansible-lint version
  set_fact:
    ansible_lint_version: ansible_lint_version_output.stdout

Ansible-lint sees this as improper use of the command statement. So I have to add the skip_ansible_lint tag to these tasks currently.
With this pull request these tasks are also allowed.

This has nothing to do with register - it's to do with the fact that command always returns changed: True unless you work to prevent that.
In this case, the easy fix is to do:
- name: Get ansible-lint version
  command: ansible-lint --version
  changed_when: false
  register: ansible_lint_version_output

as running ansible-lint --version does not change anything.

Thanks for the information! I will try that. Did not realize I could do that.


fix(version): updates version of dep editor

Updates version of fabric8-analytics-dependency-editor to 0.7.4

Avoids duplication of dependencies in added dependencies
Avoids duplication of dependencies in core dependencies

:tada: This PR is included in version 1.0.7 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update some test cases

Update some test cases
Add some test cases and delete some failed test cases

/azp run


torch.version?

Excuse me, What is the version of pytorch used in your project?

PyTorch version >= 1.3 should be okay.


TILA-1910: Reservation unit product mapping

When reservation unit is saved, we will call Product Experience API
and create a new product mapping. API is clever enough to return
existing mapping if it exists so we can call create every time.
Mapping is created/updated only if reservation unit is paid and has a
payment merchant defined. If merchant is removed, mapping is removed
too.
All this is is done as a Celery task
NOT TO SELF: This requires deployment configuration changes 🧠

I'll merge this now. There is a related pipeline update PR waiting on the devops side ☺


feat: dashboard: add bucket to assistants

: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 84.54%. Comparing base (21bddee) to head (a89e8e0).
Report is 37 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    #2809      +/-   ##
==========================================
- Coverage   86.10%   84.54%   -1.56%
==========================================
  Files          86       89       +3
  Lines        9724    10121     +397
  Branches      490      490
==========================================
+ Hits         8373     8557     +184
- Misses       1351     1564     +213

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


Fix: Missing fields in exported files

Export files will include only columns visible in data browser, including _id.
Fixes #413

Sorry for the late merge and thanks for PR @l0l3r


Problem setting up the keyring api.

I followed the detailed documentation for setting up the service. I have attached all the important files required to run the keyring api service. Please let me know if I have done something wrong while setting up the docker-compose.yml file.
1)This is the compose file I created.

2)This is the Rocket file.

If the above configuration is wrong please let me know.
I get the following error when I run the compose file of keyring.

I have tried many things but they didn't work. It would be very grateful if I could get some help or direction

You configured two services in your docker-compose.yml: keyring-api and keyring-mongo. That means your database is running in the keyring-mongo container, but since you enabled port mapping you can access the database also from your host.
Now, in the Rocket.toml you configured the keyring-api to look for the database on <IP_ADDRESS> in the keyring-api container. You will need to either use the IP of your host or the address of the keyring-mongo container. For the latter you could simply have used the Rocket.toml file as it is available in the repo.

Hey @kragall I tried exactly what you suggested. I get the following error.

I kept the Rocket file as it is like you suggested above, Just changed the port number where I mapped mongo.

The log clearly states MissingField("database_url") and the file I linked to contains the field, which tells me that you didn't use that file. Please read the documentation and make sure that you use configuration files that contain the required fields

https://github.com/Fraunhofer-AISEC/ids-clearing-house-core/issues/3 works.


N34: Add Bloom3D

https://github.com/rust-gamedev/rust-gamedev.github.io/issues/1033

Awesome, thanks!


Setting Default Dark & Light Values for readableColor

Is it possible to set default dark and light values for the readableColor function (rather than have to manually set them each time I want to use them)?
If so, is there documentation on how to do that?
Thanks.

It is not (other than the built-in white/black defaults). Because these are meant to be used in isolation, we wouldn't be able to write a good way to set and store those custom defaults.
That being said, you could write a lightweight wrapper around readableColor that stores those defaults and use that wrapped version in all your components.


Fixed bug, can no longer use ultimate while switch is happening

Task linked: CU-1ej9nr6 If you swap-ult or ult-swap very fast, HUD breaks because the game tries to do both at the same time


HTA to the rescue

FFWD to 2020 ... There is no way to execute this step with today's modern browsers. Edge included.
Probably the easy way out is to rename the HTML file to hta. mshta.exe is still in Windows 10.

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

ID: b2e6484f-2b16-e4fa-5db9-4d0413c425ec
Version Independent ID: 2b28dc02-b54d-0c2d-452c-3c5f1e2835be
Content: Putting the Control on a Web Page (ATL Tutorial, Part 7)
Content Source: docs/atl/putting-the-control-on-a-web-page-atl-tutorial-part-7.md
Product: visual-cpp
Technology: cpp-atl
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

Thank you for your patience as we work through our backlog. We have received more issues than we can manage at this time. We are closing issues based on their severity, how broadly applicable they are, and whether there is enough information provided to act on the issue. If you believe that this issue should not have been closed, please add a comment explaining why by 3/8/2024. We appreciate your contribution and encourage you to propose changes using public PRs, or submit feedback through our updated control at the top of the page, as we phase out Git Issues for this repo. For more information on our feedback systems, see https://aka.ms/ContentUserFeedback.


PluralSight : Failed to parse JSON  (caused by ValueError('Expecting value: line 1 column 1 (char 0)',));

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.16. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.07.16

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://app.pluralsight.com/library/courses/low-poly-game-char-maya-silo-689', '--playlist-start', '8']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2016.07.16
[debug] Python version 3.4.4 - Windows-10-10.0.10586
[debug] exe versions: ffmpeg N-80256-g0a9e781, ffprobe N-80256-g0a9e781
[debug] Proxy map: {}
ERROR: unable to download video data: [WinError 10054] An existing connection was forcibly closed by the remote host
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\YoutubeDL.py", line 1648, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\YoutubeDL.py", line 1590, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\downloader\common.py", line 350, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\downloader\http.py", line 162, in real_download
  File "C:\Python\Python34\lib\http\client.py", line 537, in read
  File "C:\Python\Python34\lib\http\client.py", line 576, in readinto
  File "C:\Python\Python34\lib\socket.py", line 378, in readinto
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://app.pluralsight.com/library/courses/vehicle-creation-maya-silo-701']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2016.07.16
[debug] Python version 3.4.4 - Windows-10-10.0.10586
[debug] exe versions: ffmpeg N-80256-g0a9e781, ffprobe N-80256-g0a9e781
[debug] Proxy map: {}
ERROR: vehicle-creation-maya-silo-701: Failed to parse JSON  (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\extractor\common.py", line 545, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\extractor\common.py", line 545, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 361, in raw_decode
ValueError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\YoutubeDL.py", line 676, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\extractor\common.py", line 343, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\extractor\pluralsight.py", line 272, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\extractor\common.py", line 539, in _download_json
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpdy42tioh\build\youtube_dl\extractor\common.py", line 549, in _parse_json
youtube_dl.utils.ExtractorError: vehicle-creation-maya-silo-701: Failed to parse JSON  (caused by ValueError('Expecting value: line 1 column 1 (char 0)',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.

This indicates an issue with your internet connection. Can you watch it in browser? If you are using a proxy you must pass with --proxy.

hi Sir i am getting the same sins 2 days but i can watching fine on browser
PS C:\Users\vicky\downloads> youtube-dl --verbose https://app.pluralsight.com/library/courses/maya-non-destructive-retar
geting-mocap-animation-2448 --get-url --username ******** --password ***** > links.txt
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://app.pluralsight.com/library/courses/maya-non-destructive-retargeting-mocap-animation-2448', '--get-url', '--username', 'PRIVATE', '--password', 'PRIVATE']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2016.07.16
[debug] Python version 3.4.3 - Windows-8-6.2.9200
[debug] exe versions: none
[debug] Proxy map: {}
WARNING: Unable to download webpage: [WinError 10054] An existing connection was forcibly closed by the remote host
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "c:\python34\lib\site-packages\youtube_dl\YoutubeDL.py", line 682, in extract_info
ie_result = ie.extract(url)
File "c:\python34\lib\site-packages\youtube_dl\extractor\common.py", line 347, in extract
return self._real_extract(url)
File "c:\python34\lib\site-packages\youtube_dl\extractor\pluralsight.py", line 226, in _real_extract
self._sort_formats(formats)
File "c:\python34\lib\site-packages\youtube_dl\extractor\common.py", line 887, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

yes i'm able to watch it on browser without any problem


Android builds failing.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':customer_io:generateReleaseRFile'.
> Could not resolve all files for configuration ':customer_io:releaseCompileClasspath'.
   > Could not resolve build:gist:[3.1,4.0).
     Required by:
         project :customer_io > io.customer.android:messaging-in-app:3.3.2
      > Failed to list versions for build:gist.
         > Unable to load Maven meta-data from https://maven.gist.build/build/gist/maven-metadata.xml.
            > Could not GET 'https://maven.gist.build/build/gist/maven-metadata.xml'. Received status code 403 from server: Forbidden
      > Failed to list versions for build:gist.
         > Unable to load Maven meta-data from https://maven.gist.build/build/gist/maven-metadata.xml.
            > Could not GET 'https://maven.gist.build/build/gist/maven-metadata.xml'. Received status code 403 from server: Forbidden

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

@Shahroz16  Same here. It's a critical issue. We planned to release app today!!!

Hi @damienissa @Imgkl
I am sorry for the inconvenience; our SRE team is working to fix this issue as soon as possible

@xtreem88  Thanks.
can you please ping me, when it's will be ready?

@damienissa
Please try this temp workaround:
Changing https://maven.gist.build/ to https://gitlab.com/api/v4/groups/bourbonltd/-/packages/maven should fix it.

@xtreem88  It helps, but I'm not sure that it will not affect other dependencies.

@damienissa Im glad it worked; it should not affect any other dependencies

Works! @xtreem88

build starts failing in android today but with different error , any idea ?
`Execution failed for task ':app:processDebugResources'.

Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
Problems reading data from Binary store in /Users/user/.gradle/.tmp/gradle742219932154338463.bin offset 451104 exists? true

Try:

Run with --info or --debug option to get more log output.
Run with --scan to get full insights.`


The services must be set only if HttpKernelRuntime exists

Some services are broken if HttpKernelRuntime does not exist.

Can you explain when the current code breaks?

The code doesn't break as you correctly surrounded the call to addRuntimeLoader with an if (class_exists(HttpKernelRuntime::class)).
The problem is that the actual code registers services that may be unusable, and that should be avoided: there are valid use cases for wanting to be able to blindly instantiate all the registered services (i.e: a tool that dumps the content of the container to generate an array('service' => 'Class') lookup table for IDEs).
So, I'm 👍 regarding the change to TwigServiceProvider, but also thinks that the actual test shouldn't be added. If a test has to be added, it should just assert that the services that depend on HttpKernelRuntime only get registered when the class is available, using something like:
   $this->assertSame(isset($app['twig.runtime.httpkernel']), class_exists(HttpKernelRuntime::class));

I close the PR because I have no more the issue with the last versions

But this is still broken.
I use PimpleDumpProvider which tries to instantiate all containers to create a file for phpstorm.
So I got:
Attempted to load class "HttpKernelRuntime" from namespace "Symfony\Bridge\Twig\Extension". Did you forget a "use" statement for another namespace?
HttpKernelRuntime looks like it belongs to twig-bridge so it should be inside the condition a few lines above.


Expands on usage documentation for the AlertBanner component

Description
To better support the intended use of the AlertBanner component, and more specifically, the use of the newly planned icon parameter, this PR expands the usage documentation for the AlertBanner component by providing more information on the intent of the component and a short list of Dos and Donts.
https://thumbtack.atlassian.net/browse/DS-1023

@danoc @zargold This PR has not moved out of the draft state since https://github.com/thumbtack/thumbprint/pull/836 has been merged in to master.


ImageDataGenerator.flow() for unlabelled test data (only features X, no labels y)

For my training data (where I have both X and labels y), I'm creating an ImageDataGenerator with featurewise_center=True and featurewise_std_normalization=True:
train_datagen = ImageDataGenerator( featurewise_center=True,
                                    featurewise_std_normalization=True )
train_datagen.fit( X_train )
model.fit_generator( train_datagen.flow(X_train, y_train)
                     samples_per_epoch=X_train.shape[0],
                     nb_epoch=NB_EPOCHS)

I am hoping to apply this same image preprocessing to my unlabelled test data (this test set came from a Kaggle competition). Following advice from Stanford cs231n/Karpathy (you can find full details by searching for the term "Common pitfall" on the linked page):

An important point to make about the preprocessing is that any preprocessing statistics (e.g. the data mean) must only be computed on the training data, and then applied to the validation / test data.

Thus I hoped to use something like:
model.predict_generator(train_datagen.flow(X_test),
                        val_samples=X_test.shape[0])

however ImageDataGenerator.flow() requires a y argument. Does anyone know how I might achieve this (I'm using a model built using the functional API)? (Mentioning @chsasank as I see you've made some great changes to this recently ;) ) Many thanks for any help!

This is a hack which can be used to get it working with current version:
def test_gen(X_test):
    Y_trash = np.ones(X_test.shape[0])
    flow = train_datagen.flow(X_test, Y_trash)
    for X,Y in flow
        yield X #ignore Y
end

model.predict_generator(test_gen(X_test),
                        val_samples=X_test.shape[0])

But this is a hack.
We should eventually add following features to ImageDataGenerator:

Make it serialisable. Currently pickle.save doesn't work as ImageDataGenerator uses some threading.
flow should work with 1 or 2 arguments.

Massive thanks for the temporary fix @chsasank!!!!! Works perfectly!! I'll leave this issue open for now in case we wanted to add your more permanent fixes. Thanks again!

Hi,
I hope you can improve the documention for ImageDataGenerator. I attempted unsuccessfully to do some pre-processing and resorting to reading the code (which is educational but not preferable to you in the long run...). Many thanks!

It'll be helpful to know what improvements can be made for ImageDataGenerator. I mean it'd be great to know what you found lacking.
In fact, you can raise a PR yourself, now that you have gone through the code! 😛

Thanks @fchollet! Commit https://github.com/fchollet/keras/commit/b71f6ba8644681b51ce4962ad2e0543adbfd4d28 fixes this, hence closing.

Hi @chsasank I would love to do so in the future and become seriously more active. I believe in this project. Sadly currently I am head over heels with my thesis. I hope some of you can reciprocate :)
Here is a link to an issue I opened in a keras code repository @asmith26  wrote a few days ago. It attempts to use ZCA the way I thought you would use it but reaches unsatisfying results. I would love to hear your insight on the manner.
Thanks!


Updated Example Code to support Flutter 3.3.0 & Android v2 Embedding

Updated Example Code to support Android v2 Embedding
Support for Flutter 3.3

The PR will also resolve this Issue

@Kurogoma4D I have Updated Code
Kindly Review & merge the PR.


Can't create an expressión filter with more than one 'else if'

Hi,
I need to create a ruleset with a rule with an expression with more than just one else if. Somethin like:
if $hostname == ["sip", "proxysipint", "proxysipintb" ] then {
  set $.filename = "kam-int.log";

    }
else if $hostname == ["sipext", "proxysipext" ] then {
  set $.filename = "kam-ext.log";

    }
else if $hostname == ["pbxum", "pbxum1", "pbxum1b"] then {
  set $.filename = "ast-core.log";

    }

So, my code is like:
  - expression_filter:
      filter:
        if:
          expression: '$hostname == ["sip", "proxysipint", "proxysipintb" ]'
          tasks:
            - set:
                '$.filename': '"kam-int.log"'
        'else if':
          expression: '$hostname == ["sipext", "proxysipext" ]'
          tasks:
            - set:
                '$.filename': '"kam-ext.log"'
        'else if':
          expression: '$hostname == ["pbxum", "pbxum1", "pbxum1b"]'
          tasks:
            - set:
                '$.filename': '"ast-core.log"'

the problem with this hiera is that I have to use the same else if key for two different hash elements, so the second overrides the first.
I've been looking for a way to create such an expression, but as the template for an expression is:
<%- |
$filter_name,
$conditionals
| -%>
# <%= $filter_name %>
<%- $conditionals.each |$conditional, $options| { -%>
  <%- if $conditional == 'else' { -%>
<%= $conditional %> {
  <%- } else { -%>
<%= "${conditional} ${options['expression']} then" %> {
  <%-}-%>
<%- $options['tasks'].each |$task| { -%>
<%= epp('rsyslog/tasks.epp', { 'tasks' => $task }) -%>
<%-}-%>
}
<%}-%>

I can't find any way to do it, because the conditional clause is taken always from the key of the element in the hash.
Is there any way to create such config?

I have found that coding the yaml like:
  - expression_filter:
      filter:
        if:
          expression: '$hostname == ["sip", "proxysipint", "proxysipintb" ]'
          tasks:
            - set:
                '$.filename': '"kam-int.log"'
        "# else if 1\nelse if":
          expression: '$hostname == ["sipext", "proxysipext" ]'
          tasks:
            - set:
                '$.filename': '"kam-ext.log"'
        "# else if 2\nelse if":
          expression: '$hostname == ["pbxum", "pbxum1", "pbxum1b"]'
          tasks:
            - set:
                '$.filename': '"ast-core.log"'

worarounds the problem, but I can't find a better way

I'll take a look at what I can do. I have some ideas.

@amateo I pushed an update to master that changes how the expression filter YAML is formatted a little. It is still compatible with current formats, it just is designed to address the issue you ran into. Your workaround gave me the idea to name the conditions rather than try and rely on users putting the if, else if, and else in there.
see https://github.com/voxpupuli/puppet-rsyslog#expression-based-filters for some updated examples

Thank you @dhollinger, I'll try it as soon as the new release is published.

@dhollinger, have you released it in the forge?

@amateo Not yet, will be before the end of the day (local time)

@amateo The release should be live now

Ok. Thank you.


order of quarter token is affecting date output

moment("Q1 March 2015", "[Q]Q MMMM YYYY") will return an expected date of Sun Mar 01 2015 00:00:00 GMT-0500 (US Eastern Standard Time), but moment("March Q1 2015", "MMMM [Q]Q YYYY") returns Thu Jan 01 2015 00:00:00 GMT-0500 (US Eastern Standard Time).
Actually formatting (moment().format("MMMM [Q]Q YYYY")) an already made moment object works just fine and as expected.  As such the workaround moment("March Q1 2015", "MMMM [Q1][Q2][Q3][Q4] YYYY") is (technically) valid.
documented here: http://jsfiddle.net/3o631puy/

Yeah, this is a hard one for Moment. Quarters are basically month aliases; see here. So it's getting contradictory information about what month it should be, and in practice it takes the last one. Compare to:
moment("Q1 March 2015", "[Q]Q MMM YYYY").format(); //=> '2015-03-01T00:00:00-05:00'

I'm open to suggestions on how to reconcile that information, but it's not obvious to me how you'd do it. I mean, what would, for example, "December Q2" mean?

For reference, a permanent URL to what @icambron was talking about is here:
https://github.com/moment/moment/blob/20bdc7d236577d47006040cac6cf381a538fbbff/src/lib/units/quarter.js#L20
Closing as wontfix. I echo the concern that Q and M don't make sense together.
Feel free to comment/re-open if folks have other ideas.


Enforce "Uniqueness" of fields

eg;
keystone.createList('User', {
  fields: {
    email: { type: Text, unique: true },
  },
});

Which enforces only one User per email address.

It appears to have been renamed to isUnique,  but is this enforced at the moment?

From reading https://github.com/keystonejs/keystone-5/issues/433 , this is completed.
Re-open if not.


[SPARK-44318][BUILD] Remove useless dependencies - javax.ws.rs-api

What changes were proposed in this pull request?
The pr aims to remove useless dependencies - javax.ws.rs-api.
Why are the changes needed?
Make code and dependency concisely.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.

@panbingkun Can you explain why these two dependencies are no longer useful?

1.(Jersey depend on it) The first PR to introduce the dependency of javax.ws.rs.javax.ws.rs-api
PR: [SPARK-12154] Upgrade to Jersey 2
CommitID: b7fdc23ccc5967de5799d8cf6f14289e71f29a1e
https://github.com/apache/spark/commit/b7fdc23ccc5967de5799d8cf6f14289e71f29a1e#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R624-R627

2.Because Jersey depends on it, however, with the upgrade of Jersey version, the rs-api package name it depends on has been moved from: javax.ws.rs.javax.ws.rs-api to: jakarta.ws.rs.jakarta.ws.rs-api in version 2.28, but there is no corresponding removal in Spark.

Jersey 2.27: https://repo1.maven.org/maven2/org/glassfish/jersey/project/2.27/project-2.27.pom

Jersey 2.28: https://repo1.maven.org/maven2/org/glassfish/jersey/project/2.28/project-2.28.pom

The PR that was modified in Jersey is: https://github.com/eclipse-ee4j/jersey/pull/3994
https://github.com/eclipse-ee4j/jersey/pull/3994/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R1363-R1364

4.In fact, we can only depends on [jakarta.ws.rs](https://mvnrepository.com/artifact/jakarta.ws.rs) » [jakarta.ws.rs-api](https://mvnrepository.com/artifact/jakarta.ws.rs/jakarta.ws.rs-api) in Spark because its package name has changed.

cc @LuciferYang @dongjoon-hyun

There is no change on dependency manifest file?

Yes, that's right, it doesn't exist in spark-deps-hadoop-3-hive-2.3.
Only the changed package exists:


Can't resolve 'swiped-events/dist/swiped-events.min' in  '/app/node_modules/@sebgroup/extract'

Bug already reported ?

[X] I confirm that I have checked if the bug already has been reported

For which framework/library you are reporting the bug
extract
Component name
No response
Description
I'm setting react app and I'm using @sebgroup/green-react library.
When using @sebgroup/green-react library the dependency @sebgroup/extract is installed as well. When I try to run my react app I get the next error:
#12 14.69 Module not found: Error: Can't resolve 'swiped-events/dist/swiped-events.min' in
'/app/node_modules/@sebgroup/extract'
#12 14.69 Did you mean 'swiped-events.min.js'?
#12 14.69 BREAKING CHANGE: The request 'swiped-events/dist/swiped-events.min' failed to resolve only
because it was resolved as fully specified
#12 14.69 (probably because the origin is strict EcmaScript Module, e. g. a module with javascript
mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
#12 14.69 The extension in the request is mandatory for it to be fully specified.
#12 14.69 Add the extension to the request.
Steps To Reproduce
No response
Current Behaviour
No response
Expected Behaviour
No response

There has been create a PR ( #821 ) on regards to this issue ✌


Added way to inspect source proc stdout/stderr

This is a result of my effort detailed in https://github.com/roxma/clang_complete/pull/6
I found it useful to get the stdout and stderr from the source processes to debug why a source process might be dead. I figure being able to enable/disable that without a source change would be a convenient addition to the trouble shooting wiki.
Feel free to bike shed names and whatnot.

It should be better to use proc = subprocess.Popen(cmd,stdin=subprocess.DEVNULL,stdout=sys.stdout,stderr=sys.stderr).
Because the default threading sources already have this behavior.
This update came up to me a few times. But after a wile I forgot to chage it.
Thanks.

You mean changing it permanently to share stdout and stderr instead of putting it behind an environment variable?

You mean changing it permanently to share stdout and stderr instead of putting it behind an environment variable?

Yes

One problem with that is there are a few RuntimeWarning messages that come through stderr and show up as scary looking things when neovim gets started up:

Here's the text:
Error detected while processing function <SNR>93_on_core_channel_error:
line    1:
/home/vnguyen/.config/nvim/bundle/clang_complete/pythonx/cm_sources/clang_complete.py:9: Runt
imeWarning: Parent module 'cm_sources' not found while handling absolute import^@  from cm im
port register_source, getLogger<EMAIL_ADDRESS>nx/cm_sources/clang_complete.py:20: RuntimeWarning: Parent module 'cm_sources' not found whil
e handling absolute import^@  import<EMAIL_ADDRESS>thonx/cm_sources/clang_complete.py:21: RuntimeWarning: Parent module 'cm_sources' not found w
hile handling absolute import^@  import<EMAIL_ADDRESS>pythonx/cm_sources/clang_complete.py:22: RuntimeWarning: Parent module 'cm_sources' not found
 while handling absolute import^@  import libclang^@

I haven't spent the time to understand if they're normal or if I need to pay attention to them (since things are working).

Prepending  from __future__ import absolute_import to pythonx/cm_sources/clang_complete.p seems to fix this issue.

Prepending  from __future__ import absolute_import to pythonx/cm_sources/clang_complete.py seems to fix this issue.

Yep, so it does. Want me to simplify this pull request to just turn on the stdout and stderr sharing and open another one for the from __future__ import absolute_import change to your clang_complete fork?

Merged.
Thanks.


HLS Content stuck at the end if the last ts file is broken

Have you read the Tutorials?
yes
Have you read the FAQ and checked for duplicate open issues?
yes
What version of Shaka Player are you using?
3.0.5
Please ask your question
Hello,
I'm trying to play this manifest with Shaka player -
https://vms-videos.minutemediaservices.com/01e5k0gyr6853w2xvw/m3u8/01e5k0gyr6853w2xvw.m3u8
On Chrome with including the Mux.js library on Safari (without the Mux.js).
This is the m3u8 file:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:4,
01e5k0gyr6853w2xvw_1080p_00001.ts
#EXTINF:4,
01e5k0gyr6853w2xvw_1080p_00002.ts
#EXTINF:4,
01e5k0gyr6853w2xvw_1080p_00003.ts
#EXTINF:4,
01e5k0gyr6853w2xvw_1080p_00004.ts
#EXTINF:4,
01e5k0gyr6853w2xvw_1080p_00005.ts
#EXTINF:1,
01e5k0gyr6853w2xvw_1080p_00006.ts
#EXT-X-ENDLIST
On Safari: The content stuck at the end, at 00:19 (the duration is 21 seconds) without any errors from Shaka.
On Chrome with Mux.js: The content stuck at the end, at 00:19 (the duration is 21 seconds) with the following error: code -3018 - Mux.js did not invoke the callback signifying successful transmuxing.
I noticed that the last ts file is broken, I can't play it - https://vms-videos.minutemediaservices.com/01e5k0gyr6853w2xvw/m3u8/01e5k0gyr6853w2xvw_1080p_00006.ts
I try to play this content on native Safari and on Chrome with the Hls.js library, in both of the scenarios the last ts file was ignored, and the duration, as taken from the video tag was 20 seconds (without the broken ts file).
Is there any way that the Shaka player can skip broken ts files?

On Safari, we usually use native playback, so it should be the same behavior as if you set src= yourself.  Did you change streaming.useNativeHlsOnSafari?
What about your content is bad?  The fact that Safari ignores it may mean there is something we're doing wrong or a different way we could handle it.
We usually try to avoid working around bad content.  In many cases, there is nothing we can do about it.  For example, most bad content will cause a decoder error from the browser.  When this happens, not only is there nothing we can do to prevent it, it will stop playback permanently and we can't even recover.  We also don't like hiding errors from apps; we want to inform people of the problems in their content so they can fix it and the content will be more broadly playable.

Hi, thanks for your reply @TheModMaker
I didn't change the streaming.useNativeHlsOnSafari.
I didn't get any indication from Shaka that something is wrong (except for the 3016 error that indicates from Mux.js that the trunsmuxing operation didn't succeed - Chrome only).
I want to handle this bad content myself, is there a way that I can detect that the playback is stuck? I didn't find any event or other indication for it.

If the content is broken, I believe there's not much we can do about it except selectively ignore error 3016.
Does this help?


Request to Pull Finish README

And mention more Tacos.  Lots more Tacos!

These changes look good!  I approve of the merge!

@tkdvw Please take one more look just to be sure then go ahead with the Merge if it all checks out.


Access denied on AWS binaries

Not sure if this is an issue on my end or a problem with the Sqlite3 package, but some users are reporting some troubles when trying to build my application. Electron-builder tries to download a pre-built binary but that results in a 403 Access Denied error. For example this one:
https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/electron-v1.8-linux-x64.tar.gz
Personally I can build it fine and Travis too, but since several users have reported the problem I thought it could be an issue with node-sqlite3 release process. Any idea what could cause this 403 error? Should this file be downloadable or is the access denied on purpose? If so is there any workaround?
This the result of yarn dist:
$ yarn dist
yarn run v1.9.4
$ node_modules/.bin/electron-builder
  • electron-builder version=20.14.7
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=dist/electron-builder-effective-config.yaml
  • rebuilding native production dependencies platform=linux arch=x64
  • rebuilding native dependency name=sqlite3
Error: /usr/bin/node8 exited with code 1
Error output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using<EMAIL_ADDRESS>node-pre-gyp info using<EMAIL_ADDRESS>| linux | x64
node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/electron-v1.8-linux-x64.tar.gz
node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/electron-v1.8-linux-x64.tar.gz
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/electron-v1.8-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(electron-v1.8 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/electron-v1.8-linux-x64.tar.gz
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp clean' (Error: spawn node-gyp ENOENT)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/ebayer/workspace/dev/repos/git/joplin/ElectronClient/app/node_modules/sqlite3/node_modules/node-pre-gyp/lib/util/compile.js:77:29)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:211:7)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
node-pre-gyp ERR! stack     at onErrorNT (internal/child_process.js:372:16)
node-pre-gyp ERR! stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
node-pre-gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:180:9)
node-pre-gyp ERR! System Linux 4.18.5-1-default
node-pre-gyp ERR! command "/usr/bin/node8" "/home/ebayer/workspace/dev/repos/git/joplin/ElectronClient/app/node_modules/sqlite3/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/ebayer/workspace/dev/repos/git/joplin/ElectronClient/app/node_modules/sqlite3
node-pre-gyp ERR! node -v v8.11.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
error Command failed with exit code 1.

S3 sends 403 even when the files don't exist. We're not providing binaries for electron.

@laurent22 electron support has only been provided in later releases.
Please update to the latest node-sqlite3.
There is a known issue with the osx binaries, they are not published. I am resolving it #1041 .

still getting this issue accessing the follwing url:
https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.2/node-v64-linux-arm.tar.gz
the response is:

AccessDenied
Access Denied
1506470372ADE87D

fz8Ke0LJsdYVLh+aNjZp80CwIEq0cOd8sVR1ndYComrlLzalfw1963FLROgDatbLqRBakvyRqQc=

I am trying to install the latest<EMAIL_ADDRESS>on a raspberry PI

We're not publishing binaries for ARM/Raspberry PI. However, you can compile node-sqlite3 yourself for Raspberry PI.

I'm getting the access denied message using<EMAIL_ADDRESS>on Windows 10:
https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.4/node-v67-win32-x64.tar.gz


How to render the point cloud into rgb images?

Hi @RunpeiDong,
Thanks for your impressive work again.
Regarding the RGB images used in your work, may I ask how you render the point cloud into RGB images?
Are there any tools you suggested or which code base you used for this?
Best regards and many thanks,

Hi @Amazingren,
we use https://github.com/qizekun/PointVisualizaiton
Please check it out. For some visualization that requires special RGB (feature attention for example) we can also write ply files and use meshlab for visualization.

您的来信已经收到，稍后进行回复，谢谢~

Hi @Amazingren,
we use https://github.com/qizekun/PointVisualizaiton
Please check it out. For some visualization that requires special RGB (feature attention for example) we can also write ply files and use meshlab for visualization.

Thanks for the quick feedback, this is really a nice tool for visualization.
One more question, how do you get the shapenet_img (shown below) from the shapnet point cloud data?

Hi,
We use MasOS's preview (quick look) to generate high-quality images.
You can use 'qlmanage' command in bash.

Hi,
We use MacOS's preview (quick look) to generate high-quality images. You can use 'qlmanage' command in bash.

Cool, good to know!  Thanks again!


ESLint: Added regexp plugin

This PR adds the eslint-plugin-regexp plugin. This plugin statically analyses regex patterns and usages to find potential problems and suggest improvements. (Full disclaimer: I am a maintainer of the plugin.)
Right now, I only enabled a few rules to handle common things in code review (all warnings) and a few rules to detect (potential) errors.

@LeaVerou @Golmote @mAAdhaTTah
There is another really good rule I am unsure about adding, the regexp/no-dupe-disjunctions rule. This rule actually finds more than a dozen bugs in our regexes (not fixed here) and even points out likely causes of exp backtracking directly and live in the IDE.
However, the rule is slow. Right now, it increases the total linting time 5x (npm run lint), from 5s to 25s on my machine. This doesn't seem to be a problem for live code editing/viewing.
Should I also enable the regexp/no-dupe-disjunctions rule?

This is kinda awesome, and I love how it makes every language slightly smaller. As for the other rule, maybe open in a separate PR and discuss there? Would be good to see the impact on the code.

I love how it makes every language slightly smaller

In that case, we might also want to add the regexp/order-in-character-class rule which sorts the elements of character classes. This will make it easier for gzip to compress our regexes.

As for the other rule, maybe open in a separate PR and discuss there? Would be good to see the impact on the code.

Good idea. There are also a few other rules I would like to add. I'll make PRs for each.


operator korrel8r (0.0.8)

Request to create korrel8r operator

The docs still refer to semver-skippatch here: https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/docs/packaging-operator.md?plain=1#L179

The docs refer to semver-skippatch here: https://github.com/redhat-openshift-ecosystem/community-operators-prod/blob/main/docs/packaging-operator.md?plain=1#L185 - seems to be incorrect according to error above.

Good point! I already raised a PR with the removal https://github.com/redhat-openshift-ecosystem/community-operators-prod/pull/4072

Many thanks @Allda for your swift attention, I'm delighted to say I can now install Korrel8r via. OperatorHub.
I was impressesed by your onboarding process; all my effort went into improving my operator based on your check-lists and tests. When I did submit the PR there were couple of minor mistakes (which I immediately found were due to me not following clear instructions) and it Just Worked!!! Congrats to you and your team.

@Allda the operator is visible and installable in the openshift console, but does not seem to be listed on operatorhub.io. Do I need to take additional steps, or is this just a periodic update that hasn't run yet?


extendRoutes doesn't work?

nuxt.config.js：
router: {     extendRoutes(routes) {       routes: [{         path: '/',         redirect: '/lines'       }]     }   }
index.vue：
<template>

      <nuxt-link :to="item.link" v-for="item in navList" :key="item.title" active-class="act">
        {{ item.title }}
      </nuxt-link>

    <nuxt-child/>

</template>

when I visit "http://<IP_ADDRESS>:3000"，I expect  "http://<IP_ADDRESS>:3000/lines"
but it doesn't work.

Yes, of course doesn't work. Lines.vue and traffic.vue files shouldn't be in index folder.

I don't think so.
"http://<IP_ADDRESS>:3000/lines" and  "http://<IP_ADDRESS>:3000"  are addressable.
I just need URL redirect.

@Harry-Lee, redirect in the router object is not available with Nuxt but you can do a redirect with a middleware:
middleware/lines.js
export default function ({ redirect }) {
  return redirect('/lines')
}

index.vue
export default {
  middleware: 'lines'
}

Thanks.
The the 'middleware' could fix this problem,but I use the 'pages' to contains the router.
If I use the 'middleware',it will run again and again,then err:to many redirects.

Hi @Harry-Lee
I am not sure that your directory structure is right, you should have:
pages/
  lines.vue
  traffic.vue
  index.vue

And to redirect to /lines, you can do this:
pages/index.vue
<template></template>

please click this url https://modao.cc/app/kNiot1gRtOMKLeX44DMBGByHNYcuJhf
I hope I can make it clear.
what I want the urls:
http://<IP_ADDRESS>:3000   redirect => http://<IP_ADDRESS>:3000/lines
http://<IP_ADDRESS>:3000/lines
http://<IP_ADDRESS>:3000/traffic

@Harry-Lee, ok I haven't seen that you are using nested routes.
Just test your route name in pages/index.vue
export default {
  fetch ({ route, redirect }) {
    if (route.name === 'index') {
        redirect('/lines')
    }
  }
  ...
}

thank you so much.
problem solved.


in uv_default_loop have pipe handle leak?

i use udp default loop, empty work, but find the handle not close.
source code
`
uv_loop_t* loop = uv_default_loop();
uv_udp_t udp;
uv_udp_init(loop, &udp);
uv_close_all(loop, NULL);
uv_loop_close(loop);
`
use lsof find FIFO leak.
test    17088 root    5r  FIFO   0,10      0t0 1011624 pipe
test    17088 root    6w  FIFO   0,10      0t0 1011624 pipe

Two observations:

You don't check return values.
There's no such thing as uv_close_all().

I see no reason to believe it's a libuv bug.  If you still have questions, can you post them to libuv/help?  Please include (or link to) full source code.  Cheers.


Workflow Exception Handling Strategy

Need to be able to catch exceptions of a task and perform another task to handle. Such as catch exceptions and run a log task or an email task or proceed to next iteration of subprocess.

This REST endpoint may be useful for this: /history/incident
https://docs.camunda.org/manual/7.12/reference/rest/history/incident/get-incident-query/

There are several places that could benefit to throwing exceptions when they currently do not (Several of these places the current behavior is just to log the problem).

CompressFileDelegate: File operations such as failure to read or write.
EmailDelegate: when file attachment does not exist or is not a file.
RequestDelegate: Has warnings about type and output problems, need to determine if these are better served as exceptions.
FileDelegate: File operations such as failure to read or write.
InputDelegate: Has warnings about type and output problems, need to determine if these are better served as exceptions.
OutputDelegate: Has warnings about type and output problems, need to determine if these are better served as exceptions.

May consider checking all async before and after to determine "safe points" and relation with exception handling.

Long-running and/or CRON workflows should have email notifications for when complete.