Improve actor getting started and add more docs

Description
This change runs through the getting started docs and improves trims all
of the unnecessary fat. I've reorganized all of the details that aren't
relevant as part of the first tutorial into separate docs.
I've also fleshed out all of the content we have to be relevant to a new
user and added new sections like DI and logging.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Fixes: #546
Fixes: #612

@AaronCrawfis - updated


Convert RPI to Serial Number

Why
Need to convert RPI to Serial Number, read in RockPi serial number, and distinguish between RockPi and Raspberry Pi
How

Replace any references of RPI to serial_number
Fetch RockPi serial number from file (/proc/device-tree/serial-number)
@ilyastrodubtsev helped me discover this file and after looking deeper into it together we realized that this file also exists on the Raspberry Pi and contains just the serial number which means we can avoid the parsing we do with /proc/cpuinfo
This removes the need to distinguish between RockPi and RaspberryPi as they both have this file in common

References
Issue #206

@SebastianMaj to get this unblocked by https://github.com/NebraLtd/hm-diag/issues/220, can you update the google cloud upload logic so that it still uses raspberry_pi_serial_number for the upload?

After this gets approved, please don't merge immediately. This will need to be coordinated with several other PRs.

Oops missed this comment sorry

@shawaj Please don't merge other people's PRs going forward. We have a process for when and how we merge.


add test for output format of sqrt() method and modularize test to avoid confusion

This tests the output of sqrt(1049.76) against the expected output example.
Feel free to find a cleaner solution :)

sorry didn't feel like branching...
the ability to handle negative inputs for penguPowers(int x, int i) is optional. therefore there should be no tests or they should be clearly described as optional.

Could you please update your pr to resolve the merge conflict? Then it will be merged I guess.


Sequence Labeling models (LSTM-CRF with character LSTM/CNN features)

Hi,
I have implemented a PyTorch based Sequence Labeling framework. PyTorchSeqLabel
It is a LSTM-CRF structure with a choice of character LSTM/CNN features input.
This repository reimplements structures in following two papers:

Neural Architectures for Named Entity Recognition, NAACL2016
End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF, ACL2016

Done :)
https://github.com/ritchieng/the-incredible-pytorch/commit/e4aea6d0500ffb199ff15facbb1ee3d2b0e546f1


Seeking Detailed Information on the Model Architecture and Weight File Used in Basic AI for AI-assisted Boxing (Cuboid) function

Hello, Basic AI Team
Thank you for answering my question.
While using your application,  I am curious about a function. I want to ask you one more question.
I use AI-assisted Boxing function to add cuboids. The assist is so fast. I am curious how the function is implemented in your source code and want to know how AI-assisted Boxing works. Could I see the source code and algorithm on your open source? Moreover, if the algorithm is machine learning, I want to know the architecture and the weights.

The file directory is in frontend \pc-tool\src\packages\pc-editor\utils\AIBox, that is javascript code.

@guhaomine
Thank you for your reply.
I read the code. All of AI-assisted Boxing is processed in the front end.
How about AB3DMOT (3D Fusion Object Tracking Annotation)?
Could I know the the source code and algorithm on your open source? And I want to know the architecture and the weights if that is machine learning.

@silva21d We do not have open source 3D Fusion Object Tracking Annotation.


Any plan iOS 8 supported?

It is a very nice cell action, do you have any to support iOS 8?

I second here. I saw the author's comment in one of previous issues that he doesn't want to support iOS 8 due to low user count. While I agree that the number of users with iOS 8 is low, some of the applications still have to support it for different reasons. Without iOS 8 support it's not only this small fraction of users will not be able to use the framework, but also the app developers that have to support iOS 8.
It seems that it's very easy to make the framework work with iOS 8. I'll prepare a patch.

Thanks for your commit @dzzh .
Yes, there is only small group of iOS 8 devices. However, most of apps are still support it to extend its users.

@dzzh It works fine~~~

@dzzh Thanks for the pull request. Will review to make sure iOS 9 and 10 are not impacted and possibly merge. Once UICollectionView support is added as that is more important and don't want iOS 8 incompatibilities to affect that.


pcli tx withdraw uses the wrong chain's timeout height

Describe the bug
pcli tx withdraw uses the local chain to determine the timeout height, but the parameter actually controls the counterparty chain:
~/c/p/penumbra2 (allow-no-prehash-key|✚2) $ cargo run --release --bin pcli -- -n http://localhost:8080 tx withdraw --to osmo1kh0fwkdy05yp579d8vczgharkcexfw582zj488 --channel 0 100penumbra
    Finished release [optimized] target(s) in 0.36s
     Running `target/release/pcli -n 'http://localhost:8080' tx withdraw --to osmo1kh0fwkdy05yp579d8vczgharkcexfw582zj488 --channel 0 100penumbra`
Scanning blocks from last sync height 377 to latest height 377
[0s] ██████████████████████████████████████████████████       0/0       0/s ETA: 0s
building transaction...
finished proving in 1.355 seconds [3 actions, 2 proofs, 1910 bytes]
broadcasting transaction and awaiting confirmation...
Error: status: Internal, message: "could not broadcast transaction: Error submitting transaction: code 1, log: timeout height 0-29177 is less than the latest height 2688215", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }

The timeout timestamp works fine because the chains probably have roughly synced clocks.
Maybe we can query the Penumbra-chain's client info, or maybe we can use a timestamp instead?

Setting a larger timeout height also fails:
Error: status: Internal, message: "could not broadcast transaction: Error submitting transaction: code 1, log: timeout height 0-2690215 is less than the latest height 2688215", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }

The above issue was caused by using a bare integer rather than an IBC height, so we ignored the revision number (in that case it was 5-2688215)

We're not sure if this is still an issue, as the pcli interface has changed a bit. Even if the issue is still in place, it's not critical to fix by Testnet 64 Titan (#3408), since it's client-side code, so we can always point-release (i.e. non-consensus-breaking) to address it.

@avahowell is this still a problem?

This was resolved in
https://github.com/penumbra-zone/penumbra/pull/3558
pcli uses the client metadata to look up a default timeout (on the counterparty).


Add support for Fedora

Hi @mrc-rpprcht I added tests for fedora to make sure eveything works.
In addition I checked whether we need the testing channel, as is not available since 2020 I would say it can be removed and the last version which provides testing path is 31 which is EOL an therefore we must not support it. If its available again we can add the path for sure.
Can you remove the testing repo and then I'll merge the PR.


Error when using #[wasm_bindgen] on struct named Response

With the wasm rust code:
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub struct Response {}

#[wasm_bindgen]
pub fn foo() -> Response {
    Response {}
}

And the html / js:
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>Foo</title>
  <script src="./pkg/wasm.js"></script>
</head>

<body>

  <script type="module">
    import { default as wasm, foo } from "./pkg/wasm.js";
    wasm().then((module) => {
      var response = foo();
    });

  </script>

</body>

</html>

I'm getting the js error during the init process:
TypeError: first argument must be a WebAssembly.Module, ArrayBuffer or typed array object

This is with Ubuntu 20.04, using Firefox 85.0.1
Uniquely, doesn't seem to be an issue if I change the struct name to anything else e.g. Foo. Presumably this export is having a name collision with something js side?

I suspect this is having a collision, yes, but I don't exactly know how. Would be worthwhile to investigate! I unfortunately don't have time to do so right now.

Yeah sorry, likewise me too or I would have dug further! No worries, as I said the workaround is easy, just thought I'd let you know for posterity etc

I bumped into this too. It looks like the exported Response class causes load(module, imports) to misbehave. In the generated js, simplified somewhat:
class Response {
    /* bindgen'd Response class */
}
__exports.Response = Response;

async function load(module, imports) {
    if (typeof Response === 'function' && module instanceof Response) {
        if (typeof WebAssembly.instantiateStreaming === 'function') {
            // try to instantiate streaming
        }
        const bytes = await module.arrayBuffer();
        return await WebAssembly.instantiate(bytes, imports);
    } else {
        // Assumed to have been passed an existing module or buffer
        WebAssembly.instantiate(module, imports);
    }
}

In typical use init('path.wasm') will fetch the provided URL and pass that to load which checks whether the provided module is a streaming response in order to use instantiateStreaming or fall back to loading the content into a buffer. The user-defined Response shadows the fetch Response type so it instead falls through to the else branch which assumes the provided module is already suitable for direct instantiation.

It seems like the parts of the javascript shims that do type checking using global types like Response and WebAssembly should qualify them through globalThis to avoid any potential shadowing from user types.


Implement option#toString()

This eases the job of creating help pages.

I feel like this is redoing some stuff that other modules could have provided for us, like commander.
LGTM otherwise

One of the key points of Capitano is that is it not opinionated regarding the help page (as other module like commander), but it gives the user some facilities to do it himself.
The "option to string" feature described here already lived in the CLI, but that parsing is something most of the clients will likely want to do at some point, therefore made sense to move it here.


Update ssm to 2.25.21 in scala-steward-dependencies

About this PR
📦 Updates software.amazon.awssdk:ssm from 2.25.19 to 2.25.21
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk", artifactId = "ssm" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "software.amazon.awssdk", artifactId = "ssm" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #664.


update packages

:white_check_mark: Build TheIdServer 7.4.7-fix-dependencies1-0147 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/7ead638aec by @invalid-email-address)


