tools: Rename apps-or-nuttx-Make.defs to Make.defs

Summary
follow the same pattern as other Make.defs files
Impact
code refactor only'
Testing
ci

[Experimental Bot, please feedback here]
This PR appears to be missing information to meet the NuttX requirements.
Here's why and what's lacking:

Summary:

Too vague.  "Follow the same pattern" and "code refactor" are not informative enough.
What pattern? Which Make.defs files are being used as reference?
What was refactored and how? Be specific about the changes made to the code.

Impact:

"Code refactor only" needs more detail. Even refactors can have unintended consequences.
Consider all impact points. While the PR might not introduce new features or hardware changes, think about potential impacts on:

Build: Did the refactoring change any build dependencies or processes?
Compatibility: Could the refactoring cause issues with older NuttX versions or configurations?

Testing:

"ci" is insufficient.
Provide specific details about your local testing:

List the host OS, CPU architecture, and compiler used.
Specify the target architecture, board, and configuration.

"Testing logs" are missing. Include relevant logs from before and after your changes to demonstrate the problem and the solution.

To improve this PR:

Expand the Summary: Provide specific details about the code refactoring, the pattern being followed, and the files affected.
Thoroughly analyze the Impact: Don't assume a refactor has zero impact. Address all points, even if it's to confirm "NO" with a brief explanation (e.g., "No impact on build process, the refactoring only affected code structure within a single file").
Provide Complete Testing Information:  Follow the template and replace the placeholders with your actual testing environment and logs.

By addressing these points, your PR will be clearer, easier to review, and more likely to be merged quickly.


Fix package-lock.json file.

Fix package-lock.json file, that was changed during feature development.

Thanks for fixing that


All folders with their feeds disappeared

I just upgraded to NNW 5.1, but all my folders have disappeared, and it seems I now only have the default set.
I started with 5.1b1 (not sure why, I have the Release builds checked in the preferences), then pressed Check for Updates, and that installed 5.1b2. Then I pressed again, and 5.1 got installed.
I do have a time machine backup from a couple of days old. How can I get my feeds back?

@doekman: This looks like #2421 Have you followed the "how to migrate your data section" in the release notes?


Dimension mismatch Error

I have downloaded the pretrained model from icefall. I have tried to finetune the model in zipformer using my own data. It is showing mismatch error. I have attached the error file
error.txt

From your error log:
        size mismatch for encoder.encoders.0.layers.0.self_attn_weights.in_proj.weight: copying a param with shape torch.Size([272, 192]) from checkpoint, the shape in current model is torch.Size([544, 192]).

The first thing you have to do is to find out the exact parameters used to train the model that you are using for finetuing.

I solved that error. Can you please tell me this isse?
File "finetune.py", line 1121, in train_one_epoch
cur_grad_scale = scaler._scale.item()
AttributeError: 'GradScaler' object has no attribute '_scale'


Enable gpg-check on all yum-repositories

The lineinfile-module only edits the last occurence of a string in a file, so we actually have to use the shell-module with a simple sed-command here.

amazing, this looks much better. thanks @rndmh3ro


Live

Test PR

Docs Build status updates of commit 7f9b3c1:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

test PR


Checking In YAML definition of existing Build pipeline

This PR largely brings us to parity between the two following Azure DevOps builds:

devdiv.visualstudio.com
dev.azure.com

The reasons to do this are:

Checking in our build-definition will allow us to track and test changes to our build defintion.
Allow us to consolidate all of our Build/Release automation into a single DevOps project, instead of being scattered around Jenkins, AppVeyor, DevOps, and Travis.
Diversify the medium that edge builds are available in. For instance, for each edge build we may be able to have:

Pip packages
Publish Docker images of varying Linux distributions to a container registry.
MacOS Homebrew kegs.
A Windows MSI installer

For the most part, all I did was literally take the automatically generated YAML definition of our existing DevOps build, and just check throw it in our repository. However, there were a handful things I had to change:

The Homebrew Build phase was downloading a zip of the source code from GitHub. I streamlined this to just have a phase at the beginning of the job which creates both a zip file and a tarball.
There were some secrets I had to scrub out.
Azure DevOps generated some garbage that it couldn't even parse, and I had to troubleshoot that.

@williexu I don't think raising the verbosity of the script should be any problem.


HDDS-3279. Rebase OFS branch

What changes were proposed in this pull request?
Merge commits on master branch to OFS dev branch: git merge master
Also need to manually apply a couple of changes in master branch to OFS classes:

HDDS-3049
HDDS-2914 (HDDS-2188)
HDDS-3065

What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3279
How was this patch tested?

[x] Compile passed with mvn clean install -Pdist -DskipTests -e -Dmaven.javadoc.skip=true -DskipShade
[x] Ran TestRootedOzoneFileSystem and passed locally.
[x] Test OFS manually in shell. The following commands work as expected.

$ ozone fs -ls ofs://om/
$ ozone fs -mkdir ofs://om/volume1/
2020-03-25 16:33:41,747 [main] INFO rpc.RpcClient: Creating Volume: volume1, with hadoop as owner.
$ ozone fs -mkdir ofs://om/volume1/bucket1/
2020-03-25 16:33:50,120 [main] INFO rpc.RpcClient: Creating Bucket: volume1/bucket1, with Versioning false and Storage Type set to DISK and Encryption set to false
$ ozone fs -mkdir ofs://om/volume1/bucket1/dir1/
$ ozone fs -mkdir ofs://om/volume1/bucket1/dir1/subdir1/
$ ozone fs -put README.md ofs://om/volume1/bucket1/dir1/subdir1/
2020-03-25 16:34:17,686 [main] INFO impl.MetricsConfig: Loaded properties from hadoop-metrics2.properties
2020-03-25 16:34:17,825 [main] INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period at 10 second(s).
2020-03-25 16:34:17,825 [main] INFO impl.MetricsSystemImpl: XceiverClientMetrics metrics system started
$ ozone fs -ls -R ofs://om/
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1/bucket1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1/bucket1/dir1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:34 ofs://om/volume1/bucket1/dir1/subdir1
-rw-rw-rw-   1 hadoop hadoop       3820 2020-03-25 16:34 ofs://om/volume1/bucket1/dir1/subdir1/README.md

$ ozone fs -mkdir -p ofs://om/volume2/bucket2/
2020-03-25 16:35:33,089 [main] INFO rpc.RpcClient: Creating Volume: volume2, with hadoop as owner.
2020-03-25 16:35:33,122 [main] INFO rpc.RpcClient: Creating Bucket: volume2/bucket2, with Versioning false and Storage Type set to DISK and Encryption set to false
$ ozone fs -mkdir -p ofs://om/volume3/bucket3/dir3/subdir3/
2020-03-25 16:35:45,961 [main] INFO rpc.RpcClient: Creating Volume: volume3, with hadoop as owner.
2020-03-25 16:35:45,993 [main] INFO rpc.RpcClient: Creating Bucket: volume3/bucket3, with Versioning false and Storage Type set to DISK and Encryption set to false

