Re-adding Read/Write tests and removing unused websocket class.

For #629 . For some reason, the IISExpressAppPool runs into issues with IIS, which the CLR4IntegratedAppPool doesn't.
I'd recommend looking at the PR ignoring white space: https://github.com/aspnet/IISIntegration/pull/650?w=1

What was the issue? What's different about new .config files?

It uses the CLR4IntegratedAppPool instead of the IISExpressAppPool. I talked with @pan-wang and he said there shouldn't be any functional difference between the two. I'll chat with @BillHiebert once he comes back from vacation as he creates the app pool.

It uses the CLR4IntegratedAppPool instead of the IISExpressAppPool. I talked with @pan-wang and he said there shouldn't be any functional difference between the two. I'll chat with @BillHiebert once he comes back from vacation as he creates the app pool.
Let me minimize the difference though as there as the diff was larger than I thought.

How much difference is there between host configs? Can we make the required changes programatically?

How much difference is there between host configs? Can we make the required changes programmatically based on some common source?

For sure, it would reduce duplication of the apphost config files. We can do the same thing we are doing with [ANCMPath], [Port], etc. and replace it with provided values in the deployment parameters.

I would prefer that, right now it's impossible to tell what is the difference between two files without manually diffing them.

To only have one apphost.config file, we need to update the IISExpress Deployer. I'll make a PR shortly to provide options to replace certain options in the config.

@pakrym So I was incorrect about there being a problem with the IISExpressAppPool. There was an ordering issue in the IIS Modules that moved up four modules. @pan-wang thinks this was done to guarantee the the modules would be activated before other modules, like IISFreb.

@pakrym offline approved this.


Regenerate all micro-generated snippets

Most of these are just changes in case, but a few (e.g.
Translate.V3) involve properly filling in generics, and List
snippets now have the right references.

(Assigned to myself as this is just generated code.)


[Fix #12] Allow passing boolean literals to touch

Fixes https://github.com/rubocop-hq/rubocop-rails/issues/12.
The Rails/SkipsModelValidations cop currently incorrectly registers an offense for the touch method from Shoulda Matchers' associations DSL:
it { is_expected.to belong_to(:user).touch(true) }

Active Record's touch method accepts attribute names, so we can treat touch calls that pass boolean literal arguments as false positives.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thank you!


Fix the python links for Python3.6

same as: https://github.com/tensorflow/tensorflow/pull/25989 but for release 1.13.0 branch.

Thanks for the PR @ashahba! We usually don't accept more changes to released branch unless we plan to do another patch release. Does master branch work for you?

Thanks @YijinLiu master works and we are during 1.14 release cycle now and this one is no longer needed.


fix(amplify-codegen): support for @default directive for required fields

Description of changes

support for @default directive required fields
CLI PR: https://github.com/aws-amplify/amplify-cli/pull/8906

Description of how you validated changes

yarn test passes

Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] Breaking changes to existing customers are released behind a feature flag or major version update
[ ] Changes are tested using sample applications for all relevant platforms (iOS/android/flutter/Javascript) that use the feature added/modified

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ping @aws-amplify/amplify-codegen

Hello @lazpavel @AaronZyLee, I see this PR is stuck for quite some time now. Is anyone able to provide any ETA in case it is still going to be addressed at some point? Thanks

Need to close as a team whether or not we want to have the platforms fill in default values in datastore. Transferring ownership of this PR from @lazpavel to the the @aws-amplify/amplify-data team.
We can either keep required, and add default value, or remove the required constraint locally, and allow the cloud to sync.


[Bug]: 求解答一下bucket_psi 用 kkrt求交时buffer.size() == static_cast<int64_t>(sizeof(rs_pack)). 32v128报错