systemd service stops immediately

When running the exported target with systemctl start myapp.target, it automatically quits. It only works if the service is enabled (with systemctl enable).
I don't know much about systemd, but from what I understand, it seems that the problem is the StopWhenUnneeded=true in the main target config, see this post.

I actually even think one should use PartOf or maybe BindsTo in this situation. Otherwise I don't get the full reloading behaviour when I reload the target e.g. However, my experience with systemd is next to none, so I'd appreciate some more input.

Seems reasonable to me. Please submit the PR.


Add transformRawValue option to transform the value before parsing

Hello maintainers 👋,
This is a quick PR to add a feature to this very cool and easy to use library 🤗
The Feature
This option is a hook before the parsing of the value by the component.
This allows to transform the raw value from the input.
Use case example
If we want to allow the user to type , (comma) as . (dot).
<CurrencyInput transformRawValue={(rawValue) => rawValue.replace(/,$/, '.')} />

When typing $22, this transform the raw value to $22. . (without this transformation, the , will be removed)
Feel free to challenge this 😊

@cchanxzy Hello, I know that maintaining open source library can be very time consuming. I just want to know if you saw this PR because sometimes it's easy to miss a notification 😉

Hey, thanks for the PR (and prompt). Whilst I don't have too much problem with the PR itself, I'm not sure I understand the use cases? Could you give me a bit more context on why you'd want this to happen?
Adding a feature is always nice, but it also comes with maintenance, so the new feature has to be useful for the majority of users, rather than fitting for a few use cases.


jxnu

official website：
https://www.jxnu.edu.cn/
(>1 year) IT related course：
https://rjxy.jxnu.edu.cn/
https://moyuwan-image.oss-cn-hangzhou.aliyuncs.com/img/20201203030632.png
official email domain：
https://moyuwan-image.oss-cn-hangzhou.aliyuncs.com/img/20201203031138.png

@nnoyuwan I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host jxnu.edu not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for understanding!


Registration form not opening for workshop

Description: The registration form for the workshop isn't loading when I click the "Register Now" button.  Below are the details of the issue:
Steps to reproduce:
Go to the workshop page: [Workshop URL]
Scroll down to the "Register Now" button
Click on the button
Expected behavior: The registration form should open in a modal or redirect to the registration page.
Actual behavior: Clicking on the "Register Now" button does not open the form or show any error message.

Most of the events are dummy events to make testing easier. So, this is not an issue yet. Thank you for taking the time to review though.

You are welcome to contribute in other aspects.


Why does the accuracy of phoneme remain the same, and the confusion matrix is identified as silence

I solve this problem by changing the learning rate.


Manual slice ordering

Adds the new option to the SUSHI configuration table. Adds details on manual slice ordering to the SUSHI Tips and Tricks section.
See the corresponding SUSHI PR for the implementation of this feature.

Since I worked on this one with @mint-thompson, I think this is good to merge.


Duplicated keyword "Occurrence" when actualizing a dataset

There is small bug with the keyword "Occurrence" when you are publishing a new version of a occurrence dataset.
The IPT add a new set of keywords for "Ocurrence", even if a dataset already has this information, as you can see it in the image.

You need to go to that section and delete this new set, otherwise the final dataset will have this keyword twice.

It is not a really big problem, just a bug that we noticed. Thanks!

Thank you for reporting this @EstebanMH-SiB


[WIP] client/x11: file clipping support

Teach XFreeRDP to transfer files via cliprdr.

[ ] Implement local-to-remote transfers

[x] Preparatory work

[x] Negotiating streaming support
[x] Registering local formats
[x] Data conversions
[x] Common utilities for FILEDESCRIPTOR processing

[x] Basic format and backend support

[x] Support for text/uri-list

[x] Parsing
[x] Directory expansion
[x] Serializing into FILEDESCRIPTOR

[x] Support for POSIX files

[x] Querying sizes
[x] Querying contents

[x] Client integration (xfreerdp)

[x] Dynamic format registration
[x] Clipboard callbacks

[x] Extract backend interface from local file code
[x] Optimize POSIX backend

[x] Cache open fds
[x] Avoid needless seeking

[ ] Cleanup round

[x] Formatting
[x] Refactoring
[x] Debug logging
[ ] Commit cleanup

[x] Diffs
[ ] Ordering
[ ] Comments

[ ] Conditional compilation

[ ] Testing & bugfix

[ ] Write an acceptance check list
[ ] Evaluate quality
[ ] Fix found issues

:checkered_flag: PR should be ready for review at this point
[ ] Implement and test asynchronous GIO backend (x-special/gnome-copied-files)
:question: Support for KIO (application/x-kde-cutselection)

:grey_question: Implement remote-to-local transfers
:grey_question: Implement intersession (raw) transfers
:grey_question: File locking

File clipping tests
Positive

[ ] File names

[ ] ASCII file names
[ ] Unicode file names
[ ] Special file names

[ ] Whitespace
[ ] Line breaks
[ ] Percent characters
[ ] Prefixed with dots

[ ] File types

[ ] Nested directories
[ ] Symbolic links

[ ] File sizes

[ ] Empty files
[ ] Empty directories
[ ] Large files (< 2 GB)
[ ] Over 9000 files in a directory

Negative

[ ] Invalid file names

[ ] Windows special characters
[ ] Windows reserved names
[ ] Invalid UTF-8 in file names

[ ] UTF-16
[ ] Invalid UTF-8
[ ] Non-UTF-8

[ ] Overlong file name

[ ] Overlong single name
[ ] Overlong full name

[ ] Invalid file sizes

[ ] Files over 2 GB
[ ] Files over 4 GB

[ ] System error handling

[ ] Unreadable file
[ ] Unreadable directory
[ ] Broken symlink

[ ] Crash testing

[ ] Symbolic link loop
[ ] Removal of files during transfer
[ ] Clipboard update during transfer