$ ozone sh volume create tmp
$ ozone sh volume setacl tmp -al world::a
ACL(s) set successfully.
$ ozone fs -ls ofs://om/tmp/
ls: `ofs://om/tmp/': No such file or directory
$ ozone fs -mkdir ofs://om/tmp/
2020-03-25 16:38:30,567 [main] INFO rpc.RpcClient: Creating Bucket: tmp/0238775c7bd96e2eab98038afe0c4279, with Versioning false and Storage Type set to DISK and Encryption set to false
$ ozone fs -ls ofs://om/tmp/
$ ozone fs -put NOTICE.txt ofs://om/tmp/
2020-03-25 16:39:10,258 [main] INFO impl.MetricsConfig: Loaded properties from hadoop-metrics2.properties
2020-03-25 16:39:10,402 [main] INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period at 10 second(s).
2020-03-25 16:39:10,402 [main] INFO impl.MetricsSystemImpl: XceiverClientMetrics metrics system started
$ ozone fs -put *.md ofs://om/tmp/
2020-03-25 16:39:22,378 [main] INFO impl.MetricsConfig: Loaded properties from hadoop-metrics2.properties
2020-03-25 16:39:22,526 [main] INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period at 10 second(s).
2020-03-25 16:39:22,526 [main] INFO impl.MetricsSystemImpl: XceiverClientMetrics metrics system started
$ ozone fs -ls ofs://om/tmp/
Found 2 items
-rw-rw-rw-   1 hadoop hadoop      17540 2020-03-25 16:39 ofs://om/tmp/NOTICE.txt
-rw-rw-rw-   1 hadoop hadoop       3820 2020-03-25 16:39 ofs://om/tmp/README.md

$ ozone fs -ls ofs://om/
Found 4 items
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:37 ofs://om/tmp
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume2
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume3
$ ozone fs -ls -R ofs://om/
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1/bucket1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:33 ofs://om/volume1/bucket1/dir1
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:34 ofs://om/volume1/bucket1/dir1/subdir1
-rw-rw-rw-   1 hadoop hadoop       3820 2020-03-25 16:34 ofs://om/volume1/bucket1/dir1/subdir1/README.md
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume2
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume2/bucket2
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume3
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume3/bucket3
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume3/bucket3/dir3
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:35 ofs://om/volume3/bucket3/dir3/subdir3
drwxrwxrwx   - hadoop hadoop          0 2020-03-25 16:37 ofs://om/tmp
-rw-rw-rw-   1 hadoop hadoop      17540 2020-03-25 16:39 ofs://om/tmp/NOTICE.txt
-rw-rw-rw-   1 hadoop hadoop       3820 2020-03-25 16:39 ofs://om/tmp/README.md

NOTE

DO NOT MERGE this PR from Github. Because merging from Github will squash the merged commits from master branch. This PR is for review and discussion purpose only. Should've submitted this one as a draft PR as I think of that.
Only the last 3 commits are actual changes we are looking into in this PR:

https://github.com/apache/hadoop-ozone/pull/721/commits/25480ce9192d6cab91d0e2037821ac80b7ebe2bd
https://github.com/apache/hadoop-ozone/pull/721/commits/5fb9d7d8f21930d6636325e00240df6d1dddfe95
https://github.com/apache/hadoop-ozone/pull/721/commits/d8775d1853355c3e5ce649a94c9af6507bd18831

You actually don't need to submit a PR. Simply git pull --rebase, and then git push -f to force push the branch. But good to see additional check after the rebase.

You actually don't need to submit a PR. Simply git pull --rebase, and then git push -f to force push the branch. But good to see additional check after the rebase.

Yep the way you mentioned (pull rebase + force push) is my preferred way to do a rebase. Thanks for the tip nevertheless.
Since Xiaoyu and I were already using git merge previously I think I'd keep it consistent for this dev branch.

Test failure assessment:

acceptance failure is from smoketest ozonesecure-mr-mapreduce. I recall witnessing the same failure before but not doing anything to fix it - possibly a flaky one.
it-filesystem failure simply results from some tests skipped because of the acceptance failure it seems.

[INFO] Results:
[INFO]
[INFO] Tests run: 23, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Apache Hadoop Ozone Mini Ozone Chaos Tests
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Apache Hadoop Ozone Integration Tests 0.5.0-SNAPSHOT:
[INFO]
[INFO] Apache Hadoop Ozone Integration Tests .............. FAILURE [25:14 min]

Retriggering the tests.

+1. Please go ahead push the change outside github as Squash and merge is the only option with github.

Thanks @xiaoyuyao . I am going to do the following:

Close this PR;
Merge master commits to OFS dev branch manually;
Create a new PR with only the 3 commits I posted in this PR already;
Merge that new PR.


How to do RAG without embedding

How to do RAG without embedding

Thank you for your interest! Conducting the retrieval process using vectors may be more efficient.

Due to computational constraints, I am unable to set up an embedding model. In this situation, is it possible to perform Retrieval-Augmented Generation (RAG) only with graph RAG? Performance is not considered here. If so, how can it be done?

The embedding model is necessary for LightRAG because embeddings represent the contexts and queries in a way that enables efficient retrieval. However, if you face computational constraints, you can use external APIs for embeddings, avoiding deploying models locally.


How can I use it in Plain Nodejs

I'm doing like this, but it a lot of syntax error.
const { Collection, getRepository } = require('fireorm');

@Collection()
class Todo {
  id: string;
  text: string;
  done: Boolean;
}

const todoRepository = getRepository(Todo);

const todo = new Todo();
todo.text = "Check fireorm's Github Repository";
todo.done = false;

Can you please provide any example how to use it in nodejs.

Hello! Unfortunately fireorm only supports typescript. Plain javascript support is on the horizon but I'm really lacking time now.

Hello! Any update on this? Is there a timeline for this? Thanks!

Here is a library you can use it in NodeJs FireO


Can not like anything

When I click on the heart it turns red for a second then goes back to its original appearance. Also, FYI shift + reload does not allow videos to load for me.

Sorry for not responding.
Is the issue still present? Have you tried the troubleshooting guide? https://github.com/ZusorCode/GoodTwitter/blob/master/troubleshooting.md

I did before, but I can seem to use it at all anymore, even removing the app and reinstalling it. Maybe it's my Chromebook. The new Twitter is almost unusable on it.
Thanks,
Rebecca Gavin
Sent: Saturday, August 03, 2019 at 3:55 PM
From: "Tobias Messner"<EMAIL_ADDRESS>To: ZusorCode/GoodTwitter<EMAIL_ADDRESS>Cc: Hampshirian<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [ZusorCode/GoodTwitter] Can not like anything (#11)
Sorry for not responding.
Is the issue still present? Have you tried the troubleshooting guide? https://github.com/ZusorCode/GoodTwitter/blob/master/troubleshooting.md
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

What worked to resolve most issues on the Good Twitter. Was, as someone else on another thread suggested, sign out of Twitter.  Then sign back in. It resolved most of the issues I was having. I have no idea why but it worked. For now.

Thank you so much! I will definitely try that. What's up with Twitter leaving so many users stranded and frustrated?
Sent: Monday, August 05, 2019 at 1:25 AM
From: "jezbel"<EMAIL_ADDRESS>To: ZusorCode/GoodTwitter<EMAIL_ADDRESS>Cc: Hampshirian<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [ZusorCode/GoodTwitter] Can not like anything (#11)
What worked to resolve most issues on the Good Twitter. Was, as someone else on another thread suggested, sign out of Twitter. Then sign back in. It resolved most of the issues I was having. I have no idea why but it worked. For now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I haven't seen this issue anywhere else, I think just signing out and back in should fix it


changes that embrace the go-kit approach a bit more than before

Codecov Report

Merging #72 into master will increase coverage by 6.7%.
The diff coverage is 82.19%.

@@            Coverage Diff            @@
##           master      #72     +/-   ##
=========================================
+ Coverage   75.49%   82.19%   +6.7%
=========================================
  Files           6        9      +3
  Lines         559      337    -222
=========================================
- Hits          422      277    -145
+ Misses        128       58     -70
+ Partials        9        2      -7

Impacted Files
Coverage Δ

src/tr1d1um/common/errors.go
100% <100%> (ø)

src/tr1d1um/translation/transport_utils.go
100% <100%> (ø)

src/tr1d1um/translation/endpoint.go
100% <100%> (ø)

src/tr1d1um/stat/endpoint.go
100% <100%> (ø)

src/tr1d1um/common/utils.go
54.71% <54.71%> (ø)

src/tr1d1um/stat/transport.go
69.04% <69.04%> (ø)

src/tr1d1um/translation/transport.go
85.6% <85.6%> (ø)

src/tr1d1um/stat/service.go
85.71% <85.71%> (ø)

src/tr1d1um/translation/service.go
89.47% <89.47%> (ø)

... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31d92d6...b8c3d70. Read the comment docs.


solve #7 and clean up failed test

Hi @janstenpickle,
Really nice work on scala-vault, but vault has changed a lot until now(e.g issue #7). Therefore I have done some maintenance work to make scala-vault work with vault version 0.6.5. Please help review the changes and publish a newer version if possible.
By the way, circle CI doesn't really have good docker support (e.g. docker is still at version 1.9), therefore I have dropped circle CI test. But I have added bash script to setup vault environment easily.
I have noticed vault seems pause when dealing with expired logins during integration test, not sure if you have faced the same issue during your test.

@wgx731 Thanks for doing this, I had just started converting to using App Roles and upgrading vault etc, so you've saved me loads of time! The house keeping and adding scalastyle is really good, so thanks for that as well.
I'll try and get this reviewed ASAP so I can do a release and unblock everyone. I'll have a look into a new CI system to test this so I can verify future pull requests.

@janstenpickle, thanks for the quick feedback. Please refer to my comments on the reviews. Besides that, as I am still learning scala, cats and circe, would like to have your input on the following areas:

HCursor => ACursor: not sure using _.downArray is a good choice here or not.
Mount optional config object: as vault doc says,  the object now has 3 possible values and the config object can be optional as well I think. What's the best way to deal with this?
Policy inspect: from vault doc, the response from vault is not valid json, therefore I have changed to return String for now, but we may need to think a better way to handle this, or is it a bug from vault? 😃
Token in auth module, as I am not really familiar with Token class and due to changes from vault all test seem failing, therefore I have removed it for now, please add back when you have time.

By the way, please help me to check if the test setup is ok, as I only tested on my machine. Please note that, if you are on ubuntu and use aufs storage driver for docker, you may sometimes facing this issue, just restart docker and wait for some time before return test again then it should be ok.
Thank you very much.

@wgx731 thanks again, this is really good stuff. I still haven't had time to check out your branch, test and build it, however in regard to your points

HCursor => ACursor - I'm not sure either, I'd need to look more deeply into circe to see what it's doing, I suppose the important question is does the change break the tests?

Mount optional config object: The best way to deal with this would be to add a new optional field to the MountConfig case class to represent the new config setting
Policy inspect: There was code to cope with non-json rules, unless this has stopped working I suggest leaving what was there before. I do admit, it's very annoying that they aren't valid JSON
Token in auth module: It should be fine to remove this for now

With regards to a dev branch, I agree it's probably a good idea, after this has been merged I'll probably turn on git-flow.
With regards to the naming of the syntax classes, probably best append them with Syntax, which will avoid clashes with other imports.
I'll try and look at this properly tomorrow, if you have any other questions or need me to be clearer just let me know.

@janstenpickle, changed the class prefix to Syntax, test should be all passing. Please let me know if I can help with any other parts, looking forward to a newer version release.
Thank you very much.

@wgx731 merged, great job 😄. Once the build is done on master I'll cut a release.


Document Error handling / expected exceptions

It would be nice if you can write down under doc/, or as docstring, what exceptions one should could expect, when

a request times out
the domain cannot be resolved
the authenticated user is not allowed to see the requested ressource
the session cookie/ login token is invalid

The Error-Handling-Concept divides an exception in five different categories:
CTConnectException

technical Exception the ConnectException from Guzzle
error in Connection (timeout, undefined-host, ...)

CTConfigException

wrong Configuration (e.q. no API-Url is set)

CTAuthException

could not authenticate user
unauthorized access to resource

CTRequestException

could not retrieve the models

CTModelException

exception in model (e.q. process wiki-pages return root node)


Android port

stable diffusion is a big model, it needs 8G ram in x86. it may be a little difficult for mobile device.

@nihui can I use any of NCNN optimisation to run this on mobile. Time isn’t constraint

@nihui can I use any of NCNN optimisation to run this on mobile. Time isn’t constraint

我发现onnx有一个脚本是将stable dfiffusion的模型量化到int8的，huihui大佬能否提供一个int8的ncnn模型量化脚本，我觉得有希望在mobile上跑一下。

@EdVince some models will run with 0.6gb of ram.
this one - int8 quantized at 192x256 for miniSD (https://huggingface.co/lambdalabs/miniSD-diffusers) paired with this script:
from diffusers import StableDiffusionOnnxPipeline
import torch
from diffusers import (
    DDPMScheduler,
    DDIMScheduler,
    PNDMScheduler,
    LMSDiscreteScheduler,
    EulerDiscreteScheduler,
    EulerAncestralDiscreteScheduler,
    DPMSolverMultistepScheduler
)

scheduler = DPMSolverMultistepScheduler.from_pretrained("./model", subfolder="scheduler")

pipe = StableDiffusionOnnxPipeline.from_pretrained(
    './model',
    custom_pipeline="lpw_stable_diffusion_onnx",
    revision="onnx",
    scheduler=scheduler,
    safety_checker=None,
    provider="CPUExecutionProvider"
)

prompt = "test prompt"
neg_prompt = ""

generator = torch.Generator(device="cpu").manual_seed(1)

image = pipe.text2img(prompt,negative_prompt=neg_prompt, num_inference_steps=8, width=192, height=256, guidance_scale=10, generator=generator, max_embeddings_multiples=3).images[0]
image.save('./test.png')

If you can also allow for smaller sizes, that would be great, as it will definitely run them on a lower ram SoC. I can run quantized onnx model on 3gb ram SoC
See if you can run a mixture of uint8 unet and fp16 text encoder, I've found that does improve picture quality (if you have good prompt :0 )
additional info - https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/6585

@EdVince some models will run with 0.6gb of ram. this one - int8 quantized at 192x256 for miniSD (https://huggingface.co/lambdalabs/miniSD-diffusers) paired with this script:
from diffusers import StableDiffusionOnnxPipeline
import torch
from diffusers import (
    DDPMScheduler,
    DDIMScheduler,
    PNDMScheduler,
    LMSDiscreteScheduler,
    EulerDiscreteScheduler,
    EulerAncestralDiscreteScheduler,
    DPMSolverMultistepScheduler
)

scheduler = DPMSolverMultistepScheduler.from_pretrained("./model", subfolder="scheduler")

pipe = StableDiffusionOnnxPipeline.from_pretrained(
    './model',
    custom_pipeline="lpw_stable_diffusion_onnx",
    revision="onnx",
    scheduler=scheduler,
    safety_checker=None,
    provider="CPUExecutionProvider"
)

prompt = "test prompt"
neg_prompt = ""

generator = torch.Generator(device="cpu").manual_seed(1)

image = pipe.text2img(prompt,negative_prompt=neg_prompt, num_inference_steps=8, width=192, height=256, guidance_scale=10, generator=generator, max_embeddings_multiples=3).images[0]
image.save('./test.png')

If you can also allow for smaller sizes, that would be great, as it will definitely run them on a lower ram SoC. I can run quantized onnx model on 3gb ram SoC
See if you can run a mixture of uint8 unet and fp16 text encoder, I've found that does improve picture quality (if you have good prompt :0 )
additional info - AUTOMATIC1111/stable-diffusion-webui#6585

As the latest update, now in android, we only need totally 2.6G for 256*256pix, this is achieved by the float16 mode. Currently I focus on the cpu optimization, may be after some days, I will try to optimize the gpu mode which will required less ram.
But ignoring the future optimization, if you turn on the gpu now, it will lower some ram in x86, and may be in android it will also lower the ram.
And for the int8, I will try it in later, but it may be a little hard.
for the last point, now the code is coupling on the naifu model, I know it is a little bit out of the date. May be we should switch to the diffusers. But I have no plans to make this at the moment, because I'm committed to ncnn and I don't exactly work with diffusion models. And I don't think the diffusion model is currently practical on mobile devices.

@EdVince I've tried the apk, it runs on my 6gb 865+, well done! If you are still working on improving this, what are you going for next? Maybe half the step needed if you switch from Euler A to the sampler (known in webui) as DPM++ 2M / Karras? Many thanks for your efforts.

@EdVince I've tried the apk, it runs on my 6gb 865+, well done! If you are still working on improving this, what are you going for next? Maybe half the step needed if you switch from Euler A to the sampler (known in webui) as DPM++ 2M / Karras? Many thanks for your efforts.

I spend some time for the new sampler " DPM++ 2M Karras", I hava add the code in the x86 project, you can find that from the latest commit. But there still are some problems, in less setp, the  DPM++ 2M Karras will give bad result, so I annotate that code, you can try it and try to fix it too.


Multiple comparisons (Fixes #540)

@katlings, @eliasdorneles and I figured out multiple comparisons. We believe this is ready for review.

This looks great, thanks @elainewong and @katlings ! :tada: :tada:
Merging as soon as the Travis build is green!


Screen is black on Samsung Galaxy S3 with CyanogenMod

The flash starts up, but you only see a black screen.

Same issue on a Samsung Galaxy Note 2 running CyanogenMod 12.1 nightlies. I'll look into it further next week.


syntax doubt about view

i'm new to elm and have a question concerning view arguments: in main, view is called with a Signal Model as second argument but the type annotation of view refers the argument as being Model.
i have this same issue in another app i'm working to practice elm in which the compiler report this error but it seems to be working here, how can this be?
Function `view` is expecting the 2nd argument to be:

    { tasks : List Task }

But it is:

    Signal Model

Do you mind asking this same question on elm-discuss or in the Elm slack channel?

https://groups.google.com/forum/#!forum/elm-discuss
http://elmlang.herokuapp.com/

I think you can get better answers in both of those places.

You may also be having issues if you are trying to use Elm 0.17 today. I am still working on upgrading this project to 0.17

thx for your input. i was not quite sure to post this here but as it seemed to me very focalized on elm-todomvc i gave it a shot. for the record i'm using elm v.0.16.0


Enable horizontal scrolling

In the tally tree output I want to be able to see all the result by scrolling to the side.

Done.


Include opening and closing pipes in the table span

Fixes #775

Could you add a test for this one to validate the fix and prevent from a regression? If we want to rewrite the pipetable parser with a different (and simpler) strategy, more compatible with GitHub, it would help a lot.

I made a test based on an existing one.


Promise.map has ambiguous behavior when manipulating collections

PromiseKit version: 6
Xcode version: 9.2
CocoaPods version: 1.3.1

One thing I've noticed while converting from Promise 4 to 6 is that returning a collection from a promise of collection is really hard to do:
// func getFooList() -> Promise<[Foo]>

// Ambiguous reference to member 'map(on:_:)'
getFooList().map { list in
  return [Bar()]
}

//  'map(on:_:)' is deprecated: See: `mapValues`
getFooList().map { list in
  return list
}

This can only be solved by specifying the return type for both cases. For instance:
getFooList().map { list -> [Bar] in
  return [Bar()]
}

I believe this is due to the following deprecated map https://github.com/mxcl/PromiseKit/blob/57de813c42fe0ab8a4a6e29974cca2fc0cfafdd7/Sources/Deprecations.swift#L54 and it seems that the simplest fix would be to remove it altogether.
Does that sound reasonable? If yes I'll go ahead and PR that.

Considering this variant only existed for 4 days I'm cool to remove it.


Command to create a virtual environment

Sorry but couldn't find this anywhere.
Every time I go to start on some new python task I want a virtual environment for it. I can never remember how to make one (especially on a new machine where I don't have conda already installed).
It would be great if there was a command to create one that would:

Pick virtualenv/venv/conda
Ask for a list of requirements (or a requirements.txt file)

The AML extension sort of does this already.

Duplicate of #160


Clang compile error when using non-WinRT interfaces

Copy the following code to clang-winrt.cpp and compile with:
Clang: clang -c clang-winrt.cpp -D_SILENCE_CLANG_COROUTINE_MESSAGE -std=c++17
MSVC: cl /c clang-winrt.cpp /std:c++17 /EHsc /nologo
(I ran the commands from the Visual Studio Command 2019 x64 prompt)
#include <Unknwn.h>
#include <winrt/Windows.UI.Composition.h>

#include <windows.ui.composition.h>
#include <windows.ui.composition.interop.h>

// Compile with:
// clang -c clang-winrt.cpp -D_SILENCE_CLANG_COROUTINE_MESSAGE -std=c++17
// cl /c clang-winrt.cpp /std:c++17 /EHsc /nologo

auto As(winrt::Windows::UI::Composition::Compositor const& compositor)
{
	return compositor.as<IUnknown>();

	// The following line works fine in both Clang and MSVC:
	//return compositor.as<winrt::Windows::UI::Composition::ICompositor>();
}

When compiling with Clang, the following error is generated:
In file included from clang-winrt.cpp:2:
In file included from C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/Windows.UI.Composition.h:8:
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:567:31: error: constexpr variable
      'value' must be initialized by a constant expression
        static constexpr guid value{ __uuidof(T) };
                              ^~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:758:58: note: in instantiation of
      static data member 'winrt::impl::guid_storage<ABI::Windows::UI::Composition::ICompositorInterop>::value' requested
      here
        return impl::guid_storage<default_interface<T>>::value;
                                                         ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:4087:51: note: in instantiation of
      function template specialization 'winrt::guid_of<ABI::Windows::UI::Composition::ICompositorInterop>' requested
      here
                check_hresult(ptr->QueryInterface(guid_of<To>(), put_abi(result)));
                                                  ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:2387:26: note: in instantiation of
      function template specialization 'winrt::impl::as<ABI::Windows::UI::Composition::ICompositorInterop,
      winrt::impl::abi<winrt::Windows::Foundation::IUnknown>::type>' requested here
            return impl::as<To>(m_ptr);
                         ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:217:19: note: read of object
      '__uuidof(ABI::Windows::UI::Composition::ICompositorInterop).Data1' whose value is not known
            Data1(value.Data1),
                  ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:567:31: note: in call to
      'guid(__uuidof(ABI::Windows::UI::Composition::ICompositorInterop))'
        static constexpr guid value{ __uuidof(T) };
                              ^
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt\winrt/base.h:567:38: note: temporary created here
        static constexpr guid value{ __uuidof(T) };
                                     ^
1 error generated.

Unlike Visual C++, Clang does not treat __uuidof as a constexpr expression so this is not legal. Unfortunately, I don't know anyone on the Clang team that might be able to fix this. As a workaround, you can use the as overload that lets you provide the GUID yourself.
com_ptr<ABI::Windows::UI::Composition::ICompositorInterop> interop;
check_hresult(compositor.as(__uuidof(interop), interop.put_void()));

Thanks @kennykerr , looks like this has already been reported in Clang - https://bugs.llvm.org/show_bug.cgi?id=38490

I was the one that reported this bug in Clang, and I also filled it because of C++/WinRT.

Thanks Charles. I've reached out to the compiler team. Hopefully we can get this fixed.

The Google compiler dev just let me know that this has now been fixed and should be in Clang trunk soon.


[vim] do not pathshorten prompt in cygwin

Cygwin converts unix-style paths to windows-style paths so s:shortpath shouldn't use pathshorten if has('win32unix'). Files has the same issue.
To reproduce
cd /usr/bin
fzf --prompt '/u/bin'

I see, thanks. We should port https://github.com/junegunn/fzf.vim/commit/e7928d154aad71e530daf5c17733275da5732680 for narrow-width terminals. Let me do that first.

5edc3f755ca5f1e5512679cc8e7f995de7e12c3b

Merged, thanks!


Marathon v0.14.0-RC3

cc/ @aquamatthias

@gkleiman - please address the comment above for the next version. For now it's not a blocker.


OLED with 7 pins

One of these 128 x 64 displays arrived but it has 7 pins and it's not clear to me where the SCL and SCA pins are.. Any idea?

I think the device you have can operate either in SPI or I2C mode. The ebay listing identifies it as a UG-2864HSWEG01. I did a search for that product ID and here is the data sheet: https://cdn-shop.adafruit.com/datasheets/UG-2864HSWEG01.pdf
So the pins are:

VCC - Power
GND - Ground
D0 - SCLK (Serial Clock)
D1 - also known as SDIN (Serial Data Input)
RES - ?? ... might be Read selector
DC - Data/Command
CS - Chip select

If you look on the back, you can see how it is configured:

You would need to set it to I2C (or IIC) mode if it is not already setup like this - this might involve some soldering to move the resistors around over the jumper pads
Alternatively, just try plugging VCC to 3.3v, GND to 0v, D0 to GPIO3 (SCL), D1 to GPIO2 (SDA) and run the i2cdetect command with the relevant port to see if it reports anything
If it is configured as an SPI device, then the wiring setup is a bit more complicated, but it would run faster. Unfortunately, I never merged @rogerdahl's SPI pull request from last year (there were issues with I2C not working in wiringPi) and now there are lots of conflicts as the two repos have diverged somewhat. His idea was to abstract away the serial interface, and just have a command/data abstraction layer: it would be good to resurrect the idea and the code.

Thanks for the details!  It supports IIC with the folowing settings.:

Tear down resistor R3 and weild it to the R1 position;
dc, cs pins have ground connection;
res pin controls via an IO to complete reset;
Resseting method: first use the RES pin to maintain a low level of 200ms;
then use the RES pin maintain high level to complete the reset operation;
then initialize the OLED, and you can use IIC.

Sigh.

Unless you specifically need to do a hard reset, I would just keep the RES pulled up high all the time

If I remember correctly (a somewhat big "if"), my fork added SPI support but pulled in an additional GPIO library. So we wanted to refactor back to a single GPIO library, but then things stopped because I didn't have an I2C display, so wasn't able to check the I2C path and ended up breaking it.
@rm-hull If that sounds right, then, if you refactor to use a GPIO library that supports both I2C and SPI and get the I2C part working, I'll redo the SPI part and fix up the PR.

That sounds great. I'll hold off on the soldering and look forward potentially having SPI support in this library.

@rogerdahl - I've created a branch feature/serial_interface - with a serial abstraction based on your original PR (just in a separate file) and have added you and @thijstriemstra as collaborators so you should have permssion to commit directly to the branch - whether you want to do that or submit PRs to that branch, I dont mind - but I would like to get this feature fully working & tested before pushing it to master.
The library has changed a bit since you last looked at it probably (mostly around docs, setup, & tests), but the core is mostly the same. I would like to continue using smbus2 for I2C, but it looks like gpiozero might be a good fit for the SPI/GPIO interfacing rather than wiringPi (see https://gpiozero.readthedocs.io/en/v1.3.1/).
It would be good to try and port some of the paragraphs out of the README in your PR too - they read very well :)
There is a job that runs on travis (see https://travis-ci.org/rm-hull/ssd1306/branches) that runs tox, which runs some compliance checks and a few basic regression checks. You should be able to run this on your local rig by installing it with pip, and try and make the code runnable on python 2 and python 3

If you're going to break things; and considering how stable the library already is, I would call the next release 1.0.0.

Let me know when I can test anything (with i2c oled or spi one).

The i2c implementation is done and can be tested, and there is a skeleton spi version which will just throw not implemented errors.
Install it via
sudo python setup.py install

And remember it isn't backwards compatible!

ps. It looks like gpiozero is just a wrapper around RPi.GPIO and spidev. RPi.GPIO only works on raspberry pi, so maybe using wiringpi might be better - I think it is a bit more lenient for other devices that are pin compatible with the RPi.

@rm-hull tested the branch with an i2c device and everything still works fine.

-1 on wiringPi or gpiozero support, spidev and RPi.GPIO has my preference.

Looking at the SPI implementation just now,

I've pushed some changes to the branch to implement the SPI interface - completely untested BTW, so if you could checkout the latest from feature/serial_interface and install it by doing:
$ sudo python setup.py install

and then try and run the demo.py example with:
$ python examples/demo.py -i spi

I don't imagine (for one minute) it will work the first time, so if you get errors, please paste the traceback and attach any photos to this thread. By all means, if there are typo's or dumb errors that you can fix, then just commit onto this branch directly & ping an update here.
Also, I updated the documentation: the specific version for this branch gets built automatically on push, and is available here: http://ssd1306.readthedocs.io/en/feature-serial_interface/index.html - it would be good to proof-read and suggest amends

@rm-hull how should I connect the SPI device? Only scl and sda or?

All 7 pins, as per http://ssd1306.readthedocs.io/en/feature-serial_interface/hardware.html#spi

Oh shit sorry I didnt notice these docs, looks great!

@rm-hull are any of these GPIO ports configurable?

About adding the permissions for gpio etc, doesn't the raspberrypi-sys-mods do the same?

Obviously, you can use any of the available GND and 3v3 pins for ground/power.
The SCLK, MOSI are fixed, but you can use CE1 instead of CE0 (but would need to select device=1 when creating the serial interface)
the RST and DC are defaulted to 24 / 25 but they can be configured by choosing the relevant BCM values, see: https://github.com/rm-hull/ssd1306/blob/feature/serial_interface/oled/serial.py#L74

@rm-hull wired up and the demo throws this error:
$ python demo.py -i spi
Traceback (most recent call last):
  File "demo.py", line 8, in <module>
    from demo_opts import device
  File "/home/pi/projects/pi-test/ssd1306/examples/demo_opts.py", line 47, in <module>
    serial = oled.serial.spi()
  File "/home/pi/projects/pi-test/ssd1306/oled/serial.py", line 81, in __init__
    self._spi.max_bus_speed = bus_speed_hz
AttributeError: 'SpiDev' object has no attribute 'max_bus_speed'

Change line 81 of serial.py to:
self._spi.max_speed_hz = bus_speed_hz

reinstall, retry..

@rm-hull that fixed it. Next error:
$ python demo.py -i spi
Traceback (most recent call last):
  File "demo.py", line 8, in <module>
    from demo_opts import device
  File "/home/pi/projects/pi-test/ssd1306/examples/demo_opts.py", line 47, in <module>
    serial = oled.serial.spi()
  File "/home/pi/projects/pi-test/ssd1306/oled/serial.py", line 91, in __init__
    self._gpio.write(self._bcm_RST, self._gpio.HIGH)  # Keep RESET pulled high
AttributeError: 'module' object has no attribute 'write'

haha, told you it wouldnt work first time :)
substitute any instances of self._gpio.write with self._gpio.output - I counted three on lines 90, 96, 103 or thereabouts

HELLO FUCKING WORLD! :dancing_men:

Woo-Hoo !

@rm-hull output from the demo:
python demo.py -i spi
/home/pi/projects/pi-test/ssd1306/oled/serial.py:89: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  self._gpio.setup(self._bcm_DC, self._gpio.OUT)
/home/pi/projects/pi-test/ssd1306/oled/serial.py:90: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
  self._gpio.setup(self._bcm_RST, self._gpio.OUT)
Testing basic canvas graphics...
Testing display ON/OFF...
Testing clear display...
Testing screen updates...

At first sight it seems very slow, especially the screen updates. I suppose a lot more tweaking is necessary. But great stuff!

Try running the bounce.py test - that will show the frame rate - I get about 22FPS on a RPi B2 over I2C. Also there is perfloop.py which measures transit time through the display call - I recall that it would paint a frame in about 14ms.
I had set the default bus speed of the SPI version to 8MHz (= 8000000) in the serial constructor - it can be cranked upto 32MHz

If you could also add
        self.-gpio.setwarnings(False)                        # <---- add this line
        self._gpio.setmode(self._gpio.BCM)
        self._gpio.setup(self._bcm_DC, self._gpio.OUT)
        self._gpio.setup(self._bcm_RST, self._gpio.OUT)
        self._gpio.write(self._bcm_RST, self._gpio.HIGH)  # Keep RESET pulled high

into the serial constructor, and commit those changes back to the branch?

See prev updated comment.

@rm-hull i cant commit from that rpi, can you commit and push the changes from this ticket and I can test it after a pull.

ok, no probs, i will commit
p.s. python 3.4 was measurably slower than 2.7 on my RPi

I'm using rpi 3.

pushed fixed, if you want to retest

ps. I'd rather not add that line in the library:
        self.-gpio.setwarnings(False)                        # <---- add this line

Or did you want to silence these warnings in the examples?

Also, these examples shouldn't throw an error on keyboard interrupt:
python bounce.py -i spi
^CTraceback (most recent call last):
  File "bounce.py", line 75, in <module>
    main()
  File "bounce.py", line 66, in main
    c.text((2, 0), fps, font=font, fill="white")
  File "/home/pi/.virtualenvs/pi-test/lib/python3.4/site-packages/PIL/ImageDraw.py", line 226, in text
    ink, fill = self._getink(fill)
  File "/home/pi/.virtualenvs/pi-test/lib/python3.4/site-packages/PIL/ImageDraw.py", line 121, in _getink
    ink = ImageColor.getcolor(ink, self.mode)
  File "/home/pi/.virtualenvs/pi-test/lib/python3.4/site-packages/PIL/ImageColor.py", line 128, in getcolor
    color, alpha = getrgb(color), 255
  File "/home/pi/.virtualenvs/pi-test/lib/python3.4/site-packages/PIL/ImageColor.py", line 36, in getrgb
    rgb = colormap.get(color, None)
KeyboardInterrupt

After updating, no more GPIO warnings for the demo.

Right - good work, I reckon.
Im going to turn in for the night now - its late.
What FPS was the bounce reporting on your RPi3?

@rm-hull good question, I'll check it out. Thanks!

I'll add some fixes to the demo etc. This seems to fix the slowness in the demo I was talking about:
diff --git a/examples/demo.py b/examples/demo.py
index c279bb4..5595507 100644
--- a/examples/demo.py
+++ b/examples/demo.py
@@ -54,7 +54,7 @@ def main():
     time.sleep(10)

     print("Testing display ON/OFF...")
-    for _ in range(10):
+    for _ in range(6):
         time.sleep(0.5)
         device.hide()

@@ -67,12 +67,12 @@ def main():

     print("Testing screen updates...")
     time.sleep(2)
-    for x in range(30):
+    for x in range(40):
         with canvas(device) as draw:
             now = datetime.datetime.now()
             draw.text((x, 10), str(now.date()), fill="white")
             draw.text((10, 24), str(now.time()), fill="white")
-            time.sleep(1)
+            time.sleep(.1)

 if __name__ == "__main__":

Added some more doc fixes in the branch. +1 for merging this to master.

Removed the setwarnings & committed a few more changes, if you could pull, install & test again please.

@rm-hull will do

@thijstriemstra - thinking of merging into master ... you've no more commits to push on this branch?

Merged SPI changes to master. Gonna close this ticket as its getting too long now. Probably won't cut a release just yet: any fallout from the merge, please raise as separate issues.
Thanks for your ongoing efforts!


News from archlinux.org

Before upgrading, users are expected to visit the Arch Linux home page to check the latest news for any breaking change and/or manual intervention required.
This PR add -n (--news) option to display new news from the Arch Linux homepage.
News is considered new if it is newer than the build date of all native packages.

Nice idea! Btw, I've released v0.3.0 with devel-updates support.

Do you need some help here?

Do you need some help here?

No, I've been testing this code for 3 weeks, and on my environment, I don't see any issues at the moment. Have you tested it on your side?

@jlaunay I moved to another country, used a different environment for a while, did you find it stable? I could merge it after solving conflict.


Whatever version of ice4j I tried, she throws an exception when parseSDP. You have to use SDP parsing and creation from this project:
UserAgent
How to solve this problem, I do not want to use the wrong solutions!

The easiest solution I found is to stop using your library and switch to libjingle. Because you are not ready to help with advice. In libjingle there are no such problems, everything works out of the box perfectly. SDP in this library is created valid and parsed by the second side without problems.


Tiling window manager for Windows

Windows part of https://github.com/kachick/dotfiles/issues/528

https://github.com/LGUG2Z/komorebi
Windows default feature

FancyZones is helpful, but it does not save the layout and no auto fitting

Hi there is glazewm, I found it from this article https://christitus.com/glazewm-tiling-window-management/ (youtube vid).
It's been a while since my windows 10 install got corrupted and I moved to nixos so I haven't had the chance to try it.

Thank you for sharing it with me. 🙏  I'll try it while struggling to use the Windows OS!


sys: fix up c_type when the actual type is more specific

-    pub fn gtk_menu_item_set_submenu(menu_item: *mut GtkMenuItem, submenu: *mut GtkWidget);
+    pub fn gtk_menu_item_set_submenu(menu_item: *mut GtkMenuItem, submenu: *mut GtkMenu);

This will avoid silly upcast workarounds for cases like
    pub fn set_submenu<T: Upcast<Menu>>(&self, submenu: Option<&T>) {

not knowing how to upcast to Widget.

Good idea

@homu r+

:pushpin: Commit 52bedbb has been approved by gkoz

:hourglass: Testing commit 52bedbb with merge eb0f7a7...

:sunny: Test successful - status


Prevent linker error with duplicate symbol

Found in both the cross compiler's libnano library and newlib library.
This fix #4017

@X-Ryl669 Thanks for the contribution. We will look into this PR. Thanks.


Display contract arguments

Partial fixe for #95
Enable to display all contract arguments and fix "bug" when the deployed contract did not have validator / delegator args.
Result :

It fixes this bug:

This happens when the deployed contract has no validator / delegator argument.
https://github.com/casper-ecosystem/signer/blob/master/src/background/SignMessageManager.ts#L320L328
In addition, it will allow the user to not blindly sign different smart contracts.

@George-cl can I close this as you've integrated the feature in the other PR ? :angel:

@George-cl can I close this as you've integrated the feature in the other PR ? :angel:

Yeah go for it! Appreciate your input in the design. Cheers


changing import files does not update the child css

So i have a _vars.scss and a child.scss that uses it (@import ../_vars.scss).
When i modify a variable in _vars, it does not end up in child.css?
What am i doing wrong?

Use the mian paramter. Set this as first line in your _vars.scss, but adjust the path to you child.scss.
// main: child.scss

Thank you for the solution, but the project i have is made in angular 2, so i have multiple components, each with one scss file. These files import _vars.scss. How do i propagate each modification of _vars.scss to each child scss. The above solution works only for one file :(

I'm sorry, but at the moment, you can compile only one file. The feature "compile multiple files" is one point on my agenda!


Fancy Zones settings not retained across virtual desktops

Environment
Windows build number: [run "ver" at a command prompt] 10.0.18362.356 x64
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones

Steps to reproduce

Configure Fancy Zones settings on Desktop 1 and configure as per your wish
Open any app and drag it to the Fancy Zone, it works
Press Win+Tab and create a new Desktop
Open an app in new Desktop
Try to drag it to a Fancy Zone, your configured setting is not retained

Expected behavior

The zones layout should be replicated on each desktop I create. So dragging a window with shift enabled should give me the same behavior on each desktop regardless of whether it is the primary one or not. Quite Similar to #332
Actual behavior

The zones only works on the primary desktop. With another desktop, it can only maximize the windows. I don't know if this is by design but from my point of view, it makes sense to replicate the zones layout on each desktop or add an option to do so.
Workaround
Open Fancy Zones setting on the new desktop and close it. The layout selected on the primary desktop is retained here too.

Added "virtual" to the title to make it easier to search.

Adding this for additional repro steps and information. This shows that using FancyZones shouldn't require mouse input.
Environment

OS: Microsoft Windows [Version 10.0.18362.418]
PowerToys Version: 0.13.0
PowerToys Module: FancyZones

FancyZone Settings

All Defaults except the override Windows Snap hotkey (win+arrow) to move windows between zones is on.

Additional Repro Steps

Win + `  to open settings and configure layout on current desktop
Win +Ctrl + d to create a new desktop
Open any application and try to snap it to the zone.

