as my project is chatbot , so i use newspaper3k which uses online webpage , but i have html file as an data to use in chatbot  so how should i use it rather than url webpage

 Issue by MeetH15
Wed Mar  4 16:47:47 2020
Originally opened as https://github.com/codelucas/newspaper/issues/791

use article.download(htmlfile)


feat(react-query): add <QueryClient>

Overview
close: #1267
PR Checklist

[ ] I did below actions if need

I read the Contributing Guide
I added documents and tests.

Codecov Report
Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 73.04%. Comparing base (48f36b6) to head (2f3178c).

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1269      +/-   ##
==========================================
- Coverage   73.39%   73.04%   -0.36%
==========================================
  Files          81       83       +2
  Lines         827      831       +4
  Branches      182      183       +1
==========================================
  Hits          607      607
- Misses        196      200       +4
  Partials       24       24

Components
Coverage Δ

@suspensive/utils
47.16% <ø> (ø)

@suspensive/react
100.00% <ø> (ø)

@suspensive/react-dom
96.66% <ø> (ø)

@suspensive/react-native
100.00% <ø> (ø)

@suspensive/react-query
72.09% <ø> (ø)

@suspensive/react-query-4
0.00% <0.00%> (ø)

@suspensive/react-query-5
0.00% <0.00%> (ø)

@suspensive/react-query-next-experimental
∅ <ø> (∅)

@suspensive/react-query-next-experimental-4
6.15% <ø> (ø)

@suspensive/jotai
0.00% <ø> (ø)

@suspensive/cache
98.01% <ø> (ø)

@suspensive/react-image
80.39% <ø> (ø)

I'm a little worried about the name QueryClient because it's an interface in @tanstack/query-core. I'd like to propose an alternative name: QueryClientConsumer. I want to know your opinion.


Fixed ignored serialization annotations

An @SerializedName annotation is now used if present, if not, the IdenticalPropertyNamingStrategy is used as a fall-back.
Tasks

[x] Update changelog

Information

Q
A

Fixed tickets
#496

BC breaks
None

Documentation PR
N/A

Can you replace the two lines in https://github.com/sulu-io/sulu-standard/blob/develop/app/config/admin/sulu.yml#L16 instead of using the services.yml file? This file is actually thought for defining services specific to an installation, and therefore should stay empty in the standard installation.

Put this solution into sulu/sulu as part of https://github.com/sulu-io/sulu/pull/1970


Remove alloy-font-awesome import during upgrade task from a 6.2 theme

I think we should remove this imports from _custom.scss during upgrade 6.2 theme process:
@import "aui/alloy-font-awesome/scss/mixins-alloy";
@import "aui/alloy-font-awesome/scss/variables";

Some themes like manzanita use those imports to use mixins and variables, if you have some of them your 7.0 or 7.2 theme will not compile so it has to be removed from your CSS, automatically or manually:
https://github.com/marcoscv-work/manzanita-theme/blob/adb5d0cd19bc44d3b7f1f0700bb79b9ef1103365/docroot/_diffs/css/custom.css#L1-L2
Those imports are common to use because are present in very used 'plugins' for dockbar like:
https://github.com/marcoscv-work/experimental-liferay-themes/blob/master/dockbar-classic-theme/docroot/_diffs/css/dockbar_classic.css#L1-L2
or
https://github.com/marcoscv-work/experimental-liferay-themes/blob/master/dockbar-vertical-theme/docroot/_diffs/css/dockbar_vertical.css#L1-L2

So... when did we remove those files? Was it in 7.0 or was it in 7.1.?


Two Sum

adding code in python please allow me.
problem link: https://leetcode.com/problems/two-sum

Please Assign me this in c++


[mc_rtc/constants.h] fix comments of rad/deg functions

Fixed only incorrect comments and variable names. The behavior of the program is originally correct and does not change.

Thanks for the fix CI failure is due to macOS not finding gfortran, I will look into it later this week.

Thanks for the fix CI failure is due to macOS not finding gfortran, I will look into it later this week.


Add activeElement blur method check