Issue Type
Performance
Modules Involved
PSI
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
0.3.3b2
OS Platform and Distribution
Linux Ubuntu20.04
Python Version
3.8
Compiler Version
No response
Current Behavior?
用KKRT_PSI_2PC 协议求交时报错，求解答一下
RuntimeError: what:
[Enforce fail at external/yacl/yacl/crypto/primitives/ot/x86_asn_ot_interface.cc:95]  buffer.size() == static_cast<int64_t>(sizeof(rs_pack)). 32v128
stacktrace:
11113 19:19:18.<PHONE_NUMBER>74 external/com_github_brpc_brpc/src/brpc/server.cpp:1173] Server[yacl:: link: : internal: :ReceiverServiceImpll is going to quit.

Standalone code to reproduce the issue
bucket_size = 1 << 20
protocol = 'KKRT_PSI_2PC'

config = psi.BucketPsiConfig(
        psi_type=psi.PsiType.Value(protocol),
        curve_type=psi.CurveType.Value(curve_type),
        broadcast_result=broadcast_result,
        receiver_rank=receiver_rank,
        input_params=psi.InputParams(path=input_path, select_fields=select_fields, precheck=precheck_input),
        output_params=psi.OutputParams(path=output_path, need_sort=need_sort),
        bucket_size=bucket_size
    )

    report = psi.bucket_psi(link_ctx, config)

Relevant log output
No response

是我双方的receiver_rank定义的一不一样导致的，一方receiver_rank=0，一方receiver_rank=1


Would you provide more sr models?

It's necessary to use more paper models to do something.
The model zoo is really restricted.

Thanks for using MMSR.
We will upgrade MMSR to MMEditing (in the same repo), which consists of SR, inpainting, matting and generation tasks.
And MMSR will be deprecated and no longer exist.
Your suggestions will be updated in MMEditing.


Material Icons for md-tab label?

Bug, feature request, or proposal:
Feature request
What is the expected behavior?
You should be able to pass in a material icon (e.g. camera) as a label
What is the current behavior?
The input is passed a string so the html is not evaluated
What are the steps to reproduce?
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U
http://plnkr.co/edit/o077B6uEiiIgkC0S06dd?p=preview
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Is there anything else we should know?

See the tab docs on md-tab-label.

Great, thank you very much!


RU-79 Allow symfony/yaml ^5.0

this to upgrade to symfony 5 on in2plane-cloud repo

Ready to merge 👍


WIP: New language pack: japanese_oss

日本語

[x] Flag Image, (See: https://en.m.wikipedia.org/wiki/File:Flag_of_Japan.svg).
[ ] Dictionary, (See: https://github.com/google/mozc/tree/master/src/data/dictionary_oss).

--
Bug: https://github.com/AnySoftKeyboard/LanguagePack/issues/119

this is exciting! Let me know when you need feedback.

http://docs.zanata.org/en/release/user-guide/project-maintainer-guide/


Are containerized Service Fabric Services this supported on local development clusters?

I am testing this out on my local  development cluster (Local.1Node). It is running on W10 Pro with Docker Desktop. Cluster Code version 6.5.641.9590. Containerized guest executables work fine, but when my service attempts to invoke RegisterServiceAsync I get the following exception
System.Fabric.FabricException: An error occurred during this operation.  Please check the trace logs for more details. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071CC0
   at System.Fabric.Interop.NativeRuntime.FabricEndGetNodeContext(IFabricAsyncOperationContext context)
   at System.Fabric.FabricRuntime.NativeFabricRuntimeFactory.GetNodeContextEndWrapper(IFabricAsyncOperationContext context)
   at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceFabric.Services.Runtime.RuntimeContext.<GetOrCreateAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceFabric.Services.Runtime.ServiceRuntime.<RegisterServiceAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

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

ID: 7acd6be9-dfb2-9569-ff34-cad061c47cb4
Version Independent ID: 6e0fcc47-fd74-45b2-f8be-d61fb270f186
Content: Containerize your Azure Service Fabric services on Windows
Content Source: articles/service-fabric/service-fabric-services-inside-containers.md
Service: service-fabric
GitHub Login: @athinanthny
Microsoft Alias: anmola

Thanks for the question! We are investigating and will update you shortly.

You can run Containers in a Local SF environment. We call out the requirements here:
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started#install-docker-optional
We also have a quick start guide that has you test locally first
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started-containers

@andradf I will go ahead and close this out. If you have further questions just let me know and we can always reopen and continue the discussion.

Thanks for the response. The links you posted are regarding containers that don't use the Service Fabric SDKs. And as I said in my post, those work just fine in the local dev cluster. What I was asking about was specifically containerized reliable services. https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-services-inside-containers#feedback .
I get those to work fine in a Windows Server 2016 with Containers cluster in azure but I get the posted exception when I try to run those same packages that work in a real cluster in my local dev cluster. I have tried it with both process and hyperv isolation but both give the same result.

Got it. I will take a look and update this thread.

From my understanding, you need to be running Windows Server 2016 with containers to make this work. So running on a dev machine using Windows 10 would not work. Can you try locally with Windows Server 2016 with containers?

@andradf any update on this?

@andradf I will close this out for now. If you still want to continue the discussion just let me know and we can always reopen the issue :)


predict_generator to return true labels?

I know it would be a stretch design-wise, but as for now I don't know how to get both predictions true labels when using flow_from_directory.
It seems a very small code change (just keep accumulating true labels after each batch), and I would be more than happy to open a PR if there is interest in this.
EDIT: it seems that via shuffle=False the data are in the same order of gen.classes and gen.filenames. If that's the case, I might just add some documentation.

I also need something similar. I need to set shuffle=True for an edge case example I have. but test_generator.filenames or test_generator.classes have the original order not the shuffled order. test_generator.filenames and 'test_generator.classes` should return the shuffled orders not the original ones.

I would like this functionality too.
An nice additional benefit would be that a subset of the full dataset present in the category directories could be requested in the predict_generator - can be useful during testing/setup.

me too.

@abnera  I think in this link
https://github.com/fchollet/keras/issues/4225#issue-186069901
@varun-bankiti's answer can solve your problem

@hhxjzyr thanks. It does not solve the error. As stated in this issue there could be a case where shuffle needs to be True shuffle=True. For the owner of this post, he could have used shuffle=False so we can close this. There is a new way to load data (Sequence since keras 2.0.5) this solved all my issues. I would advise people to use that instead of generators.

Hello, I am having the same issue. If there a way to obtain the true labels when using a custom generator with predict_generator?


add tutorial to docs and ERA5 example

I have moved the existing tutorial to 'Quick Start' and used the extended ERA5 tutorial as the new tutorial.  I have also added a new ERA5 notebook to the examples as well as the associated reference json. Both these files are ~14MB.

@rsignell-usgs , what do you think: have the version in the documentation rendered, but the version linked from the examples be unrendered? Not sure what the standard is here.

ping @rsignell-usgs for a review


Updated /eve and /math

/math/util

Added util file
Added generic utility methods util.get and util.assignIfExists. Usages of similar methods in the library have not been replaced with these yet
Added two id generation methods util.generateObjectID, util.generateUUID
Added a generic id generation method util.generateID which uses util.generateObjectID by default. This method should be used rather than one of the others so that developers can pick which one they prefer.
Added array and typed array helper methods util.isArray, util.isTyped, util.isVector, util.isArrayLike, util.toArray
Replaced array and typed array checks in Tw2ValueBinding and Tw2FloatParameter with util.isArrayLike

/math/vec3

Added project and unproject methods
Added Cartesian from spherical methods vec3.cartFromSpherical and vec3.cartFromSphericalAndCenter
Removed the static Cartesian methods from from EveCurveLineSetItem and replaced with the above

/math/mat4

Added mat4.arcFromForward and removed the static version from EveLensflares
Added basic utility functions mat4.setTranslation, mat4.setTranslationFromValues, mat.copyTranslation
Added mat4.fromMat3 and replaced handwritten versions in Tw2AnimationController and Tw2GeometryRes
Added mat4.perspectiveGL so users don't have to convert co-ordinate systems with the standard mat4.perspective method
Added  mat4.lookAtGL so users don't have to try and convert co-ordinate systems with the standard mat.lookAt method
Removed ccpwgl.perspective from ccpwgl.js
Replaced ccpwgl.perspective with mat4.perspectiveGL in the firing.html demo

/math/curve

Removed Tw2AnimationController.EvaluateCurve static method
Replaces uses of Tw2AnimationController.EvaluateCurve with curve.evaluate

I'll hold off commiting /core/ directory and EveSOF refactoring, and new ray casting/ intersection methods until these changes have been reviewed.


collect UPS metrics

Currently UPS metrics are sourced via netdata in the form of a plugin that talks with NUT.
With netdata being removed, this needs to be solved in some other way.
Consider running a light-weight prometheus exporter for the UPS metrics and install it to rpis that are connected to the UPSs.
Ideas to explore:

https://e1e0.net/upsc-prometheus-exporter.html
<EMAIL_ADDRESS>https://github.com/p404/nut_exporter
https://github.com/jzck/prometheus-upsc-exporter

For now, this is the approach:

Will run nut-server, nut-client, ups-monitor services on each of the nodes where the UPS is connected directly

proxmox
proxmox-b
proxmox-c
k3s-pi4-c

Will manually install a fork of prometheus-upsc-exporter on each of the nodes above as a systemd service
Will 'point' prometheus-operator scrape job to these nodes & associated ports

This is done:


Make es_instance_conn_validator timeout configurable in elasticsearch…

…::template

Pull request acceptance prerequisites:

[ ] Signed the CLA (if not already signed)
[ ] Rebased/up-to-date with base branch
[ ] Tests pass
[ ] Updated CHANGELOG.md with patch notes (if necessary)
[ ] Updated CONTRIBUTORS (if attribution is requested)

Great, thanks for the contribution @pietervogelaar!


[INTEL MKL] Reshape bug fix

This PR ports changes from Eigen's Reshape in 36e10587b55 to MKL's Reshape by handling the case where tensor has 0 dimension and shape has unknown dimension.
This fix would cause //tensorflow/python/kernel_tests:reshape_op_test unit test to pass.

@josh11b gentle reminder for review.

pinging @penpornk for a review.


Support Strapi v5

Are there any plans to support Strapi v5?

For the time being, this is not planned. I mainly maintain the project on my free time which I don't have that much :D

I don't think the sdk needs much attention right now?
Main thing I think that changed is the returned format which in this SDK is totally up to your types?

Okay :)

@mariomurrent-softwaresolutions
I created this PR for v5 updates
https://github.com/Stun3R/strapi-sdk-js/pull/203

@mariomurrent-softwaresolutions
I created this PR for v5 updates
https://github.com/Stun3R/strapi-sdk-js/pull/203

Thanks for the contribution!
I will give a look in the following week and attempt to merge it + update/publish a new doc for it


Improve give-links-meaning-by-using-descriptive-link-text.spanish.md titles translation

Challenge description titles are now in Spanish.

[x] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[X] None of my changes are plagiarized from another source without proper attribution.
[X] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.

Thank you for your contribution. This is superseded by #34955, which will solve it for all challenges of all languages, so I'm closing this PR.


unrealcv_cmd not found

where can i get the unrealcv_cmd library? as mentioned in the doc https://github.com/zfw1226/gym-unrealcv/blob/v1.0/doc/addEnv.md
for adding new env

I am sorry for not updating the document in time.
It should be revised to  from gym_unrealcv.envs.utils.unrealcv_basic import UnrealCv.

Oh. Thanks!


Lose of focus while switching windows using Alt+Tab

Environment data

VS Code version: 1.56.2
Jupyter Extension version (available under the Extensions sidebar): v2021.6.832593372
Python Extension version (available under the Extensions sidebar): v2021.5.842923320
OS and version: Windows Version 10.0.19043
Python version: 3.9.1
Type of virtual environment used : venv
Jupyter server running: Local

Expected behaviour
The cursor and the notebook focus should remain same while switching windows back and forth.
Actual behaviour
The focus changes to the file navigation bar at the top on VS Code window, and it looks like only alt key is pressed and focus remains at the navigation bar instead of the notebook.

possible same reason in problem described here: https://github.com/microsoft/vscode/issues/123081

Thanks for the issue @SailorMax. Does this happen consistently to you? I'm trying it and normally the focus is preserved on the right cell, but if I do it enough times the issue does repro.
In either case, this is an issue with VS Code.
If you'd like a solution now, VS Code insiders defaults to our new native notebooks. The issue doesn't happen there.

@SailorMax, this issue in VS Code includes this. Please follow that.


Using #if changes indentation of multiple chained Function call and Member access exprs

When there is a chain of function calls like foo.bar().baz() that flows onto multiple lines, inserting a #if/#endif into the expr causes the indentation behavior of preceding lines to change.
Input
foo()
  .modA()
#if FOO
  .modB()
#endif

Output
foo()
.modA()
#if FOO
  .modB()
#endif

When the #if/#endif are removed, the .modA() is correctly indented 1 unit past foo(). I believe that .modA() should be indented 1 unit even when #if/#endif are present, and the contents of the if-config can be indented 1 additional unit.

Tracked in Apple’s issue tracker as rdar://126948290


Lack of Docker image

If there were a Docker image that contained this (building on top of, say, the official Postgres Docker image), that'd be great.  To that end, here's what I have so far by way of a Dockerfile:
FROM postgres

ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y curl git make golang && rm -rf /var/lib/apt/lists/*

# Install Steampipe
RUN /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/turbot/steampipe/main/install.sh)"

# Install the connector between Steampipe and Postgres
RUN cd /root && git clone https://github.com/turbot/steampipe-postgres-fdw.git
RUN cd /root/steampipe-postgres-fdw && ./build.sh

However, this fails as follows:
...
 -I./ -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o datum.o datum.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -I./include/postgresql/server -I./include/postgresql/internal -g -fPIC -I. -I./ -I/usr/include/postgresql/14/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2   -c -o query.o query.c
query.c:1:10: fatal error: steampipe_postgres_fdw.h: No such file or directory
    1 | #include "steampipe_postgres_fdw.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: query.o] Error 1
cp steampipe_postgres_fdw.so ~/.steampipe/db/12.1.0/postgres/lib/postgresql/steampipe_postgres_fdw.so
cp: cannot stat 'steampipe_postgres_fdw.so': No such file or directory
make: *** [Makefile:33: inst] Error 1
/root/steampipe-postgres-fdw
Removing intermediate container 6b9f90ed744f
 ---> ee893c60044c

I believe the key problem is currently fatal error: steampipe_postgres_fdw.h: No such file or directory.  If anyone could assist with that, it'd be appreciated.
Thanks!

After some time looking at this, I'm coming to the following conclusions:

The problem is probably that some of the files in the fdw directory need to be rebuilt from the .go files using cgo (see comment at top of fdw.c)
I'm unfamiliar with go and its build tools, so don't know how to do this

Again, any assistance appreciated.
Thanks!

Turns out I'm wrong; it just didn't show up in Google.  See https://steampipe.io/docs/managing/containers for information.


Create a Svelte version of the DEX Widget Demo

Create a Svelte version of the DEX Widget Demo

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
im good
How I plan on tackling this issue
im doin it


Having a way to run a KAT test in isolation would be a win

Let's say you're working on a new test, or trying to debug an existing test. The safest way to do that is just to run KAT over and over with make test or pytest, but it's slow, because KAT will try to apply all the manifests, wait for all the pods to be ready, etc. You can sort of mitigate this with e.g. pytest -k InvalidSecret, or change the Runner at the end to only reference your test instead of AmbassadorTest, but we've seen that mishandle manifests.
There should be a very quick way to manage this. If you're working only with the test logic, you shouldn't need to do anything with the manifests after the first time, and the runs should be very quick.


Using rc:/ override might not be a good idea

Currently, to make UDAs (adding/modifying tasks with UDA, filtering by UDAs) one needs to update the TaskWarrior's config, as described in docs:
http://tasklib.readthedocs.org/en/latest/#working-with-udas
This is a little bit tedious, since every application that uses tasklib, and wants to support UDAs, needs to either parse the .taskrc file itself, or have user specify the UDA configuration redundantly by some other mechanism.
Also, by using rc:/ we are using default values for other config settings, which may take users by surprise (i.e. if user sets a custom value for recurrence.limit, and then any tasklib call will generate more/less recurrence tasks than he wants to see).
The proposal here is not to override rc:/ at all.

Also, bypassing user's .taskrc, we circumvent the urgency coefficents.

Fixed in devel.

Not sure about this, since it means that tasklib will work differently on each person's machine depending on their config. Also the data location is read from the config file, which should really be made explicit.
Is there a compromise? Perhaps we need to explicitly set all the options that make tasklib work as it does so they override the config file, including data location.
Thoughts @tbabej?

We already do that - we override with data location and all the options that ensure that TaskWarrior calls are not interactive under any circumstances.
So the question here, really, which one of the following behaviours we should embrace:
(1) use '~/.taskrc' as the default taskrc
(2) use '/' as the default taskrc

The reason I went for (1) instead of (2) is that it just makes TaskWarrior() call work as one would expect, without any hassle. There is number of things which may cause unpleasant surprises for users, which want to use scripts with tasklib to alter their data in some way:

no configured UDAs will be available (and will become parts of description), if you create a task with any UDA attribute
default.project, default.due and uda.<name>.default values are not applied as they are used to
journal annotations about task modifications will be added desipte user's journal.info=off or journal.time=off values
number of days a task is considered due changes with due directive, which will affect the filtering by the +DUE virtual tag
recurrence tasks will be spawned desipte user's explicit wish for that not to happen on that host with recurrence=no
hooks will be executed despite user's preferences set in ~/.taskrc

All of these issues, which might a user encounter when trying out tasklib, persuaded me to put ~/.taskrc as a default. If users want to have explicitly consistent behaviour across different machines in their applications, they can use TaskWarrior(taskrc_location='/') to have the same behaviour that was implemented prior to this change.
So this is really a question of following the https://en.wikipedia.org/wiki/Principle_of_least_astonishment :-)

Sounds sensible! If we already do everything we need WRT overrides then it's all good I think. Thanks for the detail :)


chore(main): release 0.38.6

:robot: I have created a release beep boop
0.38.6 (2024-08-30)
Bug Fixes

bump @symfony/webpack-encore from 4.6.1 to 4.7.0 (#754) (6c68445)
bump phpstan/phpdoc-parser from 1.29.1 to 1.30.0 (#749) (c1395fa)
bump twig/extra-bundle from 3.11.0 to 3.12.0 (#748) (0d7e366)
bump zenstruck/foundry from 2.0.7 to 2.0.8 (#750) (fc5adea)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

0.38.6
:sunflower:


Allow for entering multiple identical morphemes in a sign

That is, a morpheme with the same gloss. (Other properties will differ, like the meaning in context.)
Currently, one can add one that is identical to one that is already there, but upon saving nothing happens (no error, no second entry in the morpheme table).

After some looking around in the code, I understand what is going on here. We have a database of glosses, and a databases of morphemes. For this functionality, these are linked directly as a ManyToMany relation called morphemePart, identified in the gloss. When you add the same morpheme twice, it tries to create a connection that was already there, so nothing changes. The solution would be to put an extra object in between (normal in Django, also done in various other places in Signbank) that represents the a connection between a gloss and a morpheme. So definitely possible, but more time consuming than you probably thought, @ocrasborn .
Also, before I do this: I'm confused about the various representations of morphology in Signbank. I the interface I see:

sequential morphology
simultaneous morphology
components
morphemes

In the code I see

Morpheme
Morphology definitions
Morphemepart

I have no idea how all of these relate to each other. Maybe we could organize a meeting with @vanlummelhuizen  to organize this for ourselves?

It's extra messy as @susanodd is in the process of revising some of the labels, and I think my instructions were not always clear or perhaps even not consistent. @vanlummelhuizen also suggested we sit down to discuss it, just like you suggest. We picked Wed 1 Feb for this 11am, but didn't check whether that's a Nijmegen day for you. If not, we'll move it to Thursday.

Any news here?

@Woseseltops  said:

The solution would be to put an extra object in between (normal in Django, also done in various other places in Signbank) that represents the a connection between a gloss and a morpheme. So definitely possible, but more time consuming than you probably thought, @ocrasborn .

Unfortunately, this procedure interferes with the Signbank-system upgrade process @Woseseltops is now doing. From what I heard it looks like he is almost done, but almost could mean anything, when several unforseen problems may still come up. So fingers crossed.
It's good you asked. It will give us some extra notion of priority.

From what I heard it looks like he is almost done

Correct. It's done and working on a separate branch already; I plan to merge to the master branch this week. I expect several problems to show up still, but enough of the main functionality seems to be working to put it in production.

It's good you asked. It will give us some extra notion of priority.

Agreed

See #220 : values for this new field can be different for multiple entries of the same morpheme

It's not yet working, right, @Woseseltops ? Branch yet to be merged?

This has been done already:

Added a new abstract layer between glosses and morphemes. This new model also has a description field where you can describe the relation in text
Replaced the old architecture with the new one in the detail view. You can see this one allows double morphemes here: https://signbank.science.ru.nl//dictionary/gloss/3283/
Populated the new table with all the simultaneous morphology that was already defined (copying from the old to the new system)

To do:

Make creating, deleting and updating (that is, only the R in CRUD is done so far) work again.
Look for other usages of the old system and update them.

Note that the definitions are also still 'alive' in the (now invisible) old system. I suggest we remove them there after some time once this new system makes people happy. I created #350 for that.
Also this issue inspired #351: refactoring variable names into something more clean and clear.

Added wrong number to commit b397ad9

Right, so creating and deleting simultaneous morphology is now also possible. When I wanted to start on updating, I discovered this was never implemented in the old system, which makes me thing it's maybe not worth the effort (you can also delete and create a new relationship)? What do you think @ocrasborn ?

We discussed this face to face last week; let's leave the updating (editing) for now. Can be closed?

Hoi jongens,
Ik weet niet waar dit precies over gaat. Ik heb gemerkt dat morfemen nu weer te editen zijn, da’s fijn! Maar toevoegen van simultane morfologie aan ID-glossen lukt op het moment helemaal niet. Anyway, ik geloof dat het vakantietijd is, dus nu even niet.
Groetjes,
Inge
Van: ocrasborn<EMAIL_ADDRESS>Verzonden: woensdag 12 juli 2017 13:07
Aan: Signbank/NGT-signbank<EMAIL_ADDRESS>CC: Zwitserlood, I.E.P. (Inge<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Onderwerp: Re: [Signbank/NGT-signbank] Allow for entering multiple identical morphemes in a sign (#261)
We discussed this face to face last week; let's leave the updating (editing) for now. Can be closed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/Signbank/NGT-signbank/issues/261#issuecomment-314736974, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZn-1SPYBN00mVZbcbJs58jnTh-gTO_6ks5sNKjIgaJpZM4LQ5Ci.

Hmm that's weird. I did some more extensive checks after the comments by @IngZwi, and it turns out it works for some glosses, but not for others :( . I'll investigate why.

Update: it appears to be related to displaying, everything is saved to the database correctly.

Forgot to mention that I (think I) fixed this Wednesday last week. Close?

Het werkt, hoera!
Van mij mag je ’t afsluiten, maar ik ga daar niet over … ;-)
i.
Van: Wessel Stoop<EMAIL_ADDRESS>Verzonden: donderdag 20 juli 2017 12:16
Aan: Signbank/NGT-signbank<EMAIL_ADDRESS>CC: Zwitserlood, I.E.P. (Inge<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Onderwerp: Re: [Signbank/NGT-signbank] Allow for entering multiple identical morphemes in a sign (#261)
Forgot to mention that I (think I) fixed this Wednesday last week. Close?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Signbank/NGT-signbank/issues/261#issuecomment-316660865, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZn-1XtFTVLGQsMvcdRTQGEA13Nr1VpJks5sPyjfgaJpZM4LQ5Ci.


Images missing when loading from blob

Issue:

The scene is saves as either an embedded image or json. The scene contains images.
When the scene is loaded using loadFromBlob(blob, null, null), the images do not appear in the scene (including on re-render).

Same for me:

Actually I am having the same issue. In Nextjs I am saving drawing in mongodb manually by clicking a button. I save it like this:
(although this is a short data but just for clarity I am writing here)
{   "_id": {     "$oid": "674c4bec6e1f05dff0df8b36"   },   "canvasData": {     "elements": [       {         "type": "rectangle",         "version": 456,         "versionNonce":<PHONE_NUMBER>,         "isDeleted": false,         "id": "pSkoo0w-_PLJCsveZgNYx",         "fillStyle": "solid",         "strokeWidth": 2,         "strokeStyle": "solid",         "roughness": 1,         "opacity": 100,         "angle": 0,         "x":<PHONE_NUMBER>882813,         "y":<PHONE_NUMBER>639823,         "strokeColor": "#1e1e1e",         "backgroundColor": "transparent",         "width":<PHONE_NUMBER>71875,         "height":<PHONE_NUMBER>24184,         "seed": 248427102,         "groupIds": [],         "frameId": null,         "roundness": null,         "boundElements": [],         "updated": {           "$numberLong": "1733053753245"         },         "link": null,         "locked": false       },       {         "id": "OkPC9eCaHEBF7q6gQHY32",         "type": "image",         "x": 1093.097802023286,         "y": 33.42593383789062,         "width":<PHONE_NUMBER>815534,         "height": 165,         "angle": 0,         "strokeColor": "transparent",         "backgroundColor": "transparent",         "fillStyle": "solid",         "strokeWidth": 2,         "strokeStyle": "solid",         "roughness": 1,         "opacity": 100,         "groupIds": [],         "frameId": null,         "roundness": null,         "seed":<PHONE_NUMBER>,         "version": 15,         "versionNonce": 947977301,         "isDeleted": false,         "boundElements": null,         "updated": {           "$numberLong": "1733061105269"         },         "link": null,         "locked": false,         "status": "pending",         "fileId": "518a0775d7d8e4a3cadd6285752343cb0a1b97d4",         "scale": [           1,           1         ]       }     ],     "files": {       "518a0775d7d8e4a3cadd6285752343cb0a1b97d4": {         "mimeType": "image/jpeg",         "id": "518a0775d7d8e4a3cadd6285752343cb0a1b97d4",         "dataURL": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/...CONTINUE..../9k=",         "created": {           "$numberLong": "1733061103491"         },         "lastRetrieved": {           "$numberLong": "1733061103491"         }       }     },     "state": {       "showWelcomeScreen": false,       "theme": "dark",       "collaborators": {},       ... CONTINUE       }   }, }
We can clearly see that I am saving 'elements, files, state' to backend. Actually I am getting these things from below function:
let elements = excalidrawAPI.getSceneElements();
const files = excalidrawAPI.getFiles();
const state = excalidrawAPI.getAppState();
And its saving correctly, but when I fetch data and update canvas with excalidrawAPI.updateScene(response.data[0].canvasData) then it shows drawing(line or box anything) and image skeleton instead of proper image. I don't know why.
Also when I save again this function excalidrawAPI.getFiles() give me an empty object.
In my understanding, everything is correct, but don't know what is missing here. I am adding image and saving it in base64 form with correct fileId and its reference in files but when fetching data then it shows image skeleton only.
This is how I am initializing it
`
<Excalidraw
theme={excalidrawTheme}
excalidrawAPI={(api) => {
setExcalidrawAPI(api);
}}
initialData={initialData}

`
Obviously there is some initial data and its working fine.
Here you can see I have added one picture.

Now when i get back next time then this shows.

Issue is resolved with this tiny code
excalidrawAPI.addFiles([   {     id: "pika",     dataURL: pikaDataURL,     mimeType: "image/jpeg",   }, ]);
from https://codesandbox.io/p/sandbox/excalidraw-files-example-r7ophm?file=%2Fsrc%2FApp.js%3A83%2C29-89%2C32


Focus on more content (increase width of box)

Move left hand side content to either top or bottom of the page.

and increase the width of box so, more content (text) could fit in a line.

For some git sub-commands, their documentation is very long which requires lots of scrolling to finish the reading and lots of space wastes in both left and right hand side of box which can be utilize by documentation content.

The (admittedly stalled out) site redesign does indeed move the navigation to the top of the page. This would make the content area somewhat wider, but we'd always have some sort of max-width because extremely long line lengths are terrible for readability.

site redesign does indeed move the navigation to the top of the page.

For now, we can move side content to the top and increase width of box until new design is not ready. And this shouldn't require much changes in the code.

extremely long line lengths are terrible for readability.

Indeed, if users want long line lengths, they should read documentation either on Kernel.org wiki or man page.

Let's just close this, there has not been enough activity to merit keeping this ticket open.


Unable to run mix ecto.create without password, but mix ecto.migrate works

I am running postgresql locally, and I allow my user to pretty much do everything with any local database, out of convenience.
The command line psql command automatically picks up my username, and tries to connect using that, and I would expect ecto to do the same if I don't provide one.
However, this does not seem to be the case.
Running mix ecto.create results in the following error:
** (Mix) The database for Phoenixtest.Repo couldn't be created, reason given: psql: fe_sendauth: no password supplied

However, if I create the database myself, using createdb my_app_dev, then running mix ecto.migrate works fine.
How to reproduce this:

configure some user to have full access to your local postgresql
create a new phoenix project (for example mix phoenix.new foo)
remove the database credentials from a config file (e.g. config/dev.exs)
run mix ecto.create and watch it fail
run createdb foo_dev
run mix ecto.migrate and it will reply with Already up

This means I cannot run mix test, because that task recreates and migrates the database, which in turn means that I have to have working database credentials, at least in my test config, if I ever want to be able to run mix test.
I have tried digging around in the ecto source code, and I noticed that migrations and storage creation seem to be run in different parts of the code, but I couldn't manage to find where to change anything to allow this.

The versions I used in my repro was:

phoenix 1.1.2
phoenix_ecto 2.0.0
ecto 1.1.1
posgrex 0.10.0

Oh, nevermind.
My database config was apparently wrong.
For anyone else encountering this:

host all my_user <IP_ADDRESS>/32 trust  will not work
host all my_user localhost trust will work

Also, Ecto master changed to use the same connections as ecto.migrate instead of using psql exactly because of those issues. So we hope this won't be a blocker to others soon. :D

I am having the same problem please.
03:59:37.098 [error] GenServer #PID<0.2959.0> terminating
** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
    (db_connection) lib/db_connection/connection.ex:148: DBConnection.Connection.connect/2
    (connection) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: nil
State: Postgrex.Protocol
** (Mix) The database for Hello.Repo couldn't be created: an exception was raised:
    ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
        (db_connection) lib/db_connection/connection.ex:148: DBConnection.Connection.connect/2
        (connection) lib/connection.ex:622: Connection.enter_connect/5
        (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

what do I do. new to elixir and phoenix, new to web programming.

It's not the same problem - it's a different error. Is your database server running?

Tried running that and it only produced another string of errors.
hello mix phoenix.server
[error] Postgrex.Protocol (#PID<0.221.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.215.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.223.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.214.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.217.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.216.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.222.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.220.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.219.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.218.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[info] Running Hello.Endpoint with Cowboy using http://localhost:4000
[error] Postgrex.Protocol (#PID<0.219.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.217.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
26 Oct 04:32:34 - info: compiled 6 files into 2 files, copied 3 in 1.8 sec
[error] Postgrex.Protocol (#PID<0.215.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.222.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.220.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.216.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
[error] Postgrex.Protocol (#PID<0.221.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused

The book I'm reading says:

If you receive database errors when running mix ecto.create, double-check your Hello.Repo username and password values in config/dev.exs and match your system settings where necessary.

I did and saw the following inside the file:

use Mix.Config

# For development, we disable any cache and enable
# debugging and code reloading.
#
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources.
config :hello, Hello.Endpoint,
  http: [port: 4000],
  debug_errors: true,
  code_reloader: true,
  check_origin: false,
  watchers: [node: ["node_modules/brunch/bin/brunch", "watch", "--stdin",
                    cd: Path.expand("../", __DIR__)]]

# Watch static and templates for browser reloading.
config :hello, Hello.Endpoint,
  live_reload: [
    patterns: [
      ~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
      ~r{priv/gettext/.*(po)$},
      ~r{web/views/.*(ex)$},
      ~r{web/templates/.*(eex)$}
    ]
  ]

# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"

# Set a higher stacktrace during development. Avoid configuring such
# in production as building large stacktraces may be expensive.
config :phoenix, :stacktrace_depth, 20

# Configure your database
config :hello, Hello.Repo,
  adapter: Ecto.Adapters.Postgres,
  username: "postgres",
  password: "postgres",
  database: "hello_dev",
  hostname: "localhost",
  pool_size: 10

don't know what to make of it or how to fix the error via it

don't understand what they mean by

match your system settings where necessary.

Okay, but that doesn't answer the question. You're trying to connect to Postgres - is Postgres installed and running on your machine?

yes it is

Problem solved. Took your advice and just downloaded another version of postgres and installed. then ran the mix ecto.create again:
hello mix ecto.create
Compiling 12 files (.ex)
Generated hello app
The database for Hello.Repo has been created
➜  hello

Thanks once again @sevenseacat  your question was the answer.

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

stack overflow:
ecto-postgres-install-error-password-authentication-failed
links this issue #1207 causing much confusion
The solution to:
 mix ecto.create
18:16:06.298 [error] GenServer #PID<0.178.0> terminating
** (Postgrex.Error) FATAL (invalid_password): password authentication failed for user "postgres"

is:
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo /etc/init.d/postgresql restart

reference:
solve-mix-ecto-create-postgresql-password-issue-with-phoenix
aside:
messing with pg_hba.conf as stack overflow above sugested led me to red herring error (DBConnection.ConnectionError) tcp connect: connection refused - :econnrefused
reinstall could fix ** (Postgrex.Error) FATAL (invalid_password): password authentication failed for user "postgres"
I think the key is config/dev.exs needs to match vaild postgres user
I installed postgres on debian jessie with:
sudo apt-get install postgresql postgresql-client
psql --version
psql (PostgreSQL) 9.4.9
each new install I need to fix postgres user password to match config config/dev.exs to work with
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
sudo /etc/init.d/postgresql restart

@jjahraus That's a great post describing solutions to some issues.
However, your solution to have the config/dev.exs username key match a valid postgres means that everyone who works on a project will have to have a postgres user with a specific username set up, since config/dev.exs tends to be checked into source control.
The reason I created this issue from the start is that I am lazy and didn't want to have to enter database credentials when running in dev, since I have configured my local postgresql to allow my user to access most of it... or so I thought, at least. As it turned out I had failed to configure pg_hba.conf properly.
Also, as @Gazler points out in the StackOverflow thread you linked to, in ecto 2.0, ecto won't use psql to create the database anymore, so my original issue here will no longer exist.

@Frost good points thanks for the info!  Ill keep this in mind next time I setup a system, for now I am happy I can contiune working through Programming Phoenix book.

@jjahraus Thanks for that! Now I can proceed.

This worked for me:

in pg_hba.conf, I changed the <IP_ADDRESS>/32 to localhost

Then in the terminal:

psql postgres
CREATE ROLE postgres;
ALTER ROLE postgres WITH LOGIN;
ALTER USER postgres CREATEDB;

$ mix ecto.create
Compiling 12 files (.ex)
Generated hello app
** (Mix) The database for Hello.Repo couldn't be created: FATAL 28000 (invalid_authorization_specification): Ident authentication failed for user "postgres"

06:08:13.522 [error] GenServer #PID<0.312.0> terminating
** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification): Ident authentication failed for user "postgres"
    (db_connection) lib/db_connection/connection.ex:148: DBConnection.Connection.connect/2
    (connection) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: nil
State: Postgrex.Protocol

tried everything above
OS : Fedora 25 (Gnome)
@josevalim

@m13m That is probably because you are trying to use ident authentication and you are not running a local ident server on port 113. I am also running Fedora 25 (but the XFCE spin) and I don't seem to even have an ident server installed.
I am guessing that this happens because Ecto nowadays tries to connect using TCP instead of a local socket (as explained earlier in this thread) combined with you not running an ident server locally.
If you have netcat installed, you can run nc localhost 113 to see if you get any response. If it only prints "Ncat: connection refused." then there is no ident server running.
I think the solution to your problem is to either install and start an ident server or edit your pg_hba.conf to either change the authentication scheme for your "postgres" user to something other than ident, or to have Ecto use another user to connect and make sure that user has an authentication scheme that works on your machine (password should work).
Here's the PostgreSQL docs page on authentication methods if you want more reading: https://www.postgresql.org/docs/9.0/static/auth-methods.html

Thanks @Frost To Fix the above Issue
Replace ident with md5
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:
host    all             all             <IP_ADDRESS>/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        <IP_ADDRESS>/32            md5
#host    replication     postgres        ::1/128                 md5

@roberthopman thank you :) that's the thing missing
on Mac OS to get up and running fast (with say Phoenix) simply run:
brew install postgresql &&   brew services start postgresql && psql postgres

then type:
CREATE ROLE postgres;
ALTER ROLE postgres WITH LOGIN;
ALTER USER postgres CREATEDB;

Then CTRL & D
then mix ecto.create

@jjahraus  your answer deserves a medal

Getting the same issue.
I'm currently on macOS Catalina with Postgres 12.2, elixir 1.10.2, phoenix 1.5.1
I tried reinstalling a couple of other Postgres versions as well going as far back as 9.6 thinking the issue could be related to postgrex dependencies, and made sure to recreate the 'postgres' user each time.
Here is my error message:
01:20:16.327 [error] GenServer #PID<0.352.0> terminating
** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
    (db_connection 2.2.2) lib/db_connection/connection.ex:87: DBConnection.Connection.connect/2
    (connection 1.0.4) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: nil
State: Postgrex.Protocol
** (Mix) The database for MyApp.Repo couldn't be created: killed

I have the 'postgres' user setup w/password set to 'postgres' aswell and this is present when I run \du:
postgres        | Superuser, Create role, Create DB                          | {}
dev.exs is set up like this:
config :my_app, MyApp.Repo,
  username: "postgres",
  password: "postgres",
  database: "my_app_dev",
  hostname: "localhost",
  show_sensitive_data_on_connection_error: true,
  pool_size: 10

pg_hba.conf looks like this:
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             <IP_ADDRESS>/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     trust
host    replication     all             <IP_ADDRESS>/32            trust
host    replication     all             ::1/128                 trust

I tried changing <IP_ADDRESS>/32 and ::1/128 to localhost, but got the same issue.  I'm totally stumped.

Getting the same issue.
I'm currently on macOS Catalina with Postgres 12.2, elixir 1.10.2, phoenix 1.5.1
I tried reinstalling a couple of other Postgres versions as well going as far back as 9.6 thinking the issue could be related to postgrex dependencies, and made sure to recreate the 'postgres' user each time.
Here is my error message:
01:20:16.327 [error] GenServer #PID<0.352.0> terminating
** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
    (db_connection 2.2.2) lib/db_connection/connection.ex:87: DBConnection.Connection.connect/2
    (connection 1.0.4) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib 3.12.1) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: nil
State: Postgrex.Protocol
** (Mix) The database for MyApp.Repo couldn't be created: killed

I have the 'postgres' user setup w/password set to 'postgres' aswell and this is present when I run \du:
postgres | Superuser, Create role, Create DB | {}
dev.exs is set up like this:
config :my_app, MyApp.Repo,
  username: "postgres",
  password: "postgres",
  database: "my_app_dev",
  hostname: "localhost",
  show_sensitive_data_on_connection_error: true,
  pool_size: 10

pg_hba.conf looks like this:
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             <IP_ADDRESS>/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     trust
host    replication     all             <IP_ADDRESS>/32            trust
host    replication     all             ::1/128                 trust

I tried changing <IP_ADDRESS>/32 and ::1/128 to localhost, but got the same issue. I'm totally stumped.

Usually, there is one line above that part of pg_hba.conf as well, and on my Linux installs, it looks like this:
local   all             postgres                                     peer

Are you able to log in to your local postgresql instance with the postgres user and postgres as password? The command for that should be something like psql --user postgres --password=postgres postgres.
I am guessing that will not work either, since your error message has (invalid_password) in it.
So I'm guessing that if you want to use the postgres user for authenticating, you either need to run your Elixir app as the postgres user locally, or set the password for the postgres accordingly.
If you want to just want any local account to access the database, try adding a line like this instead:
host    all             all             localhost            trust

This is pretty much what I did in my own first reply to this issue as well, except that I specified that I only trust my own user. If you do that, you shouldn't need the password field in the config at all.

tried both at the top of pg_hba.conf:
local   all             postgtres                               peer
host    all             all             localhost               trust

Also, running psql --user postgres --password postgres lets me sign in using 'postgres' as the password and it works totally fine.

I checked in SQL Shell provided by PostgreSQL. The default username is -> postgres and the password was set at the time of PostgreSQL installation.
I used the same password in dev.exs file and it worked.

weird that such issue still exist in 2021
Here is what worked for us

create a user with a password (without password it won't work)

CREATE USER yourusername WITH SUPERUSER PASSWORD 'yourpassword';
in case you have already a user created, you can alter the password like so:
ALTER USER yourusername WITH PASSWORD 'yournewpassword';

grand superuser privileges to the user:

ALTER USER yourusername WITH SUPERUSER;
Now go and run
mix ecto.migrate
Have fun!


asciidoc codeblocks

Hi,
Love your plugin, nice work.
However, if I want to escape formatting in AsciiDoc codeblocks, the Copy button does not work.
Example for such codeblock:
[subs="quotes",source]
----
source code here
----

This is the error message from Developer Tools console:
Uncaught TypeError: Failed to execute 'selectNodeContents' on 'Range': parameter 1 is not of type 'Node'.
Could you please check if you can add support?
Thanks a lot!
Imre

Hi,
I investigated a bit and it looks like adding the <pre> tag as code container in addition to <code> would solve the problem. Could you please add this modification and I would test it?
Thanks a lot!
Imre


Read file

Hi, with this library I can read a file?

Hi, with this library I can read a file?

Generally speaking yes, but can you give more details on what you need?

I Need read a file Whitch Is written with storage.create but i don't find any function in readme.

I Need read a file Whitch Is written with storage.create but i don't find any function in readme.

I added a new function called storage.read. It returns a string with the content of a text file. Update the plugin by running npm install nativescript-android-fs and go to readme for instructions.

Thank you!


train mandarin  ,eval stop_token_loss increase

hi,i try to train mandarin audio corpus use @begeekmyfriend 's griffin-lim branch code,alignment is good at step 10000，but synthesized wav(time long:08:14) is very bad expect the first 4 seconds, run demo_server.py on web,not matter how long the text input, it almost synthesize 37 seconds long audio file.and i found the eval stop_token_loss increased:

synthesize_step10000.zip
Anyone has same issues as me,and give me some advise,thank you!

and my params : GTA = TRUE,step-10000-eval_waveform_linear.wav is clear and sounds good, but  synthesis is really bad.
step-10000-eval-waveform-linear.zip

Please wait until the stop token loss reducing to zero. By the way, did you adapt the best ratio of N:T of the guided attention to your own corpus?

@begeekmyfriend thanks for your response and code branch !! i use the biaobei dataset for train, and i set max_mel_frames = 600, max_text_length = 300,outputs_per_step=3 to calculate N and T. Is such parameter setting appropriate? if the stop token loss still increase,how can i do?and i change the mask_encoder = True in order to Speed up the convergence of the model ,  Does this change affect the training results?i'm not familiar with tts,thank you.

Sorry I forgot to commit my newest hyper parameters for biaobei corpus. Please checkout https://github.com/begeekmyfriend/Tacotron-2/commit/6f5fe3f71d9ec592df5e003524f8d2bce7661c4d

@begeekmyfriend thank you, i will try.

@begeekmyfriend ,thanks for your advise, i trained the model after modify the max_mel_frames = 600, max_text_length = 150,but it doesn't work after step 45000 training,it almost synthesize 38 seconds long audio after 10 Chinese word input,and the quality of synthesis audio is very bad.The train loss and stop_token_loss curve seems normal, eval is not good as train.

train curve

eval curve
i'm confused about it, could you give me some advise about it ,thank you!

Please be patient and wait until the stop token curve stay on the horizon axis. The results would be all right at that time. I promise. You might try synthesizing at 60K-step.

@begeekmyfriend ok, look forward good result after more step train, thanks again.

By the way, in my test the encoder mask indicator has always been False. Is your attention (alignment) still kept?

@begeekmyfriend em,i changed mask_encoder to True after i saw a annotation in code,"#DO NOT MAKE THIS BIGGER THAN 1 IF YOU DIDN'T TRAIN TACOTRON WITH "mask_encoder=True"!!",I don't quite understand the meaning of the parameter， it's better to set it to "False"?

May i ask your more question?how about you eval stop_token_loss? My train stop_token_loss has been reduced during the train，but the eval has been increased so far .

There might be some problems in the calculation of the eval loss. So do not care about this. Let us forcus the effect of the evaluation results.
mask_encoder would enables memory_seqence_length in attention mechanism. See here. However without it we can as well synthesize out good results.

ok，i see, Thank you for your patience.

Hi,@begeekmyfriend ,After 110,000 steps of training, I synthesized 27 audios based on 27 Chinese Pinyin sentences, but only 3 pronunciations and pauses were good, 11 synthesized audios were 1 to 3 words less and echo problem, and another were poor audio echoes and word sequence confusion.  can you give me some advice, thank you again!
training_events:

good synthesized audio:
("bai2 jia1 xuan1 hou4 lai2 yin2 yi3 hao2 zhuang4 de shi4 yi4 sheng1 li3 qu3 guo4 qi1 fang2 nv3 ren2 .")
g_eval_batch_000.zip
words less and echo problem synthesized audio:
("na4 shi4 xi1 yuan2 shang4 gong3 jia1 cun1 da4 hu4 gong3 zeng1 rong2 de tou2 sheng1 nv3" )
l2_eval_batch_002.zip
word sequence confusion and echo problem synthesized audio:
eval_batch_020.zip

It is strange that the evaluation is not as good as expected while your training curves look good. What did the target lengths look like?

By the way, there is no long sentences in Biaobei corpus, therefore you need to synthesize part of the long sentences and concatenate them all.

It is strange that the evaluation is not as good as expected while your training curves look good. What did the target lengths look like?

the tartget lengths like that when run synthesize.py with eval mode:

target lengths = 2000  synthesize 25 second long audio although it only took 3 or 5 seconds can synthesize.

It is still strange that why there are so many target lengths with the same value 2000? Did you modify any code of my fork?

i didn't modify hparams, but just modify the /dataset/preprocessor.py, because the biaobei dataset i download that doesn't has ‘trn’ file ,so i  modified it.
my biaobei dataset content structure:

i don't use the .interval document.Read pinyin of each sentence from PhoneLableing/000001-010000.txt,
and get the corresponding wav file from Wave dir:

the length  of audio seems normal from generated train.txt:

your code:

my code:

Anything wrong with my code? Sorry, I am not familiar with TTS.

The input text you have extracted from the corpus seems in binary format. Try converting them into string format please.

@begeekmyfriend I didn't notice this error before， i will retrain model after modify this careless mistake，Thank you！

I have fixed the failure of stop token prediction. Please merge this latest commit https://github.com/begeekmyfriend/Tacotron-2/commit/9401b414829b05efa542aaf3dfd055bfe49d5d8a

By the way, the stop token prediction loss has reduced to zero and there should not be error in such token. Fortunately I have reappeared your issue. It is due to the input sentences that lead to such problems.
The evaluation should be all right if you input with this sentence.

"bai2 jia1 xuan1 hou4 lai2 yin2 yi3 hao2 zhuang4 de shi4 yi4 sheng1 li3 qu3 guo4 qi1 fang2 nv3 ren2 ."
And such input is all right as well.

"bai2 jia1 xuan1 hou4 lai2 yin2 yi3 hao2 zhuang4 de shi4 yi4 sheng1 li3 qu3 guo4 qi1 fang2 nv3 ren2"
But the input as follows would lead to problem since the last character in this sentence is a whitespace that never exists in the training dataset.

"bai2 jia1 xuan1 hou4 lai2 yin2 yi3 hao2 zhuang4 de shi4 yi4 sheng1 li3 qu3 guo4 qi1 fang2 nv3 ren2 "

@begeekmyfriend Thank you for your reply. I run your default branch, it has synthesized good quality audio after 30000 step training, really better than before!
"bai2 jia1 xuan1 hou4 lai2 yin2 yi3 wei2 ao4 de shi4 yi4 sheng1 li3 qu3 guo4 qi1 fang2 nv3 ren2."
eval_batch_000.zip
"na4 shi4 xi1 yuan2 shang4 gong3 jia1 cun1 da4 hu4 gong3 zeng1 rong2 de tou2 sheng1 nv3,"
eval_batch_002.zip
Only two little problem,It's hard to listened clearly about the pronunciation of 'de',another is some pause in sentence split word to two char pronunciation ，the  word pronunciation is not continuous ，especially in longer sentence. Such as , "wo xiang yao qu wai mian kan kan", the synthesize audio is good, but one bad pause in "wo xiang yao qu wai mian kan geng mei de feng jing",and missing the 'de' pronunciation too. Did think that reason is traning data is not enough？
geng mei de feng jing.zip
wo xiang yao qu wai mian kan kan.zip
wo xiang yap qu wai mian kan geng mei de feng jing.zip

Forgot to tell you that as for Biaobei transcipt you need 'de5' and 'le5' rather than 'de' and 'le'.

@begeekmyfriend,Hi! I'm facing problem of overfitting and the eval stop token loss is increasing, do you meet the same issue?

I am not responsible for any bad code modification.

may i ask your more question?i check the eval step in training,eval data equal training data multiplily a test ratio ,the eval sentence format is like that:
"fang3 zhen1 zhi1 cu1 hua1 ni2 deng3 yin4 hua1 mian4 liao4 de5 qiao3 miao4 yun4 yong4",i don't find the space white in sentence, so why the eval stop token loss still increase while training?

@begeekmyfriend OK, i got it ,modify 'de' to 'de5' ,because almost 'de' was notationed 'de5'  in the training data ,thank you!

brother, @begeekmyfriend , the training cuve,   the stop token curve stay on the horizon axis. as follow,

,
but , eval cuve is that,
,
i  Use mandarin-griffin-lim branch, set linear_prediction as False, then begin train biaobei corpus,
could you give me some advise about it ,thank you!

No need to care about eval curves, they do nothing with evaluation results.

@begeekmyfriend ,ok, thank you , sample of synthesize griffin_lim with mel , it sounds quite good,  thank you share,

You might use your GTA mel evaluation to train WaveRNN for better results.

No need to care about eval curves, they do nothing with evaluation results.

Hi @begeekmyfriend, I'm wondering why do you say the eval curves do nothing with evaluation results？ I check the source code, and the eval loss is calculated with 5% of the training data. Is there something wrong with the evaluation process?

I do not look closely into the code yet. Please look at the evaluation stop token loss, does it reasonable?

@begeekmyfriend Yes, sometimes the eval loss is indeed not reasonable, I'm not sure for the reason.


Sign up returning status 405 when redirecting

With the start for free button (as well as Sign in button), this comes up.

Same


[ERROR] Getting error Can't resolve module "button.mjs"

Hi community,
I am trying to build nextra from source code but there is an error each time I do. After I run cd packages/nextra && pnpm build && pnpm dev, cd packages/nextra-theme-docs && pnpm build && pnpm dev. And when I try to run cd examples/blogs && pnpm run dev, This gives the error mentioned below.

Do you use windows? Should be fixed by https://github.com/shuding/nextra/pull/1894

It's fixed by using WSL. Thanks for the help sir! ❤


network: adding some accessors for ALPN work.

Adding some basic functionality to the Network::Connection needed to disassociate TCP connections from their connection pool before handing them off to a codec client.
Additional Description:
I really wanted to add Network::Connection Connecting as a state, and I did a PR to that effect and cleaned up the 30 or so call sites in Envoy, but then realized that because it broke nearly every use of state, we either needed to have a separate boolean, or change all the enum values so folks would have to fix their downstream code.  I chose the former as the lesser of two evils.
I also waffled a bit about removing the callbacks or sticking with the remove pattern in codec_helper.h and went with consistency over cleanup.
Risk Level: low (not yet used)
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a
Part of #3431

yeah, I've got a PR which works (with hard-coded ALPN) for either HTTP/1 or HTTP/2 integration tests, so I'm pretty solid these will land (and I'll back them out if for some reason the plan drastically changes)
Trying to split smaller things out to make the core code easier to review


[SPARK-42088][PYTHON][WINDOWS][BUILD] Improve setup.py adaptation for Windows

What changes were proposed in this pull request?
Update the supports symlinks method in setup.py

Why are the changes needed?
My system version is windows 10, and I can run setup.py with administrator permissions, so there will be no error. However, it may be troublesome for us to upgrade permissions with Windows Server, so we need to modify the code of setup.py to ensure no error. To avoid the hassle of compiling for the user, I suggest modifying the following code to enable the out-of-the-box effect

Does this PR introduce any user-facing change?
Such an update would allow users to build spark without dealing with windows specific situations

How was this patch tested?
need to run setup.py with and without administrator permissions in windows to eventually build python packages properly

@zekai-li mind keeping the PR template (https://github.com/apache/spark/blob/master/.github/PULL_REQUEST_TEMPLATE) please?

@zekai-li mind keeping the PR template (https://github.com/apache/spark/blob/master/.github/PULL_REQUEST_TEMPLATE) please?

Modified, thank you very much. First attempt to submit pr to spark

Merged to master.


fix(test): correct reference to cluster for bdd test

This PR is obsolete and replaced by https://github.com/openshiftio/openshiftio-cico-jobs/pull/766.


brace characters mess up img tag

iex(11)> Md.parse("![title](https://mail.3qin.us/~derek/blog_imgs/pics/the_republic.jpg)")
#Md<[
  path: [],
  ast: [
    {:img, nil,
     [
       "https://mail.3qin.us/",
       {:s, nil, ["derek/blog", {:i, nil, ["imgs/pics/the"]}, "republic.jpg)"]}
     ]}
  ],
  internals: [mode: [:finished], indent: [], stock: [], deferred: []]
]>

If the src does not have brace characters like _ or ~ then it is ok:
iex(8)> Md.parse("![](https://mail.3qin.us/derek/blogimgs/pics/therepublic.jpg)")
#Md<[
  path: [],
  ast: [
    {:img,
     %{
       src: "https://mail.3qin.us/derek/blogimgs/pics/therepublic.jpg",
       title: nil
     }, []}
  ],
  internals: [mode: [:finished], indent: [], stock: [], deferred: []]
]>

title can mess up the ast too:
iex(16)> Md.parse("![a_b](a.jpg)")
#Md<[
  path: [],
  ast: [{:img, nil, ["a", {:i, nil, ["b](a.jpg)"]}]}],
  internals: [mode: [:finished], indent: [], stock: [], deferred: []]
]>

Maybe we should parse the pair contents in raw mode.

Hi @derek-zhou,
yep, thanks for the bug report, will fix it ASAP.


Fix KQL for Trace Errors/Warnings

To see all logs of severity level "Information" or greater it should be >= 1

@nytian
Can you review the proposed changes?
Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@nytian
Can you review this old PR and determine whether it needs to be closed or merged?
@MicrosoftDocs/public-repo-pr-review-team

yes please, hate to see PRs getting staled

yes please, hate to see PRs getting stale.

@jaliyaudagedara Would you add a comment to indicate what action to take on this PR? 	Thanks!
@MicrosoftDocs/public-repo-pr-review-team

@v-dirichards,
I'd like to get this PR reviewed and if approved, merged it in.


The simulation of floating offshore wind turbines considering substructure hydroelasticity

Dear all
I recently try to simulate the hydroelastic effect of the substructure of OC4 DeepCwind semisubmersible FOWT. From what I understand from the openfast user guide, it seems to be implemented mainly by modifying the input file of Subdyn. However, when I try to run openfast, it cannot open Subdyn. Do I need to make changes to other input files? And are there any relevant cases in the r-test folder for reference. The main input file and the Subdyn input file are shown below. Looking forward to your answers!
main input file.txt
subdyn input file.txt

The error reported by openfast is shown in the figure.

Is this the name of your input file?  NRELOffshrBsline5MW_OC4DeepCwindSemi_SubDyn (without any file extension?)
Check that the main input file's value for SubFile (line 41) is set properly.
Here are OpenFAST regression test input files for the "Semisubmersible Floating System for Phase II of OC4": https://github.com/OpenFAST/r-test/tree/main/glue-codes/openfast/5MW_OC4Semi_WSt_WavesWN

Dear @bjonkman
I have modified the main input file as you suggested. However, the following error occurs when running openfast. Which part of the Subdyn input file should I modify? Looking forward to your answers！
Running SubDyn.
Floating case detected, Guyan modes will be rigid body modes
Guyan extra moment and rotated CB-frame will be used (floating case detected)
Performing Craig-Bampton reduction 1614 DOFs -> 10 modes + 6 DOFs
[INFO] Negative eigenvalue found with small norm (system may contain rigid body mode)
......
FAST_InitializeAll:SD_Init:Craig_Bampton:CraigBamptonReduction:CraigBamptonReduction_FromPartition
:EigenSolveWrap:EigenSolve:Zero eigenvalue found, system may contain rigid body mode
OpenFAST encountered an error during module initialization.
Simulation error level: FATAL ERROR
Aborting OpenFAST.

Dear @JackyzhangHJ,
I would guess there is a problem with how you’ve set up your SubDyn input file, e.g. the member or joint definitions.  Are all joints that you've specified interconnected by members?
Best regards,

Dear @jjonkman
Thank you for your advice. I tried to do hydroelastic analysis for Spar platform (less number of members and joints than OC4DeepCwind). Openfast works fine with SubDyn. Thanks again for your suggestion.


Is there any ways to get some working example which uses API like on demo example video

𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻
Hello Apostolis! First I want to say thank you for all your work you have done for the Xpand. And the second i want to ask you if you can provide some example you showed on this video:
https://www.youtube.com/watch?v=m64GpvdwxRc
I just want to get some success example which i can use to explore how it's work in a real world. Maybe some similar example to this video will be very helpfull. Thank you again my friend!

i cannot share a project, but I consider working example the tests for this module e.g. u can see the objects declared in the BO folder and u can review the tests to see the use those objects.  Then is a matter of spending time experiementing how the module works

I saw you have mention i an video that pagination is worked, i just want to see how it's work, maybe there is some special functions

all the data are in memory (Non-Persistent objetcts), so u can feed them as datasource to a grid with pagination enable, is not really pagination per endpoint

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


Handle Additional LDAP Exceptions

While evaluating this product, I found that the user was presented with a generic exception page when a password change was attempted to an LDAP server that was not accepting socket connections. As a result, I've put together a minor PR that handles the specific LDAPSocketOpenError exception from the ldap3 library, while also handling the more generic LDAPExceptionError exception from the same package.
When handling these errors, I'm writing out a message via the Logger.getLogger(__name__) object as a major log type. I'm also raising a Error exception which gets handled in the Bottle view methods.
This should make things more apparent to the user, while also preventing an elaborate exception backtrace from appearing in the logs.
I also found a minor spelling error in the LOG.warning() call that I've included in this PR.
Please let me know if you'd like for me to change anything with this PR. Thanks for considering it!

Thanks for you contribution with detailed description!


[BUG] @types/chrome is not working

What happened?
When I scaffold this project using --with-svelte and then create background.ts, and then installing @types/chrome to add autocomplete to chrome namespace, it simply didn't work (the lsp is saying cannot find name 'chrome'  )
I don't know if this only happens in svelte template or it happens in all templates.
I tried workaround stated in this link: https://stackoverflow.com/questions/47075437/cannot-find-namespace-name-chrome
basically I need to add /// <reference types="chrome"/> to the top of background.ts file, and it started to work.
but other chrome extension boilerplate (like crxjs) works out of the box without needing me to do the workaround.
Any pointer to why this happens?
Version
Latest
What OS are you seeing the problem on?
Linux
What browsers are you seeing the problem on?
No response
Relevant log output
No response
(OPTIONAL) Contribution

[ ] I would like to fix this BUG via a PR

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

Have you tried deleting node_modules and re-downloading the dependencies? This doesn't look like a plasma issue.
Or use tsc --noEmit to check if this is just vscode bug.

I've just tried all of those ( deleting node_modules and redownload, tsc --noEmit ), nothing works.
What works for me is:
adding "chrome" to types array in tsconfig.json ,
something like this:
{
  ... // other
  "types": ["svelte", "chrome"]
}

Thanks for helping me. I'm closing this since I solved the issue.


Generate Updated Material Icons

Updates:

Updates the material design icon source Fixes #730

Fixes:

Fixes all digit names (ie. 360)
Fixes any paths that have fill colors on it (non-none values) Fixes #870
Handles other sizes than 24px

@jacobwgillespie PTAL

Ping @jacobwgillespie

Hey, thanks for this!

This should be released as v8.4.0 once the CI build completes! 🎉

You're welcome! Thanks for taking a look and merging!


[Community Zoom Admin Access] Assignment

https://docs.google.com/spreadsheets/d/1bN00rsPpw54CnCjNHHdrty0bvSA5vi1ei7TDXSOf89o/edit#gid=1206744069

This AM, John and I met and we troubled shooted access.
If Monday's mktg call goes well with today's trouble shooting, the Zoom access will be distributed to the other Admins across the MP community :)

@ederks85 how do you feel about gaining access to the Zoom to help with Community hangout?
John and Kevin have already access it. I think and recommend that you as the Committer Rep, also gain access. :)

Completed with Kevin and John continuing to help : )


manually add cache entry?

After I POST a file to my server I get back a url to the file. I'd like to add this url to the cache manually with the data I just uploaded so I don't have to waste bandwidth on a GET. Is this possible? Previously did this with apache's http client using the following code:
            private final StatusLine mImageStatusLine = new BasicStatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "");

            fis = new FileInputStream(new File(new URI(localUri)));
            byte[] imageData = Utils.inputStreamToBytes(fis);

            HeapResource resource = new HeapResource(imageData);
            Date date = new Date();
            String sDate = DateUtils.formatDate(date);

            Header[] cacheHeaders = new Header[3];

            // create fake cache entry
            cacheHeaders[0] = new BasicHeader("Last-Modified", sDate);
            cacheHeaders[1] = new BasicHeader("Cache-Control", "public, max-age=31557600");
            cacheHeaders[2] = new BasicHeader("Date", sDate);

            HttpCacheEntry cacheEntry = new HttpCacheEntry(date, date, mImageStatusLine, cacheHeaders, resource);

            SurespotLog.d(TAG, "creating http cache entry for: %s", remoteUri);
            mNetworkController.addCacheEntry(remoteUri, cacheEntry);

            // update image cache
            if (message.getMimeType().equals(SurespotConstants.MimeTypes.IMAGE) || message.getMimeType().equals(SurespotConstants.MimeTypes.M4A)) {
                MessageImageDownloader.copyAndRemoveCacheEntry(localUri, remoteUri);
            }

OkHttp has no APIs to seed its cache.

And I don’t think we’ll add ’em. There’s a lot of difficulty in doing that well.


Changing the panorama scrolls speed option changes the camera position in the panorama background

If you change the panorama scroll speed option, it changes the position of the panorama. It looks like the position of the panorama is multiplied with the panorama scroll speed option. This means that there is only one single position of the panorama possible if the panorama scroll speed option is set to 0%. I guess there is some value that determines the position, where the panorama currently is and this number is increased every frame. The panorama scroll speed option should multiply the number that is added to this value, not the value itself. That would probably fix it and match with the panoram scroll speed option in vanilla. (In vanilla the panorama rotates, while on LCE it is a flat screen where it scrolls.)
https://github.com/Wilyicaro/Legacy-Minecraft/assets/166852932/56959bdd-0718-4772-92c3-5b357e0a37ed
https://github.com/Wilyicaro/Legacy-Minecraft/assets/166852932/86895375-af29-44bb-815c-5efbeb472cfc

In vanilla, the speed of the panorama does not make it rotate (move horizontally in the case of the Legacy4J panorama), simply because the value added to its rotation is "stored", while in Legacy4J it's based on the current time since the game was started, which makes it more optimized in a way. And of course, I knew about this movement, but I decided to keep it because I think it's a very silly detail.

while in Legacy4J it's based on the current time since the game was started, which makes it more optimized in a way.
That probably means that it stops spinning if this time overflows. This was an issue in vanilla and fixed in 22w42a. https://youtu.be/H6wa62K8hM4?t=717 (I assume that this happened because the number overflowed)

I don't think this will cause an overflow, since I don't use the entire value for the movement effect, it stays in a loop due to using the remainder of the division


Fix "The resource is not ready" errors in CI

Motivation
We've had multiple PRs fail with:

Run gcloud compute instances create-with-container "update-to-tip-5020-merge-5690565"
ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

The resource 'projects/zealous-zebra/global/images/zebrad-cache-main-bc7294f-v25-mainnet-tip-u-0901230920' is not ready

https://github.com/ZcashFoundation/zebra/runs/8146703881?check_suite_focus=true#step:7:77
Originally posted by @teor2345 in https://github.com/ZcashFoundation/zebra/issues/5020#issuecomment-1234993941
Tasks

[ ] When selecting images for tests, add a status: READY filter
[ ] When selecting the 2 images to keep, add a status: READY filter
[ ] When selecting images to delete, do not add a status: READY filter, because we are already filtering out recent images

I haven't seen these errors recently, I wonder if they are caused by rate-limiting?
We can fix this error by searching for images with status: READY whenever we list images.

I saw this error again today:

ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

The resource 'projects/zealous-zebra/global/images/zebrad-cache-4870-merge-b5a7d9f-v25-mainnet-tip-u-0908213122' is not ready

https://github.com/ZcashFoundation/zebra/runs/8259255840?check_suite_focus=true#step:7:78

It looks like this is now less frequent than the other Google Cloud errors, but still important to fix.


Fix the lkvm support on ARM platform

Hi,
After the runv update to the latest upstream. I found the runv could not work properly with the lkvm.
There are two reasons cause such result.

We have moved the VM console connect code to a standalone function. But we call the function
before grpcSock created. But this function could not return before proxy.NewServer completed.
We have ignore the READY message. This will cause the communication between runv and hyperstart
could not work properly, especially on some old server, the VM could not boot very quickly.

Regards,
Wei Chen

@laijs
please help to review proxy related pr, thanks!

lkvm related commits looks good to me.
@laijs  please help to review proxy related commit, thanks

@laijs
Hi JiangShan, I have updated the change, please give some comments : )

Hi,
Sorry for disturbing, but any comments?

it is some different between lkvm & qemu.
I'm going remove the watch code and add it back later with file-type-detect or other solution.

Hello, it's fix by #640

@laijs
Thanks, I will rebase this PR to #640

Hi Guys,
Could you help me to check the Travis CI issue? I am not sure whether this CI issue is caused by this patch.
Regards,
Wei Chen

@Weichen81 due to recent changes with unknown reason, shim or proxy fails to receive all the stdio data for the case runv exec test_busybox command-does-not-exist sometimes. I restarted the test for you now.
It will be fixed later.

LGTM and the test passed, thanks!


Multiple References of Different Content Types

Hey @davidpett, first of all, thanks for building this! I am a pretty new Ember user so please forgive me if this is a really novice question.
How can one go about defining a model that has a field with many references of different content types?
In my case, I have a content type that has a field called "modules". The modules field is a "many reference" field type in Contentful. Specifically, I have set this field up to allow the user to select from one of several different content types.
At the moment, my model looks like this:
import Contentful from 'ember-data-contentful/models/contentful';
import attr from 'ember-data/attr';
import { belongsTo, hasMany } from 'ember-data/relationships';

export default Contentful.extend({
  title: attr('string'),
  subtitle: attr('string'),
  metadata: belongsTo('metadata'),
  modules: hasMany(['module-copy', 'model-testimonials'])
});

Note how there is a modules field that currently allows a user to reference many module-copy, and module-testimonials content types. How can I get this to work? Currently there are no errors, but the models have all undefined content for each field.
Many thanks!

Hey @bretmorris, I have done something similar to this before, the idea is to have a base model (module.js) and then any module will then extend from that base module. I like to create a component for each of those modules as well to easily place them on the page with the {{component}} helper. Here is a gist that illustrates the point: https://gist.github.com/davidpett/b56e962e2109fa02671f17e238f1006b

@davidpett thanks so much for the gist! I almost have it working but for some reason the components are never printed to the page. Here's a gist I threw together. Anything stand out? https://gist.github.com/bretmorris/1c6787b45e5565260e98daaf8300b039

@davidpett here's what my ember dev tool data tab looks like:
modules: https://cl.ly/251i0j3k2l0K
module-copy: https://cl.ly/0X3w150O2O39
module-testimonial: https://cl.ly/141a3l1V0V1E
The copy and testimonial modules look perfect but as you can see, the modules model shows everything as undefined. I believe this explains why the component helper isn't displaying the components on the page.
Any ideas?

Looking at my app more (it's been a while) I have all of the attrs for all
sub modules in the module model. The sub modules are blank except for the
Module.extend. I can't remember why exactly that was, but it works
On Thu, Apr 6, 2017 at 1:15 PM Bret Morris<EMAIL_ADDRESS>wrote:

@davidpett https://github.com/davidpett here's what my ember dev tool
data tab looks like:
modules: https://cl.ly/251i0j3k2l0K
module-copy: https://cl.ly/0X3w150O2O39
module-testimonial: https://cl.ly/141a3l1V0V1E
The copy and testimonial modules look perfect but as you can see, the
modules model shows everything as undefined. I believe this explains why
the component helper isn't displaying the components on the page.
Any ideas?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/davidpett/ember-data-contentful/issues/24#issuecomment-292261624,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEZAmsbCzZe_Wdwwz8DhvlxLBteJ4X-ks5rtSvJgaJpZM4M1AsM
.

Yeah I realized that too @davidpett. Still not quite working for me. It looks like this line is the issue:
moduleType: computed('contentType', function() {
    return get(this, 'contentType') ? `${get(this, 'contentType').dasherize()}` : null;
})

null is being returned every time because get(this, 'contentType') is always undefined.

Hey @davidpett wanted to point out that I created a stackoverflow for this http://stackoverflow.com/questions/43332852/ember-hasmany-with-multiple-models. This seems like it could be a very common issue someone would run into when using this plugin.

Thanks @bretmorris, would it be possible to create a small ember twiddle or a private repo that you can share with me so I can see more of what's happening? I'm also frequently on the ember slack if you want to chat realtime

Absolutely. I just got on the ember slack as well and posted this question their too. I'll put together a twiddle tomorrow and send it your way. Really appreciate your help.

For anyone having a similar issue, downgrading to version 0.2.1 fixed the problem. @davidpett is aware and is looking into a fix sometime in the future.

@bretmorris Just so I can get a test case from a data stand point for this. You have a page content type with a many reference to multiple entries with various content types. I have a couple of hunches of what might be going on. I'll try to dive into this over the next couple days.
/cc @davidpett I broke it. I'll fix it 😅

exactly @morganick

@bretmorris I know this issue is very old. But do you know if the current version has this fix? And how work with multiple content types in a same reference? I'm very lost with this.
@davidpett Is this repo still maintained?


[tooltip] Missing import

add missing import to tooltip that use popover-card

Thanks a lot for fixing this import 👍I have merged it into master.


Link to JavaDocs

Reviewer checklist

[ ] Read the contributing guide
[ ] PR should be motivated, i.e. what does it fix, why, and if relevant, how
[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage: 98.8%. Remained the same when pulling 8fdd21aa00d34b1b0e72d695fe0f6dfb0f582c7d on javadocs into 0ddafa900398267f46e06cabc47c3b1b71680cec on main.


Empty attributes do not get added

The new release of Mithril.js appears to drop empty attributes when creating video elements using m(). This was working in 0.2.3.
For example, m('video[width=200][height=100][loop][autoplay]') would create  <video width="200" height="100"> but does not add loop and autoplay.
JSBin

@lhorie Should we backport the hyperscript parser from the rewrite? I know it works there.

Fixed


Update tooling and protocols

merged abandoned georgiosd's PR #15
some other updates (protocols from Chrome 60, headless mode, example takes screenshot of the page, SendAsync returns correct response)

@svatal Do you think it would be possible to split off the protocol update in a separate PR? That would make the PR easier to review 😄 .

@qmfrederik Hmm, I do not see a easy way how to do it - both code and protocol changes depends on each other. I had to fix protocol generator after updating protocol and on the same time the newly generated code is needed to return correct result from SendAsync

@brewdente Cool to see this got merged. Any chance we get an updated NuGet package, too? 😄

@brewdente Really happy to see the changes merged, but what about the ErrorResponse?
Before, it has been an user's obligation to check the response if no error was returned and just then cast it to correct response type (although I doubt people were doing it).
Now, the error case is unhandled and it will throw while casting and the ErrorResponse will be lost.
What can be done from my point of view:
a) throw intentionally with the ErrorResponse included
b) return a proxy-response that will have isError, Result and Error and throw nice error when accessing the wrong getter.
I was initially rooting for the a) case, but while polishing the b) case, it seems to be perfectly suitable to both usages (either checking for error first or going the happy path), so I'll try to implement the second option.

should be solved in PR #23

@qmfrederik heh ... i was doing it anyways.  but i'm glad you were a fan of it too.  I questioned the nuget version number ... ultimately went with 1.1.0 (which I think is right semantically).


TypeScript: Property 'autoplay' does not exist on type for

If I specify the 'autoplay' attribute for an  element to make it play immediately, (as specified here) I get the following error:
Property 'autoplay' does not exist on type 'DetailedHTMLProps<AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>'.

When I change the attribute to autoPlay the autoplay no longer works.

Yea what's the deal with this?

Why is this a snabbdom issue, please?

Because snabbdom is a TypeScript library and autoplay is an attribute on the audio element.
https://www.w3.org/TR/html50/embedded-content-0.html#the-audio-element

Snabbdom probably sources these properties from TypeScript's DOM types library itself. Doesn't it?
Here is the autoplay property:
https://github.com/microsoft/TypeScript/blob/219a570a75f1c3df67ae0282e41848b87781fc51/src/lib/dom.generated.d.ts#L7615
I couldn't find where DetailedHTMLProps or AudioHTMLAttributes come from. Help?

just came across this while searching for another answer. use autoPLay.


Ensure trailing trivia is trimmed from @Suite trait expressions

This ensures that if a @Suite includes one or more trait expression which includes trailing trivia, such as a //-style line comment, it is trimmed so that the macro expands to valid code.
Resolves #777
Checklist:

[X] Code and documentation should follow the style of the Style Guide.
[X] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test

Should we cherry-pick to release/6.0 and/or release/6.0.2?

Should we cherry-pick to release/6.0 and/or release/6.0.2?

Unclear whether it's worthwhile since I'd consider this a fairly minor bug with an easy workaround. But if anyone wants this in pre-6.1, please chime in here and we can can consider it.