Expected Behavior
After switching to the new desktop the layout created should be retained.
Actual Behavior
Have to reconfigure the layout again.

In progress.

Fix available in v0.15.1 https://github.com/microsoft/PowerToys/releases


Download using basic auth with empty password fails after upgrading to 5.x

Sonarqube uses an authentication scheme with api tokens. The way to use this is by setting basic auth's username to the token and an empty password. (see also https://community.sonarsource.com/t/what-is-http-header-for-api-authentication/34117/2)
This worked when using version 4.x of this library:
task downloadFile(type: Download) {
    src 'https://our.sonarqube.instance/some-checkstyle-ruleset'
    dest buildDir
    username apiToken
    password ""
}

After upgrading to 5.x, we get a 401 using the exact same task configuration:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':downloadCheckstyleRulesetFromSonar'.
> A failure occurred while executing de.undercouch.gradle.tasks.download.internal.DefaultWorkerExecutorHelper$DefaultWorkAction
   > de.undercouch.gradle.tasks.download.org.apache.hc.client5.http.ClientProtocolException: HTTP status code: 401, URL:
https://our.sonarqube.instance/some-checkstyle-ruleset

Thanks for reporting this. I was able to reproduce the issue. The problem is not the empty password but the fact that Sonarqube does not send a WWW-Authenticate header in its 401 response. Due to this, gradle-download-task does not know which authentication method to use. Version 4 always used preemptive authorization. This was disabled in version 5 because it might be a security issue to always include credentials in the first request.
I'm working on a fix. In the meantime, you can use a workaround. Simply replace username and password with a header:
task downloadFile(type: Download) {
    src 'https://our.sonarqube.instance/some-checkstyle-ruleset'
    dest buildDir
    header "authorization", "Basic " + (apiToken + ":").bytes.encodeBase64()
}