Github code recomendations

A feature I would love to add to scout is the ability to hi-light github repos that use a specific dataset. The Socrata id is fairly distinctive and we could use it to search for codebases that use that dataset.
This would be valuable to a user in identifying

Projects that might indicate how to use the dataset properly
Cleaning scripts to make the datasets more useful
Additional documentation about the dataset.

GIthub supplies an API for searching code on the system : https://docs.github.com/en/free-pro-team@latest/rest/reference/search
The API has two modes and authenticated mode with about 30 requests per minute limit and a unauthenticated mode with 10 requests per minute.
Given that we should hit up the unauthenticated API from the client size which means each individual user (with a different IP) will be able to query up to 10 datasets per minute.
An example of an API query to search for the street tree census (https://scout.tsdataclinic.com/dataset/uvpi-gqnh ) in issues would look like this:
https://api.github.com/search/issues?q=uvpi-gqnh
https://github.com/search?q=uvpi-gqnh&type=code
Currently it looks like the github API wont let us search all code. We might want to include the all code link however or find a way of exposing that page as an iframe

[ ] Explore the github API to get a feel for what is possible / how many datasets we get hits for
[ ] Add either a hook to get results from the API for a given datasets or a hook to generate an iframe embed of the page
[ ] Add a tab to the dataset page alongside the join column and thematically similar tabs called "code" and implement an interface to show the resulting code links

Github feature has been added but can do with more expanding in other issues


Initiliaze the Twig_Environment with debug mode if app is in debug mode

Hi,
I found useful to be able to use the Twig dump function so I hope this pull request will be merged !
Thanks forward
Thanks for contributing. Please check the following points before submitting your pull request. Thank you!

[x] I have read and followed the contribution guide: https://github.com/pagekit/pagekit/blob/develop/.github/CONTRIBUTING.md
[x] The destination branch of the pull request is the develop branch

Looking good to me. Thanks!

Great ! Thanks


Loading Issues on API_Comp Branch / Deployed Version

Sometimes after refresh, the objects will reorder for some reason.
Also, when you click on the Pokemon card, and get brought to projectDetails, the page seems to default to the center instead of loading from the top. If you refresh on that page though it doesn't happen. Likely an issue with the Link to the page.

Things are working locally.. will close this issue after deployment / merging with master.


AttributeError: 'str' object has no attribute 'decode'

I'm using python 3.6.3, and following the document usage example in the repository.
After installing the requests_html (pip3 install requests-html), I run the code below:
>>> import requests_html
>>> session = requests_html.Session()

>>> r = session.get('https://python.org/')
>>> r.html.links
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 129, in links
    return set(g for g in gen())
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 129, in <genexpr>
    return set(g for g in gen())
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 120, in gen
    for link in self.find('a'):
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 85, in find
    c = [g for g in gen()]
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 85, in <listcomp>
    c = [g for g in gen()]
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 83, in gen
    yield Element(element=found, url=self.url, default_encoding=_encoding or self.encoding)
  File "/usr/local/lib/python3.6/dist-packages/requests_html.py", line 53, in encoding
    self._encoding = html_to_unicode(self.default_encoding, self.html)[0]
  File "/usr/local/lib/python3.6/dist-packages/w3lib/encoding.py", line 273, in html_to_unicode
    return enc, to_unicode(html_body_str, enc)
  File "/usr/local/lib/python3.6/dist-packages/w3lib/encoding.py", line 185, in to_unicode
    return data_str.decode(encoding, 'replace' if version_info[0:2] >= (3, 3) else 'w3lib_replace')
AttributeError: 'str' object has no attribute 'decode'
>>>

An error occured.

看我上面的回复

好的，谢谢。


Update mockito-core to 5.13.0

About this PR
📦 Updates org.mockito:mockito-core from 3.12.4 to 5.13.0 ⚠
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.mockito", artifactId = "mockito-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.mockito", artifactId = "mockito-core" }
}]

labels: test-library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #354.


[UWP] How to change App.Current.Resources after installing Microsoft.UI.Xaml in C#?

Describe the bug
https://learn.microsoft.com/en-us/answers/questions/1075757/uwp-how-to-change-appcurrentresources-after-instal.html
After Installing this package Microsoft.UI.Xaml
I always getting this error... and I can't change the App.Current.Resources dynamically in C#.
in my App.xaml
<Application
    x:Class="UniversalProject.UWP.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="using:Microsoft.UI.Xaml.Controls"
    xmlns:local="using:UniversalProject.UWP"
    xmlns:uwpbasic="using:UWP.Basic.Controls">
    <Application.Resources>
        <controls:XamlControlsResources>
            <controls:XamlControlsResources.MergedDictionaries>
                <ResourceDictionary>
                </ResourceDictionary>
                <ResourceDictionary Source="Styles/ApplicationStyles.xaml" />
            </controls:XamlControlsResources.MergedDictionaries>
        </controls:XamlControlsResources>
        <!--<ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles/ApplicationStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>-->
    </Application.Resources>
</Application>

Please help me to change resources dynamically in C# with Microsoft.UI.Xaml
Steps to reproduce the bug
Do not launch
Expected behavior
Change the resources value like Solid and Color....
Screenshots

NuGet package version
Microsoft.UI.Xaml 2.8.0
Windows app type

[X] UWP
[ ] Win32

Device form factor
Desktop
Windows version
Windows Insider Build (xxxxx)
Additional context
No response

@nextcodelab You just need to add another ResourceDictionary entry inside controls:XamlControlsResources.MergedDictionaries node, and add your resources there.

@nextcodelab You just need to add another ResourceDictionary entry inside controls:XamlControlsResources.MergedDictionaries node, and add your resources there.

I tried it and no success..
<Application.Resources>
        <controls:XamlControlsResources>
            <controls:XamlControlsResources.MergedDictionaries>
                <ResourceDictionary>
                    <Color x:Key="SystemAccentColor">Blue</Color>
                </ResourceDictionary>
                <ResourceDictionary Source="Styles/ApplicationStyles.xaml" />
            </controls:XamlControlsResources.MergedDictionaries>
        </controls:XamlControlsResources>
    </Application.Resources>

resul still getting this error.

Fixed by accessing the merge dictionaries
var r = Application.Current.Resources;
                var Resources = r.MergedDictionaries[0];
                Resources["SystemAccentColor"] = SystemAccentSolidColor.Color;

@nextcodelab looks like you've found a solution - please reopen if you feel there's an issue with the framework.

Already fixed by accessing merge dictionary by index.
<Application.Resources>
<controls:XamlControlsResources>
<controls:XamlControlsResources.MergedDictionaries>
<ResourceDictionary>
<Color x:Key="SystemAccentColor">Blue</Color>
</ResourceDictionary>
<ResourceDictionary Source="Styles/ApplicationStyles.xaml" />
</controls:XamlControlsResources.MergedDictionaries>
</controls:XamlControlsResources>
</Application.Resources>

var r = Application.Current.Resources; var Resources = r.MergedDictionaries[0]; Resources["SystemAccentColor"] = SystemAccentSolidColor.Color;

nope still having same problem as author. same exception gets thrown. is there any solution regarding this ?


Include timeout type/duration Blaze client timeouts

This attempts to make the log and exception messages a bit more useful
when there is a timeout in ClientTimeoutStage within the Blaze client.

Current coverage is 61.23% (diff: 100%)

Merging #733 into master will increase coverage by 0.03%

@@             master       #733   diff @@
==========================================
  Files           209        209
  Lines          4512       4514     +2
  Methods        4058       4054     -4
  Messages          0          0
  Branches        448        454     +6