Windows Phone 8.1 does not support blur event on activeElement.
This patch would prevent this kind of devices throwing error for blur invocation.
  Message: Object doesn't support property or method 'blur'
     at document line 301, column 3 (/sources//jspm_packages/npm/fastclick@1.0.6/lib/fastclick.js:301)

  Environment:
  Browser width	320
  Browser height	489
  Screen width	        377
  Screen height	628
  OS	Windows Phone 8.1
  Browser	IEMobile 11.0

Got the same issue, this fix works

Removing this PR as this project is dead


Upload error but nothing in console

Informations
Browser: Chrome, Opera, Edge, Firefox:
Windows 10:
screen @ 1920x1280:
How to reproduce the bug?
Here is the code:
$('#trumbo')
.trumbowyg({
    btnsDef: {
        // Create a new dropdown
        image: {
            dropdown: ['insertImage', 'upload'],
            ico: 'insertImage'
        }
    },
    // Redefine the button pane
    btns: [
        ['viewHTML'],
        ['formatting'],
        ['strong', 'em', 'del'],
        ['superscript', 'subscript'],
        ['link'],
        ['image'], // Our fresh created dropdown
        ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
        ['unorderedList', 'orderedList'],
        ['horizontalRule'],
        ['removeformat'],
        ['fullscreen']
    ],
    plugins: {
        upload: {
            serverPath: '../client/document',
            fileFieldName: 'image'
        }
    }
});

When an image (jpeg format) is upload, I have an error message. But in console, anything seems to be wrong (server path)

What's the message?

The message is Error

What's the HTTP response content? When you click on document/

           plugins: {
		    upload: {
		    	serverPath: 'fileuploader.php',
	            headers: {
	                'content-type': 'application/json' /* Just because Alex mentioned this in an issues */
	            }
		    }
	    }

SERVER SCRIPT
<?php

$file_global = $_FILES['fileToUpload'];

$file_tmp_name = $file_global['tmp_name'];
$file_new_name = $file_global['name'];

$run_upload = move_uploaded_file( $file_tmp_name, "uploads_dir/".$file_new_name );

if( $run_upload ){
	echo json_encode([
		'success' => true,
		'file' => "uploads_dir/".$file_new_name
	]);

} else {
	echo json_encode(['success' => false]);
}
?>

NOTE: The HTML, fileuploader.php and 'uploads_dir' are all in the same folder
When I upload and click 'Confirm' a red border shows on the file input. Yes, from my console, when I click 'fileuploader.php' it returns the json for failed upload.
Please what could be wrong? I've spent hours trying to fix it.
Thanks


[glm] update to <IP_ADDRESS>

Tested on windows and compiles successfully. Also checked with my downstream project and everything works as usual.

Thanks!


Should the Editor Component expose a clear/reset method?

It seems like there's not a simple way to completely clear the Editor Component. From what I've read, it appears that there are a few round-about ways to do it.

From #445 - The method I'm using currently, which it seems to work as expected.

    let { editorState } = this.state;
    let contentState = editorState.getCurrentContent();
    const firstBlock = contentState.getFirstBlock();
    const lastBlock = contentState.getLastBlock();
    const allSelected = new SelectionState({
      anchorKey: firstBlock.getKey(),
      anchorOffset: 0,
      focusKey: lastBlock.getKey(),
      focusOffset: lastBlock.getLength(),
      hasFocus: true,
    });
    contentState = Modifier.removeRange(contentState, allSelected, 'backward');
    editorState = EditorState.push(editorState, contentState, 'remove-range');
    editorState = EditorState.forceSelection(
      editorState,
      contentState.getSelectionAfter(),
    );

    this.setState({ editorState });

Pushing a new empty state (from StackOverflow, and an older version of draft-js-plugins' FAQ) - This seems to cause some issues with cursor positioning after clearing the input.

const editorState = EditorState.push(
  this.state.editorState,
  ContentState.createFromText(''),
  'remove-range',
);
this.setState({ editorState });

This was removed from the FAQ a couple of months ago with the message "remove points from faq that don't apply anymore". Is this method no longer recommended?

EditorState.createEmpty() - I don't think this is recommended for anything other than initialisation.

Which of these is the recommended way to clear/reset the Editor Component? Would it make sense to expose a .clear() method on the Editor?

I ran into issues with this as well. Think a clear() method would be helpful in many use cases, like a messaging app.

Checkout clearEditorContent in https://github.com/jpuri/draftjs-utils
Would be nice if it was supported directly but this worked for me for now.

@TonyGorez
I ran into issues with this as well.
Can you find a solution?

Bumping this. I'm sure someone from the core team could point us in the correct path. And why EditorState.createEmpty() is not the right thing to use to clear an input?

Is there any progress on this?

solution of OP did not clear list block stylings
solution of OP has the well known cursor issues

I found that this is the only working solution:
// https://github.com/jpuri/draftjs-utils/blob/master/js/block.js
const removeSelectedBlocksStyle = (editorState)  => {
    const newContentState = RichUtils.tryToRemoveBlockStyle(editorState);
    if (newContentState) {
        return EditorState.push(editorState, newContentState, 'change-block-type');
    }
    return editorState;
}

// https://github.com/jpuri/draftjs-utils/blob/master/js/block.js
export const getResetEditorState = (editorState) => {
    const blocks = editorState
        .getCurrentContent()
        .getBlockMap()
        .toList();
    const updatedSelection = editorState.getSelection().merge({
        anchorKey: blocks.first().get('key'),
        anchorOffset: 0,
        focusKey: blocks.last().get('key'),
        focusOffset: blocks.last().getLength(),
    });
    const newContentState = Modifier.removeRange(
        editorState.getCurrentContent(),
        updatedSelection,
        'forward'
    );

    const newState = EditorState.push(editorState, newContentState, 'remove-range');
    return removeSelectedBlocksStyle(newState)
}

Its a combination of two helper functions provided by https://github.com/jpuri/draftjs-utils .
Didn't want to npm install the entire package for this.
It resets the cursor state but keeps the block list styling. This is removed by applying removeSelectedBlocksStyle()
Hope this helps.
I just can't belive how a library this mature doesn't offer a one-line reset feature.

@breytex and to add to his point, if you are using Next.js, draftjs-utils is not a safe bet as it does not do the proper checking for the presence  of window ...


Do not return resource for anything other than 2xxs

The below image shows that if i DO NOT use an idempotency key and yet try to create the same object twice i get back the same promise. It looks idempotent on the CLI. The server does return different status codes for both calls 201 and then 403. But, this should be an error message.
Also, I believe 409 makes more sense for this type of error since its more of a resource conflict than a forbidden request.

this also applies to 403s which are when trying to complete a promise after its already been completed. (without idempotency key again).

I think adding the omitempty json tag to the necessary go structs will get us most of the way there. For 403s we will need to additionally null out the promise.


Budgeting Tools

Case
Integrate a budgeting feature that enables the family to set financial goals, allocate funds for different categories, and monitor their progress. This tool will help with better financial planning.

Carry over budgeting


Version 1.18.0 is not published

Hi.
It looks like version 1.18.0 was not published to central.
https://search.maven.org/#search|gav|1|g:"de.heikoseeberger" AND a:"akka-http-json4s_2.11"

Duplicate of #172. Use 1.19.0-M2.

@hseeberger Is it stable enough, or I should prefer 1.17.0?

It's using a circe milestone. The rest is stable.


Bad magic number error when following huggingface setup TPU totorial

I followed the huggingface tutorial for setting up a repo for huggingface
https://github.com/huggingface/transformers/tree/master/examples/research_projects/jax-projects#how-to-install-relevant-libraries
pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html

import jax
jax.device_count()

Problem you have encountered:
I get a bad magic number error
What you expected to happen:
Get a device count
Logs, error messages, etc:
python3 jax-setup.py
Traceback (most recent call last):
File "jax-setup.py", line 1, in
import jax
ImportError: bad magic number in 'jax': b'\x03\xf3\r\n'
Steps to reproduce:
Whenever possible, please provide a minimal example. Please consider submitting it as a Colab link.
pip install "jax[tpu]>=0.2.16" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
import jax
jax.device_count()

Did you maybe first run with python2 and then python3? You'll need to delete your .pyc files.

Yes, I did that by accident, where is the.pyc file located?

I deleted the jax.pyc file and now it's working! Thanks for the incredibly quick help!


TOC links for headings aren’t url-encoded

Say I have something like
;; # My favorite algorithm: A*

The TOC link for this will look something like https://nonsense.local:7777/test.html#my_favorite_algorithm:_a*, but : and * both need to be URL-encoded.

Actually, never mind, the problem is something else: „Deep links“ to headings seem to not work at all :(

@zampino has been working on links in #336. If I read his comments correctly that includes fixing deep linking.

that includes fixing deep linking.

It didn't, but does now with ebf165bffdda6458143a2cdf88d0d709a0dbe0df and following commits.
With @joe-loco we shortly investigated why the browser's built-in behaviour wouldn't follow internal links, coldn't find a good reason yet, resorted to explicitely scroll when notebook view mounts ftm.


Small Inconsistency with float & double in Attributes encoding

In your documentation it's mentioned that Studio isn't capable of producing float-type attributes. This is mostly true.
https://github.com/rojo-rbx/rbx-dom/blob/f6007d561bcde2d120922cec818c0765a00ec460/docs/attributes.md?plain=1#L78
However, it seems that if you were to add an Attribute using the Studio properties menu:

And then save the file as xml (for example), you'd notice that the string encodes as AQAAAAYAAABudW1iZXIFAAAAAA== which, when decoded, show that it has a Type ID of 0x05 and has a size of a float.
Though, if you were to touch the value in any way, it would convert to a 0x06 and use double's format.
I'm not sure if this breaks any of your code but it's an interesting exception and might be worth taking into count.
Correct me if I'm wrong.

...I'll verify this Monday but if this is actually the case, I'll be confused.
Does this happen for binary files do you know?


Discuss: Screenshot for accessibility failures are confusing, but removing them may be confusing too.

A problem with accessibility errors is that, even when they're the only error, the test still takes a screenshot of the final page of the test, even though that page isn't relevant. Maybe we should avoid taking a screenshot at the end if the only failures are accessibility failures.
Additionally, should we take a screenshot of the page/field where the accessibility issue arose?

If we start saving the DOM as HTML as well as screenshoting (see #763), that would be very useful for accessibility issues.

That's true, but the screenshot itself is still not relevant and may be confusing/misleading to the dev. We'd still need to make sure to take screenshots if there were other errors, of course.

the screenshot itself is still not relevant and may be confusing/misleading to the dev

Should have clarified; I agree that the current situation of taking a screenshot of the final page isn't useful. However, a screenshot of the page that the accessibility error is on would still be useful. Sure, it doesn't fit in with our current UX of encouraging people to look through the screenshots to see the errors, but the screenshot is still useful to have when looking for certain accessibility issues.

I think we're actually on the same page and I mistook what you were referring to in your comment. All sounds good 👍

We should take the a11y error pic just after adding the a11y failure info to the report.


Show browse history

CMD/Ctrl + Y to show the history

what to do here
is we have to do a code to shoe the history of user browsing


Zk certificate operation queue

Add queue system to avoid addition/revocation conflicts.

I added the "registerToQueue" step in the DevnetGuardian, it won't work if there is any pending operation, but I think should be enough for testing purposes.


Dual Doorbell Loitering Detection Toggle

Is your feature request related to a problem? Please describe.
First off, I really love this integration, it's really quite comprehensive and extremely useful!  I would love to see the ability to turn loitering detection on and off as needed from the integration.  I don't know if the API supports it, but you can do this in the device settings.  I toggle the motion detection regularly when I'm working near the doorbell to stop alerts, but the loitering detection is always still going unless I change the settings in the app.
Describe the solution you'd like
A toggle just like motion detection.

try with 7.3.0 version and let me know.
Also, if it doesn't work, generate debug logs and share with me.


How can I render the table?

Hi, There is a table in my notion, but it is blank when it is rendered on the page, what should I do, can you help me ?

Hi @li-jia-nan ! did you see some error in console? can you share the implementation of  component? Its just with tables?


UDMH + NTO Configuration

I'm having some trouble finding much data on this particular mixture. A lot of Russian engines use it, but there's very little information about them (in my searches). Many other cases include either a different form of hydrazine or nitric acid (e.g. UDMH + RFNA, Aerozine-50 + NTO), which appear to be extremely similar, but I'm not knowledgeable enough in this area to know if these are similar enough to make a huge difference for your purposes.

They're all very similar, which is the reason why I have this one down with a note in the wishlist that similar mixtures would be nice in the future, but aren't crucial now.  You should be able to roughly mix-and-match the O/F ratios and pressures for the different combos if you're looking for typical O/F and pressure data.  I would recommend Norbert Brügge's site for info; under specials he has data for a lot of rocket engines, including mixture ratios.
I'd say to try doing the same pressure ratios as you did for hydrolox, but to extend the O/F range up a lot higher.  I think hypergolics tend to run ox-rich in the turbopumps.

That website is amazing. Wish I knew about it sooner!

That website is amazing. Wish I knew about it sooner!
Using this info, I've figured these will be good for our data:

O/F range: 0.5–26 (Liquid water shows up beyond 27.)
Optimal O/F range: 1.8–3.5
Frozen Area Ratio: 2 — Not really sure how to determine this!
Pressure range: 0.25–100 MPa

I would go higher for the O/F.  Water shows up in the exhaust, but it doesn't have the (L) after it, so it's gaseous and not a problem.  I think you could probably go all the way up to 60 and everything will be fine.

I'm getting H2O(L) at around 51. Should I still go with 60?

It's only showing up at the end of the nozzle at high pressures, so yeah, keep going for 60.

I can only get data for 0.25 Pa chamber pressure up to a mixture ratio of 54. Above that, it's too cold. Am I doing something wrong, perhaps?

No, likely that's just what's supposed to happen.  In that case, cut it off there.  If it's too cold to keep running, its chamber pressure should be cool enough to go into a turbine.  Chamber pressure is somewhere below ~800 K, right?

I can get data for down to 1.65 MPa with 60 O/F. At that point the temp in the chamber is ~600 K.

Fill that table if you want, but leave it commented out if you can't complete the pressures.  I'm currently not supporting incomplete pressure listings for given O/Fs because it makes solving things simpler.  The data is useful, but maybe for later on.

Sure thing.

And closed.

I just need to go over this again and we'll be good to go with these initial propellants!


Fixed checklist markdown syntax

Hey, @PrimoCrypt thanks. That was super fast. @geekiedj this should resolve #4

Hey @PrimoCrypt we had to close this issue because it turns out that GitHub won't render task list on READMEs
https://github.com/github/markup/issues/208
Thanks again for the quick turn around


Integrate CMake file

Similar to Makefile, there should be integrate CMake

to compile all project
generate files in product/gen folder
Add possibility to include .siml files in CMake automatically to generate sources.

Hi. May I get assigned this issue?

@Ali-Nasrolahi, I've assigned the ticket to you.
As a hint / help, please see the scripts of Makefile and this description. Important:

Use areg-sdk/conf/ folder to set there common and user specific settings. You can create new cmake folder for that.
All outputs should be in areg-sdk/product folder, which is created when compile.

Thanks. @aregtech

Hi @Ali-Nasrolahi
I hope you are doing well.
Just wanted to ask about the progress to complete this issue. I'm going to prepare next release where the Cmake will be one of important progress :) Would be great to if you could complete this issue in the next 2-3 weeks.

Hello @aregtech,
Thank you, hope you are doing well, too.
Well, fortunately project has been going well and hopefully the 2-3 weeks deadline would be more than enough.
So you could count on it pretty well.
In the meantime, please let me know if anything comes up with project which needs to be considered. :)
Thanks.

I'm happy to hear that 2-3 weeks are fine, @Ali-Nasrolahi
Actually, in this project there are still many things to do 😀
In the near future i'm going to integrate googletest (integration via CMake). I didn't decide yet whether this will integrate in upcoming or next release. If you are interested, we can discuss details later, after you complete CMake integration.
Have a great start of week!

Great, we could discuss more about it in near future then.
Have a great week ahead :)

This ticket can be closed. If something is wrong, we can open a bug ticket.
Thank you @Ali-Nasrolahi for the implementation and @biwiki for helping to review.
I appreciate very much your cooperation.


Update required php version

Since resolution() method uses imageresolution function, which is in GD library from PHP version 7.2, I would suggest upgrading your composer.json.
The reason is to prevent users from using this method on lower PHP versions.

Good catch. Let's track this in #284 as part of the larger 4.0 release to phase PHP 5.x out.


Memory:dataflow:Cleanup in memory

fixes #477
fixes #452

After seeing the LGTM fixed alert I'm reminded that we should remove the method definition from the abstract base class as well: BaseOperationImplementationNetworkContext.operations_parameter_set_pairs


krustlet-wascc pods never enter the ready state

Using krustlet-wascc 0.5, the pods enter the running state, but never reports readiness.
 ><> k get po
NAME    READY   STATUS    RESTARTS   AGE
greet   0/1     Running   0          2m12s

krustlet-wascc logs:
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider::states::registered] Pod added: greet.
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider::states::starting] Starting containers for pod "greet"
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider] sending actor to wascc host
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider] configuring capability wascc:logging
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider] configuring capability wascc:http_server
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider] wascc actor executing
Oct 28 21:57:52 krustlet krustlet-wascc[7888]: [2020-10-28T21:57:52Z INFO  wascc_provider::states::starting] All containers started for pod "greet".