Thanks for the fast reply and work-around. Can confirm this solves our problem 👍

Is there an easy way to debug the request/response flow executed by this plugin btw? I tried running with the --debug flag, but it didn't give me any extra output.
It would probably have given me more insights into what was going wrong and as such a better bug report for you.

Yes, I was thinking about this too. I guess it could be useful to log sent and received headers (like curl does if you set the verbose flag). I'll try to include this in the next release.

I have a similar problem with 5.0.5 - I'm trying to download an artifact from a Jenkins server, which is working fine with version 4.1.2... The server response is:
HTTP/1.1 403 Forbidden
Date: Tue, 03 May 2022 10:17:04 GMT
X-Content-Type-Options: nosniff
Set-Cookie: JSESSIONID.c3cc7daa=node01prq7u994kp0z1raqu4nmrkrdw1768.node0; Path=/; HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=utf-8
X-Hudson: 1.395
X-Jenkins: 2.319.3
X-Jenkins-Session: b370b28f
Content-Length: 811
Server: Jetty(9.4.43.v20210629)

Authentication required

@NicoWallmeier Did you try the workaround I posted above? It would be good to know if it works for you too. Thanks!

@michel-kraemer: It is working after changing authorization to Authorization in your workaround...

@NicoWallmeier That's good to know. Thanks.
I'm working on a fix and will get back to you when it's ready.