==========================================
+ Hits           2761       2764     +3
+ Misses         1751       1750     -1
  Partials          0          0

Powered by Codecov. Last update 077a70b...f6e2d1a

👍

Since it's only a private method changing, I'll cherry-pick this onto release-0.14.x.

Cherry-picked to 0.14.x, coming soon in v0.14.10.


switch back to Task from ValueTask.

We will have to coordinate this with other changes as Task is expected in some call graphs.

if you want to go this route we have to revert these changes as well:
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/5c9192c857e2b74d248466a32b6a562434d32ae0/src/Microsoft.IdentityModel.Tokens/Validators.cs#L218

@keegan-caruso you make a good point, it will be easier to make a single change in AadIssuerValidator.

Is it a breaking change for SAL? IdWeb?


Terminates: 400: Invalid label name - invalidArgument

Hi,
GYB is terminating with "400: Invalid label name - invalidArgument" (returns to the command line) about 26% of the way through a restore.  I've restarted it but it continues to fail and stop at the same place.
This is my command line (version 1.50):
/Users/damian/bin/gyb/gyb --email<EMAIL_ADDRESS>--action restore-mbox --local-folder "/Users/damian/Downloads/gyb" --debug > label-failure-output.txt

This is the tail of the debug log:
 reading message 69381... - 26.84%
Creating label Muted
send: b'POST /gmail/v1/users/me/labels?fields=id&prettyPrint=true&alt=json HTTP/1.1\r\nHost: gmail.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: Got Your Back 1.50 | https://git.io/gyb | Jay Lee -<EMAIL_ADDRESS>| Python 3.9.4 64-bit final | google-api-client 2.2.0 | macOS-10.16-x86_64-i386-64bit x86_64 (gzip)\r\nx-goog-api-client: gdcl/2.2.0 gl-python/3.9.4\r\ncontent-type: application/json\r\ncontent-length: 86\r\nauthorization: Bearer xxx'
send: b'{"labelListVisibility": "labelShow", "messageListVisibility": "show", "name": "Muted"}'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Type: application/json; charset=UTF-8
header: Content-Encoding: gzip
header: Date: Sun, 15 Aug 2021 06:10:21 GMT
header: Server: ESF
header: Cache-Control: private
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Transfer-Encoding: chunked

Is there anything I can do?  Should I try to edit the mbox file to remove the 'muted' label, assuming this is what is causing the issue.  FWIW it would be good if GYB didn't attempt to re-recreate "known" GMAIL labels, specifically all the category ones.

Whoops, I just found https://github.com/jay0lee/got-your-back/issues/316 which ironically was closed 4 days ago.  Will try it and probably close this issue.


Will the threadpool be shared if rayon is used in two crates included in the same project?

I've just used rayon to replace my hand-rolled parallelization in rawloader:
https://github.com/pedrocr/rawloader/commit/a33ad0e40c1a5c5cdec573484f7dcba466772ee6
The performance is pretty much the same even though now I'm doing the parallelization per line instead of splitting the work in the number of threads equal to the number of CPUs. So the rayon overhead is indeed low.
This left me with a question though. Since rawloader is a library, if someone builds a project that includes rawloader and another crate that uses rayon will both share a threadpool or each get their own and thus have two threadpools in the same program? It would be great if both used the same so that you don't end up generating a lot more running threads than you have CPUs but I wanted to confirm that was the case.

The thread pool is managed in a static global, so yes it should be shared, as long as you only have one version of rayon in your project.
But if your project has dependencies with conflicting versions of rayon, then cargo will build multiple versions independently, and those can't share threads.  I think it will still be just as safe, but oversubscribed on threads.

Actually, I don't think that is safe if you have any callback loops.  If all threads of rayon A make calls into a library using rayon B, and that transitively makes calls that would inject jobs back to A, then this may never complete.  Those A->B calls will block on B's job latch, rather than stealing other A work in the meantime.  Then the B->A calls will similarly block on A's job latch, with no A threads left to do the work.
If there's a way to make a compilation error with multiple rayons, we should seriously consider that.

Sounds great then. I was thinking about this some more and there's actually a downside to this which is potential added latency. Say you only have a single CPU (to simplify) and have done join(|| a(), || b()) where a() takes 5 min, and then do join(|| c(), || d()) from another thread where each of those is a 1s calculation. You'll only start doing c() and d() once a() ends and thus latency has been greatly affected.

@cuviper can you spell out the scenario you are concerned about in a bit more detail? It seems plausible, but I can't quite come up with a convincing example. At minimum, it seems pretty unlikely to occur in practice.
That said, having thought about this some, I think the best "fix" for this is breaking the thread-pool out into its own crate. I would expect that to iterate relatively slowly relative to the rest of Rayon, and probably it wouldn't make breaking changes very often. I was thinking of doing that after we finish up the work on futures and I open the PR for spawn_async() (which I expect to slightly affect things).

Something like:
// main crate using rayon A
fn main() {
    rayon::join(foo::foo, foo::foo);
}

// crate foo using rayon B
fn foo() {
    rayon::join(bar::bar, bar::bar);
}

// crate bar using rayon A
fn bar() {
    rayon::join(|| (), || ());
}

Every join is called outside its crate's threadpool, so will inject jobs and block on their completion.

main injects foo into threadpool A
foo injects bar into threadpool B
bar injects its closure into threadpool A

if that threadpool has <=2 threads, then it's fully blocked in foo, and we're stuck.

In fact, I think you could hit this with a single rayon too, if you have a ThreadPool::install cycle through separate pools.  Or even more generally, if your rayon jobs block on an external condition which itself tries to use rayon to complete, we could become thread-starved.  e.g. if foo above knew nothing about rayon, just did a plain thread::spawn to call bar.
Blocking is already a rayon anti-pattern, of course, but this might be a surprising path to it.  I don't know how likely it might occur in practice.

Here's a self-contained working example:
extern crate rayon;

use std::thread;

fn main() {
    let config = rayon::Configuration::new().set_num_threads(1);
    rayon::initialize(config).unwrap();
    rayon::join(foo, || ());
}

fn foo() {
    thread::spawn(bar).join().unwrap();
}

fn bar() {
    rayon::join(|| (), || ());
}

When you imagine these things might be in different crates, then their isolated behavior may be totally reasonable, but in combination they can lock the threadpool.

@cuviper ah, right, ok, thanks! :)

I've been trying to think of ways to mitigate this.  If we get dynamic threads in the pool, then one possibility is that the calling thread should always join the pool if it's not already a member, so we know there's at least one unblocked worker, the caller itself.  (If the caller is already a member of a different pool, it would have to temporarily leave that.)  Maybe some heuristic can scale this back so we don't oversubscribe threads, like leaving it alone if there are already idle workers ready.

@cuviper that sounds quite complex. If we did allow for pools to grow/shrink, then I wouldn't have the threads migrate, it might well be simpler to just have the pool grow a new thread when it seems like no progress is being made. The idea would be to cope also with people doing blocking I/O and that sort of thing. I believe the Java FJP does this, and I recall reading it about in the excellent SEDA thesis as well.

Detecting "progress" sounds tricky to me too, but that's nice if there's prior art to consult.

@cuviper I think the idea would be that there are pending work items in queues but no threads stealing them.

But how do you know whether there's no stealing because they're stuck, or just busy on their own?

@cuviper Not sure =) I'm confident there are some heuristics involved. It may be that you don't care too much about the difference, anyway.

We've since release rayon-core 1.0 to hopefully ensure a common pool implementation (at least in the rayon ecosystem), and #449 even solved the problem of ThreadPool::install cycles between pools!