This should be closed by #458


Add a toggle in Vendetta setting that will disable/enable updates for all the plugins

Currently, user have to manually disable/enable updates for each plugin, which is very tedious. A toggle which will do this all at once is apperciated

No


 These rules check if newer language constructs can be used (it automatically uses the minimum required version from pyproject.toml, so 3.9 in this case). I've only fixed some of the errors, the remaining ones need a bit more manual work. Thanks @hoechenberger for pointing out this very nice tool!
Edit: tutorials and examples are done.

Is Ruff UP going to be a CI robot?

Very nice, I generally like the idea of making use of modern language features.

I only hope we don't accidentally introduce new bugs.....

If this happens, our tests need to be udpated.

And at least one person needs to go over all changes I'm afraid.

Turns out this is a huge PITA. If anyone wants to take over the remaining ~350 conversions from % to f-string, please knock yourselves out. Otherwise, I'll do it sometime soonish, but probably not in the next days.

Turns out this is a huge PITA. If anyone wants to take over the remaining ~350 conversions from % to f-string, please knock yourselves out. Otherwise, I'll do it sometime soonish, but probably not in the next days.

Thanks for getting the ball rolling; may I suggest disabling UP031 and merging this sooner, and opening an issue (maybe tagged good-first-issue?) to re-enable it and fix the %s later?

Yes, sure. Can we keep the changes I've already made?

Yes, sure. Can we keep the changes I've already made?

of course!

Great idea, @drammock!

This should be good to go. I've created #12360 to follow up; we don't have a "good first issue" label, so I've used "EASY" for now (but feel free to change it).

We get some Numpy 2.0 related errors that haven't been caught by #12353. Should I fix them here or do we create a separate PR?

We get some Numpy 2.0 related errors in Pyvista/Pyvistaqt. It seems like there's no issue in their repos yet, since they probably do not test against pre-release Numpy.

I've just opened https://github.com/pyvista/pyvista/issues/5472

Thanks! Let me know once the PR is merged, I can then re-run the pip-pre job.


iOS 13 - Sound will not play if Waveform element present

Issue description
On iOS 13, if a Waveform element is present onscreen then no sound will play upon tapping the play button.  Tapping the play button appears to download and buffer the file and trigger playback but no sound actually plays.
(works on iOS 12 though)
Environment

What's My Browser Support link: https://www.whatsmybrowser.org/b/T9YWKH2

Amplitude.js Version: 5.0.2

Steps to reproduce the issue

Visit a page with an AmplitudeJs layer that contains a waveform element, using a device running iOS 13
Press play button
File will download/buffer but no sound will play

What is expected?

Sound should play and progress should increment forward
Link to where issue can be reproduced
AmplitudeJS Examples pages:
Waveform present, sound does not play: https://521dimensions.com/open-source/amplitudejs/docs/examples/blue-playlist.html
No waveform, sound plays ok: https://521dimensions.com/open-source/amplitudejs/docs/examples/flat-black.html
Additional details / screenshots

Hi @LAGENCECREE,
can you pls help me with this issue?
Thank you very much

@feemcgill Thanks for your comment about the problem with

. In my case I didn't need that element so I removed it and thereby fixed my problem on iOS 13! I realize it's a workaround but thanks for the inadvertent help anyway :)


[* DateTimeV2] Duration entities with modifiers should not always be merged

In certain cases, Duration entities are merged when they should instead stay separate. For example, the following inputs:
"The project was submitted last month and 3 weeks later it was approved" -> "month and 3 weeks later";
"They worked on the problem for the last 3 months and 2 days ago they found a solution" -> "3 months and 2 days ago".
Expected behavior
When two duration entities are both preceded/followed by modifiers (e.g. "this", "last", "next", "ago"...), they should not be merged. For example:
"The project was submitted last month and 3 weeks later it was approved" -> "last month", "3 weeks later";
"They worked on the problem for the last 3 months and 2 days ago they found a solution" -> "last 3 months", "2 days ago".

working on this


Updated swift 3 branch with master

Codecov Report

:exclamation: No coverage uploaded for pull request base (swift3@d697003). Click here to learn what that means.
The diff coverage is 96%.

@@            Coverage Diff            @@
##             swift3     #108   +/-   ##
=========================================
  Coverage          ?   93.12%
=========================================
  Files             ?       38
  Lines             ?     3041
  Branches          ?        0
=========================================
  Hits              ?     2832
  Misses            ?      209
  Partials          ?        0

Impacted Files
Coverage Δ

Source/Bricks/Image/ImageBrick.swift
79.81% <100%> (ø)

...rs/BrickCollectionView+BrickLayoutDataSource.swift
100% <100%> (ø)

Source/Models/BrickDimension.swift
98.46% <100%> (ø)

Source/Layout/BrickLayoutSection.swift
94.28% <100%> (ø)

Source/Cells/BrickCell.swift
97.82% <100%> (ø)

Source/ViewControllers/BrickCollectionView.swift
94.87% <71.42%> (ø)

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 d697003...e7e3e9e. Read the comment docs.


How can i get the "agentTypeID" ?

     var meshAgent = unit.mTransform.gameObject.AddComponent<NavMeshAgent>();
     meshAgent.agentTypeID = ???;           <-------

Current UNITY3D version " 2017.2.0f3 64bit "

Hi,
If you use the NavMeshSurface component to bake the NavMesh then the surface has an agentTypeID  property.
Alternatively, if you want to get lower level access to the agent types in the project then you can use code similar to this:
            var count = NavMesh.GetSettingsCount();
            var agentTypeNames = new string[count + 2];
            for (var i = 0; i < count; i++)
            {
                var id = NavMesh.GetSettingsByIndex(i).agentTypeID;
                var name = NavMesh.GetSettingsNameFromID(id);
                agentTypeNames[i] = name;
            }

Did this help?
More at Unity Answers.

Awsome !


cutter: pin to python310

Description of changes
cutter is currently built using Qt5 which requires pyside2 which does not support python3.11. Until we update the derivation to use Qt6 and pyside6 we have to use python3.10 for cutter.
Edit: @Mic92 @dtzWill

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Hi there! This appears to be a duplicate of #263951. Do you think you could test/review that PR?

Oops. Didn't see that. Thanks for notifying.


Parsing in-reply-to as a compound object

My reply to @snarfed's post is not showing the contents of my reply on his site, only that I "replied on gregorlove.com." We think this might be because my in-reply-to has a nested h-cite instead of a simple text string (or array of strings).
Reference: http://indiewebcamp.com/irc/2015-03-22#t1427041811926

+1. thanks for filing @gRegorLove!

It isn't that. It is a bug of sorts.
https://github.com/pfefferle/wordpress-semantic-linkbacks/commit/c363691d22abad0367b9f28dbc9b395ffd8b3f7d#diff-046d4632e7cce0b44f8c9a9a94458de6L127
Rollback this change.

should be fixed now


[OSX Beta] Trying to sign in with Twitter account yields white screen

After spotify login, clicking on the Twitter button to sign in with a twitter account results in a white screen. User can hit backspace or delete to page back to the social media login choice page but thats it. I don't have a Facebook account at the moment, so my only option is using Twitter to log in. Any help would be appreciated
Soundbounce Version 30.0.1599.66 (1599.66)
OSX v10.8.2

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

Does this happen when you try and log in again?  This seems to be a mac-only thing, and not sure what's causing it.  Anyone else with this issue - are you also on OSX 10.8 ?  Seeking experienced mac developers....

I have this problem also on OSX 10.10.1

Was also reported to me off github, this is clearly not a one-off issue.  In future I plan on removing the twitter / facebook requirement, which will mitigate this issue on OSX to some extent.
In the meantime, can any OSX developers out there help?

I have the same issue - OS X 10.10

Same issue on OSX 10.9.5.
Version 30.0.1599.66 (1599.66)


List of known Element Pane Bugs

We found out there are a couple of bugs currently in the Element Pane:

[x] Copy & Pasting the same page element inside itself
When I copy via Cmd+C an page element, select the same page element and hit Cmd+V, the page element seems to try to insert it in itself and crashes. It should not be possible to hit Cmd+V on the same page element, when it has been copied before.

[ ] Deleting Root Page Element
When I hit [Backspace] on the root Layout Component, something mysterious happens and Alva is broken. Together with #387 we should discuss, if we can have multiple root elements or set the root element undeletable. We should also think about displaying the root element in a different way (e.g. icon).

[ ] Hovering is slow
When you have a lot of page elements inside the element pane and hover fast above them from e.g. top to bottom, the performance is really slow and the hover status is late to the mouse pointer.

When I hit [Backspace] on the root Layout Component, something mysterious happens and Alva is broken. Together with #387 we should discuss, if we can have multiple root elements or set the root element undeletable. We should also think about displaying the root element in a different way (e.g. icon).

Fixed via #437


[patreon] unable to download video data: HTTP Error 404: Not Found

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.08.08 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Provide a description that is worded well enough to be understood
I saw that the most recent release (yt-dlp 2022.08.08) was supposed to fix the extractor for patreon but I still can not download patreon videos. I'm talking about the ones hosted on patreon itself, not external ones.
It doesn't matter if I give it a link to a single video or try to download the entire /posts site.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', '--cookies', 'D:\\Downloads\\cookies.txt', '-o', 'D:\\Downloads\\pat', 'https://www.patreon.com/posts/premium-access-70282931']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.08.08 [3157158] (pip)
[debug] Python 3.10.6 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 5.1-full_build-www.gyan.dev (setts), ffprobe 5.1-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.08.08, Current version: 2022.08.08
yt-dlp is up to date (2022.08.08)
[debug] [Patreon] Extracting URL: https://www.patreon.com/posts/premium-access-70282931
[Patreon] 70282931: Downloading API JSON
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 70282931: Downloading 1 format(s): 0
[debug] Invoking http downloader on "https://c10.patreonusercontent.com/4/patreon-media/p/post/70282931/2f021b39942c41e991996c6d3b6c4f7b/eyJhIjoxLCJwIjoxfQ%3D%3D/1?token-time=1660176000&token-hash=KXCG7MKA2tOS-rnUS9Z2tJ9U9BQse9gdOWikIoan71Q%3D"
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3169, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 2893, in dl
    return fd.download(name, new_info, subtitle)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\common.py", line 442, in download
    ret = self.real_download(filename, info_dict)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\http.py", line 371, in real_download
    establish_connection()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\downloader\http.py", line 129, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3647, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open
    response = meth(req, response)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

