Implement "Named Tracers and Meters"

The "Named Tracers and Meters" RFC (https://github.com/open-telemetry/oteps/blob/master/text/0016-named-tracers.md) has been approved and was added to the specification (open-telemetry/opentelemetry-specification#264).
OpenTelemetry language repositories now need to implement this mechanisms.

TBH, based on my reading of the spec, I have no idea of how to either implement or use this mechanism. I'd ask for clarification, but I don't know where to start 😞.

Heres the OTEP/RFC that was the basis for the changes in the specification:
https://github.com/open-telemetry/oteps/blob/master/text/0016-named-tracers.md
Maybe this one clear that up a little bit.
Also, the PR for named tracers in .NET might help:
https://github.com/open-telemetry/opentelemetry-dotnet/pull/239

I read the OTEP. It didn't help. Specifically, the motivation seemed weak and the extra complexity doesn't seem justified. I think the intent is to build additional functionality on top of this, but that functionality isn't spelled out in the OTEP, so it's a little too opaque. Some code examples (in the OTEP) for instrumentation and application authors might have gone a long way to improving clarity.

Instrumentation libraries can easily "spam" backend systems, deliver bogus data or - in the worst case - crash or slow down applications.

This sentence in the OTEP reminds me of when systemd spammed kernel log on debug (FreeDesktop Bug 76935). Linux kernel ended up gaining an option to prevent all user-space applications from writing to the kernel log, akin to "a Sampler [...] that discards Spans or Metrics from certain libraries".

This is done, at least the API side and the tracing part of the SDK. We don't have a SDK spec for metrics yet.


Bump megaparsec dependency (bump 0.1.2)

This also fixes cabal test by adding tasty-discover as a buildtool dependency
Something I don't cover here is updating stack.yaml for the newer megaparsec dep

@cnr I merged a fix Stack branch into master and released 0.1.2, thanks again for contributing!

awesome. thanks for the quick turnaround!


How can I upload a file to frontend and handle it on the backend?

Describe the problem
I want to be able to upload a file from the frontend html side and catch it on the backend with python eel and do calculations on the file. How can I accomplish this?
For example the user uploads a csv file to the frontend to the python eel backend, so I can do some calculations on it?

I use tkinter and alpinejs to "upload files":
hello.py:
import eel
import tkinter
from tkinter import filedialog as fd

eel.init('web')

@eel.expose
def choose_file():
    tkinter.Tk().withdraw()
    filename = fd.askopenfilename()
    return filename

eel.start('hello.html', size=(300, 200))

web/hello.html:
<!DOCTYPE html>

  <title>Hello, World!</title>

  <button x-on:click="file = eel.choose_file()">Choose a file</button>

expose python function using eel
python function will receive byte string as argument
def get_file_from_frontend(byte_string):
    #decode byte_string back to original
    pass

Now in front-end you call this function and pass byte_string encoded file
eel.get_file_from_frontend(byte_string);


Initial hw1 for Mikihisa Yuasa (myuasa2)

Thank you for your comment! As far as I searched, TD(0) does not require epsilon to calculate the policy.


WIP: Adding situational configuration tests for domain in image

All the situational config tests passed in local as well as Jenkins runs.
Running the full IT suite....

I did a relatively quick general review, and the change looks good to me. Let me know if there's a specific area you'd like me to double-check.  Vanaja can hopefully be a bit more thorough given her strong familiarity with the test framework.

I did a relatively quick general review, and the change looks good to me. Let me know if there's a specific area you'd like me to double-check. Vanaja can hopefully be a bit more thorough given her strong familiarity with the test framework.

Thanks Tom. I didn't make any changes to the test, just put a wrapper around the tests to run in both PV and InImage domain models.

The full integration test suite passed.
http://wls-jenkins.us.oracle.com/view/weblogic-operator/job/weblogic-kubernetes-operator-javatest/2349/consoleFull
[INFO]
[INFO] Build Tools 1.0 .................................... SUCCESS [  1.075 s]
[INFO] weblogic-kubernetes-operator 2.3.0 ................. SUCCESS [  2.193 s]
[INFO] json-schema 2.3.0 .................................. SUCCESS [ 11.185 s]
[INFO] jsonschema-maven-plugin Maven Mojo 2.3.0 ........... SUCCESS [  7.059 s]
[INFO] operator-model 2.3.0 ............................... SUCCESS [ 12.782 s]
[INFO] operator-swagger 2.3.0 ............................. SUCCESS [  3.795 s]
[INFO] operator-runtime 2.3.0 ............................. SUCCESS [ 32.026 s]
[INFO] operator-integration-tests 2.3.0 ................... SUCCESS [  06:24 h]
[INFO] installation-tests 2.3.0 ........................... SUCCESS [  2.349 s]
[INFO] Project Reports 2.3.0 .............................. SUCCESS [  0.940 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  06:25 h
[INFO] Finished at: 2019-08-22T03:34:13Z
[INFO] ------------------------------------------------------------------------


Dispose the disposables in a finally block

Issue: #2400
In dotnetTest file we are not TestMessage listener using a try-finally block due to which when there is an exception, the listener still remains and when the next time the debugger starts, there are multiple listeners which make the logs look very clumsy.

@akshita31 Do we really want the changes made to package-lock.json?


Does "noise" background eat more battery?

probably does, and for those cases I just use Mac OS's Terminal with a similar color scheme and font.


Added status bar and toggle scripts panel button to EditorHelp/VScripts

This PR adds this functionality to in-editor docs and VisualScripts:

Fix #52529

as this probably needs to be on TextEditor as well

For now, I think not - since the only text editor aside from Script editor is a Shader editor but this requires to shader list panel to implement multiple shader editing.

TextEditor is used for editing TextFiles in the script editor.

@KoBeWi How to enable it to see that editor? - I forgot

@Paulb23 How to enable it? - I forgot

You don't need to enable it, In the script editor menu: File  --> Open --> Set filter to * -> Open file

@Paulb23 Ok, I've added it to TextEditor too!

@Paulb23, @kleonc Done with it, re-check again.

When the panel is collapse, shouldn't the arrow point towards the right so that it's clear that it's used to expand something towards the right?

@akien-mga It's already flipping when pressed:

cc @akien-mga

Thanks!


add search for $HOME dir

If there is no .csscomb.json in current project root, this plugin may look for one in user's $HOME dir.
Therefore many of my project could share a common .csscomb.json.
The CSScomb plugin for Sublime Text has supported this feature.
See here

Done. Please, checkout the new version of CSScomb plugin.
F1 → ext → Extensions: Show Outdated Extensions -> Update CSScomb plugin

I used a native method to determine the home directory from Node.js. If there are any errors-write.
--
Thanks for issue. :+1:


[FORSETI] IAM Policy scanner functionality

Related to Forseti Security Issue #3624
Scanner
IAM Policy Scanner
Description: Cloud IAM policies directly grant access on GCP. To ensure only authorized members and permissions are granted in Cloud IAM policies, IAM policy scanner supports the following:

Whitelist, blacklist, and required modes.
Define if the scope of the rule inherits from parents or just self.
Access to specific organization, billing account, folder, project, bucket and dataset resource types.

Python Violations Summary
There are three types (modes) of violations that can be generated:

Required - Generate a violation when there are policy members that do NOT exactly match the members  defined in the “members” field in iam_rules.yaml file. If there are members in the “members” field in iam_rules.yaml file that are missing, generate a violation.

Whitelist - Generate a violation when there are policy members that do NOT match the members defined in the “members” field in iam_rules.yaml file.

Blacklist - Generate a violation when there are policy members that DO match the members  defined in the “members ” field in iam_rules.yaml file.

1:1 Rego | Python Parity Status
It looks like the Rego rule does do whitelist/blacklist. However, the “required” mode is not covered, which is where the bindings for a rule MUST be included in the resource’s bindings, or a violation will be reported. Additionally, inheritance is not covered in the Rego rule, where the bindings for the children of a resource will also be evaluated, and the bindings of a child resource will be evaluated with its parent's bindings.
Rego work to do
Create or edit existing Rego rule to do the following:

Allow for ""required"" mode --> curently rule does whitelist/blacklist.

Allow for inheritance, where the bindings for the children of a resource will also be evaluated --> currently rule seems to just do the resource. This might be referential.

@morgante : Doable - could probably add required mode as all of the members are included inside the asset.
Inheritance would be difficult to do, and referential (would have to merge policies, etc).


identification of spatial genes (genes expressed by different cell types)

Hi,
Congrats on the publication and thank you for this tool.
I looked through the paper and the tutorials, and maybe I missed it, I would be grateful if you could just provide a bit of information regarding genes with potential of identifying spatial heterogeneity.
thanking you
shobhit

Hey! Thanks:)
The scRNA-seq reference itself doesn't give you directly the information which transcriptional variation translates into spatial variation. The way we go about this is by saying, if you optimize for transcriptional variation recovery in general you increase the likelihood to find spatially variable signals. It could depend a bit on how to define spatially variable - and we look from different angles at this. We show in three analyses that optimizing for variation recovery on scRNA-seq does correlate with spatial variation capture:
Based on sub selections of a 4000 genes merfish dataset we look at two metrics:

moran's I (Extended Data Figure 3b), which measures if a gene's spatial distribution is patterned or rather randomly distributed over space.
cell-cell interaction score (CCI score, Fig 4e). This one is based on NCEM models from which you can infer for each gene what part of the variation is explained by the cell's niche composition (i.e. neighboring cells).
So for these two metrics we find the trend that optimizing variation recovery for scRNA-seq also increases the capture of these spatially relevant signals.
Lastly, in our example on the measured scrinshot data (Fig3c-e) we show examples of genes with gradients within cell types that show spatial variation in the given cell type. Such genes that refer rather to cell states, multicellular programs, and/or differentiation transitions are selected by methods that recover general variation (e.g. Spapros, SCMER, geneBasis but not so much with e.g. SpaprosCTo, DE, etc.).

Thank you for your prompt reply and the detailed expalanation. Highly appreciated.
I do get that you verify which genes are spatially vairable - a posterori through Moran's I and CCI scores, I was just wondering how to identify non-cell specific genes in the results table i.e. potential candidates for spatial variation. Are these genes which have empty values in the "celltypes_marker", identifiying them as potentially useful genes which identify "some" variation in the data but are not specifically marker genes for celltypes?
Use case: I have subdivisions of sub-organ of the brain for which I snRNA data, the sub-organs share most cell-types but these types carry signals which are possibly organ-specific. The idea is to use spapros to design a gene panel which recovers these signals in the snRNA data and can be eventually used for validation through spatial-seq methods. In general and documentation is great, thanks for that.
One more question- how can I obtain the heirarchical tree which is used by the program, by extension- gene based and overall trees?
Sorry for the bother, and thank you once again.
Shobhit

Ah I see!
Identify candidate genes for spatial variation within cell types:
We don't define clear categories that distinguish markers and such genes that rather capture within-cell type variation. However, from the resulting table you can use some scores to rank genes on that regard.

Your suggestion using genes without values in "cell types_marker" is one option, yes
maybe better is ranking genes based on lowest "importance_score" and highest "pca_score", this you can achieve via:

import spapros as sp

selector = sp.se.ProbesetSelector(...)
selector.select_probeset()

df = selector.probeset

print(df[df["selection"]].sort_values(['importance_score',"pca_score"],ascending=[True,False]))
# or
# print(df[~df['importance_score'].isnull()].sort_values(['importance_score',"pca_score"],ascending=[True,False]))

This gives you a ranking - still good to look at those genes in detail though (e.g. expression in umap).
Here again, this is about variation within cell types, independent of spatial variation - but as mentioned (Moran's I, CCI score, etc.) these genes are good candidates for spatial variation within cell types.
Spapros will give an optmised trade-off over the full dataset, including e.g. multi cellular program genes. If you are additionally interested in a specific cell type of you snRNAseq data and want to put more focus on the variation within that cell type, you could additionally do a PCA selection on that data subset  - default parameters do the job. It just gives you a ranking, the top genes are the most interesting ones.
How to obtain the hierarchical trees:
All genes that occur in a given cell type's hierarchical trees you can get from
selector._get_genes_of_primary_trees()

The "importance score" tells one how important that gene is for the identification of the given cell type (according it's decision tree rules). Genes with a lower score might not be too important. The "nr_of_celltypes" column just gives the info for how many cell types the gene was used in their trees (i.e. selector._get_genes_of_primary_trees()["gene"].value_counts()).
Regarding your question for retrieving the actual trees: Currently I haven't implemented a quick way to retrieve the hierarchical tree, even though single trees are saved - but the main purpose of that is for loading them in in case the selection was interrupted, so it doesn't need to start from the beginning. If you have a specific use case I can have a look into implementing a utility function.
An additional note on the combinatorial rules for cell type identification: Ultimately I just look at the gene set of the tree for classification on spatial data instead of the exact decision tree thresholding since you have expression level modality differences between scRNAseq and the spatial data. Therefore whenever we talked about combinatorial rules in the manuscript we are mainly referring to the gene set of the tree (selector._get_genes_of_primary_trees()) instead of the exact function. But I do see that having the exact trees is also interesting.

Spectacular! Thank you very much. Really appreciate the effort on providing details

Happy to! Thanks for your interest in the method.
Closing the issue for now, let me know in case of additional questions


Build pipeline support

First, a regular reminder: pkgr and Packager.io are awesome!
We're delivering more and more of our software as packages using Packager.io, and one thing that is currently missing and preventing us from moving forward with other projects is integration into a CI pipeline. Ideally I would like to build and publish packages only for commits which passed CI.
It strikes me that perhaps Github's commit-marking API might be useful for this, such that Packager builds might only be triggered by a successful Travis CI build of a commit or similar workflow?
Additionally it would be nice for Packager to mark commits as built such that I could then monitor for that and use it to trigger deployments, or maybe even Packager could raise events of its own.

This is definitely something I want to implement on Packager.io. Using the Github Statuses API should indeed be sufficient for what we want to achieve.
Note that right now you could be notified of when a build terminates using the after hook in your .pkgr.yml file (using curl to post something to a third-party deployment process for instance).

packager.io is going to switch to GitHub Actions soon, at this point this will automatically be reflected.


File Download

Pull Request Template

Please Fill all the details. It will help us to track issues and Pull Request.

What have you Changed -

Added constructor dirDownloads argument to set a folder for the downloads
Added download_files() method to download recent files from updates
Added get_file(file_id, file_name='') method to follow the getFile endpoint and save a file to the downloads directory

Issue no.(must) - #8
Self Check(Tick After Making pull Request)

[x] This issue was assigned to me
[x] One Change in one Pull Request
[x] My file is in proper folder
[x] I am following clean code and Documentation.
[x] I have added README.md with my script

Did u feed in file_id directly or did u parse it through in run-time ?

Did u feed in file_id directly or did u parse it through in run-time ?

You can use get_file directly - if you know the file_id.
Else download_files takes the file_id from recent updates to download.

Good Job @chmey


Remove wallet name & copayer names from templates

Due to Copay no longer sending these fields in cleartext to BWS.

ACK


event_camera_py: 1.1.1-1 in 'humble/distribution.yaml' [bloom]

Increasing version of package(s) in repository event_camera_py to 1.1.1-1:

upstream repository: https://github.com/ros-event-camera/event_camera_py.git
release repository: https://github.com/ros2-gbp/event_camera_py-release.git
distro file: humble/distribution.yaml
bloom version: 0.11.2
previous version for package: null

event_camera_py
* Initial release
* Contributors: Bernd Pfrommer, Fernando Cladera, k-chaney

Closing in favor of https://github.com/ros/rosdistro/pull/38596.


add Android example ELF

to support https://github.com/mandiant/capa/issues/1705

OS/file type not supported yet, but looks good

adding this file in order to support that OS, so chicken and egg problem!


Allow ssp-filter by implementation status

Issue description / feature objectives
ssp-filter currently allows filtering based on controls (via profile) or components (via list of component names).  It could be useful to filter by implementation status - ideally a comma-separated list of status values
Caveats / Assumptions
Completion Criteria

@fsuits If you consider this a good first issue, I would love to work on this feature.

@jpower432 Sounds great!  Thanks for the offer.  Yes - please proceed.  I will update the completion criteria to specify the command line format that I think would work.  Let us know if you have any questions.  Thanks!


Argument 'subTitle' must precede 'title'

I am getting the following error "Argument 'subTitle' must precede 'title' "
My code is correct only , and here is the snippet,
let alert = SCLAlertView()
alert.addButton("First Button", target:self, selector:Selector("firstButton"))
alert.addButton("Second Button") {
println("Second button tapped")
}
alert.showSuccess(self, title: "Button View", subTitle: "This alert view has buttons")

showSuccess (and the rest of showXXX functions) accept a first parameter (unnamed) for title, then subTitle, and then other optional parameters.
So your code should be:
alert.showSuccess( "Button View", subTitle: "This alert view has buttons" )

I had same problem and this is the solution. Thanks.


web application does not work when deploying without localhost

I have a machine in the cloud and I deployed the application via docker-compose, I set the environment variables in the following ways:

but when I deploy, either using 'compose-dev' or 'compose' with 'make' (Makefile) the defined variables are not used, which generates the following error when accessing the web interface:

What happened:
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Horusec version (use horusec version):
Operating System:
Network plugin / Tool and version (if this is a network-related / tool bug):
Others:

As the issue seems to be finished, I will close it. Any problems feel free to open it again.


Only update User OS after hydration

rough fix for #3633
Main problem is that it has to update after first render which is a problem shared with live GitHub stars
We could either remove the description or make its update transition friendlier, anything with less drawbacks will take an order of magnitude more effort to implement.

@rogermparent Great work pinning it down 👏

Main problem is that it has to update after first render which is a problem shared with live GitHub stars

If I understand correctly, updating the OS after the first render is okay because we can only get the client OS once the script is loaded to the client browser(I believe it's also the reason for the hydration issue). Also, with our existing implementation, it should also be doing the same.

make its update transition friendlier

That would be great but I think right now silencing the error takes priority.

@rogermparent it's still a draft?

Sorry, I thought I had changed it to ready but must have been looking at the wrong tab or something

Let's ship it, but in general it takes surprisingly long to update the screen (drop down and GitHub).
What had changed to cause this problem btw?

We've always had this problem, it's just that React 18 made hydration mismatches throw an error instead of log a warning. The whole process of hydration means that a static HTML file is sent first, renders fast, and then React kick in to hydrate where it expects the results to match up with that initial HTML, which makes UI bits that are different for every user more difficult than other website implementations.

thanks Roger, It's almost immediate now on prod, do you expect it taking that much longer after the deploy?

It's almost immediate now on prod, do you expect it taking that much longer after the deploy?

I doubt it'd be much longer than it currently is on prod, as the GH stars currently are populated on first render and they're pretty quick on prod with the download button not much further ahead.


Global alert message

Have two versions

[ ] alert
[ ] message

These are distinguished by background colour (yellow for alert, grey for message)

I think this should roll into the design system work. Let's close this.


LC0051 and download of pre-release

This was not nice of you! 😝
We are using secrets in our pipeline and it blanks out numbers
warning LC005***: Possible overflow assigning 'Text' to 'Code[***0]'

My colleague called me in despair and said he couldn't remove it with pragma disable LC0050 since it was the only one listed on 50

However, I wonder how to trigger newest release from VS Code. I have ticked pre-release setting but when does it download?
Now I had to use the pipeline ps script to download it manually into the folder so I could see that it was actually LC0051.

My apologies 😳 We try as much as possible to avoid breaking pipelines and this was probably an unpleasant experience for your colleague.
I have a question though: Is it an deliberate choice to run the Pre-release version instead of the Latest (stable) version of the LinterCop in your pipelines?

We only run the Latest in our pipelines and some of us use the Pre-release on their VS Code so we can gather feedback on new rules. It also isn't helpful that your current setup hides the numbers. If you want we can have a call to see if we can improve this, where I also can share our current setup of our Azure DevOps pipelines what works for us.
Because the new LC0051 rule is only available in the pre-release, you'll find the documentation on this in the prerelease branch. In the wiki the documentation on this rule is already available.
When introducing new rules we are reluctant to have these on a warning level as default severity. This so we don't break to much pipelines out there with a new release. In the case of the LC0051 rule i thought is was justified to have this as a warning as default severity level.

I have ticked pre-release setting but when does it download?

I see i forgot to answer your question on this. To be honest, I'm not sure. I think when all VS Code windows are closed, then starting VS Code again it will trigger the download again.

I have a question though: Is it an deliberate choice to run the Pre-release version instead of the Latest (stable) version of the LinterCop in your pipelines?

To be honest, I didn't know we were running pre-release until a month ago. Then I was, I will fix it later.
I guess I have to blame all those late nights of troubleshooting pipelines.
But now when I looked into the code I think I have found the reason for that.

To my defence I was uses using example code 😜

Source: ALOps Custom Code Cop

It also isn't helpful that your current setup hides the numbers. If you want we can have a call to see if we can improve this, where I also can share our current setup of our Azure DevOps pipelines what works for us.
Tell me about it! The amount of hours troubleshooting which symbols version the pipeline was used 😣
Instead I have a habit of converting numbers to text representations 1 => One when displaying files in the build folders.
But that seems to be due to the fact that we store our secrets in Azure Key Vault, read more and because of that it automatic masks numbers in pipeline console..

I see i forgot to answer your question on this.
 I believe it works best when no AL project/workspace is open in VS Code. This because the AL Compiler wil lock the .dll file where it can't be updated.

That is nice! Will start use that. I did a powershell script yesterday to do this and I also noticed that VS code needed to be closed or as you say, projects closed.

To my defence I was uses using example code 😜

Fair point 😅
I've created an PR so that the example code does what you would have expected it to do.

our secrets in Azure Key Vault

We also retrieve secrets from an Azure Key Vault in our pipelines and do not experience the same issue as you.
I'm guessing based in the info on the Please! make a setting for showing unimportant numbers in task there, that the "..it is both "real" secrets and settings.." maybe is the reason. Settings are not secrets, so should not have to be in a Key Vault.
In the beginning also try'ed that approach, with the goal to have settings available cross multiple projects. I've changed that to use templates. 05_MultiVersion_pipeline.yml is an nice example for inspiration.

I believe we've resolved this for the moment (awaiting PR) and going to close this issue. Feel free to reopen this issue if you're still experiencing problems.


metrics: in quarkus mode, use microprofile metrics in place of the prometheus agent

quarkus provides a metrics extension based on the MicroProfile/SmallRye that can be used to generate metrics for prometheus, so in quarkus mode, camel-k should opt to use it instead of the prometheus agent.
Some refs:

https://quarkus.io/guides/microprofile-metrics
https://github.com/apache/camel-quarkus/tree/master/extensions/microprofile-metrics

We need to be sure we do expose the same metrics in both the scenarios.

/cc @astefanutti


Arithmetic Arranger test suite diff output can be improved

The test suite for the Arithmetic Arranger project doesn't always have a well formatted diff
example:

I would expect to see it as
AssertionError: '    [23 chars]  123    \n+ 855    -    2    + 43    +  49   [73 chars]    ' != '    [23 chars]  123\n+ 855    -    2    + 43    +  49\n-----[23 chars]----'
-     3      3801      45      123
?                                 ----
+     3      3801      45      123
- + 855    -    2    + 43    +  49
?                                 ----
+ + 855    -    2    + 43    +  49
- -----    ------    ----    -----
?                                 -----
+ -----    ------    ----    -----
-   858      3799      88      172

(note the last line)
I see this happen in various situations.
In this case the code that causes this in the diff is below:

def arithmetic_arranger(problems, solutions=bool):

    operand1 = []
    operator = []
    operand2 = []
    results = []
    op_length = []

    # check the number of problems
    if len(problems) > 5:
        return 'Error: Too many problems.'

    # split the problems into lists of operators and first and second operands
    for i in range(len(problems)):
        operand1.append(problems[i].split()[0])
        operator.append(problems[i].split()[1])
        operand2.append(problems[i].split()[2])

    # check for invalid operators
    for i in operator:
        if not i == '+':
            if not i == '-':
                return "Error: Operator must be '+' or '-'."

    # check for invalid operands
    for i in operand1:
        if not i.isnumeric():
            return "Error: Numbers must only contain digits."

    for i in operand2:
        if not i.isnumeric():
            return "Error: Numbers must only contain digits."

    # check size of numbers
    for i in operand1:
        if len(i) > 4:
            return "Error: Numbers cannot be more than four digits."

    for i in operand2:
        if len(i) > 4:
            return "Error: Numbers cannot be more than four digits."

    # compare length of individual operands
    for i in range(len(problems)):
        if len(operand1[i]) > len(operand2[i]):
            op_length.append(len(operand1[i]))
        else:
            op_length.append(len(operand2[i]))

    # arrange the output
    space = ' '
    first_line = ''
    second_line = ''
    third_line = ''
    fourth_line = ''

    for i in range(len(problems)):
        first_line = first_line + space * (2 + op_length[i] - len(operand1[i])) + operand1[i] + space * 4
        second_line = second_line + operator[i] + space * (1 + op_length[i] - len(operand2[i])) + operand2[
            i] + space * 4
        third_line = third_line + '-' * (2 + op_length[i]) + space * 4

    arranged_problems = first_line + '\n' + second_line + '\n' + third_line

    # calculate the results of the problems
    if solutions:
        for i in range(len(problems)):
            if operator[i] == '+':
                results.append(int(operand1[i]) + int(operand2[i]))
            else:
                results.append(int(operand1[i]) - int(operand2[i]))

        for i in range(len(problems)):
            fourth_line = fourth_line + space*(2 + op_length[i] - len(str(results[i]))) + str(results[i]) + space*4

        arranged_problems = arranged_problems + '\n' + fourth_line

    return arranged_problems

The output comes from the python's built-in unittest module. There is actually few bugs related to the unittest output on the python bugtracker. So changing it from this angle might not be straightforward.
A bit quick and dirty way might be splitting the strings in tests on the new-line character and compare them as two lists instead. Output for the above test would be:
======================================================================
FAIL: test_arrangement (test_module.UnitTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/boilerplate-arithmetic-formatter-1/test_module.py", line 10, in test_arrangement
    self.assertEqual(actual, expected, 'Expected different output when calling "arithmetic_arranger()" with ["3 + 855", "3801 - 2", "45 + 43", "123 + 49"]')
AssertionError: Lists differ: ['   [24 chars]  123    ', '+ 855    -    2    + 43    +  49 [80 chars]   '] != ['   [24 chars]  123', '+ 855    -    2    + 43    +  49', '-[28 chars]---']

First differing element 0:
'    3      3801      45      123    '
'    3      3801      45      123'

First list contains 1 additional elements.
First extra element 3:
'  858      3799      88      172    '

- ['    3      3801      45      123    ',
?                                   ----

+ ['    3      3801      45      123',
-  '+ 855    -    2    + 43    +  49    ',
?                                   ----

+  '+ 855    -    2    + 43    +  49',
-  '-----    ------    ----    -----    ',
?                                   ---- ^

+  '-----    ------    ----    -----']
?                                    ^

-  '  858      3799      88      172    '] : Expected different output when calling "arithmetic_arranger()" with ["3 + 855", "3801 - 2", "45 + 43", "123 + 49"]

Other option could be using pytest module for testing instead of the built-in unittest, after simple change to the test, and running pytest, output would be:
E       AssertionError: Expected different output when calling "arithmetic_arranger()" with ["3 + 855", "3801 - 2", "45 + 43", "123 + 49"]
E       assert '    3      3...      172    ' == '    3      3...----    -----'
E         -     3      3801      45      123
E         +     3      3801      45      123
E         ?                                 ++++
E         - + 855    -    2    + 43    +  49
E         + + 855    -    2    + 43    +  49
E         ?                                 ++++
E         - -----    ------    ----    -----...
E
E         ...Full output truncated (4 lines hidden), use '-vv' to show

pytest seems much more clear

I have to say it's still not incredibly clear, but is an improvement.

What do you think about changing or adding tests, but just with 2 problems? It would limit the noise from more problems repeating the issue and still allow to show problem at the end of line or between problems.

I do think we want to keep one test with four problems, just to test the input is accepted, but cleaning up the rest would be a good idea.


Implementation of Exercise_08_c

I think m=2 and z=0.75 perhaps?

I think m=2 and z=0.75 perhaps?

How?

Sorry, I should have explained that a bit more.
x = z*(2^m)

therefore
z = x/(2^m)

we can choose any m as long as -1 < z < 1.
Questions asks for x=3, for which m=2 and z=0.75 works.
Possible pseudo-code for program:
set ln2 = 0.6931472
ask user for value of x
ask user for value of m
calculate z = x/(2^m)
check that -1 < z < 1

calculate xi= (1-z)/(1+z)
calculate lnx = m*ln2 - 2*sum( (xi^(1:N))/(1:N) )

compare with exact value of ln(x)

Can try different values of m - I think smaller m will give a larger z which will give a smaller xi which will lead to fewer terms necessary for a certain precision.
Hope that helps a bit more.

Thank you very much @LKedward

@EverLookNeverSee ,
Can you provide a reference to a derivation for the relationship you show in the original post?
A quick glance suggests the series is divergent for z <= 0, so a numerical approach is unclear for -1 <= z <= 0.
When z > 0, xi < 1, so one can compute the series numerically to determine lnx.

@FortranFan, the exercises appear to be from: Bose, S., 2019. Numerical Methods Of Mathematics Implemented In Fortran. Singapore. Springer. See here on google.
The text does not provide a derivation for the relation; my summary conclusion is that it is an error since z <= 0 implies x <= 0 which would be problematic for then calculating ln(x).
As you point out, 0 < z <= 1 appear to be the correct bounds for z here.

One derivation of the relation in the original post follows from the identities
 y(z) = (1-z)/(1+z)

z(y) = (1-y)/(1+y)

From this, it follows that
ln(z) = ln(1-y) - ln(1+y)
Taylor expansion at y=0 on the right then gives the result shown in the original post where all of the even terms vanish. The radius of convergence of ln() on the right is -1<y<1. However, convergence is slow for large |y|, so the only useful values for computation are when y is small, which is when z is near +1. Thus in the computation where x is given, m should be chosen to make z<=1 as close to 1 as possible.


Got Nan of loss value when training

We are training our own dataset with retinanet 50,we changed the data annotation into pickle just like illustrated in custom.py,  the data type of bbox and labels is int32, sicnce we don't have ignore images,we set it like this ,e.g  ''a.jpg'' has two objects,
{
'filename': 'a.jpg',
'width': 1280,
'height': 720,
'ann': {
'bboxes': np.array( [[xmin_1(int32), ymin_1,  width_1,   height_1],
[xmin_2, ymin_2,  width_2,   height_2]]),
'labels': np.array([label1(int32),label2]),
}
}
After we set config and ran the train.sh,we met some problem like expected Long but Int is given,
expected DoubleTensor but FloatTensor is given,we have to add some codes like .double() to slove these issues.We didn't change anything else,just make sure the type of data is right.We use pytorch 1.0 ,should we do things like .double(),or we just didn't handle the data well?
Finally it started to run,but we found the value of clf loss,reg loss were nan,could you tell us the reasons may cause it?We have 5 classes and we have already changed lr, cause we just use one gpu, here is our config file
model settings
model = dict(
type='RetinaNet',
#pretrained='modelzoo://resnet50',
pretrained='/home/ubuntu/MyFiles/mmdetection/models/resnet50-19c8e357.pth',
#pretrained=None,
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
in_channels=[256, 512, 1024, 2048],
out_channels=256,
start_level=1,
add_extra_convs=True,
num_outs=5),
bbox_head=dict(
type='RetinaHead',
num_classes=6,
in_channels=256,
stacked_convs=4,
feat_channels=256,
octave_base_scale=4,
scales_per_octave=3,
anchor_ratios=[0.5, 1.0, 2.0],
anchor_strides=[8, 16, 32, 64, 128],
target_means=[.0, .0, .0, .0],
target_stds=[1.0, 1.0, 1.0, 1.0]))
training and testing settings
train_cfg = dict(
assigner=dict(
type='MaxIoUAssigner',
pos_iou_thr=0.5,
neg_iou_thr=0.4,
min_pos_iou=0,
ignore_iof_thr=-1),
smoothl1_beta=0.11,
gamma=2.0,
alpha=0.25,
allowed_border=-1,
pos_weight=-1,
debug=False)
test_cfg = dict(
nms_pre=1000,
min_bbox_size=0,
score_thr=0.05,
nms=dict(type='nms', iou_thr=0.5),
max_per_img=100)
dataset settings
dataset_type = 'CustomDataset'
#dataset_type = 'CocoDataset'
data_root = '/home/ubuntu/MyFiles/mmdetection/data/coco/'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
data = dict(
imgs_per_gpu=2,
workers_per_gpu=2,
train=dict(
type=dataset_type,
ann_file=data_root + 'annotations/input_80.pkl',
img_prefix=data_root + 'train2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
size_divisor=32,
flip_ratio=0.5,
with_mask=False,
with_crowd=False,
with_label=True),
val=dict(
type=dataset_type,
ann_file=data_root + 'annotations/input_20.pkl',
img_prefix=data_root + 'val2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
size_divisor=32,
flip_ratio=0,
with_mask=False,
with_crowd=False,
with_label=True),
test=dict(
type=dataset_type,
ann_file=data_root + 'annotations/input_20.pkl',
img_prefix=data_root + 'val2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
size_divisor=32,
flip_ratio=0,
with_mask=False,
with_crowd=False,
with_label=False,
test_mode=True))
optimizer
optimizer = dict(type='SGD',lr=1e-5, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
learning policy
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=500,
warmup_ratio=1.0 / 3,
step=[8, 11])
checkpoint_config = dict(interval=1)
yapf:disable
log_config = dict(
interval=50,
hooks=[
dict(type='TextLoggerHook'),
# dict(type='TensorboardLoggerHook')
])
yapf:enable
runtime settings
total_epochs = 12
device_ids = range(8)
dist_params = dict(backend='nccl')
log_level = 'INFO'
work_dir = './work_dirs/retinanet_r50_fpn_1x_222'
load_from = None
resume_from = None
workflow = [('train', 1)]

We have another question.We have some images without objects that we want to detect,can we also use these images in training?

@youjinqing123 sorry but I have the same problem with you.My custom dataset is cutted into 256*256 images,and there are no labels in 80% cutted images.I also have one GTX1080Ti GPU in training step.When I delate all the nolabel cutted training images in my dataset and set :
optimizer
optimizer = dict(type='SGD', lr=1e-5, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2))
learning policy
lr_config = dict(
policy='step',
warmup='linear',
warmup_iters=5000,
warmup_ratio=1.0 / 3,
step=[8, 11])
my loss is NAN.
So I really want to know how you solve your problem?thanks!

@youjinqing123 How did you solve your issue? What was the problem?


Added last connections log

I tried to use an interceptor, following this example (that don't modify any xml file) http://www.concretepage.com/spring/spring-mvc/spring-handlerinterceptor-annotation-example-webmvcconfigureradapter, but i can't get it to work. I get this error "Could not resolve view with name 'welcome' in servlet with name 'dispatcherServlet'" and there is no way to solve it. I have tested many examples including some that modify xml files with no results. Any suggestions?


Not able to run remote urls on Android 9

Configuration
I am using react-native-track-player version 1.1.8
Issue

I am using the module to play remote url.
It works fine for all android versions less than 9 (Pie)
on Android 9, it fails to play from remote url while it can play a local audio file!
The url is a live streaming server, here it is: http://www.quran-radio.org:8002/i
Is there a solution for this issue?

On Android 9 and above unencrypted traffic is disallowed by default. Since your stream URL is not using https it will not play.
To turn off this setting, add this to your AndroidManifest.xml:
android:usesCleartextTraffic="true"

This should probably be added to the documentation at some point. I'll mark it as "docs" so we don't forget to do so.

I too facing same issue. added android:usesCleartextTraffic="true" in android/app/src/debug/AndroidManifest.xml, but still the issue is not fixed in Android 9 and above.
in Android 8 and below no issue.

Are you seeing any error or warning logs?


fix(topology): removed mobx and mobx-react from direct dependency and use one from @patternfly/react-topology

Fixes: https://github.com/janus-idp/backstage-plugins/issues/187
Description:
mobx and mobx-react is a transitive dependency from @patternfly/react-topology and there could be a scenario when we update the dependency version here but pf may still needs an update and use the old one this creates the issue with multiple instances of mobx. Best would to use the one from pf an avoid this.
https://github.com/patternfly/patternfly-react/blob/main/packages/react-topology/package.json#L42-L43
https://www.npmjs.com/package/@patternfly/react-topology

/cc @jeff-phillips-18 ^^


Do not pass the kernel-OS-DTK mapping around

Make the kernel version --> OS version --> DTK image an instance variable of build.Maker instead of passing it around.
/cc @mresvanis @ybettan @yevgeny-shnaidman

/lgtm


Adding consistent font-weight for list-structure

Notes for Reviewers
Adding consistent font-weight to list-structure
This PR fixes #9710
Signed commits

[x] Yes, I signed my commits.

🚀 Preview for commit 00538bb971f53899533fc91587b081957d0f8be0 at: https://658dd32b52257422534b0215--meshery-docs-preview.netlify.app

🚀 Preview for commit b1d3ef9848c268a40fc5512e39975809ed7e1b24 at: https://658f1a8d73b216e0ae441d55--meshery-docs-preview.netlify.app

Hey @yash37158 ,
Thanks for raising the PR, Please add this as your agenda in Doc to discuss it in the Website Meeting tomorrow at 6:30 PM IST.
Subscribe to community calendar for more details of meetings at Layer5.

@Aayush2111, would you like to review this?

🚀 Preview for commit 02e024e35fd2fc229d6e4e13cbdca662c6b49d68 at: https://659715250537cf3471e73971--meshery-docs-preview.netlify.app

🚀 Preview for commit 3263a3b23552dd79750b64bad50cba1f1c41f182 at: https://6598530d2f4c4e4048e1ad83--meshery-docs-preview.netlify.app

🚀 Preview for commit d4241a8e0d66897fee97151ae764c57623d6b85f at: https://6598723248048355f4fabd55--meshery-docs-preview.netlify.app

Adding screenshot @vishalvivekm @leecalcote

Thanks, @yash37158 👍


The SSO API could be published?

https://github.com/nsysu-oia/exchange-backend/blob/581122b0694f82f49a6a6cd548dddaee9abd6802/routes/login.js#L56

Technically I didn't publish any of the university's property except for the OIA's. Is there a problem?

Close this issue due to inactivity.


Implosion Not Working Correctly

The Problem

There is an issue with the implosion script that is related to this issue here - https://github.com/ImageMagick/ImageMagick/issues/6623
It may be a memory issue or a bug in Image Magick.
Expected Behavior

The scripts/implode.sh script would not fail to create an imploded GIF of an input image.
Steps to Reproduce the Problem

Run scripts.sh Image.png on an existing Image.png.
Observe failure of the script

Relevant TODO - https://github.com/iansantagata/Emoji-Dojo/blob/main/scripts/implode.sh#L215


Release 1.1.5 hotfix (#217)

Merge main back into develop.

SDP-1118 Hotfix: sanitize disbursement instructions (#211)
chore bump go version to 1.22.1 (#216)

Checklist
PR Structure

[ ] This PR has a reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR title and description are clear enough for anyone to review it.
[ ] This PR does not mix refactoring changes with feature changes (split into two PRs otherwise).

Thoroughness

[ ] This PR adds tests for the new functionality or fixes.
[ ] This PR contains the link to the Jira ticket it addresses.

Configs and Secrets

[ ] No new CONFIG variables are required -OR- the new required ones were added to the helmchart's values.yaml file.
[ ] No new CONFIG variables are required -OR- the new required ones were added to the deployments (pr-preview, dev, demo, prd).
[ ] No new SECRETS variables are required -OR- the new required ones were mentioned in the helmchart's values.yaml file.
[ ] No new SECRETS variables are required -OR- the new required ones were added to the deployments (pr-preview secrets, dev secrets, demo secrets, prd secrets).

Release

[ ] This is not a breaking change.
[ ] This is ready for production.. If your PR is not ready for production, please consider opening additional complementary PRs using this one as the base. Only merge this into develop or main after it's ready for production!

Deployment

[ ] Does the deployment work after merging?

stellar-disbursement-platform-backend-preview is available here:SDP:      https://sdp-backend-pr219.previews.kube001.services.stellar-ops.com/healthAP:       https://sdp-ap-pr219.previews.kube001.services.stellar-ops.com/healthFrontend: https://sdp-backend-dashboard-pr219.previews.kube001.services.stellar-ops.com

stellar-disbursement-platform-backend-preview is available here:SDP:      https://sdp-backend-pr219.previews.kube001.services.stellar-ops.com/healthAP:       https://sdp-ap-pr219.previews.kube001.services.stellar-ops.com/healthFrontend: https://sdp-backend-dashboard-pr219.previews.kube001.services.stellar-ops.com

stellar-disbursement-platform-backend-preview is available here:SDP:      https://sdp-backend-pr219.previews.kube001.services.stellar-ops.com/healthAP:       https://sdp-ap-pr219.previews.kube001.services.stellar-ops.com/healthFrontend: https://sdp-backend-dashboard-pr219.previews.kube001.services.stellar-ops.com


Feature Request: Hide Lock Mechanism

Discussed in https://github.com/donavanbecker/homebridge-august/discussions/24

Originally posted by Phixius5968 November  2, 2022
Hi there,
Since I have the lock added to HomeKit natively, adding it via homebridge-august double the buttons in the HomeKit. I'm actually looking for a way to hide the lock button but not the device entirely.
My motivation is to be able to monitor the doorsense and the battery level of the lock but to simply have one lock button in the HomeKit.
Thank you!

@Phixius5968
Can you try the latest beta:

Click here to find out how to install Beta

Installed it.
v 1.0.6-beta.13
Broke the plugin. Still can see to accessories but can't control anything and it doesn't get updated. Get this message on Hb Loading
[August] Discover Devices: ReferenceError: Config errors found:
Missing config.installId or AUGUST_INSTALL_ID env var
Still have my ID/Password in the config and am still validated...

However, now I have this logging :
[11/3/2022, 8:33:41 PM] [August] Total August Locks Found: 7
[11/3/2022, 8:33:41 PM] [August] Restoring existing accessory from cache: David Lock ID: AFB738DAC0BC4A90A339930AAE6A1869
[11/3/2022, 8:33:41 PM] [August] Restoring existing accessory from cache: Front Door Lock ID: CDFF5D62995C480BA50BF21F4DE79B75
[11/3/2022, 8:33:41 PM] [August] Lock: Front Door Config: {"hide_lock":true,"refreshRate":300}
[11/3/2022, 8:33:41 PM] [August] Lock: Front Door Removing Lock Mechanism Service
[11/3/2022, 8:33:43 PM] [August] TypeError: Cannot read properties of undefined (reading 'hide_lock')
[11/3/2022, 8:33:43 PM] [August] Lock: David failed lockStatus (refreshStatus), Error Message: "Cannot read properties of undefined (reading 'hide_lock')"
[11/3/2022, 8:33:43 PM] [August] Lock: David was Unlocked
[11/3/2022, 8:33:43 PM] [August] Lock: David was Closed
[11/3/2022, 8:33:46 PM] [August] Lock: Front Door was Closed
It seems to be working just fine anyways..

However, now I have this logging :
[11/3/2022, 8:33:41 PM] [August] Total August Locks Found: 7 [11/3/2022, 8:33:41 PM] [August] Restoring existing accessory from cache: David Lock ID: AFB738DAC0BC4A90A339930AAE6A1869 [11/3/2022, 8:33:41 PM] [August] Restoring existing accessory from cache: Front Door Lock ID: CDFF5D62995C480BA50BF21F4DE79B75 [11/3/2022, 8:33:41 PM] [August] Lock: Front Door Config: {"hide_lock":true,"refreshRate":300} [11/3/2022, 8:33:41 PM] [August] Lock: Front Door Removing Lock Mechanism Service [11/3/2022, 8:33:43 PM] [August] TypeError: Cannot read properties of undefined (reading 'hide_lock') [11/3/2022, 8:33:43 PM] [August] Lock: David failed lockStatus (refreshStatus), Error Message: "Cannot read properties of undefined (reading 'hide_lock')" [11/3/2022, 8:33:43 PM] [August] Lock: David was Unlocked [11/3/2022, 8:33:43 PM] [August] Lock: David was Closed [11/3/2022, 8:33:46 PM] [August] Lock: Front Door was Closed
It seems to be working just fine anyways..

Fixed it :
The workaround for it was, for every other locks I have on my account that are "hide_device": false I had to add :
"lock": {
"hide_lock": false
},
It fixes the logging issue

v1.1.0 has been release which resolves this.

I feel dumb not being able to figure this out; but how do I go about hiding all my locks aside from the contact sensor?

I feel dumb not being able to figure this out; but how do I go about hiding all my locks aside from the contact sensor?

In Homebridge, you can get the deviceid from the plugins settings > devices tab. You will then copy that deviceId and go to the settings tab to and input it into the deviceId field. From there you will get config options.

I feel dumb not being able to figure this out; but how do I go about hiding all my locks aside from the contact sensor?

In Homebridge, you can get the deviceid from the plugins settings > devices tab. You will then copy that deviceId and go to the settings tab to and input it into the deviceId field. From there you will get config options.

Awesome - that did it, thank you! I didn't realize that was a placeholder value in that DeviceID field. Thanks for the quick reply!


Stale connection

Describe the bug
If the surrealist application is left connected without sending a query for a prolonged period the connection displays as connected but queries cannot be sent.
The user must manually reconnect by restarting the application or by re-saving the connection details to trigger a reconnect.
To Reproduce
Steps to reproduce the behavior:
Leave a the surrealist application connected without sending a query
Expected behavior
Surrealist to update the connection status and display the connect button
Environment:
Platform: GNU/Linux
OS: Ubuntu 23.10
Architecture: x86_64
WebView: 124.0.6367.78
Version: 23.10
Flags: featureFlags: true, models_view: true, apidocs_view: true, themes: false, newsfeed: false

I have the same problem with the windows app. The easiest way to reproduce is to cut the connection manually and connect it after a while. It will not detect the change in the connection and does not respond correctly. queries would not be sent and explorer view is either empty or shows fixed old data. When this happens, I have to either restart the application or change the connection to sandbox or another connection and then connect to my main destination again.


Create Customer Milestone Report 1

[x] Add Software Requirements Specification
[x] Add UML diagrams
[x] Add Scenerios and Mockups
[x] Add Project Plan, Communication Plan, Responsibility Assignment Matrix
[x] Add Weekly Reports
[x] Add Milestone Review
[x] Add Individual Contribution Reports
[x] Add the pre-release version of the software

https://github.com/bounswe/bounswe2023group8/wiki/Customer-Milestone-1-Deliverables


Fix numbers checker

Of course if it takes longer than 60s we've got other things to worry about, so possibly redundant, but happy to merge it!

@inglesp Now we've fixed the underlying issue in #2106 I think we should back out the timeout change


refactor class repo into modules; create spark grocery example

refactor class repo into separate modules to make dependency management a bit easier
add basic grocery store example using Spark framework

TODO: Dropwizard, Spring

Note that the structure of the backend allows us to more easily replace the Main and Handler with a different backend framework. The Main and Handler classes control route registration, deserialization of the incoming request, serialization of the outgoing response, and handling the mapping between the URI and the parameters of interest, i.e. user id, item id.

Also note that when dealing with serialization, you have to think about what you want returned to your client vs hidden as internal. Gson allows you to have some control over this using the @Expose annotation on your Java class fields.
Final note for now: in order to properly key a HashMap on a Java class, you need to override equals and hashcode for your model classes. Frameworks like AutoMatter, AutoValue, Protobuf, etc do this for you in varying degrees. Read the docs :)


Stacked series with gradient fill are not occluded

Bug report
Stacked series are rendered on top of each other, so for gradient fills, the colours merge together which may often be undesirable. Each graph should occlude the other such that the colours do not merge. In this example, the negative graph (red) comprises the majority but it still looks green because the positive graph is predominantly showing through from underneath.
Codepen
CodePen (lower chart).
Explanation
This chart should appear mostly red.

However, the small amount of positive review stacked on top of it cause discolouration, making it look more green that it should be.

Since this is a stacked series, it should only be filled as far down as the graph underneath it, not the entire area under the line.

This, unfortunately, cannot be avoided.
The whole path draws from the base of the chart, so coloring on the stacked part is not possible.
Please use solid color in such a case or increase the opacity.

@junedchhipa Can I apply a custom fill to just one of the line graphs (the red one) and not the other?

@junedchhipa The green color still affects the red color even when I use solid fill.
fill: {
    type: 'solid'
}

Am I missing a setting to fully remove the transparency?


Footstep decals occur on top of the character's feet.

They appear on the ground as you'd expect but they can be seen on the player's feet too.

Yes, this is just Unreal's default behavior.
You can turn off decals using the bReceivesDecals parameter in the character's mesh component, but I didn't touch it because this parameter turns off all decals, which can be very confusing, and this is not exactly what ALS is responsible for.


Allow song deletion by queue position number

Please allow song deletion by queue position number, e.g. !song delete 3

Now supported with !song delete <number>, where the number is 1 or higher and matches what you see on the web page.


It’s Supported but not working

It's have been worked with https://github.com/.../INI-RDPWRAP/blob/master/rdpwrap.ini , but yesterday it's say Not Supported, so I change new file .ini . Then it's supported but not work

window 10pro

Duplicate of https://github.com/stascorp/rdpwrap/issues/2381

window 10pro

The Windows edition does not matter. Only the version of termsrv.dll and its architecture are important.


Add background task processor to handle the results from sync tasks

... Maybe it's good moment to move the syncTasks processor outside the service worker to browser-space event handler to be able handling the result callbacks
If decided otherwise we need to add the results processor for checking the "acknowledged" flag of syncTasks and fire some event for these which are not

Done with https://github.com/DivanteLtd/vue-storefront/pull/381
callback_event is fired on EventBus


Webxr not working on oculus rift s (BUT, the ones from the official webxr website works)

Hello, this morning i tried randomly to use webxr on my oculus rift s,
it work from those examples:
https://immersive-web.github.io/webxr-samples/
but from the ones on babylon, it doesnt, its loading infinitely.

Do you mind using the forum for question as stated in the Issue template?
cc @RaananW FYI


How to use different passwords in taskrun or pipeline

When I was writing taskrun and pipelinerun, the password of my gitlab was different from the password of harbor. I don't know how to use it. I only saw that gitlab and docker used the same password in the document. Does anyone know how to use it, can you give me an example, thanks a lot

Hi @tom20180101, I don't have enough context to answer your question yet.

When I was writing taskrun and pipelinerun, the password of my gitlab was different from the password of harbor. I don't know how to use it.

Could you clarify what you are using?  It it a Catalog Task?  Which one?  What does your TaskRun YAML look like?

I only saw that gitlab and docker used the same password in the document.

Which document are you referring to and where in that document does it describe using passwords?

Does anyone know how to use it, can you give me an example, thanks a lot

What platform are you running on?  (bare metal? minikube? gke? openshift?  eks?  aks?)
What version of Tekton Pipelines are you using?

Hi @tom20180101, I don't have enough context to answer your question yet.

When I was writing taskrun and pipelinerun, the password of my gitlab was different from the password of harbor. I don't know how to use it.

Could you clarify what you are using? It it a Catalog Task? Which one? What does your TaskRun YAML look like?

I only saw that gitlab and docker used the same password in the document.

Which document are you referring to and where in that document does it describe using passwords?

Does anyone know how to use it, can you give me an example, thanks a lot

What platform are you running on?  (bare metal? minikube? gke? openshift?  eks?  aks?)
What version of Tekton Pipelines are you using?

sorry，i use kubernetes 1.18.8  and pipelines version is  v0.18.1  . maybe i'm not clear，let me explain. i have a gitlab and  harbor，they all have to be authenticated to login, and their login account and password are different.  if i want clone code from gitlab , make mirror ,push image to harbor in same pipelinerun or taskrun , i must login, but i don't know how to achieve it in the same pipelinerun or taskrun . I only know the secret and serviceaccount  association that contains the only one account and password.

@tom20180101 the Understanding credential section section in https://tekton.dev/docs/pipelines/auth/ might help you.

https://tekton.dev/docs/pipelines/auth/
thanks a lot ,I've already seen it , I changed the accounts and passwords of Git and Harbor, and now their accounts and passwords are the same. so i can  achieved it. but I still don't know how to implement it with different Git and Harbor accounts.

you can try 2 things

create separate secrets, and list them in the serviceaccount
mount the secretes directly in you Tasks on a path where you need it, like how we would do it in a Kubernetes Pod.

The Taskruns are fundamentally pods which execute the steps (containers) in sequence, instead of starting the steps (containers) all at once.

you can try 2 things

create separate secrets, and list them in the serviceaccount
mount the secretes directly in you Tasks on a path where you need it, like how we would do it in a Kubernetes Pod.

The Taskruns are fundamentally pods which execute the steps (containers) in sequence, instead of starting the steps (containers) all at once.

ok，I'll try. thanks

you can try 2 things

create separate secrets, and list them in the serviceaccount
mount the secretes directly in you Tasks on a path where you need it, like how we would do it in a Kubernetes Pod.

The Taskruns are fundamentally pods which execute the steps (containers) in sequence, instead of starting the steps (containers) all at once.

ok，I'll try. thanks

i find this in pipelineruns  , i think this is useful
spec:
serviceAccountName: sa-1
serviceAccountNames:
- taskName: build-task
serviceAccountName: sa-for-build


docs: update list of advanced kernel requirements: fragment tracking

Documentation has a list of “Advanced Features and Required Kernel Version”. Let's add requirements for fragment tracking to the list: It depends on the availability of LRU maps, which come with kernel commit 29ba732acbee  ("bpf: Add BPF_MAP_TYPE_LRU_HASH").
Fixes: #11295

test-docs-please

Coverage increased (+0.01%) to 37.855% when pulling 2640da3bf459a56ba1cce8b9c020fe7ed50e5e10 on pr/qmonnet/doc_req_fragments into b09be6732c81489d4cb7199a6029a96b1013fcbf on master.


How can Automatic exclusions be displayed?

This article states at the top "These exclusions do not appear in the standard exclusion lists that are shown in the Windows Security app". Are these Automatic exclusions listed from the PowerShell cmdlet Get-MpPreference? Or are there other ways as well to discover the active exclusions?

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

ID: 1664d524-cf0b-a4d4-695a-114f5df1d33e
Version Independent ID: 31bff983-8c0c-915c-6f88-f5a0a719987c
Content: Configure Microsoft Defender Antivirus exclusions on Windows Server
Content Source: microsoft-365/security/defender-endpoint/configure-server-exclusions-microsoft-defender-antivirus.md
Service: microsoft-365-security
Sub-service: mde
GitHub Login: @denisebmsft
Microsoft Alias: deniseb

@andrePKI Thank you for your feedback. Automatic exclusions apply only to Windows Server 2016 and later. These exclusions are not visible in the Windows Security app and in PowerShell. The list is available here - https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/configure-server-exclusions-microsoft-defender-antivirus?view=o365-worldwide#automatic-exclusions-on-windows-server-2016-or-later
If you are requesting for this new feature to be available, you can provide feedback directly to our dev/product team via the main feedback portal (https://feedbackportal.microsoft.com/), so they can review and respond.
Hope this helps!
Thanks
Sri

@andrePKI Thank you very much for your kind feedback. Considering your valuable feedback, please log this issue as advised. Here we are limited to documentation fixes and improvements only. Concerning team will evaluate and take the appropriate action, as per their schedule. We proceed here to close it. Thanks again for taking out some time and sharing your feedback.


Rename FriedCabbageSalad.png to friedcabbagesalad.png

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

LGTM


Allow users to opt out of default shortcuts

Use case
A new default shortcut was recently introduced to Flutter, where the escape key dismisses modal routes (https://github.com/flutter/flutter/pull/59310). This didn't work for my project, so to get around this behavior, I defined my own shortcuts/actions logic that treats the escape key as a no-op. That works, but it feels a bit heavy-weight, and should Flutter change the default shortcuts in the future, there wouldn't be a great way for me to discover that logic was no longer necessary. Is there a different recommended best practice for how to do this? If not, it would be nice to have a lighter-weight way to disable individual default shortcuts/actions.

/cc @gspencergoog

In your MaterialApp/CupertinoApp constructor, you can supply a different default set of shortcuts by setting the shortcuts attribute. You can also get the default set of shortcuts that Flutter provides from WidgetsApp.defaultShortcuts, so you can either provide your own set of shortcuts to completely replace them, or you can filter the existing defaults.
For instance, if you only wanted tab to go to the next control, and no other shortcuts defined, do this at the top level of your app:
  Widget build(BuildContext context) {
    return MaterialApp(
      shortcuts: { LogicalKeySet(LogicalKeyboardKey.tab): const NextFocusIntent() },
      home: MyHomeWidget(),
    );
  }

If you wanted to have all of the default shortcuts except for the escape key, you could do this:
  Widget build(BuildContext context) {
    return MaterialApp(
      shortcuts: WidgetsApp.defaultShortcuts..removeWhere((LogicalKeySet key, Intent value){
        return key == LogicalKeySet(LogicalKeyboardKey.escape);
      }),
      home: MyHomeWidget(),
    );
  }

Please reopen if you have more questions.


Improve onItem/onFailure produceX method

This PR provides better methods to chain async calls. This topic has been discussed in many issues, so here is my take on it.
The main idea is to use applyAsync for method returning Uni and generate for method returning Multi:

Uni.onItem().produceUni() -> Uni.onItem().applyAsync()
Uni.onItem().produceMulti() -> Uni.onItem().stream()
Multi.onItem().produceUni() -> Multi.onItem().applyAsync() / Multi.onItem().applyAsyncAndConcatenate() / Multi.onItem().applyAsyncAndMerge()
Multi.onItem().produceMulti() -> Multi.onItem().stream() / Multi.onItem().streamAndConcatenate() / Multi.onItem().streamAndMerge()

Multi's produceIterable became streamFromIterable.
produceCompletionStage became applyCompletionStage.
These names have been chosen conscientiously. I discarded many alternatives after having tried them and compare the pros and cons of each alternative. Typically chain (one popular option) did not fit on multi. Some alternatives were losing the event-driven mantra. Some shorter approach ended up mixing concepts or didn't express the intent correctly.
The PR also adds invokeAsync to fix #151.
Update: generate was not great, I changed it to stream CC @kenfinnigan

@jponge as discussed.

I'm not really seeing how this solves the problem. .onItem().applyAsync() is still a way too verbose and messy-lookin' way to chain Unis. So I'm going to have to keep using flatMap() for this.
I can't even see how the term "async" crept in there. Why would you not have called it applyUni() which is shorter and uses words that are already part of your API vocabulary instead of introducing a new term?
In summary I don't see how these proposed changes solve the problem. I'm not even convinced that it's an improvement on the status quo.

@gavinking yes, it's verbose, but the flatten approach is terrible. I ended up with 380 methods in Multi which is a no go. So, yes, there is still some work to do on the naming, and this PR is far from being finalized.
I tried with chain - it didn't work. For multi it does not work.
Alternatives are welcome.

I ended up with 380 methods in Multi which is a no go.

Then let's discuss it. The rest of us don't even have a clear idea of the requirements and design constraints unless you write them down.

I tried with chain - it didn't work. For multi it does not work.

But as I understand it (I may not), the current PR uses generate() for Multi. So what was wrong with chain() + generate().

I ended up with 380 methods in Multi which is a no go.

Then let's discuss it. The rest of us don't even have a clear idea of the requirements and design constraints unless you write them down.

Definitely.
One of the main ideas of Mutiny is to avoid the flat design we are seeing in other libraries which leads to "let's use the IDE completion to pick the right operator without understanding it". That's what produced this idea of onX groups and limit the size of the API. That's why I would like to limit the number of methods in the main classes. I don't have a strict magic number, but I would prefer 30-50 to 100+.
I'm ok with having shortcuts. We already have some (map, flatMap, concatMap). As illustrated in the other PR (#169), adding a peek like operation is on its way (just a naming thing ;-)). Where I don't believe it's good is to flatten everything. Shortcuts should be motivated.

I tried with chain - it didn't work. For multi it does not work.

But as I understand it (I may not), the current PR uses generate() for Multi. So what was wrong with chain() + generate().

Let's try to summarize.
You receive an item from a Uni. What can you do (with the current method and the proposed method):

invoke a callback that does not modify the item (invoke)
invoke a callback executing an async action but once done, continue with the original item.
modify the item (apply)
produce a Uni (produceUni -> applyAsync )
produce a Multi (produceMulti -> stream (was generate ))

On a multi, it's a bit more tricky, because you have a stream of items. So, when you receive an item, you can:

[same as Uni] invoke a callback that does not modify the item (invoke)
[same as Uni]  invoke a callback executing an async action but once done, continue with the original item.
[same as Uni]  modify the item (apply)
// Here the fun begins
produce a Uni (produceUni -> applyAsync ). Except that you need to indicate how the produced items are flattened. So, applyAsyncAndConcatenate and applyAsyncAndMerge
produce a Multi (produceMulti -> stream (was generate )). Same issue here, you need to indicate how the items are flattened.

One of the main ideas of Mutiny is to avoid the flat design we are seeing in other libraries which leads to "let's use the IDE completion to pick the right operator without understanding it". That's what produced this idea of onX groups and limit the size of the API. That's why I would like to limit the number of methods in the main classes

Yes, I understand, and I support that goal.
But, and this is a hug caveat: I don't think it's much better to have three interfaces with 100 operations each than it is to have one interface with 300 operations. It might even be worse.
So what I've been trying to say is I want you to write down what you think are the fundamental, basic composable operations that your API needs to be built up from.

I'm ok with having shortcuts.

But I'm explicitly advocating fewer shortcuts. It seems to me that Mutiny as it exists today is sacrificing usability/understandability of the basic/fundamental operations, in order to provide a bunch of extra "convenience" or "advanced" methods that I don't feel like I'm ever going to need to use. But I might very well be wrong, because I don't have a clear idea of all the usecases!
I think it's somewhat of a design smell to have various ways to access the same operation, e.g. flatMap() vs. onItem().produceUni(). And it's even a bit confusing. (Well, it's not that confusing, but it does make me doubt that I'm "using it as intended".)

Let's try to summarize.

Great, but I want to see a summary like that which also includes all the basic operations needed for e.g. error handling, null handling, etc, as you see them.

invoke a callback that does not modify the item (invoke)
invoke a callback executing an async action but once done, continue with the original item.
modify the item (apply)
produce a Uni (produceUni -> applyAsync )
produce a Multi (produceMulti -> stream (was generate ))

But even this characterization misses something I think.
There's the distinction between:

apply() vs
invoke()

And there's also a distinction between:

I have a plan function, and
I have a Uni

And these cases are orthogonal. It seems to me that the list above misses the need for invokeUni(), which if I'm not mistaken, was already requested in issues #151, #155, and #83.
In general, any operation you have which is going to accept a function, is also going to need a variation which accepts a Uni.
So as a first step, that requirement needs to be made clear as a design constraint.

But, and this is a huge caveat: I don't think it's much better to have three interfaces with 100 operations each than it is to have one interface with 300 operations. It might even be worse.

It's not the case. We are far from 100 methods in each group. It gives you a navigation structure.

I think it's somewhat of a design smell to have various ways to access the same operation, e.g. flatMap() vs. onItem().produceUni(). And it's even a bit confusing. (Well, it's not that confusing, but it does make me doubt that I'm "using it as intended".)

That was the first feedback I had: where are the map/flatMap operations. It's the basic operations from popular reactive libraries. I, personally, don't like flatMap (I've nothing against map). flatMap is ambiguous and the behavior depends on the object you are manipulating: uni.flatMap != multi.flatMap.

And these cases are orthogonal. It seems to me that the list above misses the need for invokeUni(), which if I'm not mistaken, was already requested in issues #151, #155, and #83.

That has been provided (as invokeAsync in this PR).

produce a Uni (produceUni -> applyAsync ). Except that you need to indicate how the produced items are flattened. So, applyAsyncAndConcatenate and applyAsyncAndMerge
produce a Multi (produceMulti -> stream (was generate )). Same issue here, you need to indicate how the items are flattened.

And you need two variations of each of these operations, one accepting a plain function, and one accepting a Uni, no?

Sorry missed that part:

Great, but I want to see a summary like that which also includes all the basic operations needed for e.g. error handling, null handling, etc, as you see them.

Basically, whatever event you receive that's going to be one of these methods. Sometimes slightly differently, as for example, when you receive the completion event, you don't have an item.

That was the first feedback I had: where are the map/flatMap operations. It's the basic operations from popular reactive libraries. I, personally, don't like flatMap (I've nothing against map). flatMap is ambiguous and the behavior depends on the object you are manipulating: uni.flatMap != multi.flatMap.

Right, I agree, I'm not in love with the name flatMap() either! We don't have a Functor abstraction here, so calling this operations flatMap() is just wannabe functional programmers being pretentious.
 It's obnoxious!

produce a Uni (produceUni -> applyAsync ). Except that you need to indicate how the produced items are flattened. So, applyAsyncAndConcatenate and applyAsyncAndMerge
produce a Multi (produceMulti -> stream (was generate )). Same issue here, you need to indicate how the items are flattened.

And you need two variations of each of these operations, one accepting a plain function, and one accepting a Uni, no?

The flattening part is only relevant when producing asynchronous items. A plain synchronous function would preserve the order.
For example, let's have a multi: {a, b, c}.

multi.onItem().apply(letter -> letter.toUppercase())  would produce {A, B, C}
multi.onItem().applyAsync(letter -> doSomethingAsync(letter)) would produce 3 Unis (one for each item). However, you don't know when these uni will fire their item. If you want to preserve the order, you need to use applyAsyncAndConcatenate(). If you accept interleaved items, andMerge().
multi.onItem().stream(l -> getAStream(l)) has the same behavior. You need to decide how these streams are flattened.

Sorry missed that part:

Great, but I want to see a summary like that which also includes all the basic operations needed for e.g. error handling, null handling, etc, as you see them.

Basically, whatever event you receive that's going to be one of these methods. Sometimes slightly differently, as for example, when you receive the completion event, you don't have an item.

Forgot one interesting case: the absence of an event ( ~ a timeout).

@cescoffier These are the "basic operations" as I understand them:

transform the current item, affecting all subsequent operations on the stream
do something with the current item, without affecting the rest of the stream
handle a failure, replacing the failure with an item
do something with the current item and the current failure, if any, without affecting the rest of the stream

Any of the above operations must accept either a plain (synchronous) function, or an asynchronous function packaged as a Uni.
In addition, there are operations for working with Multis, that I don't have a really clear notion about because I just have not come across a really convincing use for Multi yet.
But I know that this list isn't exhaustive because there's a whole bunch more functionality in Mutiny which isn't captured in the above list. And 2*8 = 16 operations isn't coming anywhere close to 350 methods. So I would dearly like to know where the additional >300 methods are coming from and what they are for.

To recap, Mutiny was born mostly to solve the issue of RxJava having grown to use more than two types (Completable, and Maybe were a pain), and while we were thinking about it, we all agreed that a second possibly bigger reason for existence and selling point could be usability, because IDE completion was unusable and names were too vague and competing.
I was initially very unsure about the idea, but after having used it, I find the concept MUCH friendlier than the flat design, and much more intuitive.
Now, it's necessarily more verbose, which is precisely why the most common opertions flatMap and map have shortcuts. We could debate adding shortcuts for other operations we observe to be super common in practice, but I doubt they come near the frequency of map/flatMap to justify the exception.
Now, as to this PR, I don't quite understand why applyAsync is better than produceUni as a name, and similarly for stream versus produceMulti. I don't see the justification for the name change, and I find the new names less good because they're not related, and Async implies behaviour that is not actually related.
If produceUni turned into applyAsync to make it more related to apply, then I think that's the wrong reason or the wrong suffix.
IMO we could drop the parallelism of produceUni/produceMulti just because one of the two is going to be a conversion to a different type. From Uni to Multi, for example. While the other is going to turn a Uni into another Uni, so they're really fundamentally different objectives, IMO.
While apply/produceUni are indeed related, in the same way that map/flatMap are related, except that's only on the surface, because apply keeps the current chain while produceUni really switches the current Uni for another source entirely. In practice it doesn't matter much, but you could also name produceUni substitute or replace or switcharoo because that's what it does.
On the other hand, keeping the two names related could be good for discovery, but then I'd rather get apply and applyUni.
As for the Uni/Multi conversion, we could keep them all related with apply/applyUni/applyMulti or separate them and move produceMulti to Uni.convert().toMulti() for all I care. Most of the times I have to convert a Multi<T> into a Uni<List<T>> or the opposite and I have to use other methods than those anyways.
All in all, I don't find the new names much better if at all. I also think they miss the point that @gavinking was making by email, which is an entirely different strategy altogether, and which would perpahs be easier to discuss if @gavinking himself opened a PR with the API proposal so we can discuss it while trying it.

The flattening part is only relevant when producing asynchronous items. A plain synchronous function would preserve the order.

OK, so the relationship between Multi and ordering is something I don't quite understand. Are you saying that Multis are really intended to represent unordered streams?
The semantics of Multi isn't covered in the Javadoc, by the way. (Multi has no type-level docs.)

be easier to discuss if @gavinking himself opened a PR with the API proposal so we can discuss it while trying it.

I don't have a specific proposal because I don't understand the requirements well enough. I can only tell you what is making me uncomfortable in the current design.
And that I don't think it's a binary choice between "one interface with 350 methods" and "what we have right now". (Again, I could be wrong.)

@gavinking Here is a small excerpt from the Uni API. Many groups have been omitted (await, subscribe...), and some subgroups are omitted too (Name with ...).

If you move all these methods a single class, you end up with (I can't remember the exact number) but roughly 350 methods.

... and that I don't think it's a binary choice between "one interface with 350 methods" and "what we have right now". (Again, I could be wrong.)

Me neither, but your proposal was a bit too abstract for me to follow. An implementation I could try ;) Even if the methods don't do anything, BTW. As long as interfaces are defined, I can try them on for size without running them.

So, ok, you don't like async, so what about:

apply / applyUni / applyMulti / applyCompletionStage / invoke and invokeUni for Uni.onItem()
apply / applyUni / applyUniAndMerge / applyUniAndConcatenate / applyMulti / applyMultiAndMerge / applyMultiAndConcatenate / applyCompletionStage / invoke and invokeUni for Multi.onItem()

Alternative:
applyUni -> switchToUni (I'm not sure it express the fact you take the item), but it does not work well with AndMerge and AndConcatenate.

Here is a small excerpt from the Uni API.

Alright, so that's helpful, thanks.
And I think can already begin to discern some of those operations I which I would consider "non-fundamental".
(And I can also see several operations which are duplicated in four places.)

@cescoffier These are the "basic operations" as I understand them:

transform the current item, affecting all subsequent operations on the stream
do something with the current item, without affecting the rest of the stream
handle a failure, replacing the failure with an item
do something with the current item and the current failure, if any, without affecting the rest of the stream

The way I see it, there's mostly the need to replace current imperative language constructs:

transform the current item (function composition): your 1.  }

Alright, so that's helpful, thanks.

I should be able to share the editable version with you if you want.

And I think can already begin to discern some of those operations I which I would consider "non-fundamental".
(And I can also see several operations which are duplicated in four places.)

Yes, which would mean the same name, but the listened event is different (so the parameter)

So, ok, you don't like async, so what about:

apply / applyUni / applyMulti / applyCompletionStage / invoke and invokeUni for Uni.onItem()
apply / applyUni / applyUniAndMerge / applyUniAndConcatenate / applyMulti / applyMultiAndMerge / applyMultiAndConcatenate / applyCompletionStage / invoke and invokeUni for Multi.onItem()

Honestly that would work for me. But again, this is orthogonal with @gavinking 's proposal to groupd operations differently. This is mostly about names, and those proposed names seem fine to me.

So, ok, you don't like async, so what about:

apply / applyUni / applyMulti / applyCompletionStage / invoke and invokeUni for Uni.onItem()
apply / applyUni / applyUniAndMerge / applyUniAndConcatenate / applyMulti / applyMultiAndMerge / applyMultiAndConcatenate / applyCompletionStage / invoke and invokeUni for Multi.onItem()

Honestly that would work for me. But again, this is orthogonal with @gavinking 's proposal to groupd operations differently. This is mostly about names, and those proposed names seem fine to me.

This PR was about names, not groups :-)
It drove a discussion about groups, which is interesting.

The way I see it, there's mostly the need to replace current imperative language constructs:

Right. Precisely.

transform the current item (function composition): your 1. But note that due to sync/async transformations, this can either produce an item or a Uni of an item.

See here's where I really feel like I'm viewing these operations from a slightly different perspective.
I feel like you guys are thinking of these operations from the point of view of manipulations on a stream.
But my perspective is, for want of a better way of describing it, the perspective of the Haskell do-notation. That what I'm really modeling here is a sequential computation. That the important thing is not the stream itself, or the item in it, but rather the imperative "steps" that I perform.
Now, of course, these perspectives are obviously equally-valid.
But I think it does explain why I think that apply() and applyUni() are the "same" operation.

So, ok, you don't like async, so what about:

apply / applyUni / applyMulti / applyCompletionStage / invoke and invokeUni for Uni.onItem()
apply / applyUni / applyUniAndMerge / applyUniAndConcatenate / applyMulti / applyMultiAndMerge / applyMultiAndConcatenate / applyCompletionStage / invoke and invokeUni for Multi.onItem()

FTR these names look quite sane to me.

(And I can also see several operations which are duplicated in four places.)

Yes, which would mean the same name, but the listened event is different (so the parameter)

Looking more closely at this, I guess the thing that sticks out is how many different operations we have on UniOnTimeout and UniOnFailure. I'm really finding it very difficult to grasp how all these different operations are necessary. I feel like I would be better served by a single "handle" method that comes in synch and async flavors.

I actually used most of these methods in various app / framework. The only one that can be seen superfluous is onFailure().recoverWithItem(T fallback) because you can use the supplier version. That being said, the supplier would be called on every subscription which is not the case with the item variant.

I've renamed the method as listed in https://github.com/smallrye/smallrye-mutiny/pull/165#issuecomment-644230835

(catching up after PTO)
I'm the one who came up with the Async variants, because most of the time they are related to some asynchronous operation. Now it's true that this is probably too much and too tied to the execution model, so apply{Type} is fine with me, and things like applyUniAndMerge is meaningful.

Why all methods have a parameter type as a suffix? Is the parameter type not enough?

Because of Java. It won't see the difference between:
Uni<T> method(Function<X, T>);
Uni<T> method(Function<X, Uni<T>>);
Uni<T> method(Function<X, Multi<T>>);

Le jeu. 25 juin 2020 à 22:14, Željko Trogrlić<EMAIL_ADDRESS>a
écrit :

Why all methods have a parameter type as a suffix? Is the parameter type
not enough?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/smallrye/smallrye-mutiny/pull/165#issuecomment-649793895,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADCG7KWYY4BUXISNUU53RTRYOVZ5ANCNFSM4N5BXKOA
.

Superseded by the proposal from https://github.com/smallrye/smallrye-mutiny/issues/178.


[ROCKETMQ-114] Add javadoc to codebase

This is an in progress PR.

Coverage increased (+0.2%) to 31.057% when pulling 5662cd46a46d0e8c7dacb5ce4be3beecefca78f2 on lizhanhui:ROCKETMQ-114 into 6b7d206f09b928ea58fb3a62413a053f008b8c1c on apache:develop.

Coverage increased (+0.2%) to 31.057% when pulling 5662cd46a46d0e8c7dacb5ce4be3beecefca78f2 on lizhanhui:ROCKETMQ-114 into 6b7d206f09b928ea58fb3a62413a053f008b8c1c on apache:develop.

Coverage increased (+0.2%) to 31.057% when pulling 5662cd46a46d0e8c7dacb5ce4be3beecefca78f2 on lizhanhui:ROCKETMQ-114 into 6b7d206f09b928ea58fb3a62413a053f008b8c1c on apache:develop.

What's wrong with this PR. if no other polish, suggest close it:-)

@vongosling I suggest to create JIRA issues for all TODOs and FIXMEs here to make sure they are fixed someday.
It's not critical though, if you want to merge, please go ahead ;)

Let's close this PR for now and merge parts of docs which helps.


[Bug]: GitsyncId of actions from action collections change after import

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When we import app from applicationJson, the gitsyncId changes for actions which has plugin type set as js.
Steps To Reproduce

Import the app
compare the gitSyncIds

Public Sample App
No response
Environment
Deploy Preview
Severity
Medium (Frustrating UX)
Issue video log
No response
Version
latest

This happens because of one extra action present in the ApplicationJson's actionList. since there are two contenders for the same name the gitsync_ids would be different.
Creating issue from the RCA


[real-time password strength analyzer]

Suggestion
Implementation of real-time password strength analysis feature for register page.

@Vignesh025  please assign me this issue and label as hacktoberfest.

This feature already exists.

It is not efficient at all, it displays "Looks good!" with just one letter, I've attached a video below for this issue.
I'm proposing adding a strength analyzing bar that will increase with the use of more characters as well as with numbers and special characters.
https://github.com/user-attachments/assets/c27a3fb8-6e9f-48f9-80e0-be9910e31a7b

Hey @yalsik86 , someone is already working on that feature and has submitted a PR. It's currently in the review stage.


shell script - write rendered file to stdout

The shell script in bin/sablon could write the rendered file to stdout when omitting the <output path> argument.

@deiferni added and released as version 0.0.6

:sparkles: thanks!


Restore taking unusually long time

I'm trying to restore a Chroot to a USB 3.0 drive that is symbolically linked to my Chrome OS Chroot folder. I ran this thing all night last night and it still didn't finish. It gets up to like 7.5gb and then just hangs. The led on the usb still blinks so it looks like it's writing but I don't think it's suppose to take this long.
How long do Chroots usually take to restore? Would the symbolic link to USB 3.0 have something to do with it?

Some USB mass storage devices are slow...


File Size

Hey I was wondering if you guys knew why the file size has been increasing lately when I turn my homebrew into a pdf.  Normally it was around 1 MB however in the past 2 months something happened where the file size is now around 50 MB.  Also I did use the work around for the tables that one nice guy on here mentioned and it worked.  I mention it because I don't know if that is the cause but I don't think so.  One of my homebrews doesn't use class tables and experienced a large increase in file size as well.

Going to close this old issue since there are more productive discussions here and here.  I do believe some steps have been taken between 2018 and now to improve file sizes/load times.


[WebGL] Fix index buffer usage

Fixes #3669
PR checklist:

[ ] make succeeds (on *nix)
[ ] make reftests succeeds
[x] tested examples with the following backends: WebGL/OpenGL

Currently, the problem is not fully resolved:

At least the index buffer works now? 🎉

At least the index buffer works now?

Yes, now we can allocate an index buffer and send data to it. But I don't know why this buffer also used for other data even if it doesn't have Usage::TRANSFER_SRC flag.

@kvark Texture problem seems unrelated to buffer usage. I'm trying to investigate what's wrong. Anyway index buffer fix should be ready to merge.

Still CI errors

Still CI errors

Sorry, should be fixed now! But looks like CI is stuck 🤔

bors r+


Restore ios and android directories

@moylanm Why were these deleted? They are a standard part of a flutter project and should be tracked in the repo.
As it stands, a developer (or myself) cannot really build and run the app.
How are you two running the app in your respective simulators?

/cc @adriannagilmore

I deleted them because before I got a message from a third party about them having keys.


Jackson JSONP Provider

3/6 dependent libraries use jackson
1/6 gson

https://github.com/FasterXML/jackson-datatypes-misc/issues/6

It looks like the main action needed here is to implement a "bridge" JsonProvider class that uses Jackson to implement JSON-P. I think that's probably a Jackson concern. It's worth proposing it on Jackson's future ideas board. I'll link back here when I have the chance to make the proposal.

Hi @sigpwned
having Jackson implementing JsonProvider would be great. Thanks

It sound like the Jackson project does not want to implement JSON-P. The question was raised a long time ago and the JSR was disregarded. almost ten years and several new JSRs later, Jackson still does not implement JSON-P, I believe they never will.
Jackson provides a Jakarta JSON datatype that makes it rather simple to convert a Jackson tree to a Jakarta tree.
var jacksonNode = JsonNodeFactory.instance.objectNode();
var mapper = JsonMapper.builder().addModule(new JSONPModule()).build();
var jakartaNode = mapper.convertValue(jacksonNode, JsonObject.class);

Still, it would be nice not to have to convert, and Jackson remains widely used. Some libraries (like Jersey) support several JSON providers, but this may be tedious implementing.

V2 has been canceled because of lack of funding.


Update paths and add post content to RSS for Mailchimp campaign

fix absolute paths by replacing home/base_path with site.url.
add full post to feed.
remove spaces in ryans post.

Cool. Thanks.


cli: add generic profiler

closes https://github.com/reanahub/reana-client-go/issues/101
to test:
go run . list --profile=cpu
go tool pprof -text profile.pprof

Codecov Report

Merging #124 (6b68cb7) into master (e80c127) will decrease coverage by 1.52%.
The diff coverage is 37.83%.

Additional details and impacted files

@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
- Coverage   89.82%   88.30%   -1.53%
==========================================
  Files          30       31       +1
  Lines        2456     2530      +74
==========================================
+ Hits         2206     2234      +28
- Misses        181      225      +44
- Partials       69       71       +2

Impacted Files
Coverage Δ

cmd/root.go
78.40% <33.33%> (-2.43%)
:arrow_down:

cmd/profiling.go
38.46% <38.46%> (ø)


reduce the max concurrent operation performed when loading manifests

motivation: manifest loading concurrency tests sometime crash when they blow the threads limits in dispatch
changes:

centralize max operation into a helper
use the max concurrent operations limit for both manifest loading and repository lookup

@abertelrud  @neonichu this is addressing some PRs failing with Dispatch Thread Soft Limit Reached: 80 (too many dispatch threads blocked in synchronous operations) (from the crash report),

@swift-ci please smoke test

@swift-ci please smoke test


[verible] Add Verible to lint makefile targets

This adds Verible style lint targets to the lint Makefile, which allows to manually run lint on specific IPs.
Signed-off-by: Michael Schaffner<EMAIL_ADDRESS>

CC @hzeller @mithro @fangism

I think ips_vlint and ips_slint are identical except --tool=veriblelint? what do you think if Make file accepts TOOL variable and default assign TOOL to ascentlint and combine those targets?
TOOL ?= ascentlint

$(ips_lint):
    rm -rf build
    mkdir -p ${REPORT_DIR}
    -fusesoc --cores-root ${CORE_ROOT} run --target=lint --tool=${TOOL} ...

Good point, that could simplify this makefile quite a bit. Let me change that. Eventually, once Verilator lint is also supported by DVSIM, we could probably just delete this makefile and use DVSIM throughout.

Its a little unclear what vlint means (could be 'verilator lint' or 'verible lint' as well, but it is neither).
I'll recommend having 2 make targets - lint and style_lint:
# For lint target, tool defaults to ascentlint.
make lint tool=<tool>

# For style_lint target, tool defaults to Verible.
make style_lint tool=<tool>

Feel free to ignore this suggestion if you think we should remove the Makefile and only use dvsim (which I agree).

Thanks for the feedback! I agree with all your comments, but note that this really just a temporary solution which will get removed soon once I added Verilator support to DVSIM. Hence, I am taking this in as-is for now.

Alternatively, instead of having to write Makefile targets, you could create a hook to do the same thing on changed files in your git workspace, which will automatically discover new Verilog sources as they are added.  #1992 is doing that for the formatter, and taking it a step further to format only changed lines.  (If reporting lint violations on changed lines only is of interest, please file a FR for that.)


FormData class is confused with native FormData class in Chrome

Does this library suppose to work normally in browser (not Node.js)?
Seems like FormData class gets confused with native FormData class in Chrome.

No
Just don't use this package anymore. form-data was built for NodeJS but fetch + FormData is built in to NodeJS now. so there is no longer any need to use this package.
To get blob's from the file system, use fs.openAsBlob(path)
in browser just use the built in.


Wallet implementation

Added:
Account and Wallet model
NEP-2 encryption  and decryption

@meevee98 was closing a mistake or why did we close the on-going PR?

Hi @ixje , we are working on our repository, we have the same branch there with the name 'wallet 2'. We also did a wrong rebase on this branch that was causing us some headaches. I sent the wallet interface on Discord, let me know if that interface is good for you. It looks a lot of with the neo sharp and neo go implementations.