what is this repository?

I could not tell what this repository is when I look at the README file.
What is in scope and out of scope for this project?

I see some clues at https://blog.centos.org/2019/06/centos-8-status-17-june-2019/

@ktdreyer Hey, thanks for reporting this.
This project definitely needs some intro text, and I'll try to look at that coming week!
This was intended to allow people to quickly set up a koji/MBS setup in openshift, in a way that is still production-grade.
So it's intended to be a quick way to set it up, but also allow the same setup to be used in larger production setups.

Great, thanks Patrick


Save serialization into file

Please, how to save data into file

is there any solution?

Please check out this example http://troolee.github.io/gridstack.js/demo/serialization.html how to serialize grid data.

Thanks, I know this Demo. But how can I save this in a file and reload it to show the saved Widgets?


🐛 Restore example ingress-with-SSL-passthrough

Summary
This PR restores a broadly useful example, which is still used by CI for testing release-0.14.
This is part of #1585 and is blocking CI success on #1660
Related issue(s)
Fixes #

/cc @clubanderson
/cc @ezrasilvera
/cc @pdettori
/cc @francostellari
/cc @yana1205

/lgtm
/approve


New  Matlab Lexer & Parser

There is a new and open source tool for parsing and lexing Matlab at:https://misshit.org
Github repository at https://github.com/florianschanda/miss_hit
It is described as follows:

"There have been other attempts at this, but MISS_HIT tries to do things differently (and I hope better).
Specifically:
• It is completely stand-alone. It does not require a working MATLAB or Octave setup.
• It is not just a bag of reg-ex, or a wrapper arounds some undocumented MATLAB internals. It is based on a feature complete lexer and parser, which supports every single weird feature of the MATLAB language.
• It contains features specifically for huge industrial code-bases (i.e. millions of lines): multi-threaded analysis and a sophisticated configuration and justification mechanism.
• Designed for both interactive use during development, and integration into modern CI environments."_

It will undoubtedly be a good resource for people wanting to extend the capabilities of smop.

Do you have any idea how to use it though? It promotes a couple of CLI tools but doesn't really go into much detail for the lexing/parsing. I see there's a fork that's trying to implement something for parsing to Python: https://github.com/chaoqing/miss_hit/blob/9304eb2800681fa2bcfe5a18fc3a5d898d1da35d/miss_hit_core/m_ast.py#L3358

Hey.  What is not working yet is semantic analysis (i.e. name resolution and type inference). I am very happy to assist you or answer any questions you might have to get something working.
It's enough to write a bunch of tools (code formatter, code metrics, linter, etc.) but to do more interesting things (like code generation) I still need to put in place a lot of code.
Generally the focus is completeness and correctness over "do everything fast but only for a small subset".

That's a nice focus for the project! For the SMOP community what is going to matter most is translation of MATLAB code into equivalent Python code. I saw someone with a fork who is trying to do just that. How would one go about using the project for transpilation purposes?

You can test that fork here:  https://translate.mat2py.org
The underlying code is here:  https://github.com/mat2py/mat2py

Hi @RobBW, thanks for linking mat2py. Actually mh_python is responsible for code translating and mat2py is the runtime to evaluate the generated code. Hi @Helveg, you can give a try to this online matlab emulator.


Received error: control server is too old; no noise key

Is this a support request?

[X] This is not a support request

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I am Experiencing an issue while connecting to my headscale server.
When i try to connect my headscale it stuck with no any authticate message
This is my status log from tailscale
$sudo systemctl status tailscaled.service
: Received error: control server is too old; no noise key
: monitor: RTM_DELROUTE: src=, dst=fe80::/64, gw=, outif=197, table=254
: monitor: RTM_DELROUTE: src=, dst=ff00::/8, gw=, outif=197, table=255:
[RATELIMIT] format("control: LoginInteractive -> regen=true") (2 dropped)
: control: LoginInteractive -> regen=true
: [RATELIMIT] format("control: doLogin(regen=%v, hasUrl=%v)") (2 dropped)
: control: doLogin(regen=true, hasUrl=false)
: Received error: control server is too old; no noise key

Expected Behavior
Should be able to generate below authentication message.
To authenticate, visit:
https://my_headscale_server:443/register/nodekey:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Steps To Reproduce
What I did on my tailscale server to connect headscale.
sudo tailscale up --login-server http://my_headscale_server --accept-routes

Environment
- Headscale version: v0.12.3
- Tailscale version: 1.64.0

Runtime environment

[ ] Headscale is behind a (reverse) proxy
[ ] Headscale runs in a container

Anything else?
I think i should update my headscale version. But can i get any help regarding headscale update without changing my config file or having any issue as its my production server.

I really hope you are not running 0.12.3 still. This version doesn't support the noise protocol. Only an update to 0.22.3 will help.
It just seems like you have no noise key defined on the server.

Received error: control server is too old; no noise key

See this config snipped for 0.22.3:
https://github.com/juanfont/headscale/blob/b01f1f1867136d9b2d7b1392776eb363b482c525/config-example.yaml#L49-L56
This seem no to be a bug.


Keras GloVE embeddings example network is not learning.

I am getting the following when running the GloVE embedding example provided in the examples. I have made sure both Theano and Keras are up to date and I've copied the script ver-batim from your codebase (also based on the example from https://blog.keras.io/using-pre-trained-word-embeddings-in-a-keras-model.html).
Indexing word vectors.
Found 400000 word vectors.
Processing text dataset
Found 19997 texts.
Found 214909 unique tokens.
Shape of data tensor: (19997, 1000)
Shape of label tensor: (19997, 20)
Preparing embedding matrix.
Training model.
Train on 15998 samples, validate on 3999 samples
Epoch 1/50
15998/15998 [==============================] - 23s - loss: nan - acc: 0.0506 - val_loss: nan - val_acc: 0.0500
Epoch 2/50
15998/15998 [==============================] - 23s - loss: nan - acc: 0.0500 - val_loss: nan - val_acc: 0.0500

Hi @cjnolet : I got the same error when running the example. I suspect it was the 'relu' activation used in the Convlutional1D layer that causes this. Changing all of them to linear seems to fix this. May need more time to dig it...

Works for me on latest version of keras.


readdirSync fails with EMFILE error when attempting to read dir with 10,000 files

It always fails at around file 8300-8600. I'm on the latest version already.

Actually it appears to be some other fs operation causing this. I'll re-file with proper details if I can wrangle them together.

So far I can't determine what operation I'm using that causes this. I suspect it's sort of an edge case, where I just used readdirSync and listed 10,000 files, and then afterward some other filesystem access attempt causes the actual error.
I have never seen this occur on Linux with identical code, but it occurs without fail on Windows. My highest file reached was 9953 out of 10,000, but I can never reach 10,000.

If you're doing it synchronously, there's nothing that can be done by this module to prevent hitting the file descriptor limit. This t works by deferring async ops until a fd closes and trying again. But sync stuff is now or never.
10k isn't that much, really, but windows is pretty restrictive sometimes.

I recommend using the directory streaming iterator API, if you have that many entries to process. You can still iterate over them synchronously.

Thanks very much for the speedy and sensible reply @isaacs. I'll investigate an alternative approach.


Dev changes

release incremental changes

Coverage increased (+0.3%) to 97.041% when pulling ef4a36d6576c1911fa02ab94fdfc283b6e372747 on dev into 0a9ec3ec7b22b8e7cd5e02d716050fc937ee4c49 on master.


Prometheus metrics for mod_cluster_manager