@coletdjnz

I don't have access to any creator that uses this video format.
does --user-agent "Patreon/7.6.28 (Android; Android 11; Scale/2.10)" help by any chance?

Specifying the user agent above doesn't work for me. This new video hosting method is current in invitation-only beta so it will likely be difficult to track down public examples.

I don't have access to any creator that uses this video format.
does --user-agent "Patreon/7.6.28 (Android; Android 11; Scale/2.10)" help by any chance?

I could give you my account if that helps. The membership will expire at the end of this month.

Hmm ok.
If you're happy to share creds that would be great. You can send them to me at<EMAIL_ADDRESS>or coletdjnz#6639 on discord.
Being a beta is problematic for us as they are more likely to change things around, but nevertheless I can have a look into it.

If you're happy to share creds that would be great. You can send them to me at<EMAIL_ADDRESS>or coletdjnz#6639 on discord.

I just sent them to your email.


Documentation: Typo confusing tf.training.Coordinator.should_stop w…

…ith tf.training.Coordinator.request_stop
The code makes it clear, but I wanted to remove the inconsistency between the discussion and the code.

@tensorflow-jenkins test this please


joystick: investigate queued jogs / inability to change direction

related: might also need to cancel jog on 0 crossing to make it more responsive and avoid queuing

It looks like the fundamental issue might be that we assumed only relative jogs are available (default G90), but you can in fact do G91 jogs which solves a lot of these problems. See the joystick reccomendations here:
https://github.com/gnea/grbl/blob/master/doc/markdown/jogging.md#joystick-implementation
This would probably solve overshoot due to end position being hard to predict

Sorry meant the code currently does G91, but should switch to G90

merged a significant improvement (back to relative jogs), although doesn't fully solve this. Needs a bit more investigation as we should be able to slightly under serve relative jogs and prevent the queue from filling


deptrace not work

export LD_PRELOAD=$PWD/deptrace.so;
strace  -e open /bin/ls
^C

-- Another console
strace -p  7572
strace: Process 7572 attached
--- stopped by SIGSTOP ---
^C strace: Process 7572 detached
strace -ff -p  7570
strace: Process 7570 attached
wait4(7572,
^C

The purpose of deptrace is to disable the ptrace calls from the binary itself by returning 0. It can't stop an external program to debug the current program, I believe that's what you confused you?


gosugamers-match@2

Found a bug https://github.com/KenanY/gosugamers-match/issues/7

KenanY/gosugamers-match#7 has been fixed in<EMAIL_ADDRESS>so better make sure we depend on versions >= to that.


name conflict with sash shell

Your project is conflicting with the old (but still alive and used) stand alone shell sash. Perhaps your README.md should mention that it is unrelated to that well known shell.

Added disclaimer, thanks


Custom layer methods

How to get custom methods assigned to layers?
Define a SCRIPTS environment variable which will be added to a template which supports the {{:scripts}} substitute variable.
"SCRIPTS": "<script src=\"/host/proxy/cdn?uri=https://api.github.com/repos/GEOLYTIX/xyz_resources/contents/client/csv_import.js&source=GITHUB&type=application/javascript\" defer></script>",

The script itself should be a function assigned to the window.
window._xyz_csv_import = (_xyz, layer) => {

  layer.view.appendChild(_xyz.utils.wire()`
  <button
    class="btn-wide primary-colour"
    onclick=${e => {
      e.stopPropagation();
      alert('bar')
    }}>Foo`);

}

This script can then be defined in layer definition of the workspace.
"custom": "_xyz_csv_import"

To be executed when the layer view is created.
layer.custom && window[layer.custom] && window[layer.custom](_xyz, layer)

I wrote a utils.customScript() method.
export function customScript(url) {

  // create absolute URL
  // const a = document.createElement("a");
  // a.setAttribute("href", url);
  // const absURL = a.cloneNode(false).href;

  return new Promise((resolve, reject) => {

    const script = Object.assign(
      document.createElement("script"), {
      defer: "defer",
      src: url,
      onerror: () => {
        reject(new Error(`Failed to import: ${url}`));
      },
      onload: () => resolve()
    });

    document.head.appendChild(script);
  });
}

With scripts defined in the layer object like so:
"scripts": {  "_xyz_csv_import": "/camelot/proxy/cdn?uri=https://api.github.com/repos/GEOLYTIX/xyz_resources/contents/client/csv_import.js&source=GITHUB&type=application/javascript" },

We can load the scripts in the _view (or elsewhere) like so:
    layer.scripts && Object.entries(layer.scripts).forEach(
        entry => _xyz.utils.customScript(entry[1]).then(window[entry[0]](_xyz, layer)));

The script is assigned to the window as a function which must match the entry key in the layer.scripts object.
window._xyz_csv_import = (_xyz, layer) => {

  layer.view.appendChild(_xyz.utils.wire()`
  <div style="padding-right: 5px">
  <button
    class="btn-wide primary-colour"
    onclick=${e => {
      e.stopPropagation();
      alert('bar')
    }}>Foo`);

}


Old style Middleware replacement

Currently the midddleware is constructed in a way that supports pre django 1.2.
I'm of the opinion that we should move to the new-style middleware and only support the versions of django that still receive security updates.
Would this be acceptable change @peppelinux ?

Right

https://github.com/peppelinux/django-audit-wazuh/pull/14


chore: Update delta rs to v0.17.1

The Cargo.toml for bridge still is referring to the main branch. if you're intending to track main rather than published crates then go for it 😆 but I wanted to check that was intended

There will never be a crate for this one, but I will eventually switch it to track the delta-rs release instead of main. It's tracking main currently because of the AWS SDK changes we were fighting through.


Extension of GraphQL API for shipments part 2

 2.0 Extension of shipment GraphQL API for reception #sprint-feb-27


Unable to access whether stubs are currently enabled or not

I'd like to add a runtime window that will enable us to toggle the enabled state of OHHTTPStubs at runtime.  However there's no way to know whether OHHTTPStubs is currently enabled or not, so I have no idea of which state to set my toggle switch on startup without making assumptions.  This seems like a property that should exist.

Sorry not to have responded earlier, I got tons of stuff to do and forgot this.
That could definitely be a property to add. Won't have much time to add it soon though, but don't hesitate to make a PR to add it, that shouldn't be too complicated to implement :wink:

I saw this and decided to take a run at the idea. Let me know what you think https://github.com/AliSoftware/OHHTTPStubs/pull/159

Just in case you forgot, you can close this now :)

Good poin, thanks!


Feature/1203706068707545 machine reward pallet

See comments in peaq-pallet-mor, do PR/MR at the pallet first!!!

Hmmm... Because it's not the public version, then I encounter this issue when compiling.
    Updating git repository `https://github.com/peaqnetwork/peaq-pallet-mor.git
error: failed to get `peaq-pallet-mor` as a dependency of package `peaq-dev-runtime v3.0.0-polkadot-v0.9.29 (/home/jaypan/Work/peaq/peaq-network-node/runtime/peaq-dev)`

Caused by:
  failed to load source for dependency `peaq-pallet-mor`

Caused by:
  Unable to update https://github.com/peaqnetwork/peaq-pallet-mor.git?branch=dev

Caused by:
  failed to fetch into: /home/jaypan/.cargo/git/db/peaq-pallet-mor-2f30b22c9af7ff54

Caused by:
  failed to authenticate when downloading repository

  * attempted to find username/password via git's `credential.helper` support, but failed

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to acquire username/password from local configuration


SSLError 'bad handshake'

I'm getting this fetching a css from anazon cloudfront
44 venv/local/lib/python2.7/site-packages/inlinestyler/converter.py in perform
raise IOError('The stylesheet ' + element.get("href") + ' could not be found') ...
If I curl the url causing the issue straight from the machine everything is fine.
Even with openssl:
openssl s_client -connect d1q7usoul9xakv.cloudfront.net:443 -CApath /etc/ssl/certs/
Start Time: 144489408
Timeout   : 300 (sec)
Verify return code: 0 (ok)
I fixed the issue with a hack, but I don't think is perfect:
In converter.py
Before
css_content = requests.get(csspath).text
After:
css_content = requests.get(csspath, verify=False).text
Can you please let me know if there is a better way to sort out this issue?

If I had to guess, you're having the same issue which caused #18 - there's something wrong with your root certificate store (for whatever reason, requests isn't seeing the root certificate for CloudFront).
Could you try doing this from a command line (with the right URL), where you'd normally run the script:
python -c "import requests; print requests.get('http://YOUR_URL_HERE')"
and tell me what it returns?

Thank you Daniel for coming back to me.
You are right it's the exact same issue since Arvid is a colleague of mine.
He just better formalized the hack I put in our staging environment.
If this is the solution it would be better to disable the ssh handshake
with a configuration inside the django settings.py file.
Anyway, I would prefer to understand why the certificate it's no more
valid. We'll see......
Thanks,
Walter Traspadini
On 21/10/2015 16:52, Daniel Langer wrote:

If I had to guess, you're having the same issue which caused #18
https://github.com/dlanger/inlinestyler/pull/18 - there's something
wrong with your root certificate store (for whatever reason,
|requests| isn't seeing the root certificate for CloudFront).
Could you try doing this from a command line (with the right URL),
where you'd normally run the script:
|python -c "import requests; print requests.get('http://YOUR_URL_HERE')"|
and tell me what it returns?
—
Reply to this email directly or view it on GitHub
https://github.com/dlanger/inlinestyler/issues/16#issuecomment-149921893.

I'm not crazy about adding an option to disable SSL certificate checking, but I'll consider it if we can't fix this otherwise. Is the production server where you're running this on Windows, Mac, or Linux?


Simplify dyn/impl parsing enabled by Punctuated improvements

Cleanup of the code added in #1245. Enabled by #1247. This code is where I noticed #1246.

Older rustc:
error[E0505]: cannot move out of `bounds` because it is borrowed
   --> src/ty.rs:930:59
    |
928 |   for bound in &bounds {
    |                -------
    |                |
    |                borrow of `bounds` occurs here
    |                a temporary with access to the borrow is created here ...
929 |       match bound {
930 |           TypeParamBound::Trait(_) => return Ok(bounds),
    |                                                 ^^^^^^ move out of `bounds` occurs here
...
935 |   }
    |   - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `punctuated::Iter<'_, generics::TypeParamBound>`