I've just released gradle-download-task 5.1.0. Please update and use the new preemptiveAuth flag like so:
task downloadFile(type: Download) {
    src 'https://our.sonarqube.instance/some-checkstyle-ruleset'
    dest buildDir
    username apiToken
    password ""
    preemptiveAuth true
}

It is working fine for me now :)

I can also confirm this works. Thank you very much for the fast fix 👍


etcd-runner: clean up watcher runner

/cc @sinsharat @heyitsanthony

@heyitsanthony Fixed. PTAL.

LGTM with @heyitsanthony suggestions implemented.
Thank you!

@heyitsanthony All fixed. PTAL.

lgtm


Proposal to change Nimble memory allocation to support modules with or without PSRAM (IDFGH-6360)

IN the actual implementation, if CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL is defined to 1 and the module does not have PSRAM, the program crashes because it try to allocate memory exclusively from the PSRAM.
I propose to slightly change the memory allocation routines in order to allocate the memory even if the PSRAM is not available.
This will enable to put the same code in modules with or without PSRAM.
This can be done in the file esp-idf/components/bt/host/nimble/port/src/esp_nimble_mem.c
The change is very simple,
IRAM_ATTR void *nimble_platform_mem_malloc(size_t size)
{
#ifdef CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL
return heap_caps_malloc(size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#elif CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
//return heap_caps_malloc(size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT);
return heap_caps_malloc_prefer(size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#elif CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_IRAM_8BIT
return heap_caps_malloc_prefer(size, 2, MALLOC_CAP_INTERNAL|MALLOC_CAP_IRAM_8BIT, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#else
return malloc(size);
#endif
}
IRAM_ATTR void *nimble_platform_mem_calloc(size_t n, size_t size)
{
#ifdef CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL
return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#elif CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
//return heap_caps_calloc(n, size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT);
return heap_caps_calloc_prefer(n, size, MALLOC_CAP_SPIRAM|MALLOC_CAP_8BIT, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#elif CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_IRAM_8BIT
return heap_caps_calloc_prefer(n, size, 2, MALLOC_CAP_INTERNAL|MALLOC_CAP_IRAM_8BIT, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
#else
return calloc(n, size);
#endif
}
Regards
cicciocb

Hi @cicciocb ,
Via menuconfig, the option to enable  BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL is only possible if External SPIRAM is available:
As seen here

config BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
   bool "External SPIRAM"
  depends on SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC

Every chip has a option to enable / disable support for SPIRAM . E.g. here
If user has NOT enabled External SPIRAM support , the above mentioned Nimble option will not be visible and hence cannot be enabled.
So, the code you mentioned, should not get hit, if the above options are not enabled.
Also, one more point is, in case , we do add the changes as suggested, it may break some other use case ( i.e. no SPIRAM available, but we still allocate memory from internal memory and attempt to proceed).
Thanks,
Rahul

HELLO
IM LIBO
I HAVE GOT YOUR LETTER
PLEASE WAIT FOR REPLY

Hi @cicciocb ,
Via menuconfig, the option to enable BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL is only possible if External SPIRAM is available:
As seen here

config BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
   bool "External SPIRAM"
  depends on SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC

Every chip has a option to enable / disable support for SPIRAM . E.g. here
If user has NOT enabled External SPIRAM support , the above mentioned Nimble option will not be visible and hence cannot be enabled.
So, the code you mentioned, should not get hit, if the above options are not enabled.
Also, one more point is, in case , we do add the changes as suggested, it may break some other use case ( i.e. no SPIRAM available, but we still allocate memory from internal memory and attempt to proceed).
Thanks, Rahul

Thanks Rahul,
the idea was the integration of the same binary in modules with or without PSRAM, without the need to compile separate versions, obviously enabling the option in menuconfig.
However, I understand your point of view to have something "unbreakable" so that thanks for your answer and consideration.
The point can be closed
Regards
cicciocb


Multidrag: missing index in deselect event

Hi,
unfortunately in the deselect event there is no information about the deselected index.

@philippkuehn Thanks for pointing this out. For now:
new Sortable(el, {
	multiDrag: true,
	onDeselect(evt) {
		let index = Sortable.utils.index(evt.item);
	}
});

Ah, thank you!


Fix custom color schemes

This prevent the plugin to override the custom theme set in the user’s dired.sublime-settings file with the default one. Also let the user use a custom theme for rename mode.
The dired-rename-mode.sublime-settings file could be used for rename mode specific settings in the future but maybe it’s not necessary ? Would you rather prefer a rename_mode_color_scheme key inside dired.sublime-settings or something similar ? It’s simpler to toggle the color scheme with an external plugin this way though (nice for dark/light variations).

Thank you


feature: send visible notification at the end of pomodoro

I'd like to be notified when my PC is muted or I don't wear a headset.
Maybe can combine with the Obsidian Reminder Plugin.

Should be live thanks to @cbos adding system notifications, let me know if there are any issues.


fix: gitlab reposcaffolding update

Signed-off-by: Meng JiaFeng<EMAIL_ADDRESS>Pre-Checklist
Note: please complete ALL items in the following checklist.

[ ] I have read through the CONTRIBUTING.md documentation.
[ ] My code has the necessary comments and documentation (if needed).
[ ] I have added relevant tests

Description

fix gitlab reposcaffolding will always update because of status not consistent

@steinliber Please resolve the conflicts.

I've resolved it.


Update cli.py

make sure pytest return exit code, after performing an in-process test run.

@pluckhuang Thanks for your PR. This issue has been fixed in latest version 3.0.7.


Add additional OpenJCEPlusFIPS test dependencies

When executing the OpenJCEPlusFIPS tests some junit 5 related dependencies are missing. These files are already downloaded during compilation for OpenJCEPlusFIPS, they are just not available during execution.

An internal test with this change


Ability to load runnable bundles

Related: https://github.com/suborbital/hive-wasm/issues/2
Should be able to provide a path to a bundle, and then automatically register all of the included Runnables in one line, something like h.RegisterAll({path_to_zip})

Done with #12


Innacurate aim box

The box is not accurate, mobs I can't hit yet already have the optimal aim box

The box is an expansion around the closest point to the entity's hit box, you might miss at 3 blocks distance if you are not aiming at the absolute center of the box.


utils.k8s.openebscrd: Add the support for Create in Storage Pool

Fixes #63
This commit adds support for creating StoragePool objects.
Signed-off-by: Sayan Chowdhury<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   42.46%   42.46%
=======================================
  Files           5        5
  Lines         146      146
=======================================
  Hits           62       62
  Misses         83       83
  Partials        1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80c5882...00ed243. Read the comment docs.


how to get the distance from the center of vehicle to the edge of road

for that I'm trying to create a sensor to do it as tutorial given to say, but it is too hard for me, cause I'm poor in c++ programm and isn't familiar with UE4 . As an aside, the LaneInvasionSensor cannot detect the action that ego vehicle moves over lanemarkings in time

@XGodina I appreciate it if you could give me a litte favor

@jackbart94 if convient, it is the best that you could help me implement it, which also gives users more material to reference, but that seems impossible, if that way, I wonder how to acquire the edge of road

@jackbart94 if convient, it is the best that you could help me implement it, which also gives users more material to reference, but that seems impossible, if that way, I wonder how to acquire the edge of road

Hi,
I found that when the ego vehicle enters into a junction, the yaw of the current waypoint does not match the direction of the target lane, for example, I plan the route to turn left, but the yaw of the waypoint points to straight ahead.
The way I get the current waypoint is:
world.get_map().get_waypoint(vehicle.get_location())
I doubt that this method: world.get_map().get_waypoint(vehicle.get_location()) is to get the nearest waypoint of vehicle.get_location(), due to the waypoints of each direction of the junction are very close, resulting in the selection of the wrong lane waypoint.
I holp get the waypoint of my current location in a junction and its yaw matches my target lane, how do I do that?
I used Carla0.9.11.
Thanks for your help

You should be able to get your current waypoint with whatever structure you are using to compute the path of your vehicle. If you're using the Traffic Manager, you'll have to look into the Localization Stage.

Yes，I could get my current waypoint by ' world.get_map().get_waypoint(vehicle.get_location())', but the current waypoint yaw is wrong in the junction sometimes.


ci: Fix publishing in postsubmit

In #26535 the skip checks were skipped in postsubmit
In the case of publishing this check is required to proceed to publish docs etc

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@alyssawilk i pushed through the Pr to limit running the skip checks to try and mittigate CI bottlnecks - but in doing so this broke publishing which deps on this check - we probs want to land this asap


Use a config file for endpoint : rate management

Currently the endpint : rate ratio is statically defined within the code base. We would like to move those to a dynamically loaded config file.
Using viper is one option.
cc: @chentex @kurtismullins

It may be useful to allow the override of duration for individual tests as well. Specifically to address the limitation on the amount of "Create Cluster" operations that can occur.


is there any way to keep the tab content

the ui-view used by all tab. When state changed, the content will reload.
what should i do to keep the content(multiple ui-view)

check the issue I referenced (ie, this is an ui-router issue)


Using transform on a StaticSite causes AccessDenied errors

I added the following to the configuration of my StaticSite so that old files would be deleted when new builds are uploaded (by default, old files that were not included in new builds were still there, allowing users to navigate directly to pages we intended to remove).
export const web = new sst.aws.StaticSite("YourSite", {
  path: "packages/web-directory",
  transform: {
    assets: {
      transform: {
        bucket: {
          forceDestroy: true
        }
      }
    }
  });

After adding this transform, navigating to the website just returns AccessDenied, which I'm assuming is because other options are being overridden, maybe with bucket permissions or cors? I don't think this is the expected behavior. Removing the transform fixes the issue.
Any help here is greatly appreciated!

transform seems to have stopped working globally, I am facing similar an issue where DynamoDB table name can't be updated using transform

Can confirm this issue. The bucket policy is not updated when using transforms on the static site bucket. I manually updated the bucket policy to allow cloudfront to read files, but it is indeed an annoying bug.


Implement Foreign Mapping Check Override

As requested by, and closes: https://github.com/ros2/ros1_bridge/issues/364
This PR implements a new enable_foreign_mappings mapping rule that allows one to override the package name check that forces a user to define any mapping rules that target a bridge ROS 2 package from that package itself.
This implementation is untested and is pending a minimal example from the issue poster to ensure it meets the use-case that inspired it.

Wrong target, oops


Support for Elm's Debug.todo

Describe the bug
Using Elm's Debug.todo in a model causes a compile error.
To Reproduce
Steps to reproduce the behavior:
Given model:
module Auction.Foo exposing (..)

import Debug as Debug

foo : Int -> String
foo i = Debug.todo "todo"

Run:
morphir-elm make
Result:
Error: ["frontend_error",[["ResolveError",{"source":{"path":"src/Auction/Foo.elm"},"range":{"start":{"row":5,"column":7},"end":{"row":5,"column":10}}},["CouldNotFindModule",[["debug"]]]]]]
Expected behavior
We should use a similar mechanism as Elm in allowing to compile to the IR but error in the backend generation.

The Debug module is intentionally not supported. Elm only allows it in debug mode and does not compile when you are targeting production. This is done so that you don't accidentally leave something in that will blow up in production. So even if we add support, I would require a debug flag to be passed in to morphir-elm make to allow it.
Now let's say we add that option. All the backends will have to support Debug.todo and for most backend that means blowing up. Do we really want to open that door?
Maybe the middle-ground is to resolve it in morphir-elm make so that you can check the rest of the model but not generate an IR when it's detected. "Your model looks correct but you still have to fill in here: ...."

Thinking about it more I really don't want to allow people to include Debug.todo in the IR. I can already see people using it in production flows. It's opening pandora's box.


refactor: rename lemma_details -> entry_details

This view displays the full details of a dictionary entry. This may display the paradigm, but it also may not! @dwhieb Is this the correct terminology? lemma_detail was definitely wrong!

Codecov Report

Merging #823 (b2cc223) into master (d733874) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #823   +/-   ##
=======================================
  Coverage   79.39%   79.39%
=======================================
  Files         103      103
  Lines        4179     4179
  Branches      626      626
=======================================
  Hits         3318     3318
  Misses        744      744
  Partials      117      117

Impacted Files
Coverage Δ

src/CreeDictionary/CreeDictionary/views.py
78.37% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d733874...b2cc223. Read the comment docs.

Yup, sounds correct! Just to clarify, this view is what you get when you click on a headword, correct? Like this?
https://itwewina.altlab.app/word/wâskahikan/?inflectional_category=INM

@dwhieb That's correct!


Remove test tarballs from published crate

They don't seem to be useful for external usage.

cc @alexcrichton

I probably won't get around to this myself, but a PR is always welcome to do so!

Sure-- I'll open one. Would you have a moment to publish shortly thereafter?

Opened #197


When "UI-Effect.mat" is created automatically, Unity hangs up.

Hi.
When GetOrGenerateMaterialVariant () in MaterialResolver.cs is executed without UI-Effect.mat, AssetDatabase.CreateAsset () fails and Unity hangs up.
1.Create New Project in UnityEditor.(Unity2018.2.5f1)
2.Import UIEffect.unitypackage(v2.8.1)
3.Remove /Assets/Coffee/UIExtensions/UIEffect/Materials/UI-Effect.mat
4.Load /Assets/Coffee/UIExtensions/UIEffect/Demo/UIEffec_Demo.unity
5.Unity hangs up
I have a log, should I paste it?

Hi @shirou-take
Wow, thank you for finding the bug!
Please paste the log:)

Hi @mob-sakai
This is a log when it hangs up
Editor.zip
This log is from the time of manually erasing UI-Effect.mat. (not full size log)
After this, the last error(stack trace) is repeated indefinitely.

Thunks a lot!

This issue is reproduced in Unity2017.x or above.
It is a little fussy, but I will fix it with v3.0.0.
Solution for this issue
If you encounter this issue, please try the following steps:

Delete UIEffect directory (Assets/Coffee/UIExtensions/UIEffect or Assets/UIEffect).
reinstall UIEffect.unitypackage from releases.

Hi @mob-sakai
I am glad that you can fix it!
I am waiting for v3.0.0.

Due to the delay in the v3.0.0 release, this bug will be fixed in v2.9.0.


Add view of TVL over time in Explorer overview

Problem
We can see today's state of TVL, but not changes over time
Proposed Solution
Using our endpoints. Add a new chart. We should test this in Testnet or Staging first
Pool TVL
https://postgrest.mainnet.connext.ninja/daily_swap_tvl
Router TVL
https://postgrest.mainnet.connext.ninja/daily_router_t
TOPLINE
Add a section to Overview that shows TVL topline over time as bar chart. We can put it underneath this chart

Somethign like this

BREAKOUTS
Note: I'm not positive if bar charts are the best way to visualize this data.
Add a toggle to split by chain - Goal is to see TVL by chain

Add a toggle to split by AMM vs. Router - Goal is to compare Router vs AMM TVL

The provided data (from https://postgrest.mainnet.connext.ninja/daily_swap_tvl) don't contain asset information.  We also checked the pool_id in the getPoolData; no field indicating the asset info.

https://postgrest.mainnet.connext.ninja/daily_router_tvl: no "over time" and "chain" data provided.

Please check now and also add this in a test mode
https://postgrest.mainnet.connext.ninja/daily_swap_tvl
https://postgrest.mainnet.connext.ninja/daily_router_tvl

@alexwhte , we can't do this if there is no daily $ value of each asset provided, as mentioned in https://github.com/connext/monorepo/issues/3553#issuecomment-1469246991.

@alexwhte , we can't do this if there is no daily $ value of each asset provided, as mentioned in https://github.com/connext/monorepo/issues/3553#issuecomment-1469246991.

Complexity: 5
See the discussion in Sprint Poker #36
Powered by Parabol

closing in favor of #3198


Program crashes after scanning a few weapons

1280 windowed as instructed
No flux or filters active
Crashes after scanning 15-16 weapons (R3 serpent spine or R5 festering desire)

Please let me know any additional info you require

Thanks for the info. I'll look into it. I will be working to make my system alot more accepting of scanner failure and provide a error log to better pin point errors. If you could provide a screenshot of ur weapon inventory it would help me to determine which weapon it crashed on.

Crashed on serpent spine like 2-3x, festering like 5x, and black sword like once. The program exist itself when it crashes. No error message. The picture I've attached is in 1600x900 windowed, but I ran the program in the 1280 windowed as instructed.

Next release will fix your issue which I will release sometime tomorrow. Primordial Jade Winged-Spear was the issue.

Cool! Thanks for the quick follow up!

Just released the newest patch.Try it out whenever you have the chance. Please let me know if it worked for you. If not, it should not crash and say why it did.

It crashed for me, this is what I got.

I see my weaponlist has that weapon name misspelled. I just listed as TheViridescent. Without Hunt. Will double check weapon names again. Thanks for posting.

I can confirm the above error posted by WantYouGone

Posted a new version that will bypass errors. So you can get a file regardless of error occurred along the way. Thanks for using my scanner guys. It also should work for the TheViridescentHunt now.

app crash at artefact (app close) after 2 ligne

yes and crash at artefct , i have try to record it but whene i record app crash whene i click on button ,
i have see my cpu go to 70% so maybe app is to fast idk

ok. its prob crashing when reading your artifact count. Will look into it. Thanks

Yeah same for me, the program crash on artifarcts after reading the first line, it scroll down, read some artifacts (a few it's random) and crash.


Bangs-related text appears at bottom of screen

How to reproduce:

Tap search-field
Tap bangs icon, then tap "Cancel"
RESULT: text appears at bottom of screen

fixed!


net/http: ConfigureTransport does not work for Transport with custom DialTLS

What version of Go are you using (go version)?

$ go version

go version go1.15 linux/amd64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/fqrious/.cache/go-build"
GOENV="/home/fqrious/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/fqrious/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/fqrious/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build996052359=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I'm trying to use a custom dialtls function with http.Transport in order to have flexible support for both HTTP/1.1 and HTTP2 but it seems it's just ignoring my call to http2.ConfigureTransport and all requests go over http/1.1

https://play.golang.org/p/QmEwSz3LN_l
What did you expect to see?

2020/09/05 18:21:23 Method: GET
Protocol: HTTP/2.0
Host: http2.golang.org
RemoteAddr: <IP_ADDRESS>:8895
RequestURI: "/reqinfo"
URL: &url.URL{Scheme:"", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/reqinfo", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
Body.ContentLength: 0 (-1 means unknown)
Close: false (relevant for HTTP/1 only)
TLS: &tls.ConnectionState{Version:0x304, HandshakeComplete:true, DidResume:false, CipherSuite:0x1301, NegotiatedProtocol:"h2", NegotiatedProtocolIsMutual:true, ServerName:"http2.golang.org", PeerCertificates:[]*x509.Certificate(nil), VerifiedChains:[][]*x509.Certificate(nil), SignedCertificateTimestamps:[][]uint8(nil), OCSPResponse:[]uint8(nil), ekm:(func(string, []uint8, int) ([]uint8, error))(0x649f20), TLSUnique:[]uint8(nil)}

Headers:
Accept-Encoding: gzip
User-Agent: Go-http-client/2.0

What did you see instead?

2020/09/05 18:22:18 Method: GET
Protocol: HTTP/1.1
Host: http2.golang.org
RemoteAddr: <IP_ADDRESS>:12405
RequestURI: "/reqinfo"
URL: &url.URL{Scheme:"", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/reqinfo", RawPath:"", ForceQuery:false, RawQuery:"", Fragment:""}
Body.ContentLength: 0 (-1 means unknown)
Close: false (relevant for HTTP/1 only)
TLS: &tls.ConnectionState{Version:0x304, HandshakeComplete:true, DidResume:false, CipherSuite:0x1301, NegotiatedProtocol:"", NegotiatedProtocolIsMutual:true, ServerName:"http2.golang.org", PeerCertificates:[]*x509.Certificate(nil), VerifiedChains:[][]*x509.Certificate(nil), SignedCertificateTimestamps:[][]uint8(nil), OCSPResponse:[]uint8(nil), ekm:(func(string, []uint8, int) ([]uint8, error))(0x649f20), TLSUnique:[]uint8(nil)}

Headers:
Accept-Encoding: gzip
User-Agent: Go-http-client/1.1

I spent some time looking through the code to find why this happens. The code splits here for custom and non-custom DialTLS.
In your example, the custom DialTLS is indeed called, but 1) fails to set up the pconn.tlsState  in a way that 2) the NegotiatedProtocol is h2, and thus 3) the alt field is never set, which is required for the HTTP/2.0 path.
I'll leave it for more experienced people to chime in, on whether it's a bug; I understand it might be a little disorienting though.
Custom DialTLS functions are allowed and called, but they have to work in a way that's enabling HTTP/2.0
Extra note
Taking a step back I noticed that the custom DialTLS that HTTP/1.1 and HTTP/2.0 are not compatible with each other.
In HTTP/1.1, DialTLS has been deprecated in favor of DialTLSContext. It has the following signature
DialTLS func(network, addr string) (net.Conn, error)

In HTTP/2.0 though,DialTLS has the following signature
DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)

so, I added log.Print("Negotiated:\t", conn.ConnectionState().NegotiatedProtocol) to the line after the handshake and I discovered that the NegotiatedProtocol is empty, so I changed my config so Config.NextProtos is []string{"h2", "http/1.1"} it behaves in the expected way but when I changed my tls package to utls, I started getting
2020/09/06 16:57:20 Negotiated: h2
2020/09/06 16:57:20 Get "https://http2.golang.org/reqinfo": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x00\x00\x18\x04\x00\x00\x00\x00\x00\x00\x05\x00\x10\x00\x00\x00\x03\x00\x00\x00\xfa\x00\x06\x00\x10\x01@\x00\x04\x00\x10\x00\x00"

which I think is caused by the server replying with an http2 response while it is expecting an http/1.1 response

/cc @FiloSottile

I believe this is WAI actually because the custom dialTLS uses its own tls.Config, which should have been modified by http2.ConfigureTransport if you rely ontransport.TLSClientConfig. Specifically, transport.TLSClientConfig.NextProtos will be modified to have "h2" so the client would be configured to be able to upgrade to use http/2. Your own dialTLS doesn't have this info.
https://go.dev/play/p/KXWWjY3gpM1 is the fixed version


BullBoard: MIME type issue

Config
Env: production
works fine on dev and local
Issue:

Not able to see all the jobs, just shows Loading... text

On window console giving error:

static bundle.js returns with the status 302
has content-type: text/html; charset=utf-8 in the header

usage

Any kind of help or support would be really appreciated.

Hi, it seems like you are mounting / accessing the app from a wrong direction.
What is url that you are trying to access? open the html, what is the path that the js bundles point to?

Any update?

Closing since not active

Hi guys, i'm experiencing the exact same issue. Any ideas? @ankur17 did you solve the problem? Strange thing is it suddenly stopped working without any changes. I'm using (with 3.2.11):
serverAdapter.setBasePath('/admin/queues');
app.use('/admin/queues', serverAdapter.getRouter());

@SqueezedLight can you provide more info?

It seems it somehow collides with other routes. If i rename the base path to /x/queues everything works. The irritating thing was, that the vendor bundle was available. But the js and css files were not found/available.

I'm glad that this solved, if you have any additional info I will happy to help :]

I had the same problem, and it depends on setGlobalPrefix. I excluded the BullBoard route in the setGlobalPrefix options, and now everything works as expected.

Still having this issue


Incorrect public key results in RUST panic

Should return a Python ValueError, now the thread fatals

Fixed in https://github.com/polkascan/py-ed25519-bindings/commit/ac13b1e7455481a4147bd581eb96744d5db64572


Provide granular errors from actions.payment.execute()

I can't stress enough how important this feature is even for semi-serious integration - be able to catch errors during payment execution and save that info for both: receiver and payer to know what was the root cause if error (insufficient funds or whatever).

Is this still a thing? How am I supposed to pass the error from my payment endpoint back to checkout.js to provide a custom error message?

Yes unfortunately it is still exist.
The easiest way to reproduce the problem is to execute a payment with Duplicate invoice_number that was already used for a previous payment.
Interesting how paypal devs dont prioritize such an important issue, this affects both paypal customer support and our support greatly as many cases will be opened without either the merchant or the customer knowing the failure reason...

Can we get an update on this? I have to agree with the community that this is a crucial missing feature, considering how sensitive ecommerce sites are to customer drop-off in checkout.

I think I'm having the same issue...
I'm trying to use:
paypal.Button.render({
  payment: function (data, actions) { ... },
  onAuthorize: function (data, actions) { ... },
  onCancel: function (data, actions) { ... },
  onError: function (error) {
    console.log('onError():', error)
  }
}, '#paypal-button')

If I deliberately cause an error by submitting the wrong value for payment.transactions[].amount.currency in actions.payment.create() I see this:

I can't access the { name, details, message, information_link, debug_id } object, so I can't log or report the error.
Is this the same issue everyone else is having..?
I guess we're all stuck showing those annoying generic "An error happened!" messages to users until onError() gives us something useful.
@bluepnume Any updates on this..?

@stephen-last yes this is the error (well dont have to be the exact error, but it's validation condition raises this error).
The problem is that I have left the paypal project I was working on, but came across similar issue on this component: https://github.com/axios/axios/issues/960
When I was trying to console.log(error) it wasn't showing me the correct info just like in Paypal validation case, fixing it was as simple as console.log(error.response). So I guess we would have to know the structure of this validation error that comes back and print the relevant data out of the object.

any updates on this issue?

@bluepnume or anyone, not meant to pressure or anything but can you please tell at least very rough ETA on this issue? Can we expect the solution by the end of this year?

so far paypal is a nogo
must be offshore singapore
:"(

I think I'm having the same issue...
I'm trying to use:
paypal.Button.render({
  payment: function (data, actions) { ... },
  onAuthorize: function (data, actions) { ... },
  onCancel: function (data, actions) { ... },
  onError: function (error) {
    console.log('onError():', error)
  }
}, '#paypal-button')

If I deliberately cause an error by submitting the wrong value for payment.transactions[].amount.currency in actions.payment.create() I see this:

I can't access the { name, details, message, information_link, debug_id } object, so I can't log or report the error.
Is this the same issue everyone else is having..?
I guess we're all stuck showing those annoying generic "An error happened!" messages to users until onError() gives us something useful.
@bluepnume Any updates on this..?

Same issue for me

Any ETA?

This lack is just... shocking.

Thank you all for reaching out for this issue. We are currently working on figuring out which errors we can actually expose back to the client.
meanwhile, pls free to do server-side integrations that would give direct access to the errors. https://developer.paypal.com/demo/checkout/#/pattern/server

Closed -- this should now be working for actions.order.capture() call.


Removing WebView2 dependencies on KBM

Summary of the Pull Request
Was doing about to try to do WinAppSDK 1.5 upgrade and noticed webview2 on KBM.  it compiles and ran fine without them.

PR Checklist

[ ] Closes: #xxx
[ ] Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
[ ] Tests: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Dev docs: Added/updated
[ ] New binaries: Added on the required places

[ ] JSON for signing for new binaries
[ ] WXS for installer for new binaries and localization folder
[ ] YML for CI pipeline for new test projects
[ ] YML for signed pipeline

[ ] Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

weird, this compiled locally.  going to close this out and do a new one then to consolidate


locust no-web mode

I were using jmeter till now  but i saw it is taking lots of resources and memory to run,
so now i started reading locust. i am new to locust.
i want to use locust in no-web mode e.g $ locust -f locust_files/my_locust_file.py --no-web -c 1000 -r 100 but same as question asked by someone to pass ${url} and ${host} from command line , i dont want to hard code the URL or you can say header parameter like unique request id and all, i want to pass it from command line, like we can pass in jmeter and we can get it in configuration file using __P() function.
how we can get the same thing in locust, i know the way of using environment variables but i do not want to use this.
Originally posted by @ruchikaChawla in https://github.com/locustio/locust/issues/244#issuecomment-447792922

Why closed?

it's a question, not an issue (this is is the tracker for bugs/issues).

From the template you edited out:

For general questions about how to use Locust, use either the Slack link provided in the Readme or ask a question on Stack Overflow tagged Locust.

Hello,
Sorry to say that but nobody reply correctly there, and I don’t know how to
get the answer.
Thanks
On Mon, 17 Dec 2018 at 21:13, aldenpeterson-wf<EMAIL_ADDRESS>wrote:

From the template you edited out:
For general questions about how to use Locust, use either the Slack link
provided in the Readme or ask a question on Stack Overflow
https://stackoverflow.com/questions/ask tagged Locust.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/locustio/locust/issues/933#issuecomment-447890458,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ApQ-KUpyV8wUJtaxN34w-R3igLREVecXks5u57u-gaJpZM4ZWDud
.

--
Ruchika
Student, MCA Final Year
National Institute of Technology, Kurukshetra
Email-<EMAIL_ADDRESS>


Exclude module from storyboard file's imports

Is there any way to exclude a module from storyboard file imports?
With 4.1.0 SwiftGen is started to automatically add modules to generated file, so one of this imports is the same as my project's module and now I'm getting a lot of warnings like "File 'Storyboards.swift' is part of module ''; ignoring import".
I know I can create a custom template for it, but I'm wondering if there is any built-in way to do it?
Or maybe I'm just missing something in my setup

Hmmm, is there a way we can avoid this? Maybe a way to silence the warning?

As far as I know there's no way to suppress specific warning currently

If in understand the issue correctly, this problem is because the generated code happens to import the module corresponding to the app target where the generated code will happen to be too, right?
Once #253 will be implemented this will be trivial to fix.
Because #253 will then allow us to pass --param AppModule=MyAwesomeApp when invoking SwiftGen, and in the template we could then do:
{% for module in modules %}
{% if not module == param.AppModule %}
import {{module}}
{% endif %}
{% endfor %}

Yeah, I think for now we'll have to either live with the warning, or a custom template that excludes your specific module.

@AliSoftware Yes, that was exactly my problem.
I think I'll stick to 4.0.1 until #253 is implemented then.
Thank you, guys. Can we maybe close this issue now?

I think we can keep it open so we don't forget to implement it later after #253 😉

Btw the last version is 4.1.0 not 4.0.1 😉 (4.1 won't solve that specific problem but still has other bug fixes and improvements)

Yes, I know 4.1.0 is the latest one, but seems like 4.0.1 is working just fine for my project and I'm not getting those warnings :)

I just had an idea: what about environment variables? Most people run SwiftGen as a build phase, which receives a whole bunch of environment variables. For example, Fabric relies on this to locate the target's DSym files and upload them.
I'm not saying we should only rely on env. variables, but it could be an additional mechanism for solving this (and other) issues. It would just provide all variables available to the template as a env variable.

Seems like it would be a nice feature to me, good idea 👍
Only "problem" with that is if we want to allow overriding values in templates we might need to check first in param. then in env. then default value, which could lead to complex expressions, like {% set appModule %}{{param.appModule|default:env.PRODUCT_MODULE_NAME}}{% endset %} and {% set enumName %}{{param.enumName|default:env.SWIFTGEN_STORYBOARDS_ENUM_NAME|default:"StoryboardScene"}}{% endset %}. But that seams reasonable enough, given that the name you'll be able to give via --param (see #253) and the one provided by ENV will likely be different anyway.

When we rewrite the templates to use params, I'd just use params, not env to replace enumName and such. Just make env available and, for now, only use it for this specific case.

This has been finally fixed in Swift 4.2.0 which has been proposed to Homebrew just now!
See this CHANGELOG for more details.
It will be available in homebrew as soon as https://github.com/Homebrew/homebrew-core/pull/10132 is merged by the Homebrew team.

I'm still seeing this, even though I'm using the currently latest swiftgen 4.2.1 version, installed through Homebrew.
Here is the generation command I'm using:
swiftgen storyboards -t swift3 -o {path} {path}

Hi @damirstuhec,
Please check the instructions in the changelog mentioned by @AliSoftware:

It works by checking the environment variable PRODUCT_MODULE_NAME, which is automatically injected by Xcode if you run swiftgen as part of a Script Build Phase in your Xcode project.
If you don't use swiftgen in a Script Build Phase of your Xcode project but manually in the terminal, you can instead use  swiftgen storyboards --param module=YourAppModuleName … when invoking SwiftGen to inject it manually instead.

If you're still seeing the problem after following these instructions, we can reopen this issue or create a separate one.

@djbe worked! Thanks a bunch. 👍

HI @djbe I've set the module param in the swiftgen.yml yet I still see the warning 🤕

Hey @hernangonzalez,
does it work for you when invoking swiftgen without a configuration file (swiftgen storyboards ...)? Make sure to check the parameter documentation for your template, for example https://github.com/SwiftGen/templates/blob/master/Documentation/storyboards/swift4.md.
Anyway, if you still have the issue, we'll need more information, and you might want to open a separate issue for this.

@hernangonzalez Which version of Swiftgen did you try that with? 5.2.1 or earlier?
Also, you can use swiftgen config lint and swiftgen config run --verbose to have more information about what the config file will execute (it will try to print the equivalent command line to run), so you can compare the calls between when you use a config file and when you invoke the command directly.
For example maybe you misspelled the params: entry in the YAML? Can you post here the content of your swiftgen.yml? swiftgen config lint will help you check if what you put in your YAML matches the intended structure. Don't also hesitate to double-check the Config File dedicated documentation for the exact syntax to use in your swiftgen.yml

I am on SwiftGen v5.2.1 (Stencil v0.9.0, StencilSwiftKit v2.3.0, SwiftGenKit v2.1.1)

I'll try to find out more info with those tips and let you know.

Beware, 🤦♂  moment... lol.
I had misspelled params. Sorry about that.
Thank you guys!

Ahah 😉 I'm curious as to what helped you figure that out though. Did swiftgen config lint help you? (Or could we make it more helpful?)

@AliSoftware I went straight to check if params was properly written and you know the rest ja.