Has there been any thought about having mod_cluster expose prometheus metrics for scraping context status over time instead of relying on soley on mod_cluster_manager?  Gets a bit much to parse through when we have many apps over many nodes, currently for many projects I see over 100 contexts total

@daveram I believe this should be already possible in the Undertow implementation as that implementation exposes runtime resources, although, I have not tested this. However, I am going to assume you are using the native version, i.e. the Apache httpd modules?

Correct, we're running the mod_cluster httpd modules.  We're considering writing our own exporter to parse the results of mod_cluster_manager, but if there's a better way I'm all ears

I am afraid there isn't a "better way" at the moment for the native modules. Nevertheless, this sound like a useful feature to be added for the native implementation as well.

Closing the loop on this one
We ended up writing a custom prometheus exporter that scrapes the contents of the mod_cluster_manager page into Prometheus metrics including node and context mappings


recaptcha expired when submitted

@irvinlim perhaps you can clue me why recaptcha validation expired? i did it exactly like in the guide. Please help me about it.
Thank you

Since there were no updates for a while, I'll be closing this issue. Feel free to reopen if you still have any questions, thank you.


new metric pkg, mv sets to third_party

change APPLICATION_ID, remove ref

Pull Request Test Coverage Report for Build 1367

122 of 139 (87.77%)  changed or added relevant lines in 10 files are covered.
10 unchanged lines in 5 files lost coverage.
Overall coverage increased (+0.7%) to 63.825%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core/config/config.go
6
7
85.71%

core/handler/router_handler.go
0
1
0.0%

core/registry/bootstrap.go
3
4
75.0%

core/registry/cache.go
0
1
0.0%

core/registry/servicecenter/util.go
0
1
0.0%

metrics/metric.go
0
1
0.0%

metrics/prom/prometheus.go
1
4
25.0%

pkg/metrics/metrics.go
27
35
77.14%

Files with Coverage Reduction
New Missed Lines
%

metrics/prom/prometheus.go
1
66.45%

server/highway/highway_conn.go
2
79.05%

session/session_manager.go
2
64.93%

core/loadbalancer/session_stickiness_strategy.go
2
84.75%

core/config/cb_config.go
3
80.53%

Totals

Change from base Build 1362:
0.7%

Covered Lines:
5196

Relevant Lines:
8141

💛  - Coveralls


Fields not returned on Purchase

Back again with another one for you incarnate.
When you create a transaction of the type Purchase, the InvoiceDescription and CurrencyCode aren't returned (as per the API).  However when you perform a transaction of the type Recurring, it works fine.  See this linked GIST.
The irony is that Purchase is a manual transaction where the end user is involved and would actually like to see the Description in the results page.  A recurring transaction typically happens behind the scenes and doesn't involve user interaction.
Edit: I've also logged another defect about paying via Paypal.  This one is the lower priority (and probably easier fix for you).  This is a nice to have, but #5 is important.

Hi Ian,
It looks like this is more a difference between the Direct and Transparent Redirect payment methods.
We have introduced versioning for Rapid API so we can add/change fields safely, and CurrencyCode is one of the fields that is available already. I've just made a request for InvoiceDescription to be added.
I've been working on adding versioning to the eWAY SDKs, however we've got some field conflicts to work out before they can be released. There isn't a timeframe for this yet I'm afraid. I'll update this issue as more details are available.

Sounds like a step in the right direction.  Not in any hurry for this one, it just adds a nice touch to the results page for the customer.

Any update on when versioning will be available in the .NET SDK?

Nothing firm as yet, I was hoping there'd be some changes to the new response fields so they don't conflict with request fields, but maybe it'll just be easier to work around them. i should have some time next week to look closer, thanks for following up Ian.

Hi Ian,
Sorry this took a lot longer than I originally thought to get out. Version 1.4.0 has just been released which supports using Rapid versioning and the new Transaction Query fields.
IRapidClient ewayClient = RapidClientFactory.NewRapidClient(apiKey, password, rapidEndpoint);
ewayClient.SetVersion(40);

I'll mark this issue closed now since any further changes to fields will need to happen in the API.

Not too sure about this.  I just tested it, and when I submit currency code "EUR", I get returned currency code "978".  Any hints what's going on?

Hi Ian,
Sorry, yes the currency is currently returned as the ISO 4217 numeric code as described in the API Reference. I'd prefer that the code were the same as the alpha value used in other fields, however now the field is live and in use as is it will be hard to change.
I'll follow up if we're thinking of changing, and if not will look at adding a translation to the SDK. In the meantime this SO question or NodaMoney contain translations.

Ok, thanks for the explanation.  I'll perform a lookup.


Saving of curves incorrect with curve plots displayed using log scale

Willy Moss reported that he display a curve using a log scale and when he saved the file to a curve file the file contained the logs of the values. It should save the original values, not the logs. The fact that the curve is being displayed with a log scale shouldn't effect what gets saved to the file.
-----------------------REDMINE MIGRATION-----------------------
This ticket was migrated from Redmine. As such, not all
information was able to be captured in the transition. Below is
a complete record of the original redmine ticket.
Ticket number: 3145
Status: Pending
Project: VisIt
Tracker: Bug
Priority: High
Subject: Saving of curves incorrect with curve plots displayed using log scale
Assigned to: -
Category: -
Target version: 2.13.4
Author: Eric Brugger
Start: 05/22/2018
Due date:
% Done: 0%
Estimated time:
Created: 05/22/2018 03:25 pm
Updated: 11/15/2018 01:06 pm
Likelihood: 3 - Occasional
Severity: 4 - Crash / Wrong Results
Found in version: 2.12.3
Impact:
Expected Use:
OS: All
Support Group: Any
Description:
Willy Moss reported that he display a curve using a log scale and when he saved the file to a curve file the file contained the logs of the values. It should save the original values, not the logs. The fact that the curve is being displayed with a log scale shouldn't effect what gets saved to the file.
Comments:
If he wants the curve as original, wouldn't 'Export' be a better option than 'Save'?It's my understanding that 'Save' is for saving what is shown, eg if you save an imagewould you want VisIt to erase your log scaling and save an image of the original curve?

I tend to agree with the comment above; I think it makes sense that using "Save" would result in saving whatever is in the window and using "Export database" would result in saving the un-scaled data. I double checked, and this is the behavior for both options. Other thoughts?

I think the answer here depends on what is being saved...something related to the view of the data like an image of it...or the data itself. For curves (and even 3D objects with STL and OBJ formats) we kinda sorta support both in the same Save Window interface and so its a bit ambiguous. We've talked about this before and in other issues (I am too lazy to go find them here). Other examples of this kind of thing could be tick marks which might suggest resolution of the saved result, viewport (with left/right cut-offs), domain and range cut-offs, and maybe some other things related to annotations. We need to give this some more thought to fully understand what various kinds of save operations mean here. I am sure there is some metaphor we could look too like maybe in instrumentation systems


Simplify code by using DuplicateRecordFields and NamedFieldPuns

Recently I am working on https://github.com/haskell-graphql/graphql-api/pull/205, and I find that I have to manually add _ everywhere for adding position infomation.  And we can see quite a lot repetitive code like (in Validation.hs)
-- | Get the selection set for an operation.
getSelectionSet :: Operation value -> SelectionSetByType value
getSelectionSet (Query _ _ ss) = ss
getSelectionSet (Mutation _ _ ss) = ss