"Invalid ref" error when generating server with cross-file reference when "--keep-spec-order" specified

Problem statement
When I generate a server from a complete YAML file, I am able to validate the document and generate the server.
When I move an object definition to a separate YAML file in the same directory, and use a cross-file reference to the definition, validation passes.  But server generation fails when the "--keep-spec-order" option is specified.  It succeeds when it is not.
Please remove the sections that don't apply
Swagger specification
First, the complete document without external references, which works:
swagger: '2.0'
info:
  title: Test API
  description: Test
  version: v1
host: host
schemes:
- https
- http
basePath: /path
produces:
- application/json

paths:
  /obj:
    get:
      summary: Get an object
      operationId: getObject
      responses:
        200:
          description: The object
          schema:
            $ref: '#/definitions/MyObject'

definitions:
  MyObject:
    title: My object
    type: object
    properties:
      string1:
        type: string
        title: A string
      bool1:
        type: boolean
        title: A boolean
    default:
      string1: "first"
      bool1:   false

Next, the document split into two, starting with the main document with an external reference:
swagger: '2.0'
info:
  title: Test API
  description: Test
  version: v1
host: host
schemes:
- https
- http
basePath: /path
produces:
- application/json

paths:
  /obj:
    get:
      summary: Get an object
      operationId: getObject
      responses:
        200:
          description: The object
          schema:
            $ref: './test-definitions.yaml#/definitions/MyObject'

And next, the test-definitions.yaml file, which is located in the same directory:
definitions:
  MyObject:
    title: My object
    type: object
    properties:
      string1:
        type: string
        title: A string
      bool1:
        type: boolean
        title: A boolean
    default:
      string1: "first"
      bool1:   false

Steps to reproduce
Validation succeeds in both cases:
$ ./go-swagger validate test.yaml
2020/02/06 08:43:13
The swagger spec at "test.yaml" is valid against swagger specification 2.0

And basic server generation also succeeds in both cases:
$ ./go-swagger generate server -f test.yaml -t ./testout
...
2020/02/06 08:47:11 Generation completed!

But when I add the --keep-spec-order flag, it fails on the external reference:
$ ./go-swagger generate server -f test.yaml -t ./testout --keep-spec-order
2020/02/06 08:48:21 validating spec /tmp/test.yaml940091833
The swagger spec at "/tmp/test.yaml940091833" is invalid against swagger specification 2.0. see errors :
- invalid ref "./test-definitions.yaml#/definitions/MyObject"

The error message says the swagger spec is in the /tmp directory, so I assume that the relative reference is not being resolved properly to the current directory.  If I copy test-definitions.yaml to /tmp, generation succeeds.
Environment
swagger version: v0.21.0
go version: go1.11.5 linux/amd64
OS:   Ubuntu Linux 16

The problem seems to be in WithAutoXOrder() in generator/support.go.  It specifies "" as the directory parameter to ioutil.TempFile():
	tmpFile, err := ioutil.TempFile("", filepath.Base(specPath))

This places the temporary file in /tmp, but the rest of the code doesn't know that relative references should not refer to /tmp, but instead to the directory where the original file is located.

Just ran into this again on another project.  This is very frustrating, as it prevents me from using Go's db.Scan() to scan a SQL row into a generated struct, because the property order matters for db.Scan().
This also makes it impossible to share object definitions across multiple swaggers, which is what I am trying to do now.

The --keep-spec-order hack looks like it has been hastily implemented to solve a very narrow use-case.
As an aside, for SQL, I am using github.com/jpmoiron/sqlx.StructScan, with named columns. Much less error-prone.

I have abandoned --keep-spec-order.
I now use reflection to determine the property order of the generated model, then select the columns in that order.  That works for me.
I think it's too late for us to switch to a different DB scanning technology; we have 4+ years built on Go's library.  But it would be nice to find something faster.
Thanks.

Looks like this problem is relatively well known. I suppose I'll leave my recreation steps, since it's in my clipboard already:
cd "$(mktemp -d)"
go mod init swagtest
wget https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.16/swagger.yaml
swagger generate model --keep-spec-order

%   cd "$(mktemp -d)"
  go mod init swagtest
  wget https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.16/swagger.yaml
  swagger generate model --keep-spec-order
go: creating new go.mod: module swagtest
--2021-07-09 01:11:27--  https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.16/swagger.yaml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22231 (22K) [text/plain]
Saving to: ‘swagger.yaml’

swagger.yaml                                                100%[===========================================================================================================================================>]  21.71K  --.-KB/s    in 0.002s

2021-07-09 01:11:28 (8.56 MB/s) - ‘swagger.yaml’ saved [22231/22231]

2021/07/09 01:11:28 validating spec /var/folders/59/qq76hmt55wb642f39q6nbxqr0000gp/T/swagger.yaml946778639
The swagger spec at "/var/folders/59/qq76hmt55wb642f39q6nbxqr0000gp/T/swagger.yaml946778639" is invalid against swagger specification 2.0. see errors :
- some references could not be resolved in spec. First found: invalid character 's' looking for beginning of value

Fixed by #2621


Challenge Sorted Union has a bug and does not validate while I'm having the good results

Challenge Sorted Union has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function unite(arr1, arr2, arr3) {
  return Array.from(arguments).reduce(function(all, current){
    return all.concat(current);
  }, []).filter(function(element, index, array){
    return array.indexOf(element) === index;
  });
}

unite([1, 2, 3], [5, 2, 1, 4], [2, 1], [6, 7, 8]);

Hey @liorchamla! Your code is indeed correct. The issue is that it appears you renamed your function. The tests are looking for a function named uniteUnique, but your function is named unite. Changing back the function name makes the challenge pass. If you need coding help, please click the "help" button on the challenge.
I'm closing this issue. If you believe I misunderstood the problem, feel free to add more information and reopen the issue.

No you were right bro. The problem was the function name. But the weird thing is that I did not modify the function name. Maybe the exercise has changed between the time I did it in February and now. And so my code was good at this time but not anymore.
I found the same problem on the next challenge (old code that used to work but now doesn't anymore),  I just did a reset, and rewrite the same code, then it worked. I figured out the reset has changed something, maybe the function's name.
Anyway, this is fixed !
gg wp ;-)

👍 I assume it saved your old code, and the challenge had been changed in the meantime. Sorry for the hassle, happy coding!


Hide scholarships if you are on a friends profile page

We don't want to show scholarships when you're on a friends page, so we check the profile_user_id and the current_user_id, and if they aren't the same, don't show scholarships.

LGTM after comment above addressed. Thanks for the fix!

Thanks for the quick review David!


The jdk8u192-b12 and jdk-11.0.1+13 links are not found

Looking at https://adoptopenjdk.net/archive.html?variant=openjdk8&jvmVariant=openj9 the link for "jdk8u192-b12" which is https://github.com/AdoptOpenJDK/openjdk8-openj9-releases/releases/tag/jdk8u192-b12 does not exist.
Similarly at https://adoptopenjdk.net/archive.html?variant=openjdk11&jvmVariant=openj9 the link for "jdk-11.0.1+13" which is https://github.com/AdoptOpenJDK/openjdk11-openj9-releases/releases/tag/jdk-11.0.1+13 does not exist.

The link is to the wrong repo - Should be openjdk11-binaries and openjdk8-binaries. Will look at sorting that.

@sxa555 probably an API code change?

closing as they now work for me


TEST ONLY Case workers return to original url after login

If a case worker accesses any url under /support/* or /manage/*, but they are not authenticated,
they will return to the original url after login.
Context

Changes proposed in this pull request

Guidance to review

Link to Trello card

Checklist

[ ] Attach to Trello card
[ ] Rebased main
[ ] Cleaned commit history
[ ] Tested by running locally

Not needed anymore.


Allow passing fs instance to createExplorer

Defaults to require('fs').
fs instance needs to implement the following methods:

stat, statSync
readFile, readFileSync

Closes #105.

We could add tests which use a virtual file system. Or should we just use a virtual file system for all our tests(instead of creating temp directories)?

I thought they explicitly wanted real directory tests for require, but I'm having trouble finding where that discussion was.

@sudo-suhas want to add some integration tests against one of the known virtual-file-system libraries?

Okay, will do. Running all the existing tests against both real and virtual fs would be overkill right?

Running all the existing tests against both real and virtual fs would be overkill right?

I think that might be overkill, yes. 😄

Apologies if you got spammed with notifications :sweat_smile:. Was trying to fix Windows errors using appveyor, too lazy to reboot into Windows.

Looks great to me 👍
@sudo-suhas do you feel it's ready to merge?

Yes, I think it is. Would have liked to know what @pvdlg thought of it.

@pvdlg I will wait till tomorrow to hear your opinion. Will merge it in and release as 5.1.0 otherwise.

Sorry for the late answer. I'm not really knowledgeable about the cosmiconfig code so I don't have much of an opinion on the code itself.
Regarding the feature itself that the method that need to be defined are stat, statSync, readFile and readFileSync. Is it necessary to define both the sync and async functions? What if use only the async version of load()?
In the context of reading the config from the repo within a GitHub app (the example I gave when I opened the issue) I'm not sure how to implement stat and statSync. Should these function return a result similar to fs.stat? How similar (i.e. what fields are necessary)?
Finally it seems surprising for the doc to use Flow. Nowhere else in the doc Flow is used so it's confusing. It might make things unclear for people who don't know Flow and it might give the impression that Flow is required.

What if use only the async version of load()?

We've made the decision to split out sync and async functions back here, so that's just part of the api going forward.

I'm not sure how to implement stat and statSync

You can think of node's fs as the reference implementation to follow.  I'll take a look at how webpack communicated this and see if we can add a note making this clear.

Finally it seems surprising for the doc to use Flow

I assume he used flow out of habit, but because javascript doesn't have the concept of interfaces - and what sudo-suhas is exposing is an interface - I can see why using flow to describe the api is fitting.  Again I'll see how webpack communicated this to see if it makes sense to follow suit.

I don't have much of an opinion on the code itself.

That's alright, I was looking for feedback on the documentation and usability.

Is it necessary to define both the sync and async functions? What if use only the async version of load()?

You could very well not provide methods for the ones you won't be using or throw a not implemented error in them. But in the context of a virtual in-memory fs, it might make more sense to use the sync versions.

I'm not sure how to implement stat and statSync.

Wouldn't you use a virtual fs instance created using something like memory-fs?

Should these function return a result similar to fs.stat? How similar (i.e. what fields are necessary)?

The documentation answers this. Only the isDirectory method needs to be implemented on the Stats object which is returned.

Finally it seems surprising for the doc to use Flow. Nowhere else in the doc Flow is used so it's confusing.

The objective was to express the API. I myself have not used flow much but the type declaration was easy to understand and relatively easy to maintain since it was also present in the definitions file. If you have any suggestions about alternative syntax for expressing the same, I'd be glad to revise it.

Maybe we could put something like...

I like this suggestion and have updated the documentation for it.

This branch is too stale to keep the PR open, and lack of movement suggests lack of interest. Please open a new PR if the change still seems important.


Hi @fetrarij, we were able to get it to work in our project, and the need for a fix was probably project-specific. We had to manually import a script, and then everything worked fine. Thanks for checking though. I'll close this.

Hi @fetrarij, we were able to get it to work in our project, and the need for a fix was probably project-specific. We had to manually import a script, and then everything worked fine. Thanks for checking though. I'll close this.
Originally posted by @benjaminrlawrence in https://github.com/atais/ng2-eonasdan-datetimepicker/issues/56#issuecomment-419901029
Where did ou import script manually

We had this line at the top of our datetime-picker.component.ts file.
import 'eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js';


[New] IPv6 Range commands

@yoshizzle the "replacement" is from the customer's perspective when viewing the docs -- I've kept the old command in the same path, just renamed it with a reference to the new command so we should be good


cannot open source file "activations.h" on Windows

Hi
I'm attempting to build some of the examples on Windows (Win 10 using Visual Studio 2015).
With all the examples I am running in to the same issue, where I get tons of errors stating that Visual Studio cannot open a lot of .h files from ofxDarknet.h.

I have it running just fine on Mac and am not very experienced using openFrameworks in Visual Studio, so maybe I'm just doing a simple thing wrong?
First i build the project using the project generator. Inside Visual Studio I have it set to x64 mode, have ticked CUDA 8.0, set the C/C++ compile settings to default and copied the
pthreadVC2.dll to the applications bin folder.
Am I missing something?

not sure how to do this inside visual studio but it sounds like the folder with all those headers is not in the header search path (maybe also it's a problem with relative folder paths).

Okay, might be. Any ideas how to solve this? @mrzl (or other people on Windows)?

okay so when I got these if you see how it is referencing it. Mine was saying something like "......\addons\ofxDarknet\libs\darknet\include<insertFileHere>" just move your directories to match that folder layout so I put my example like so:
C:\Users\Baltej\Documents\of_v0.9.8_vs_release\examples\ofxDarknet
and then addons which are the source files that are being requested in your MSVS in:
C:\Users\Baltej\Documents\of_v0.9.8_vs_release\addons\ofxDarknet\libs\darknet\include:

Hi @gurmeetsidhu
Thanks for replying!
Not sure I understand you correctly? I need to copy the examples from the ofxDarknet addon to a new folder inside examples, like so: of_v0.9.8_vs_release\examples\ofxDarknet\yolo-2
And they still keep the addon in \addons?
And no extra settings inside Visual Studio?
Best
Andreas

Yes, not sure if this is the way to do it but it works I guess ... So I have the examples from ofxdarknet in this format

and the addons:

I really had no clue how to install this but if you have any unresolved symbols or any missing includes just add the right dependencies, took me about 20 mins to get everything linked up, barring some weird issues.

Okay, cool thanks 👍! And how precisely do you "add the right dependencies"?

Okay so Im very bad at explaining things so just bear with this picture that will show you what to do. Go to your project -> left click -> click properties and then add additional includes here:

Here is raw input I put for additional include directories. Bear in mind I decided to clone openframeworks instead of just downloading the latest release so ... there's a lot of includes in here to directories I've had to download myself (don't worry if you downloaded release version you don't have to worry about downloading anything extra). So you probably don't need all of them but yea...
%(AdditionalIncludeDirectories)
src
src\cfg
......\addons\glew-2.0.0\include
......\addons\glm
......\addons\ofxDarknet\libs
......\addons\ofxDarknet\libs\3rdparty
......\addons\ofxDarknet\libs\3rdparty\dll
......\addons\ofxDarknet\libs\3rdparty\dll\x64
......\addons\ofxDarknet\libs\3rdparty\dll\x86
......\addons\ofxDarknet\libs\3rdparty\include
......\addons\ofxDarknet\libs\3rdparty\lib
......\addons\ofxDarknet\libs\3rdparty\lib\vs
......\addons\ofxDarknet\libs\3rdparty\lib\vs\Win32
......\addons\ofxDarknet\libs\3rdparty\lib\vs\x64
......\addons\ofxDarknet\libs\cuda
......\addons\ofxDarknet\libs\cuda\include
......\addons\ofxDarknet\libs\cuda\lib
......\addons\ofxDarknet\libs\cuda\lib\vs
......\addons\ofxDarknet\libs\cuda\lib\vs\x64
......\addons\ofxDarknet\libs\darknet
......\addons\ofxDarknet\libs\darknet\include
......\addons\ofxDarknet\libs\darknet\lib
......\addons\ofxDarknet\libs\darknet\lib\vs
......\addons\ofxDarknet\libs\darknet\lib\vs\x64
......\addons\ofxDarknet\libs\darknet\lib\vs\x64\Debug
......\addons\ofxDarknet\libs\darknet\lib\vs\x64\Release
......\addons\ofxDarknet\src
......\addons\ofxOpenCv\libs
......\addons\ofxOpenCv\libs\opencv
......\addons\ofxOpenCv\libs\opencv\include
......\addons\ofxOpenCv\libs\opencv\include\opencv
......\addons\ofxOpenCv\libs\opencv\include\opencv2
......\addons\ofxOpenCv\libs\opencv\include\opencv2\calib3d
......\addons\ofxOpenCv\libs\opencv\include\opencv2\contrib
......\addons\ofxOpenCv\libs\opencv\include\opencv2\core
......\addons\ofxOpenCv\libs\opencv\include\opencv2\features2d
......\addons\ofxOpenCv\libs\opencv\include\opencv2\flann
......\addons\ofxOpenCv\libs\opencv\include\opencv2\gpu
......\addons\ofxOpenCv\libs\opencv\include\opencv2\gpu\device
......\addons\ofxOpenCv\libs\opencv\include\opencv2\gpu\device\detail
......\addons\ofxOpenCv\libs\opencv\include\opencv2\highgui
......\addons\ofxOpenCv\libs\opencv\include\opencv2\imgproc
......\addons\ofxOpenCv\libs\opencv\include\opencv2\legacy
......\addons\ofxOpenCv\libs\opencv\include\opencv2\ml
......\addons\ofxOpenCv\libs\opencv\include\opencv2\nonfree
......\addons\ofxOpenCv\libs\opencv\include\opencv2\objdetect
......\addons\ofxOpenCv\libs\opencv\include\opencv2\photo
......\addons\ofxOpenCv\libs\opencv\include\opencv2\stitching
......\addons\ofxOpenCv\libs\opencv\include\opencv2\stitching\detail
......\addons\ofxOpenCv\libs\opencv\include\opencv2\superres
......\addons\ofxOpenCv\libs\opencv\include\opencv2\ts
......\addons\ofxOpenCv\libs\opencv\include\opencv2\video
......\addons\ofxOpenCv\libs\opencv\include\opencv2\videostab
......\addons\ofxOpenCv\libs\opencv\lib
......\addons\ofxOpenCv\libs\opencv\lib\emscripten
......\addons\ofxOpenCv\libs\opencv\lib\vs
......\addons\ofxOpenCv\libs\opencv\lib\vs\Win32
......\addons\ofxOpenCv\libs\opencv\lib\vs\Win32\Debug
......\addons\ofxOpenCv\libs\opencv\lib\vs\Win32\Release
......\addons\ofxOpenCv\libs\opencv\lib\vs\x64
......\addons\ofxOpenCv\libs\opencv\lib\vs\x64\Debug
......\addons\ofxOpenCv\libs\opencv\lib\vs\x64\Release
......\addons\ofxOpenCv\libs\opencv\license
......\addons\ofxOpenCv\src
You should already have done this but in case you haven't add openCV libraries. I also am running cuDNN for another darknet build so ignore that:

RAW:
%(AdditionalLibraryDirectories)
C:\opencv_2.4.9\opencv\build\x64\vc12\lib
\lib\x64
And that's pretty much it sorry for long post

Hmm, I tried this, but no changes... Still the same errors.
From what I understand, your solution to solving this problem involves moving the files around to make sure that the paths are correct? Is that right?
However, what I don't understand is how that changes anything?
Wether you try to run the example from:
C:\Users\Baltej\Documents\of_v0.9.8_vs_release\examples\ofxDarknet\example-yolo2
or
C:\Users\Baltej\Documents\of_v0.9.8_vs_release\addons\ofxDarknet\example-yolo2
Should make no difference in terms of relative paths like:
..\..\..\addons\ofxDarknet\src\ofxDarknet.cpp
Since they are both on the same "level" relative to of_v0.9.8_vs_release\addons
Or am I missing something?

@AndreasRef did you go through the steps written in the readme for Windows setup? https://github.com/mrzl/ofxDarknet#windows

@AndreasRef I changed every include to the absolute path. Don't know if it's the right way, but it works for the includes. Now I'm stuck at the linking issue.
#include "activations.h"
changed to:
#include "D:\Openframeworks\addons\ofxDarknet\libs\darknet\include\activations.h"

@AndreasRef check this out here: https://github.com/mrzl/ofxDarknet/issues/23


deadline of IronPython 3

Hello
Do you have a deadline for the first version of IronPython 3?
thank you

Please questions on the mailing list at<EMAIL_ADDRESS>

Thank you ! it's an answer that says a lot.


how to display the train loss?

when i train a model ,i can't see the train loss every 100 batches  when i add batch_end_callback=mx.callback.log_train_metric(100), this will only display the accuracy.  How can i see the train loss ?

What we can do is to add a loss function evaluation metric(say logloss) and log that metric instead, as far as I recall, it is also possible to pass in multiple metrics

got it

Is there some examples? Thanks


Heap debugging

Adding debugging versions of new, delete, malloc and free would trivialize problems like the stress test showing the heap not returning to a pre-set size.
This work was already started, but complicated due to having to also implement debug versions of shared and unique ptr.

Why do you have to add debug versions of new, delete, shared/unique_ptr? What do you want to accomplish? Shouldn't it be enough to override/ "hijack" malloc and free, since new/delete uses them internally?
In another project I've worked with a tool that we used to track memory leaks and other types of memory errors while running in "semi-production". The tool overrides malloc and free and can be started/stopped at any time. The work flow when looking for memory leaks is something like:

Start application with memory guard built in and let it execute to some initial state.
Start memory guard
Do something with the application that should not make the heap usage increase (e.g. start some subservice and then stop it, going back to the initial state).
Stop the memory guard
Tell memory guard to print all allocations that were made from point 2 which haven't been free'd yet, including a stack trace for each allocation (so that you can see where the allocations were made). These are possible memory leaks.

The tool can also check, automatically, for write overflow/underflow by allocation a larger buffer than requested and inserting checksums before/after the buffer and verifying that the checksums are correct when the buffer is free'd. It can also check for allocations of zero bytes, double free(), and so on.
Shouldn't it be possible to use a similar tool for IncludeOS?

thats fine and all, and yes I could do that in 10 minutes
but I want to pass along filenames, line numbers and caller (using backtrace), so that the heap tables have more than just the address and length as information :)
to do that we also have to deal with shared and unique ptrs, passing stuff along with that... not so easy :(
so yes, we could track malloc and free, but anyone can do that when they need it :)
i want to make something that is more useful, but i dont know enough about C++ *_ptr internals yet

Aha, I understand. The tool I worked with stored a stack trace for each allocation that were made. So by using a script on the output together with an unstripped object file you were able to get function names and approximate line number (or rather, how "far" into the function the call was made from. ((return_adress - function_adress) / function_length) * 100 ). After using the script you got output like:

Possible memory leak, 54 bytes allocated at:
Foo::allocate() (40%)
Foo::Foo() (15%)
Bar::createFoo() (90%)
...
Possible memory leak, 128 bytes allocated at:
...

I have made an attempt in my dev branch: https://github.com/fwsGonzo/IncludeOS
It's fairly shaky right now because of all the no-heap stuff :) but it does work, and I caught 2 errors with it.


typo in variable causes crash

https://github.com/googlesamples/assistant-sdk-python/blob/master/googlesamples/assistant/__main__.py#L119
should be
resp.result.spoken_response_text
i think

Yeah. I also think so.
Getting the following traceback

Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/main.py", line 320, in
main()
File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/env/lib/python3.4/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/main.py", line 313, in main
continue_conversation = assistant.converse()
File "/home/pi/env/lib/python3.4/site-packages/tenacity/init.py", line 87, in wrapped_f
return r.call(f, *args, **kw)
File "/home/pi/env/lib/python3.4/site-packages/tenacity/init.py", line 235, in call
do = self.iter(result=result, exc_info=exc_info)
File "/home/pi/env/lib/python3.4/site-packages/tenacity/init.py", line 194, in iter
return fut.result()
File "/usr/lib/python3.4/concurrent/futures/_base.py", line 395, in result
return self.__get_result()
File "/usr/lib/python3.4/concurrent/futures/_base.py", line 354, in __get_result
raise self._exception
File "/home/pi/env/lib/python3.4/site-packages/tenacity/init.py", line 238, in call
result = fn(*args, **kwargs)
File "/home/pi/env/lib/python3.4/site-packages/googlesamples/assistant/main.py", line 119, in converse
resp.result.spnoken_response_text)
AttributeError: 'ConverseResult' object has no attribute 'spnoken_response_text'

Yep, should be fixed with #17 and #20


Table column sort icon gets cut off when the column width is too narrow

🐛 Bug Report
When a column gets to be too small, the sort arrow gets cut off.
🤔 Expected Behavior
Sort arrow should not be hidden
😯 Current Behavior

As you can see, the arrow is only half visible
💁 Possible Solution
We have solved this with the following client-side css, which seems to fix it:
[role='columnheader'] {
	min-width: 115px;
}

🌍 Your Environment
We are using the table through @quarry/inventory beta.1
🧢 Your Company/Team
Adobe Analysis Workspace

What version of RSP TableView are you using? Does the minWidth prop work for you?

It looks like @quarry/inventory is using "@react-spectrum/table": "3.0.0-beta.0", in my package-lock. I can try the minWidth prop, but I can only assume this issue would require every user of spectrum table to use the same min-width prop to avoid having the arrow hide.


Ignore intentional const discards also on clang

Added a clang run to Github actions

Github actions has support for something called a build matrix (https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix) where you can have the same set of steps run on multiple compilers without copy/pasting code.
@stevedlawrence has some code for that already that he can make a PR for.  How would you feel about scaling this back to just the other improvements and then Steve can add the build matrix portion to get clang compilation in the pipeline?

Dropped all GitHub action related changes.


Make sure ARM errors calling /listSecrets have proper ARM error respo…

…nse. Closes #2610

ugh, looks like VS decided to change the encoding of the file, not sure why


Fix: race condition in nested components

Fix race condition in nested components. Skip Alpine.init call on elements with an ancestor with x-ignore.
#39

This logic makes sense to me. I did some testing around this and seems to work well with nesting, also appears to fix my use case, thank you!
@Accudio thoughts on this solution? It appears inline with what you were suggesting.

@helio3197 @allensquare This is pretty much like I was thinking, thank you for the contribution! I've got a busy week but will review and test this at the weekend.

This fixed an issue I was having but nested components, but are you aware it broke Filament's modal?
https://github.com/filamentphp/filament/releases/tag/v3.2.37

Thanks for flagging @howdu. @danharrin would you or another member of the Filament team be able to file an issue with your modal implementation and a test case and I can take a look into this?
I believe the behaviour in 1.2.2 is the most correct, reliable and consistent and am surprised it caused a breaking change, but there may be something I missed or it's implementation-based.

Hi @Accudio, I would like to, but currently I don't really have time to dig into it, and locking the dependency was the easiest way for us to move forward.
@howdu if you're looking to use the functionality of this release, you can make a reproduction for us if you want, just use any Alpine form component like Select in a modal.


Assembler misinterprets uppercase flags

The assembler does not recognize upper-case flags correctly. It still quietly compiles and runs the code, but the flag is not processed right. Here is an example:
call Z, 1234 does not call a subroutine when the Z flag is set.
call z, 1234 however works as expected, calling the subroutine when the Z flag is set.
This is also true, for example, for a conditional jump (jr z vs. jr Z).
Here is a complete code example . Change the "z" to "Z" to see the effect.
    .model Spectrum48
    .org #8000
    ld a, 42
    cp 42
    call z, Green       ; this works with "z" but not with "Z"
    ret

Green:
    ld a,4
    call 8859           ; set border color to green
    ret

@borchers, Thanks for reporting this issue, I will soon fix it!

Fixed in release v0.12.4.

Much appreciated, thank you Istvan!


Always 0

Why does double noise = OpenSimplex2.noise2(seed, 0d , 0d); always return zero no matter what the seed is?

The starting point is always zero due to the nature of the simplex grid transform, which keeps (0, 0) at (0, 0), and the gradient ramps which start at zero at each vertex.
The range scaling constant was computed using this tool. It is possible for the noise to reach these values, but there are two reasons your search may not be leading you to them:

First, there are 24³=13,824 possible gradient configurations for a given grid cell in the noise, only a handful (~6) of which may lead to a maximum or minimum being present within the cell. This means that, for a given cell that a sampling point lies in, it already has only a 1/2,304 chance of containing a coordinate that evaluates to -1 or 1.

Second, the sampler in your technique randomizes the seed but not the coordinate, so it will not necessarily find the locations within the cells that produce the extrema. Keep in mind that, even across noise seeds, the grid is always in the same place. If you add some randomness to your coordinates -- or, better yet, follow the slope of the noise to the local min/max, then you'll get much closer to the global bounds.

Ah, understood. These are the coordinates of the internal grid, not my local coordinates. Thank you.


more precision

Hi,
I do not know if I write in the good location. But I have a question.
The instruction to finish the git version control on a file are not clear to me :/.
Can you help us through this?
Where the file is I did a :
git init
git add file.ipynb
git commit -m 'initial project using fluomean as the signal'
This is what should be done right?
But when I click on the git button to push in jupyter notebook a got insulted with:
 Uncaught exception PUT /git/commit (::1)     HTTPServerRequest(protocol='http', host='localhost:8888', method='PUT', uri='/git/commit', version='HTTP/1.1', remote_ip='::1', headers={'Accept': 'application/json, text/javascript, */*; q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'Content-Length': '68', 'Accept-Language': 'fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Host': 'localhost:8888', 'Dnt': '1', 'Accept-Encoding': 'gzip, deflate', 'Referer': 'http://localhost:8888/notebooks/cleanPipeline2018-01-05.ipynb', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:59.0) Gecko/20100101 Firefox/59.0'})     Traceback (most recent call last):       File "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 1467, in _execute         result = method(*self.path_args, **self.path_kwargs)       File "/usr/local/lib/python3.5/site-packages/githubcommit/handlers.py", line 21, in put         git_dir = "{}/{}".format(os.path.expandvars(os.environ.get('GIT_PARENT_DIR')), os.path.expandvars(os.environ.get('GIT_REPO_NAME')))       File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/posixpath.py", line 281, in expandvars         if '$' not in path:     TypeError: argument of type 'NoneType' is not iterable [E 17:13:35.608 NotebookApp] {       "Accept": "application/json, text/javascript, */*; q=0.01",       "X-Requested-With": "XMLHttpRequest",       "Content-Length": "68",       "Accept-Language": "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3",       "Connection": "keep-alive",       "Content-Type": "application/json",       "Host": "localhost:8888",       "Dnt": "1",       "Accept-Encoding": "gzip, deflate",       "Referer": "http://localhost:8888/notebooks/cleanPipeline2018-01-05.ipynb",       "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:59.0) Gecko/20100101 Firefox/59.0"     } [E 17:13:35.608 NotebookApp] 500 PUT /git/commit (::1) 4.41ms referer=http://localhost:8888/notebooks/cleanPipeline2018-01-05.ipynb