However, we can simplify them with DuplicateRecordFields and NamedFieldPuns.  For example, we can have the following code in Validation.hs that:
{-# DuplicateRecordFields #-}

data Operation value
  = Query {
       _ss :: VariableDefinitions
      , _dv :: (Directives value)
      , getSelectionSet :: (SelectionSetByType value)
  | Mutation {
      _ss :: VariableDefinitions
      , _dv :: (Directives value)
      , getSelectionSet :: (SelectionSetByType value)
   } deriving (Eq, Show)

Furthermore, with {-# NamedFieldPuns #-}, we can simplify some other code from
    splitOps (AST.Query node@(AST.Node maybeName _ _ _ _) _) = Right (maybeName, (Query, node))

to
{-# NamedFieldPuns #-}
    splitOps AST.Query {_node =<EMAIL_ADDRESS>{_name = maybeName}}  = Right (maybeName, (Query, node))

Personally, I think by that we can make code easier to write without carefully counting the number of _s, and take advantage with other language extensions of Records when developing with graphql.

Very strongly in favour of this. If I remember rightly, when we wrote this, Tom and I disagreed about whether we should prefer pattern matching (as described above) or field accessor functions. We only latched on to NamedFieldPuns later on in the piece.

I can't even remember that discussion but it does seem like a sensible change!

@teh , @jml Great.  I will do that change after #205 is finished.


Error after create new Logic Apps Workspace in VS Code: Files not iterable

Describe the Bug with repro steps
Right after create a new Logic Apps Workspace
1- Selecting the folde
2- Naming the workspace
3- Naming the Function App
4- Naming the Namespace
I recieve an error files not iterable,
What type of Logic App Is this happening in?
Standard (VSCode)
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
No response
Browser
Chrome
Additional context
No response
AB#25953528

I get the same error when trying to create new Logic Apps project in Vscode. Could this be sorted please?

Hi @AdnanePow, @deepakjobanputra. Thanks for raising this issue. I have located where the issue is, and I will be working on making a fix for it. In the meantime, as a workaround you can deselect the showDotNetWarning setting in your vscode as screenshot below. This is happening as we are looking for dotnet binaries installation to check if those binaries are outdated.
Please let me know if this doesn't solve the issue


Add some additional cleanup to rkt containers

Most of the services that use rkt containers had a command to perform some cleanup.
I've added the corresponding command to a service that was missing it, and also added some additional syntax to pre-existing commands in order to keep them consistent.

Codecov Report

Merging #1008 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1008   +/-   ##
=======================================
  Coverage   34.88%   34.88%
=======================================
  Files          59       59
  Lines        4133     4133
=======================================
  Hits         1442     1442
  Misses       2532     2532
  Partials      159      159

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 6585cb9...27adf32. Read the comment docs.

/lgtm

@dvdthms Thanks for your contribution as always!


[Bug] Menu Button Present on Mobile View

Description

The search portal website displays a menu button when viewed on mobile devices. This menu button does nothing when clicked on. Also, there is no menu button displayed when the website is accessed on desktop screens.
Reproduction

 Open the search website on a mobile device or using browser developers tools

 Locate the menu and click on it

See error. Observe that nothing happens.

Expectation

Since the search portal has no menu items, the menu button should be removed on mobile.
Screenshots

Desktop view

Mobile view

Environment

Device: Laptop and Samsung phone
OS: Windows 11
Browser: Chrome
Version: (eg. 13; 73)
Other info: Max width of 705px

Resolution

[x] I would be interested in resolving this bug.

Hi @Netacci and thanks for this contribution!
This is a duplicate of #237 Please verify Issues don't already exist before creating new ones.
Please see the Contribution Guidelines
Closing as duplicate.


[release/1.3 backport] Backport notify socket support

Backporting fix for https://github.com/containerd/containerd/issues/4043 from PR in master https://github.com/containerd/containerd/pull/4088
Picking up the change in master for notifying systemd when containerd is ready : ddae905b824a264be620cea03d3dee66f779f19a
This needed the updated github.com/coreos/go-systemd/v22 so had to pick up the newer cgroups as well, same as was done in : e1221e69a824ce9aaca34c5bb603feb2f921b883

SGTM

Plan of action here is to get https://github.com/containerd/containerd/pull/4105 to merge first. then open a PR in release/1.3 branch of https://github.com/containerd/cri to get that updated, then merge this code here in this PR

@dims 2nd commit not signed..

ugh. don't have the git hooks on this laptop

@mikebrow this is ready now! all green and DCO'ed as well

cc @dmcgowan
(also @dmcgowan - looks like things got accumulated in release/1.3 branch, any ETA on when we could cut a 1.3.4?)

cc @dmcgowan
(also @dmcgowan - looks like things got accumulated in release/1.3 branch, any ETA on when we could cut a 1.3.4?)

Same question over here @mxpv ?

@niedbalski soon: https://github.com/containerd/containerd/pull/4167


doc: fix key_auth plugin readme

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

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

“网关实例级别开启”一节里的例子是不是也需要改一下？
已修改

Codecov Report

Merging #256 (a2872a0) into main (3844017) will increase coverage by 0.07%.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #256      +/-   ##
==========================================
+ Coverage   44.54%   44.62%   +0.07%
==========================================
  Files          32       32
  Lines        5271     5271
==========================================
+ Hits         2348     2352       +4
+ Misses       2754     2750       -4
  Partials      169      169

see 1 file with indirect coverage changes


Any chance multiple imports on one line could be considered?

I suspect this goes against the design philosophy of this tool, but I thought I'd ask anyway.
I 100% agree that one import per line is ideal for avoiding merge conflicts, and is a very compelling reason to use this tool. However, I wanted to know if you would consider adding a command line option to offer some ability to allow multiple imports in one line.
The reason for this is as follows: avoiding merge conflicts is only one of several benefits of this tool over isort. In particular, I think that the static analysis, out of box compatibility with pre-commit and black, not needing an activated venv (unlike isort), and the simplicity of the tool are good selling points as well.
In my case, I came across this tool due to the aforementioned issues with isort, and while I believe that avoiding merge conflicts is worth the longer number of lines at the top of every python file, my coworkers don't think so, so I'll probably have to go back to isort due to the absence of this feature, at least in terms of my professional environment.
Totally understand if you're not willing to add the feature, but thought I'd ask anyway.

yeah sorry it's not going to happen as it goes against the design goals of the tool (no options, minimize merge conflicts)  if it were to allow multiple imports on one line, that causes problems in those areas.

Fair nuff

not sure why your coworkers care about number of lines :P

It be like that sometimes - people are picky about formatting


Add the ability to display realtime container metrics in Kubernetes

Requirements
As a user (administrator or standard user) I should be able to see realtime resource usage of a container in a Kubernetes environment in a similar fashion to what is available in Docker/Swarm.
We should provide the equivalent of the following view:

The user should be able to inspect realtime usage of a container for the following metrics: CPU and memory.
Required changes
Application details view

Introduce a new Stats action available for each container in the Application container datatable. This action should only be available for Running containers and only if the metrics server features are enabled in the cluster setup.

Container stats view
Introduce a new view that is similar to the container stats view for Docker/Swarm.
This view must contain a realtime graph for CPU resource usage and memory resource usage as well as the control for the refresh rate of the view.
References
Metrics server API
The metrics-server API documentation is barely existing, some bit can be found at https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/resource-metrics-api.md
It is possible to use the following kubectl commands to retrieve resource info at the node/pod level once metrics-server is running:
kubectl top nodes

NAME       CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
minikube   309m         3%     840Mi           5%
kubectl top pod portainer-85fb95c475-vcwdl -n portainer

NAME                         CPU(cores)   MEMORY(bytes)
portainer-85fb95c475-vcwdl   0m           12Mi

The following API requests can be send as well:
http :8080/apis/metrics.k8s.io/

HTTP/1.1 200 OK
Cache-Control: no-cache, private
Content-Length: 218
Content-Type: application/json
Date: Tue, 25 Aug 2020 11:05:05 GMT

{
    "apiVersion": "v1",
    "kind": "APIGroup",
    "name": "metrics.k8s.io",
    "preferredVersion": {
        "groupVersion": "metrics.k8s.io/v1beta1",
        "version": "v1beta1"
    },
    "versions": [
        {
            "groupVersion": "metrics.k8s.io/v1beta1",
            "version": "v1beta1"
        }
    ]
}

http :8080/apis/metrics.k8s.io/v1beta1/

HTTP/1.1 200 OK
Cache-Control: no-cache, private
Content-Length: 292
Content-Type: application/json
Date: Tue, 25 Aug 2020 11:05:38 GMT

{
    "apiVersion": "v1",
    "groupVersion": "metrics.k8s.io/v1beta1",
    "kind": "APIResourceList",
    "resources": [
        {
            "kind": "NodeMetrics",
            "name": "nodes",
            "namespaced": false,
            "singularName": "",
            "verbs": [
                "get",
                "list"
            ]
        },
        {
            "kind": "PodMetrics",
            "name": "pods",
            "namespaced": true,
            "singularName": "",
            "verbs": [
                "get",
                "list"
            ]
        }
    ]
}

The API request above can be used to inspect the API capability.

@deviantony
Just moving the discussion from the PR to here. So if metrics server does not provide the network stats, are there any ideas how to get these information? I really like the option to look at my swarm containers where I can check quity easy if there is something uncommon - without the need of a full-fledged monitoring solution.

@WhiteBahamut we're thinking about providing a better integration with monitoring solutions like Prometheus but AFAIK at the moment there is no way to retrieve this information from the Kubernetes API.


I can't create more than 63 Socket connections from a single device for testing.

Hello everyone!
I'm trying to perform some tests to try redis behaviors to simulate a 8,000 - 15,000 connections using socket.io. But I can not with sails.js 0.11.
Currently using nodejs 0.12.7 and I've seen that since 0.12.0 by default to agent.maxSockets is 'Infinity'.
If I think an example with express 4 and socket.io don't have any problem to create over 7,000 sockets.
Does anyone know what may be happening?
Thanks a lot!

Can you upload your app/tests to Github or somewhere? I don't know the reason but maybe if I see the app and the tests I can help you to find the reason...
What is the error that is throwing the app?

Hello @Josebaseba!
Thank you for answering.
Watch the test is simple. You create a new project with Sails and in my case I can not exceed 63 sockets from a computer.
But if I think a simple application with Express 4 and socket.io have no problems. Some security setting or something I understand there will be by sailsjs. But I don't know.

But to connect the 63 sockets are you using some kind of script or something?

Yes. In my case, I've created a simple app for OS X using the Socket.io client for iOS/OS X.
https://github.com/socketio/socket.io-client-swift

Hello @Josebaseba is it possible that there is a setting to prevent DDOS attacks?
can you disable temporarily for testing?
Thanks!

@AlejandroJL sounds like this is the ole connection limit issue on the client.  Have a look at: https://github.com/socketio/socket.io/issues/1393#issuecomment-32442188   :)
If that works for you, I'd really appreciate it if you could send a PR to https://github.com/balderdashy/sails-docs/blob/master/FAQ.md with your question and answer.


changed id parameters of graphql user mutations from ID-type to string type

Related Issue or Background Info

Resolves issue from frontend client passing ID types into graphql
I'm honestly not sure this will fix your issue, Neil so feel free to deploy this branch to test and try it out there if that can help you confirm

I think this can be closed, @sharmaneil and I worked through a rather strange situation that caused the original error.

Citing resounding support, I will close


Adds support for CONSUL_HTTP_TOKEN_FILE

Adds support for CONSUL_HTTP_TOKEN_FILE, which mirrors functionality
found into the official Go client by Hashicorp. If defined, the
CONSUL_HTTP_TOKEN_FILE will override tokens passed in any other way
to the client.

For reference:
https://github.com/hashicorp/consul/blob/master/api/api.go#L34-L36
https://github.com/hashicorp/consul/blob/master/api/api.go#L666-L678


rez-python does not pass command-line flags to script

When rez-python is used as a script interpreter (i.e. #!/usr/bin/env rez-python), command-line flags (- and -- options) are processed by rez-python instead of being passed through as arguments to the script.

Cheers, I have been meaning tp update rez-python so that it matches python's own behaviour - that is, flags listed before the python file are passed to the program itself, and flags listed after are passed to the script.


Update mobilefuse.md

Noticed lots of differences between our settings and what's available now and bringing it up to date.
🏷 Type of documentation

[x] update bid adapter

Hi @dtbarne
Can you please link the pull requests that are associated with this PR?
I found https://github.com/prebid/prebid-server/pull/3871 , which covers the GPP part. Are there more?

Hi @dtbarne
Can you please link the pull requests that are associated with this PR? I found prebid/prebid-server#3871 , which covers the GPP part. Are there more?

No, there are no related PRs. This is purely getting the documentation correct.


quit in CATCH

This isn't a real bug report, but rather me wondering if and how the example code works.
The following is the example from the README stripped down a little.
I'm wondering about the .quit in the CATCH clause.
with await Net::SMTP::Client::Async.connect(:host<smtp.gmail.com>, :port(465), :secure) {
    CATCH {
        when X::Net::SMTP::Client::Async {
            note "Unable to send email message: $_";
            .quit # <- What is this refering to? The exception doesn't have a `.quit` method.
        }
    }
}

That's a mistake. It should be something like this instead:
with await Net::SMTP::Client::Async.connect(:host<smtp.gmail.com>, :port(465), :secure) -> $smtp {
    CATCH {
        when X::Net::SMTP::Client::Async {
            note "Unable to send email message: $_";
            $smtp.quit # <- What is this refering to? The exception doesn't have a `.quit` method.
        }
    }
}


Snippet proposal: Find a layer by it's name

I took the idea from this script that Maarten from Esri Netherlands published on its CoolScripts repo.

Prefix: findLayer
Description:
Snippet:
const fl = view.map.layers.find( l => l.title === "${1:LayerTitle}");

Code:
"Find a layer by it's name": {
    "prefix": "findLayer",
    "body": [
	"const fl = view.map.layers.find( l => l.title === \"${1:LayerTitle}\");",
    ],
    "description": ""
}

This looks like a useful snippet. We'll just want to remove the const fl to fit with the standards we discussed earlier.

Yep!, you are right!

useful indeed!
so only view.map.layers.find( l => l.title === "${1:LayerTitle}"); with the prefix findLayer sounds great to me

PR done!


Don't claim to provide the extra ''

Resolves https://github.com/pypa/setuptools/issues/1292

@wimglenn Sorry #1286 broke things for you. I think you probably want to move the check farther up and just never add the "empty" extra to self.metadata.provides_extras:
                 # Since this gets called multiple times at points where the
                 # keys have become 'converted' extras, ensure that we are only
                 # truly adding extras we haven't seen before here.
-                self.metadata.provides_extras.add(extra.split(':')[0])
+                extra = extra.split(':')[0]
+                if extra:
+                    self.metadata.provides_extras.add(extra)

         self._convert_extras_requirements()
         self._move_install_requirements_markers()

@di  Thanks, I suspected it could have been handled earlier but had trouble to find the source and wasn't sure if this was distutils fault somehow. I'm not too familiar with setuptools and this code is a little hard to follow with the module level "self" function and the monkeypatches. I've just edited the PR in the online github UI, hope that works OK.