I also strongly advice to install the githubcommit package from inside the jupyter with :
the snippet:
import sys
!{sys.executable} -m pip install requests
!{sys.executable} -m pip install git+https://github.com/sat28/githubcommit.git
Cheers

@mxardre pls look into this if it helps - https://www.youtube.com/watch?v=vKx_4zFvOi8


One HA plugin doesn't get updated

I got it all working and everything got updated exept one plugin, https://github.com/aex351/home-assistant-neerslag-app
He keeps the data from the first initial call.
I set my browser to 800x600 but there it all looks correct.
Can this be related to puppeteer cache? Or maybe the headless browser in combination with this plugin?

Hi @sibbl,
Thanks for your quick response. I had to put the delay already to 30 seconds otherwise the image didn't get generated so that's not the case.
I removed this docker container and recreated it so I can't have any cache issues. Now I see one hour offset in the graph.
After I added the environment property TZ=Europe/Amsterdam it works!!
Can you add it to the list of your defined environment variables?


Plugin for Hapi

Is your plugin request related to a problem? Please describe.
Requested plugin for Hapi framework
Is it applicable for Node or Browser or both
Node
Do you expect this plugin to be commonly used
Weekly Downloads:
250k

In my opinion, this would be useful. @dyladan Any thoughts?

💯

If this tweet can be trusted: https://twitter.com/hapijs/status/1275887984114413569, Hapi will be EOL'd. It's anyone's guess how this will actually play out as it does seem to have a loyal following.

Based on this update from Hapi, I believe Hapi will be sticking around! I would like to look more into this plugin - could someone please assign this to me?


Add elixir example

This introduces a folder ./contrib/examples to add code examples of brod usage
A small tutorial on how to configure and use brod with Elixir directly, without depending on other libraries
As previously mentioned on: https://github.com/klarna/brod/issues/414
I had the intentions of working more on this, but since I was unable I think it makes more sense to increase it over time with some feedback, please let me know if anything is unclear, so I can fix it.

Pull Request Test Coverage Report for Build 1465

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.07%) to 80.379%

Files with Coverage Reduction
New Missed Lines
%

src/brod_kafka_apis.erl
1
76.0%

Totals

Change from base Build 1463:
0.07%

Covered Lines:
2249

Relevant Lines:
2798

💛  - Coveralls

retest this please


Typescript Build Errors not being displayed on "PROBLEMS" tab

VSCode Version: 1.45.1
OS Version: Mac Catalina

Steps to Reproduce:

Open Typescript Project
Start Build task (default)
It starts the terminal and outputs errors in compilation
But the 'PROBLEMS' are not displayed on the respective tab, only on the terminal

Does this issue occur when all extensions are disabled?: Yes

You probably opened the file and then closed it. If the file is open, the errors will show. If the file is closed, the errors will show. If you open the file and there are errors, then you close the file while there are still errors, they will hide. This is a limitation of how we do problems (problems that come from the typescript language server have the same type as those from the task, this is so you don't see the same problem twice). https://github.com/microsoft/vscode/issues/58210 discusses this.


Edit hdinsight-high-availability.md

This file used a mix of "headnode" and "head node" in text. I went with the latter (including the specific names "Head Node0" and "Head Node1," because that's what the first figure showed). I hyphenated it only when it directly precedes a noun. Note that the second figure uses "headnode1," so there may be some inconsistency in the naming.
All the links to articles produced 404 errors when I tried to open them.

Hi @ShawnJackson, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (v-shawja). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Added draft exploration of Iris mesh concepts.

This could fill the "hole" in the existing Mesh section indicated by this "Todo" note
N.B. now added some code to generate the "LFRic_Mesh.svg" image referred in https://github.com/scitools-classroom/iris-mesh-tutorial/pull/15
This is a copy of the main "Mesh_connectivities" notebook, with extra bits added on -- not minimised or tidied at all.
This needs considerable more work to motivate + explain what is going on.

(rebased)

Note: I've kept this out of the "main" sections notebooks, but now included a reference to it.

For simplicity, merging this also into main -- since it is all additional info + can be removed later if desired.


Dataset number doesnot match the original paper

Hi! I run your code and the data number of PACS is 9990 (6926+806+2048), but the paper (https://arxiv.org/pdf/1710.03077) says PACS has 9991 data.
***** Dataset statistics *****
Dataset: SSDGPACS                                                                                Source domains: ['cartoon', 'photo', 'sketch']
Target domains: ['art_painting']
#classes: 7
#train_x: 210
#train_u: 6,926
#val: 806
#test: 2,048

What is the problem?

https://github.com/KaiyangZhou/ssdg-benchmark/blob/main/datasets/ssdg_pacs.py


It's isn't working

Output of powershell after command  python train_image.py --example_config golden_horse.yaml:
Traceback (most recent call last):
  File "C:\Users\CodeSame\miniconda3\text2live\train_image.py", line 129, in <module>
    train_model(config)
  File "C:\Users\CodeSame\miniconda3\text2live\train_image.py", line 24, in train_model
    seed = np.random.randint(2 ** 32)
  File "mtrand.pyx", line 763, in numpy.random.mtrand.RandomState.randint
  File "_bounded_integers.pyx", line 1336, in numpy.random._bounded_integers._rand_int32
ValueError: high is out of bounds for int32

On my own, I was able to run this neural network by replacing in the 24th line of the file train_image.py the value from seed = np.random.randint(2** 32) to seed = np.random.randint(2** 31). BUT now all the other errors remain in the output. You can specify specific software versions and PC system requirements, if any.

I have the same. I handled with 32bit issue but now it just show me some CUDA error, I sync up my torch with CUDA Toolkit but still same situation. Probably, 32gb Tesla isn't fun recommendation, it is in must need :D

I have the same. I handled with 32bit issue but now it just show me some CUDA error, I sync up my torch with CUDA Toolkit but still same situation. Probably, 32gb Tesla isn't fun recommendation, it is in must need :D

same

Does this have to be a 32GB video card? Has anyone tried 16G? Tesla T4?


Remove parameterized package from test

We can use pytest.mark.parameterize now

https://docs.pytest.org/en/stable/parametrize.html pytest has it, remove duplicated deps.

https://docs.pytest.org/en/stable/parametrize.html pytest has it, remove duplicated deps.


Improve nix.py

Adds escaping of \ and " inside double-quoted strings (see system.name), and fixes indentation for double-single-quoted strings and literalExamples (see services.snapper.configs).

@ncfavier can you add some tests for this use cases? Also if you can point to me which options are being fixed by this?

I did: system.name and services.snapper.configs. Where would you like me to add tests?

Looks good to me!


Update ibm.java.sdk.version to v2.13.6

This PR contains the following updates:

Package
Type
Update
Change

com.ibm.cos:ibm-cos-java-sdk-s3 (source)
compile
patch
2.13.4 -> 2.13.6

com.ibm.cos:ibm-cos-java-sdk-core (source)
compile
patch
2.13.4 -> 2.13.6

Release Notes

IBM/ibm-cos-sdk-java (com.ibm.cos:ibm-cos-java-sdk-s3)
v2.13.6
Compare Source
Content
Defect Fixes

Internal fixes and improvements

v2.13.5
Compare Source
Content
Defect Fixes

Internal fixes and improvements

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Defect Fixes
Internal fixes and improvements

So what was changed?
¯\_(ツ)_/¯


[5.7] Remove extra spacing from navigator bottom

Rationale: Fixes a bug where there is always extra space at the bottom of the navigator, when there are extra items above the navigation
Risk: Low
Risk Detail: Animates the extra space away as you scroll down, noticeable in very specific conditions
Reward: Low
Reward Details: Users will not have extra space when they scroll down to the end of the Navigator list.
Original PR: https://github.com/apple/swift-docc-render/pull/298
Issue: rdar://91002984
Code Reviewed By: @mportiz08
Testing Details: Tested manually in the browser and added unit tests

@swift-ci test


Creation of the bosh director in vSphere fails during PCF 2.3 -> 2.4 upgrade

Describe the bug
bosh create-env fails to deploy the directory with cpi error “execution expired”
There are 2 clusters in vCenter. One cluster is dedicated to PCF and another cluster is not.  Ops Manager sits behind a firewall and only has network access to ESX servers in the PCF cluster.  But when running create_vm the vSphere CPI is trying to communicate with a ESX server in the Non-PCF cluster ( Datastores are being shared between both clusters ) to upload a file.  Why does the CPI use an ESX server to upload a file that is not in the cluster defined in the directors AZ (pcf01 cluster)
To Reproduce
Steps to reproduce the behavior:
CPI Error Log
From the bosh_init Debug logs
The CPI is trying to upload on the server kungfu00031 which is not part of the cluster defined in the director's AZ (pcf01 cluster).  This esx host, kungfu00031 is a member of a Non-PCF cluster in the same vCenter as PCF is using
I, [2019-08-07T20:39:46.364337 #24018]  INFO -- : Uploading file to https://kungfu00031.abc.test.com/folder/vm-xxxxxxxx/env.json?dsName=OMA00WPH1_Cap_00:01:a9_PCFDEV04...
The Error message
[CLI] 2019/08/07 20:40:50 ERROR - Deploying: Creating instance 'bosh/0': Creating VM: Creating vm with stemcell cid 'sc-b9419e46-37ac-4739-bcb2-35ecc443b456': CPI 'create_vm' method responded with error: CmdError{"type":"Unknown","message":"execution expired","ok_to_retry":false}
Expected behavior
CPI should communicate with an ESX server which is in the cluster defined in the director's AZ
Screenshots
Release Version & Related Info (please complete the following information):

CPI Version
This happened during an upgrade from Ops Manager version 2.4.build231 (vSphere CPI is 51.1.2) to
Ops Manager version 2.3.build300 (vSphere CPI is 50.0.4)
BOSH Director Version
after upgrade is 2.3.build300
Stemcell Name & Version
vCenter Version is 5.5
NSX(T/V) Version (If using)

Additional context
Add any other context about the problem here.

#233

This appears to have been fixed by PR #233 and should be in v53.0.2 of the CPI


Support parsing links and references

I understand that the point of this fork is supposed to show the dendron hierarchy but I think it would be much more useful to show all the links and references between notes instead. This would make it effortless to see what note connects to what from a bird's-eye view.

Since I installed 0.18.0 'dendron markdown links' doesn't work anymore. I get the message 'still connecting to engine. please try again in a few moments...' Any suggestions?