Add Page dialogue closes unexpectedly when trying to change Page Template

Problem:
When creating a new page in Grav Admin and trying to select a custom page template, the Add Page dialogue closes unexpectedly. It is therefore not possible to create a new page with a custom page template via the Add Page dialogue. In fact it is possible, but only when opening the Add Page dialogue for a second time.
System configuration:

Apache 2.4.46
PHP 8.0.1
Grav v1.7.7
Admin Panel v1.10.6
Custom page template in custom theme
Firefox 86.0 (64-bit)

Steps:

Go to project.tld/admin and authenticate
Go to Pages
Click on Add Page
In the dialogue set a Page Title
In the dialogue try to select your custom template

Observations:

First, this only happens in Firefox for me. Chrome or Safari do not show the same behavior.
The Add Page dialogue only closes when the item you are trying to select in the Page Template select is outside of the actual Add Page dialogue (meaning, the Page Template select itself reaches out of the Add Page dialogue).

this has been also reported with https://github.com/getgrav/grav-plugin-admin/issues/2065 , although was fixed in https://github.com/getgrav/grav-plugin-admin/issues/1682 .
not sure how this is an issue again, needs investigating.

I can confirm the issue.


Initializer called multiple times

Question
How to ensure that ViewModel would be initialized once?
Problem description
I am wondering what should I do to be sure that ViewModel object would be initialized once, because in my current implementation it doesn't work as I expect.
Here is my Screen:
struct TestScreen: Screen {
    var presentationStyle: ScreenPresentationStyle = .push

    struct Builder: NavigationTree {
        var builder: some PathBuilder {
            Screen(
                TestScreen.self,
                content: {
                    TestView(viewModel: .init()) // <- called multiple times.
                },
                nesting: {
                    TestSecondScreen.Builder()
                }
            )
        }
    }
}

So I changed implementation of Screen to:
struct TestScreen: Screen {
    var presentationStyle: ScreenPresentationStyle = .push

    struct Builder: NavigationTree {
        let viewModel: TestViewModel = .init()

        var builder: some PathBuilder {
            Screen(
                TestScreen.self,
                content: {
                    TestView(viewModel: viewModel) // <- called multiple times, but ViewModel is the same.
                },
                nesting: {
                    TestSecondScreen.Builder()
                }
            )
        }
    }
}

But when it comes to initialize ViewModel that expects data previous implementation won't work. Here is the example of what I have in that case:
struct TestSecondScreen: Screen {
    let title: String
    let id: String

    var presentationStyle: ScreenPresentationStyle = .push

    struct Builder: NavigationTree {
        var builder: some PathBuilder {
            Screen(
                content: { (screen: TestSecondScreen) in
                    TestSecondView(viewModel: .init(id: screen.id), title: screen.title)
                }
            )
        }
    }
}

Hi @onl1ner!
Thank you for your question, you raise a very valid point. Both NavigationTree and PathBuilders are considered stateless, 'pure' structures that are re-initialised whenever needed. Therefore, NavigationTree cannot retain ViewModels, similar to SwiftUI Views. I would recommend, that you retain your ViewModel either in the View (as a @StateObject) or you hand it down the NavigationTree and retain it in your app root. As @StateObject solves this problem in iOS 14 and above, I decided not to invest too much time into this issue and keep it outside the library's domain.
If you have any other, open questions, let me know. Happy to help! :)

Thanks for your response and suggestions, as I understand there is no way to build MVVM module so the View wouldn't know about the data that is passed to ViewModel? Because if we are going to use @StateObject wrapper we have to initialize object at declaration so there is no way to pass data to initializer, so it forces to create an initializer with no parameters and pass data, for example, in onAppear(perform:) function.
If so we will end up using @StateObject :)


How to get depth point cloud in terms of global co-ordinate frame.

I am collecting depth and pose data using this script -
mod.txt
then i convert the depth image to pointcloud using this script -
PC.txt
Here the pointcloud is in car reference frame and the pose data contains translation(x,y,z) and rotaion (roll,pitch,yaw) information of the car with respect to global reference frame.
How can i convert the pointcloud to global frame?
I want to merge the pointclouds in global frame to make a map.
I am using carla 0.9.8. in windows 10.

@saminhasan  May I know how you resolved the issue? It would be helpful if you could share the script. Thanks


Add support for ed25519

This should (probably) just require adding an entry here: https://github.com/github/ietf-cms/blob/main/oid/oid.go#L128

Pls


[Task] Normalize obs in MultiLevelRobot

I forgot to normalize some of the obs in MultiLevelRobot:

[ ] Normalize obs
[ ] Retrain onnx model
[ ] Update video on readme with the newly trained model

It will be interesting to see the difference in performance

I've tried normalizing with the following code in AIController:
	var closest_coin = level_manager.get_closest_active_coin(robot.global_position, robot.current_level)
	var closest_coin_position: Vector3 = Vector3.ZERO

	if closest_coin:
		closest_coin_position = robot.to_local(closest_coin.global_position)
		closest_coin_position = closest_coin_position.limit_length(30.0) / 30.0

	var closest_enemy: Enemy = level_manager.get_closest_enemy(robot.global_position)
	var closest_enemy_position: Vector3 = Vector3.ZERO
	var closest_enemy_direction: float = 0.0

	if closest_enemy:
		var local_enemy_position = robot.to_local(closest_enemy.global_position)
		if local_enemy_position.length() <= 30.0:
			closest_enemy_position = local_enemy_position / 30.0
			closest_enemy_direction = float(closest_enemy.movement_direction)

As the results are not notably better (using the same hyperparams, adjusting those could help), perhaps even a bit slower at solving the first level with coins, although probably similar after the 8 mill steps, I think there is not much of an advantage to update the env for now at least with this configuration.

Closing for now based on the results above.


AuthManager FileNotFoundEception

https://pastebin.com/2FGzH5PQ

This was fixed as part of the rewrite for Minecraft 1.11.2.


Integrate Flow type coverage

Sorry if it's wrong place for suggestion. Would be great if codeclimate add support for Flowtype as it's becoming as important as unit testing.
https://www.npmjs.com/package/flow-coverage-report

Hi @ilionic -
This is a neat suggestion!
Flow coverage isn't test coverage, exactly, right?
I'm having a hard time imagining our test coverage tool bending to represent another kind of coverage at the moment.
I definitely can imagine a Code Climate engine which wraps flow-coverage-report and creates issues for functions which don't have flow type annotations. New PRs would get a red status check if they introduce new issues, which could help you remember to follow that convention.
Does that sound useful?

Sounds definitely useful!
It's not exactly test coverage but separate addition - percentage of functions covered by Flow (like in Nuclide for Atom or flow-coverage-report)
Another aspect is actually running flow and validating types (here process bit similar to eslint).
Of course it's straightforward setup in CI, but I think it would be great addition to Code Climate code quality tools.

Cool, that does sound useful.
I've made a note in our internal feature request tracker that we should consider making such an engine, but can't make any guarantees about when we'll be able to prioritize it.
In the meantime, if you're interested in working on it, we'd be more than happy to offer mentorship and guidance. We have a blog post that explains the steps, and you can join our community slack by filling out this form.


Azure Disk Encryption Doesn't Work on Hardened IIS

For security purposes, TLS 1.0, 1.1 protocols and Diffie Hellman algorithms are disabled on our server.
I believe for this reason VM extension fails on enabling disk encryption.
ErrorCode: VMExtensionProvisioningError
ErrorMessage: VM has reported a failure when processing extension 'AzureDiskEncryption'. Error message: "Failed to configure bitlocker as expected. Exception: An error occurred while sending
the request., InnerException: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.ComponentModel.Win32Exception: The client and
server cannot communicate, because they do not possess a common algorithm
at System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule, String package, CredentialUse intent, SecureCredential scc)

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

ID: e7e05a67-3121-bbc2-7a46-637199104ea3
Version Independent ID: 2802344c-0571-bdac-4755-580f75f404b0
Content: Azure Storage Service Encryption for Data at Rest
Content Source: articles/storage/common/storage-service-encryption.md
Service: storage
Product: unspecified
GitHub Login: @lakasa
Microsoft Alias: lakasa

@MetehanBolat Thank you for the feedback!  We are investigating this and will get back to you shortly.

@MetehanBolat you are correct, it is related to the TLS being disabled: https://github.com/Azure/azure-powershell/issues/3945.
It might be a prerequisite for the encryption to take place. I'd recommend posting in MSDN forums : https://social.msdn.microsoft.com/Forums/en-US/home?forum=AzureDiskEncryption or StackOverflow since it's not document related.

The Azure Disk Encryption extension is built using .NET 4.5. Add the following registry entries to the virtual machines to enable TLS calls made using .NET Framework 4.5 to succeed when TLS 1.0 is disabled:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319]
"SystemDefaultTlsVersions"=dword:00000001
"SchUseStrongCrypto"=dword:00000001

For more information, see Transport Layer Security (TLS) best practices with the .NET Framework.


Understanding Kapacitor’s deadman Act

Hi, I'm using telegraf to supervise some process. So I thought it could be interesting if kapacitor is able to notify me when any process die.
I think this can be done with Kapacitor's deadman switch (if a process die, telegraf's procstat input can't send data to influxdb).
I'm trying something like this:
|deadman(1.0, 10s)
.slack()
.channel('#alerts-staging')

If no point has been arrived in 10s, send the alert ( I think it works like that).
But executing kapacitor show in the task, I can see graph [throughput="0.00 points/s"];
I don't know if this thoughput matters.
I'm using kapacitor 1.3.1-1 on Debian 8.
Thanks.

@zargex Can you share the first part of the TICKscript as well, the part before the deadman?

stream
  |from()
    .measurement('procstat')
    .where(lambda: "pidfile" == '/tmp/svc-sendgrid-subscriber.pid')
    .where(lambda: "host" == 'localhost')
  |eval(lambda: float("memory_rss") / (1024.0*1024.0))
    .as('memory_rss')
  |alert()
    .id('sendgrid-subscriber MEM USAGE Alert')
    .message('The sendgrid-subscriber mem usage is {{.Level}} on host: {{ index .Tags "host" }}, the sendgrid-subscriber is using this amount of ram : {{ index .Fields "memory_rss" }} MB')
    .crit(lambda: "memory_rss" >  512)
    .warn(lambda: "memory_rss" >  256)
    .info(lambda: "memory_rss" >  100)
    .slack()
    .channel('#alerts-staging')
    .stateChangesOnly(10m)

I put the deadman after  the from section and before the evalsection.

@zargex Could you please try below script?
stream
  |from()
    .database('telegraf')
    .retentionPolicy('autogen')
    .measurement('procstat')
    .where(lambda: "pidfile" == '/tmp/svc-sendgrid-subscriber.pid')
    .where(lambda: "host" == 'localhost')
  |deadman(1.0, 10s)
    .slack()
    .channel('#alerts-staging')
  |eval(lambda: float("memory_rss") / (1024.0*1024.0))
    .as('memory_rss')
  |alert()
    .id('sendgrid-subscriber MEM USAGE Alert')
    .message('The sendgrid-subscriber mem usage is {{.Level}} on host: {{ index .Tags "host" }}, the sendgrid-subscriber is using this amount of ram : {{ index .Fields "memory_rss" }} MB')
    .crit(lambda: "memory_rss" >  512)
    .warn(lambda: "memory_rss" >  256)
    .info(lambda: "memory_rss" >  100)
    .slack()
    .channel('#alerts-staging')
    .stateChangesOnly(10m)

@adityacs I tried what you proposed, but I only got notification saying the alert is dead.
What I undertand is that my throughput  is very low, thus the deadman switch is triggered.
If I use the kapacitor's show command in that alert, I get:
graph [throughput="0.00 points/s"];
but sometimes I get
graph [throughput="18.00 points/s"];
Telegraf is using a default interval of 10 seconds for all plugins. Maybe if I reduce this interval Kapacitor will work as I expected

The aforementioned proposition didn't work with Kapacitor 1.5.
But this works :
 var data =
   stream
     |from()
       .measurement('cpu')
       .groupBy(*)
data
  |alert()
    .crit(lambda: "usage_idle" < 10)
    .topic('cpu')

data
  |deadman(threshold, interval)

From https://stackoverflow.com/questions/45556226/how-to-add-a-deadmans-switch-to-an-existing-alert


Implementation of functionalities for gravitational lensing simulation

Improve upon an existing code for hypersurface embedding in schwarzschild geometry and implement methods to add features like:

Plots to include asymptotically large radial distance to  visualise gravitational lensing effects from distant source.
Solve numerically geodesics equation on the 3d embedding surface to obtain null trajectory for light rays in spacial dimensions.
Plot trajectories on the embedding to give an essence of the bending effect of light rays.
Implement some basic calculations related to deviation angles for the sake of completeness of the module.

Might be relevant: https://github.com/rantonels/starless

So I can try to tackle this issue after I finish working on refactoring the symbolic module. In terms of the theory that will be helpful for us, these two papers are great reference for what could get us started on gravitational lensing:

https://arxiv.org/pdf/gr-qc/0307072.pdf
https://arxiv.org/pdf/gr-qc/0001037.pdf


Namespace release files

What is this PR trying to achieve?
In order that they can be downloaded more easily (as aws s3 does not
support wildcards).
Who is this change for?
Devloper
Have the following been considered/are they needed?

[X] Tests?
[X] Docs?
[X] Spoken to the right people?

👍 for scripting the creation of a .tfvars file


Disallow unfocus dialogs

Main window is unresponsive while dialogs are open, so do not allow them to run in the background.

83f4ca9


abandoned?

I really want to use this project, but I notice there are no commits since August and there are 12 outstanding pull requests.
Is this project dead?
If so, can someone take it over?

For a brief time I had done some cursory maintenance on this project because @nikhilmodak had stopped actively working on it and I asked him to add me as an owner. I have since moved on though and have not kept up with maintenance as I do not personally use it in any of my current projects. I'll open a new issue with a call for new maintainers.


'Run the Tests button' is not working & result pane is showing 'Error: Request errror: 0'

Describe your problem and how to reproduce it:
Add a Link to the page with the problem:
Tell us about your browser and operating system:

Browser Name:
Browser Version:
Operating System:

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

Please add more details about which link is this problem on and screenshots if possible

I'm pursuing 'Responsive Web Design Certification (300 hours)' course.
When i click on an exercise, say 'https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements' then i find this button not working.

When the page is loaded i can find this error (highlighted with the yellow marker).

Please help.

@SuryaDilip Can you please provide a screenshot of your developer console? Press F12 if you're in Chrome to open it

Is this the right screenshot?

Nope @SuryaDilip click on console next to elements and paste the screenshot

PFA

Your browser is blocking jQuery. If you type:
$('.btn')
as is into the console and press enter, do you see:
<button type="button" class="btn btn-primary btn-block">Run the Tests</button>
?

@ValeraS I was thinking this might be due to jQuery being blocked by the browser, but that, clearly, is not the case, any idea what might be up?

$is not always equal to jQuery. What you see is Chrome dev-tools Console Utilities API

To check jQuery you need to select JavaScript context:

@SuryaDilip Could you check beta site https://freecodecamp.rocks/learn/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements Does it work for you?

@ValeraS I'm using the website on my office laptop. I tried the website on other PC which is on different N/W. There it is working as expected. Is this some kind of block on the website in my office N/W.

@ValeraS https://www.freecodecamp.rocks/ is blocked on my office N/W

Since this seems to be a issue with your network and not freeCodeCamp, I don't think there's anything we can do here. Thanks for reporting the issue @SuryaDilip, but I am going to close it - If I am mistaken, feel free to reopen it.


Out-of-order / repeated message delivery

The pubsub docs say:

Although Pub/Sub usually delivers messages in order of publication, this is not guaranteed; it is  possible for subscriptions to receive messages out of order. For this reason, we suggest that you include sequence information in the message payload or attribute so that subscribers that need in-order messaging can implement logic to do so.

Do we need to provide support in the library for generating sequence / timestamp info?

Note that I've actually seen out-of-order messages while working on #795 (it originally sent two messages, but they routinely arrived in reverse order).

#809 addresses adding a timestamp field automatically to the message.attributes.  Addressing this issue completely might require adding some kind of subscriber-side help as well.

Note that, if your publishers are distributed, you can not guarantee the correct order unless you have precise system clocks.

We currently have an optional timestamp_messages parameter to Topic.__init__:  if it is True, then the topic adds a timestamp attribute to each message it publishes.  In #1623, @dhermes argues for removing this feature.


What version of AMQP this library is implementing - AMQP 1.0 or/and AMQP v0.9.1.

this is just question
I'm looking for library which handles for version and work with Azure Service Bus as well as with RabbitMQ
Regards
Les

It is intended for use with RabbitMQ, it implements 0.9.1. I don't know if it works with other message brokers as well.


Remove dependence of RidgeTrack on explicit index ordering of DNA Accessibility data

State Before
DNA accessibility component passes an explicit number[] that tells the RidgePlot track which indices of TileData to render in order. This numeric array must be manually maintained and does not scale to different orderings or selections, since DNA accessibility only modifies the original constant array by filtering values from it.
State Now
DNA accessibility component constructs a string[] of the cell sample names in order, from the existing cell stratification view configuration (thus keeping them in sync). The RidgePlot will use the order of sample names to match to the tileset data fetched, and appropriately construct the ordering for the data to display.

also accidentally ran lint fix which caused a bunch of unnecessary changes.


Single entry for site.author.links does not work

[x] This is a question about using the theme.
[ ] This is a feature request or enhancement.
[x] I believe this to be a bug with the theme.

[x] I am using the latest version of the theme.
[x] I have updated all gems with bundle update.
[ ] I have tested locally with bundle exec jekyll build.

Environment information

So Simple version: 3.1.0
Jekyll version: 3.7.3
GitHub Pages hosted site: no
Operating system(s): linux with docker

Expected behavior

I'm wanting to only list a single entry in site.author.links (in my case Instagram). However, when I only have this single entry, nothing appears in the sidebar under the author. If I simply add a second link, such as GitHub, the first link appears. Is it not possible to only have 1 link entry?
Steps to reproduce the behavior
Here is the excerpt in my _config.yml
author:
  name: My Name
  picture: /images/my_image.jpg
  email:
  twitter:
  links:
    - title: Instagram
      url: https://instagram.com/my_profile
      icon: fab fa-instagram

Good catch, yes this is a bug. Fixed on master.


feat: add eager option and expose reflect util

Codecov Report

Merging #12 (bd91b4d) into master (e501a33) will increase coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   86.61%   86.66%   +0.05%
==========================================
  Files          17       17
  Lines         239      240       +1
  Branches       51       51
==========================================
+ Hits          207      208       +1
  Misses         31       31
  Partials        1        1

Impacted Files
Coverage Δ

src/index.ts
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 e501a33...bd91b4d. Read the comment docs.

close https://github.com/artusjs/core/issues/45


Support for custom params on EventForwarder (support for telegram, pushover, etc)

Hi,
i implemented a new modality when sending event messages inside EventForwarder, now you can send requests as a "form-urlencoded", this means that the actual payload will be sent as a form parameter (the parameter name is configurable), this strategy will let you to add another parameters inside the form body message too.
You can add new custom form params almost on the same way as the custom headers are inserted (event.forward.header), the only difference is that you will use the equals "=" char instead of ":" as key/value separator.
You can enable this mode using the option: "event.forward.payloadAsParamMode", when using this mode you can use the other 2 configuration elements, "event.forward.paramMode.payloadParamName" if you want to change the form name param of the payload (default is "payload") and "event.forward.paramMode.additionalParams" to specify additional key/value form params.
I added an option to prettyPrint the payload messages too, you can enable it using the global option 'event.forward.prettyPrintedPayload'.
This is an example (using all the new params) that lets you integrate traccar server with the pushover platform.
Update: options updated
	<entry key='status.timeout'>60</entry>
	<entry key='event.statusHandler'>true</entry>
	<entry key="event.forward.enable">true</entry>
	<entry key='event.forward.url'>https://api.pushover.net/1/messages.json</entry>

	<entry key='mapper.prettyPrintedJson'>true</entry>
	<entry key='event.forward.payloadAsParamMode'>true</entry>
	<entry key='event.forward.paramMode.payloadParamName'>message</entry>
	<entry key='event.forward.paramMode.additionalParams'>
		token=YOUR_TOKEN_ID
		user=YOUR_USER_ID
	</entry>

I tested the new options and they work pretty well.
Tried to make the change as clean as possible and avoiding code duplications. This mode does not change or affects the actual behaviour of the module.
Let me know what do you think.

Can you please some examples of what payload looks like.
Also, I think if we include pretty formatter option, it should be global.

Hi tananaev,
yes sure, this is how an http request looks like:
Client <IP_ADDRESS>:51317 accepted at 12:16:12 AM
12:16:12 AM received [POST / HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 987
Connection: keep-alive
Host: localhost:9000
Accept: */*
User-Agent: AHC/1.0

user=342323424&token=kfysngfy53dg&message=%7B%0D%0A++%22event%22+%3A+%7B%0D%0A++++%22id%22+%3A+233%2C%0D%0A++++%22attributes%22+%3A+%7B+%7D%2C%0D%0A++++%22deviceId%22+%3A+2%2C%0D%0A++++%22type%22+%3A+%22deviceOnline%22%2C%0D%0A++++%22serverTime%22+%3A+%222017-11-05T23%3A16%3A11.993%2B0000%22%2C%0D%0A++++%22positionId%22+%3A+0%2C%0D%0A++++%22geofenceId%22+%3A+0%0D%0A++%7D%2C%0D%0A++%22device%22+%3A+%7B%0D%0A++++%22id%22+%3A+2%2C%0D%0A++++%22attributes%22+%3A+%7B+%7D%2C%0D%0A++++%22name%22+%3A+%22tk%22%2C%0D%0A++++%22uniqueId%22+%3A+%2286%22%2C%0D%0A++++%22status%22+%3A+%22online%22%2C%0D%0A++++%22lastUpdate%22+%3A+%222017-11-04T17%3A34%3A36.429%2B0000%22%2C%0D%0A++++%22positionId%22+%3A+185%2C%0D%0A++++%22groupId%22+%3A+0%2C%0D%0A++++%22geofenceIds%22+%3A+%5B+%5D%2C%0D%0A++++%22phone%22+%3A+%22%22%2C%0D%0A++++%22model%22+%3A+%22%22%2C%0D%0A++++%22contact%22+%3A+%22%22%2C%0D%0A++++%22category%22+%3A+null%0D%0A++%7D%0D%0A%7D]

You could use this online tool to decode it:
h**ps://meyerweb.com/eric/tools/dencoder/
Regarding the pretty formatter, yes i agree, i did not made a global change because i was not sure if it could break something. We could keep 2 mappers globally (normal/prettyPrinted), use the pretty one when it could improve data readability (using atomic configuration options) and keep the other one for internal transformations. Or we could just modify directly the behaviour of the single global mapper. I don't have enough knowledge of the server atm to see which one could be a better solution.

So you are actually sending JSON as a message. It's not really very user-friendly.

By the way, i was checking new messages on my phone and i thought " why not just use telegram to receive messages?"
Wow, it took me 5 minutes to create a bot, it's ridiculously simple, after that you could use a configuration like this one:
	<entry key='event.statusHandler'>true</entry>
	<entry key="event.forward.enable">true</entry>
	<entry key='event.forward.url'>https://api.telegram.org/bot123:456789/sendMessage</entry>

	<entry key='event.forward.prettyPrintedPayload'>true</entry>
	<entry key='event.forward.payloadAsParamMode'>true</entry>
	<entry key='event.forward.paramMode.payloadParamName'>text</entry>
	<entry key='event.forward.paramMode.additionalParams'>
		chat_id=123456
	</entry>

It works, maybe we could use another format for messages
Updating the title.

I think the biggest problem is the format. I don't think end users would be interested in JSON messages.

Yes, i agree, is there something already implemented on server that we could use to format messages?, if not, we could start to define a new message format, maybe configurable using verbosity levels. We could start from the sms message provided by some trackers:
Power alarm!
lat:77.739288
long:12.977558
speed:0.00
T:17/09/23 16:09
http://maps.google.com/maps?f=q&q=12.977558,77.739288&z=16

Yes, there is already a system for email and SMS notifications that uses templates.

NotificationFormatter, i will give a look on it

Added a new dedicated method on NotificationFormatter for EventForwarder messages
Added new 'forwarder' templates (copy from the sms ones)
Some refactoring
New instance for pretty printer on configuration (used only by json payloads)

Made some tests and i'm receiving messages, but there is a problem, there is no User on eventForwarded messages so all the fields that are crafted using User configuration or data could be not available, i put for testing the first one available for the device but this should be fixed somehow, do you have any suggestions?
P.s. I prepared the EventForwarder class to be splitted, this could be the next step, leaving common logic on this class and creating one new class for each sending mode.

but there is a problem, there is no User on eventForwarded messages so all the fields that are crafted using User configuration or data could not be available, i put for testing the first one available for the device but this should be fixed somehow

I noticed now that there are already default values for those params (distanceUnit, SpeedUnit, etc), maybe with minor changes it could work, i will give it a look.

I noticed that you have duplicated templates from SMS. I think that instead of duplicating we should make it use SMS templates by default and provide an option for user to customise it.

EventForwarder refactoring: noew thare are 2 event forwarders, one for the actual json payload and another one for the new method using form params, it should be possible to add more in the future.

User default settings are now accessible when no User is available.

@tananaev
It's not clear to me if you want to keep separate templates for the EventForwarder, the server could already provide 2 different types for text messages, "sms" and "forwarder", forwarder templates could be more prolix and sms ones to be more concise, then let the user choose by configuration.
They are both plaintext so you could have "basic" and "verbosed" templates instead of "sms" and "forwarder" and then provide configuration options to choose the verbosity level for each message system (sms, eventForwarder, etc).
The new form params modality for EventForwarder should be ok now.

I have thought about this functionality a bit more and it doesn't really make sense to have it global like this. It would make sense to have push notifications per user like other types of notifications.

Taking into account the services that i tested, the params that you insert are linked to an account and are specific, so, if you would like to send notifications by user, that means that you need to keep those specific params by user. For sms messages you have phones, for emails you have mail addresses, for form notifications you would have something more dynamic and not so homogeneous.
Once you send a message on an external platform you could decide the audience inside the platform itself (broadcast group, a group of accounts, a single person, etc), almost like the service that was already available using json payloads.
Personally i'm not sure that switching to user notifications could be suitable for this implementation.

I just don't see much use case for this feature then. Basically it's only useful for someone who hosts a server just for himself. Traccar is multi-user platform, so it's not really a good fit, unless we can find some way to make it per-user configuration.

I'm still seeing this implementation as a variant of the module that was already present, events forwarded to an external service, i just added the possibility to call these services more dynamically, incrementing the supported platforms/services list.
It could be useful for anyone that is using or wants to use the "event forward" functionality and wanted more features/flexibility, so they will be able to reach services that are not supported by configuration atm.
I don't undestand your point, do you want to migrate the existing EventForwarder to the user configuration too?

Well, your original use case mentions push notifications and telegram which are clearly for end-user notifications. Forwarding is intended for some third party service, not for end user. Those are completely different use cases.

I can see your point, well, it's not necessary to be used only for push notifications, i see it on a more generic and abstract way, but yes, you could use it for that purpose.
I think that this implementation could be eventually a good start point for what you have on mind.

maybe the "forwarder" templates must be enriched a bit

I'm not sure templates are the right approach here. Templates are designed to display something for end users. I would like to make forwarding more customisable, but don't know if this is a good way.

This may be a useful function but slightly limited without the multi-user ability.
Some of the functions added are nice to have in the EventForwarder for more general purposes but also building it as NotificationPusher or NotificationTelegram may be better. Of course the notifications system would need to have ability to handle more than just App/SMS/Mail. If that was plugable so when additional notification options exist it allows them to be selected ie App/SMS/Mail/Telegram/Pusher etc.
This may beyond the scope of this initial commit though but the general idea has promise.

@tananaev
that's a good point, json data format should be available, we could let the user decide, adding an option to choose between json formatted data (default) or use the dedicated templates (seen as plaintext),
i think that leaving the template option could be a welcome feature, i will make the changes.
@tsmgeek
Your proposal could be very useful to someone that intends to use those specific services but i agree with you that this is not the scope of this addition but as i said before it could be a good starting point for those ideas.

New option available

<entry key='event.forward.paramMode.useTemplatesForPayload'>true</entry>

I still think that the initial point of EventForwarder was more to pass everything onto another system in a standard format rather than act as a pseudo notification system, there are specific modules for that, you should be able to convert this over into a new notification type easy, ie NotificationWebhooks as this essentially is that. IMO.

I think that there was some confusion regarding the pull request, as said before, push notifications were just an use case (i think a very good one). I saw this as a simple change that could improve a lot eventForwarder; now it's able to adapt better when trying to communicate with an external service, rather that making or letting an external service to adapt to traccar, sometimes you don't have the control of the external system, telegram http requests could be an example.
I would like to make a bigger contribution to this project but i just don't have the free time atm to make a deep analysis and/or to go further to implement another kind of notification (I'm pretty sure that that would require at least web interface configuration and database management) and personally i don't like to make poor contributions.
I think that even if traccar system is going to have an explicit Telegram integration (i'm mentioning only this one because it's free) or some kind of "web notifications", this pull could be added, because it makes eventForwarder more versatile.
After this explanation, i would like to say that i removed the possibility to use NotificationFormatter inside EventForwarder (only json will be used), but i left the re-factoring changes, this because I'm looking forward to what you suggested, i think that with some time and with the help of someone else this could be implemented, so if you agree, i could modify this pull until it's ok and create a new one to start discussing on what should be done to implement this new notification system.
Let me know.

Hi,
i made some changes as referenced on the code comments (and commented the remaining points).
Regarding the "good use case" question, i already explained the intentions and purpose of the changes (and eventually some future changes), i don't have any other explicit use case on my hands.

Made the prettyPrinted option global as asked
Made the refactoring as asked

Changed the pretty printed option name from:
event.forward.prettyPrintedPayload
to
config.mapper.prettyPrintedJson

I changed the form type to send the data, now it's using a multipart form, json payload will be sent with the content type "application/json", Tested.
It reflects the standard, it's already supported by the traccar http client library and the most important thing is that if you implement a service and map directly the payload as a complex entity you should be able to decode it automatically using conventional APIs because its content type is explicitly specified and matched.
This does not change the original behaviour, only "low" level data communication has changed.
I removed the class to send urlencoded data because it's not used anymore.

What does the request look like now?

This is an example with json prettyPrint enabled, don't consider the "Content-Length" http header because sensitive data was edited.
POST / HTTP/1.1
Content-Length: 932
Content-Type: multipart/form-data; boundary=SIC9-pndhELxu_DsAqpExjxgOVkdEn
Connection: keep-alive
Host: localhost:55001
Accept: */*
User-Agent: AHC/1.0

--SIC9-pndhELxu_DsAqpExjxgOVkdEn
Content-Disposition: form-data; name="some_param"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

33333333
--SIC9-pndhELxu_DsAqpExjxgOVkdEn
Content-Disposition: form-data; name="payload_param"
Content-Type: application/json; charset=UTF-8
Content-Transfer-Encoding: 8bit

{
  "event" : {
    "id" : 111,
    "attributes" : { },
    "deviceId" : 1,
    "type" : "deviceOnline",
    "serverTime" : "2017-11-11T00:00:00.000+0000",
    "positionId" : 0,
    "geofenceId" : 0
  },
  "device" : {
    "id" : 1,
    "attributes" : { },
    "name" : "tt",
    "uniqueId" : "55555555",
    "status" : "online",
    "lastUpdate" : "2017-11-11T00:00:00.000+0000",
    "positionId" : 111,
    "groupId" : 0,
    "geofenceIds" : [ ],
    "phone" : "",
    "model" : "",
    "contact" : "",
    "category" : null
  }
}
--SIC9-pndhELxu_DsAqpExjxgOVkdEn--

Changes made

Code updated

thank you
Here is a recap of the new configuration options:
mapper.prettyPrintedJson
boolean (default: false), global option to enable pretty printing on json serializations
event.forward.payloadAsParamMode
boolean (default: false), enable the new sending mode
event.forward.paramMode.payloadParamName
String (default: "payload") lets you specify the name of the payload form param
event.forward.paramMode.additionalParams
String (default: null), can be used to send additional form parameters

How can I configure a pushover push notification now without event.forward.paramMode.additionalParams and using only event.forward.header?

Just adding another question to this. I'm trying to get Pushover to work as a notification service, but I'm not sure what to do given all the conversation in this ticket. Can anyone help out?


Error handling send JSON

Hi I am trying to send an error with ctx.throw() or be simply assigning it to ctx.body but Body in the response is always empty. When trying to send it passing a third property to ctx.throw() like here it doesn't show in the response body
I am using Mocha, Chai, Chai-http for testing. res.body is always empty. res.error has the error message but not the object.
test.only('Missing required fields', function (done) {
	chai
		.request(server)
		.post('/api/issues/test')
		.send({
			issue_title: 'Title'
		})
		.end((err, res) => {
			assert.isNull(err);
			console.log(res.body);
			assert.isNotFalse(res.error);
			assert.equal(res.status, 400);
			assert.equal(res.error.text, 'Project validation failed');
			done();
		});
});

I tried emitting the error like this,
const projectSave = await project
	.save()
	.catch(err => {
                // ctx.body = { hello: 'world' } this cause and error
		ctx.throw(400, 'Project validation failed', { hola: 'mundo', hello: 'world' });
	});

Also if I assign an object to ctx.body just before ctx.throw I get the following error `"Unexpected token P in JSON at position 0".
I thought to do like in express ´return res.json(err)´ but in this case assigning the response to ctx.body and returning. Sadly the execution doesn't stop.
How can I send a json or javascript object in the response to use in the UI?

Unfortunately, I can't extract what the problem is from your description. Please a fully reproducible example and I can take a look at it.
Generally, sending POJOs as JSON is as simple as assigning the object to ctx.body, e.g.
app.use(async ctx => {
  try {
    ctx.body = await Project.forge().save() // bookshelf example
  } catch (err) {
    ctx.body = { error: true, message: 'oopsie' }
  }
})

@fl0w, In that case, how do I stop the execution? There is code underneath

If you don't call next, execution will not continue down the middleware chain. Maybe I don't understand your question?

If you wish to replicate. The Project is there, it include a folder .vscode with the debugging setup. To run use yarn start and in vscode go to debug select Mocha Current File and run the test here
In the issueTrackerApi.js take a look at the post route. Notice the await newProject.save().catch(). If I do it like what you tell me project().save().catch(err => ctx.body = project.issues[0]);. I get the following error TypeError: Cannot read property 'issues' of undefined at module.exports.router.get.post (C:\Users\adrian\Code\portfolio-next-koa\routes\api\issueTrackerApi.js:94:23) because the execution of the code does not stop and reach the line of code that says.
Also if I do the following
const projectSave = await project
	.save()
	.catch(err => {
		ctx.body = { err: err };
		ctx.throw(400, 'Project validation failed');
	});

I get the following error "Unexpected token P in JSON at position 0"
How can I throw an error and return a custom error obj like for example error = { name: 'required', age:'min age 18' }

Here's how you provide a reproducible example which is almost minimal.
const Koa = require('koa')
const Router = require('koa-router')
const app = new Koa()
const router = new Router()

app.use(
  router
    .post(['/resolve', '/reject'], async (ctx, next) => {
      const projects = await new Promise((resolve, reject) => {
        if (ctx.path == '/resolve') return resolve({issues:[{success:true}]})
        reject(new Error('validation failed'))
      }).catch(() => {
        ctx.throw(400, 'validation failed')
      })
      ctx.body = projects.issues[0]
    })
    .routes()
)

app.listen(3000)

# Promise resolves
$ curl -XPOST -v localhost:3000/resolve
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Content-Length: 16
< Date: Wed, 10 Jul 2019 11:57:04 GMT
< Connection: keep-alive
<
{"success":true}

# Promise rejects
$ curl -XPOST -v localhost:3000/reject
< HTTP/1.1 400 Bad Request
< Content-Type: text/plain; charset=utf-8
< Content-Length: 17
< Date: Wed, 10 Jul 2019 11:58:59 GMT
< Connection: keep-alive
<
validation failed

I can't be downloading random projects to try and debug issues. That just isn't scalable nor fair. In the future, try to remove all unrelated code and boil the issue down to something more copy/paste friendly. This is also a good technique in general when trying to debug locally.
For good measure, I did mock the structure from the linked file you provided (I did not go through your project fully).
As shown above (and also proven by Koa tests) there's nothing wrong with throwing, or assigning to body. What I assume is happening is completely unrelated to Koa. await project.save() probably isn't even rejecting, instead just returning undefined, and then try to access an unknown property. This can be reproduced in REPL with:
$ node
> const projectSave = undefined
> projectSave.issues[0]
Thrown:
TypeError: Cannot read property 'issues' of undefined

Sorry I don't have too much experience with posting on github. I tried to make the code as simple as possible
const Koa = require('koa')
const Router = require('koa-router');
const koaBody = require('koa-body');
const app = new Koa();
const router = new Router();
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const projectSchema = Schema({
	name: {
		type: String,
		required: true
	},
	issues: [
		{
			issue_title: {
				type: String,
				required: true
			}
		}
	]
});

const Project = mongoose.model('ProjectTest', projectSchema);

mongoose
	.connect('mongodb://username:password0@ds249127.mlab.com:49127/koaerror', { useNewUrlParser: true })
	.then(db => {
		console.log('MongoDB connected to ' + db.connection.name);

		app.use(koaBody());

		app.use(
			router
				.post('/', async (ctx, next) => {

					const { name, issue_title } = ctx.request.body;

					const project = await Project({ name, issues: [{ issue_title }] })
						.save()
						.catch(err => {
							console.log(err);
							ctx.body = { error: true, message: 'oopsie' };
						});

					// IF validation fails mongodb thorw an error obj that should be catch
					ctx.body = project.issues[0]
				})
				.get("/", ctx => {
					ctx.body = "Hola mundo"
				})
				.routes()
		);

		console.log(router.stack.map(i => i.path));

		app.listen(8000, () => {
			console.log(`> Ready on http://localhost:${8000}`);
		});

	}).catch(err => console.log(err));

Sorry, now I tried to make the code as simple as possible.
const Koa = require('koa')
const Router = require('koa-router');
const koaBody = require('koa-body');
const app = new Koa();
const router = new Router();
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const projectSchema = Schema({
	name: {
		type: String,
		required: true
	},
	issues: [
		{
			issue_title: {
				type: String,
				required: true
			}
		}
	]
});

const Project = mongoose.model('ProjectTest', projectSchema);

mongoose
	.connect('mongodb://username:password0@ds249127.mlab.com:49127/koaerror', { useNewUrlParser: true })
	.then(db => {
		console.log('MongoDB connected to ' + db.connection.name);

		app.use(koaBody());

		app.use(
			router
				.post('/', async (ctx, next) => {

					const { name, issue_title } = ctx.request.body;

					const project = await Project({ name, issues: [{ issue_title }] })
						.save()
						.catch(err => {
							console.log(err);
							ctx.body = { error: true, message: 'oopsie' };
						});

					// IF validation fails mongodb thorw an error obj that should be catch
					ctx.body = project.issues[0]
				})
				.get("/", ctx => {
					ctx.body = "Hola mundo"
				})
				.routes()
		);

		console.log(router.stack.map(i => i.path));

		app.listen(8000, () => {
			console.log(`> Ready on http://localhost:${8000}`);
		});

	});

A valid request would be
C:\Users\adrian\Code\koa-error>curl --data "name=hola&issue_title=mundo" http://localhost:8000
{"_id":"5d25e95f41210a35507ec7f1","issue_title":"mundo"}

Now If you don't pass the data, validation fails. MongoDB throws an error. The .catch is reached because it indeed calls console.log(err)
C:\Users\adrian\Code\koa-error>curl --data "" http://localhost:8000
Internal Server Error

and inside the server console, you get the MongoDB error
{
    "errors": {... },
    "_message": "Project validation failed",
   "name": "ValidationError"
}

TypeError: Cannot read property 'issues' of undefined
      at app.use.router.post (C:\Users\adrian\Code\koa-error\index.js:47:25)
      at process._tickCallback (internal/process/next_tick.js:68:7)

PD: If I do it like this I get the expected behavior. But It would be nice and sometimes useful to be able to catch the Promise using promise.catch()
try {
	const { name, issue_title } = ctx.request.body;
	const project = await Project({ name, issues: [{ issue_title }] })
					.save();
	ctx.body = project.issues[0]
} catch (error) {
	console.log(error);
	ctx.status = 400;
        ctx.body = { error: true, message: 'oopsie' };
}

You can use promise.catch, as you see in my example. There's something else wrong.

what you're catching in your last example is the TypeError that occurs when trying to access undefined.issues[0].

It's rejecting the promise look at the console.log(err) that's what logs the errors that say "validation fail" because the Schema fields are marked as required. There are 2 different errors. First mongoose catch the error an return undefined. Because of that it throws the second error trying to access it as an array.


style: adds FxCop to all projects

Added default FxCop to all projects in solution.
Closes #13.

Forcing merge as this commits only adds analysers and brings zero impacts to the runtime.


Can't see my alerts

I can see that I have 33 alerts, but I can't see any but the top five newest.
(I can't seem to scroll in the drop-down, nor can I find a link to see all alerts.)
(Running Mac OS 12.4 > Chrome Version 106.0.5249.119 (Official Build) (arm64))

Yes, the implementation is quite rudimentary. Issue #369 is related.
If you click on the first ones, the others will come up.
If these messages are helpful, I agree we should not only improve the layout but also make all notifications available.

Okay, now I see that you can't see the 5 newest - that should be possible, this is a bug.


Add codebuild to ApplicationScope -> Category -> Artifact

Hi,
aquasec_application_scope resource lacks codebuild as an scope artifact. Aquasec API supports codebuild as an scope artifact. It is used to apply labels to repositories to allow only the intended users to view the repository
Terraform Version
Terraform v1.5.7
terraform-provider-aquasec_v0.8.27
Affected Resource(s)
Please list the resources as a list, for example:

aquasec_application_scope

Terraform Configuration Files
resource "aquasec_application_scope" "TestAppScope" {
    description = "test_app_scope_with_codebuild"
    name        = "test_app_scope_with_codebuild"
    categories {
        artifacts {
            codebuild {
                expression = "v1"
                variables {
                    attribute = "aqua.topic"
                    value     = "topic1"
                }
            }
        }
    }
}

Debug Output
https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
Expected Behavior
Aquasec API supports codebuild as an scope artifact. It is used to apply labels to repositories to allow only the intended users to view the repository.
Actual Behavior
Aquasec API - Application Scope scheme supports codebuild as an artifact.
Steps to Reproduce
terraform apply
Important Factoids
SaaS platform?
References
---

This would be very much appreciated! 🙏


Sushiswap Gnosis - Fix issue #612

Updated the minimum liquidity for pricing threshold and update the reference token for Sushiswap xDAI

Nice catch!

Next time you should make sure there is a link to the issue in either the description or the comment. Like this: https://github.com/messari/subgraphs/issues/612

Is it supposed to just get highlighted in blue when I put the hash in front? It does want to do it automatically in the title, but it does in comments.


Add  to Template

I use mjml with MyMail plugin (Wordpress). This  is being used for interactive editing in the WYSAWIG editor. I have to laboriously enter these modules by hand. Is there a possibility to include this option in the template?

Can you please show an example of what you want at least ?

of course!
directly after  tag, comes  and is logically closed before the </ body>, so </ modules>.
each module gets

         <! - Your first column ->
       </ Mj-column>

         <! - Your second column ->
       </ Mj-column>
     </ Mj-section>
</ Module>
a single line, e.g. h1, h2 etc. always gets
  Title
Paragraf always gets the
   lorem ipsum
all other elements such as e.g. images, buttons etc. must contain this in their HTML structure:
editable = "" label = "some image"
here is the documentation: https://docs.mailster.co/?_ga=2.53288104.1216420370.1565642445-1812555056.1565642445#/templates-custom
best regards
from Potsdam, Germany

So you can already do this with mj-raw today, ex: https://mjml.io/try-it-live/HyoaZ81VH
Any final tag like mj-text,button,... can receive plain html so you should be able to do what you want


feat: New trait CommitmentBounds for Commitment trait bounds, safer default

fix #36

The new trait CommitmentBounds has a method default_commitment_no_preimage. This is how users create a default commitment without Default as required by #36.
The blanket impl requires Default in addition to other trait bounds for Commitment<T>. We use it to implement default_commitment_no_preimage
We also provide an impl for Commitment<T> (which is not covered by the blanket impl)
I added a test to ensure that Commitment<T> has all the expected traits, so as to avoid stupidity such as #34 in the future.

Why not do this downstream?
As discussed with @jbearer , the original plan was to do all this downstream. However, any attempt to do so hits an insidious build error:

conflicting implementations of trait CommitmentBounds for type commit::Commitment<_>
upstream crates may add a new impl of trait std::default::Default for type commit::Commitment<_> in future versions

We avoid this error by doing it here instead.

Ugh need a good way to respect the additivity of the serde feature gate without copy-pasting a bunch of code. Maybe a CommitmentBoundsSerdeless for when serde is off and then use it to implement CommitmentBounds for when serde is on.

Rust - trait bound depending on feature? - Stack Overflow
rust - Conditional bounds on trait impl based on feature flag? - Stack Overflow

You could also define
#[cfg(not(feature = "serde"))]
trait CommitmentBounds : CommitmentBoundsSerdeless {}

So that downstream users can use the same name CommitmentBounds regardless of the serde feature flag.
Also, I'm worried about the blanket impl. The idea of introducing this trait is to allow other types to be used as commitments besides Commitment. But downstream users trying to implement this trait for their new custom commitment type will run into the same error you did if they don't use the blanket impl. This effectively makes it very hard to use the trait for a commitment type that isn't Default. And since the trait is so easy to implement when the commitment type is Default, we really don't gain much IMO by providing the blanket impl (vs just documentation on how to implement the trait using Default).

#[cfg(not(feature = "serde"))]
trait CommitmentBounds : CommitmentBoundsSerdeless {}

Good idea.

Also, I'm worried about the blanket impl. The idea of introducing this trait is to allow other types to be used as commitments besides Commitment. But downstream users trying to implement this trait for their new custom commitment type will run into the same error you did if they don't use the blanket impl. This effectively makes it very hard to use the trait for a commitment type that isn't Default. And since the trait is so easy to implement when the commitment type is Default, we really don't gain much IMO by providing the blanket impl (vs just documentation on how to implement the trait using Default).

That's fair. I hate to force boilerplate upon downstream users like this but it seems that Rust has left us with little choice. 😕
New commits https://github.com/EspressoSystems/commit/pull/37/commits/4c4b404fd35fb31b93e215b1571450360e2075f7


Do not clobber install

fixes: https://github.com/conda-forge/rb-kramdown-feedstock/issues/2

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


prettier docs are not correct

@comparte/eslint-config version:
eslint version:
typescript version:
node version:

Problem description:
Suggested solution:
in README.md
yarn add -D @comparto/eslint-config should be yarn add -D @comparto/prettier-config

:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Check backup health

The Check backup health is now a setting item and follows the same process as for the Backed up with Border Wallet piece

Verified this issue on tribe app v 2.2.2(591)


A feature to add new row to MudTable and MudDataGrid

Feature request type
Enhance component
Component name
MudDataGrid MudTable
Is your feature request related to a problem?
No response
Describe the solution you'd like
MudTable and MudDataGrid support to display and edit data. But there is no built-in option to add a new row.
There should be a way to way to insert a new record to the grid or the table.
Have you seen this feature anywhere else?
Demo: https://blazor.syncfusion.com/demos/datagrid/inline-editing?theme=tailwind
Doc: https://blazor.syncfusion.com/documentation/datagrid/in-line-editing

Describe alternatives you've considered
No response
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Just add a new item to the table bounded collection

Just add a new object to Items and it will appear in the table or display a modal to add a more complex entry

Yes, i think user can easily implement their adding mechanism, a strict MudBlazor adding approach seem not a good idea. But maybe we should prepare try snippets to some copy-paste situations.

Just add this yourself. The Toolbar renderfragment is there for a reason.

It is better to add new row by Tab from last column and then after adding new row the focus should set within the first column of the added row.

It will be much easier for the end user to have a new row always on top (like the filter row).


Add files via upload

Your checklist for this pull request
Author name
Author:
Stefan Lighezan

About your game
What is your game about?
Checker Invasion is an endless survival game, where you are a checker that is unable to move, and using a cursor, must defend yourself from enemy checkers whose goal it is to hit you.

How do you play your game?
Use WASD to control the cursor. Press J while the cursor is over an enemy to shoot it. If an enemy collides with you, you will lose a heart.    Your health is in the top right corner.

Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Image (If an image is used)

[ ] The image is in the /games/img directory.
[ ] The name of the image matches the name of your file.

Thanks for your PR!

I liked the intensity of this game - it got me scrambling!  Congratz, if you're a teen and haven't received a Sprig device, feel free to fill out this form to receive one of your very own!  Also, please be welcome to join the Hack Club Slack and share your creation in the #sprig channel!


ATECC608A TRUST&GO

I woud like to know how use this software with a ATECC608A trus&go preprovisioned
Thanks.

I'm not sure about TRUST&GO, and it might not be compatible tor it.
because I cloned previous version of cryptoauthlib.


'Cancel' not prevent equation from being edited

I was fiddling with the logistics model and inspected one of the Auxiliary variables.  I clicked into the equation field of the inspector and typed random characters (I was wondering if it was editable).  I then clicked "Cancel" next to the save button, but my changes were already saved and the model had errors.
EXPECTED BEHAVIOR:
I would have expected "Cancel" to have prevented my changes from being saved.  "Save" button is right next to it, which I expect would save my edits.

surprising!  good find - I will look into this

Also ran into this today. Thankfully the undo button was right there :)


fix: angular deliver preset

Problem
In the new version of Angular (which is initialized by default by the Azion CLI) it has SSR functionalities. As a result, the folder structure resulting from the build has a new subdivision: Browser and Server. We currently only support code on the Browser side (in deliver mode).
Resolution
This PR moves the contents of the '.edge/storage/browser' folder to the root of the storage (.edge/storage/) and displays an alert if the user is using SSR resources.

:tada: This PR is included in version 2.3.0-stage.3 :tada:
The release is available on:

npm package (@stage dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix(model loading): warn when model revision is passed to gptq

Adds a check if model_revision is passed when using gptq and depending on axolotl to download from HF.
I chose to raise an error instead of modifying upstream repo as I don't think that's preferred right now.

Relates to #346


Issue 356, 486: Prevent changes to usable range of buffer

Closes #486
Closes #356

The session files seem to act as a cache if no --replay option is used. On a local machine the proof time is much faster without --replay (proving all tests takes ~4 min instead of ~23 min on lab), but for some reason on GitHub I could not see any difference in proof time.


python38Packages.Quandl: 3.6.1 -> 3.7.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.Quandl is: "Quandl Python client library"
meta.homepage for python38Packages.Quandl is: "https://github.com/quandl/quandl-python"
meta.changelog for python38Packages.Quandl is: "https://github.com/quandl/quandl-python/blob/master/CHANGELOG.md"
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.7.0 with grep in /nix/store/0pzw43y1i4i2fpq2f63wrbl61zm8idhn-python3.8-quandl-3.7.0

found 3.7.0 in filename of file in /nix/store/0pzw43y1i4i2fpq2f63wrbl61zm8idhn-python3.8-quandl-3.7.0

Rebuild report (if merged into master) (click to expand)

22 total rebuild path(s)

11 package rebuild(s)

11 x86_64-linux rebuild(s)
11 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
docbookrx
python38Packages.Quandl
python38Packages.qiskit
python38Packages.qiskit-aqua
python38Packages.qiskit-finance
python38Packages.quandl
python39Packages.Quandl
python39Packages.qiskit
python39Packages.qiskit-aqua
python39Packages.qiskit-finance
python39Packages.quandl

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/0pzw43y1i4i2fpq2f63wrbl61zm8idhn-python3.8-quandl-3.7.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.Quandl https://github.com/r-ryantm/nixpkgs/archive/d4dcf406ab55247dec400c492d13e63b7b097d42.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/0pzw43y1i4i2fpq2f63wrbl61zm8idhn-python3.8-quandl-3.7.0
ls -la /nix/store/0pzw43y1i4i2fpq2f63wrbl61zm8idhn-python3.8-quandl-3.7.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

8 packages built:

python38Packages.Quandl (python38Packages.quandl)
python38Packages.qiskit
python38Packages.qiskit-aqua
python38Packages.qiskit-finance
python39Packages.Quandl (python39Packages.quandl)
python39Packages.qiskit
python39Packages.qiskit-aqua
python39Packages.qiskit-finance

Maintainer pings
cc @ilya-kolpakov for testing.

Updated in #149301


Todo for new release

[ ] Write a changelog for all the changes since 3.2.0 related to #242
[x] Close this issue when released https://github.com/django-dbbackup/django-dbbackup/issues/325
[x] There's already a 3.3.0 release. So need to make a correct tag for that.
[ ] Close #213 when released as that issue should be solved with that.
[ ] Go through the doc tags and write documentation for those.
[ ] Linting should happen after unittests.
[ ] Upload automatically with tags as described in a prior PR
[ ] Automatic writing of changelog automation.

@jonathan-s To help with maintenance, you could consider applying to join JazzBand.


Fix named typed selection query

Calling type in a select expression with named bindings causes downstream errors as it seems the Query.Builder.count_alias!/2 function is not being applied correctly.
Fixes #3899

This fixes the issue at the Ecto.Query.Planner.field_type!/5 level but I'm not sure if this is the correct place. Is there an underlying issue in the Builder's escape/apply chain?
Removing the fix causes this error in the new test:
1) test select bound name type after planner (Ecto.Query.InspectTest)
   test/ecto/query/inspect_test.exs:394
   Assertion with == failed
   code:  assert i(query) == ~s"from p0 in Inspect.Post, as: :p, select: type(p0.visits, :integer)"
   left:  "from p0 in Inspect.Post, as: :p, select: type(p0.visits, {Ecto.Query.Builder.count_alias!(query, :p), :visits})"
   right: "from p0 in Inspect.Post, as: :p, select: type(p0.visits, :integer)"

@greg-rychlewski do you mind taking a look at your convenience? 🙏

@03juan This is the exact same change I was thinking :). Without the fix it falls to this pattern:
 defp field_type!(_kind, _query, _expr, type, _) do
    type
  end

And that's why you see the type as {Ecto.Query.Builder.count_alias!(query, :p), :visits}.
LGTM but just want to ping @josevalim to make sure I'm not missing anything. I'm a bit green in this area of the codebase.

And that's why you see the type as {Ecto.Query.Builder.count_alias!(query, :p), :visits}.

For sure, I'm just wondering whether we could be applying the quoted code, generated in calculate_named_binds/2, properly somewhere else in the apply chain.

I'm a bit green in this area of the codebase.
Totally with you on this, and I'm out of my depth in macros too!

Thanks for the comment

It is a bit weird but it seems to be correct. I have just added a tiny comment. If it passes with my comment, we are good to go!

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

I was able to clean it up a bit further in a later commit. The real issue was that we were escaping all types, which made it so the ast arrived to the planner, not its value!

Thank you for the feedback! I'm happy there was an idiomatic fix, this one wasn't sitting right. 👏


demangler: swiftcc check and support of _S

This PR contains 2 demangler changes:
*) add an API to check if a function has the swiftcc calling convention
*) also support the future mangling prefix ‘_S’

@swift-ci Please smoke test and merge

@swift-ci Please smoke test macos

@swift-ci Please smoke test macos


gn: Implement the "xwalk_runtime_lib_lzma_apk" target

This was hopefully the last missing Android target in the gyp->GN
conversion, and it is an ugly one: we are forced to keep a hardcoded
list of all the files we want to compress and ship as assets, which
makes the change to runtime/android/runtime_lib/BUILD.gn bigger than
usual.
Since android_assets() in GN requires a list of all files being
shipped as assets, we can simplify lzma_compress.py and get rid of its
different operation modes: instead of passing --mode=show-output-names
we just list all files that are being compressed in gyp.
While here, also use a temporary directory to perform the compressions
in lzma_compress.py, as it's then removed automatically in case
something goes wrong and we are not left with dangling files in the
build tree.
BUG=XWALK-7285

@heke123

@rakuco Thanks!
LGTM


Remove rayTracingPipeline requirement from rayquery

rayquery test doesn't use ray tracing pipelines so it shouldn't enable this feature.
See: https://github.com/SaschaWillems/Vulkan/issues/1004

Thanks for your PR. Very much appreciated!


Sort version dropdown

Sort the version dropdown in a descending order (highest, most recent version first).

Closes https://github.com/thoughtbot/neat/issues/565 🎉

@dgalarza I just pushed the change, is that what you had in mind?

👍  thanks @JasonEtco! Looks great!

🎉


[Feature] add user_id field to anonymously estimate active users

user_id should be a random id (e.g. uuid v4) that is used to indicate notes originate from the same user.
From this, I can estimate the amount of active users per week/month with no or limited impact on privacy.

shipped in #22


Merge rukpak updates into main + Required Fixes

Reverts openshift/platform-operators#87 and adds required fixes for downstream functionality.

Shall we go ahead and add a commit that reverts 29f9cd53ab4b3f3c8df22d206ab5e54289022aed in this PR?

/hold

/lgtm
/approve

/unhold


write design doc for Spanner retries

Certain spanner operations need to be retried. We may need to retry due to idempotent network issues, failed RW transaction commits, etc. We may need to support retying at different levels. This is all complicated enough that we probably need a short design doc proposing how retries should work.

Note: This may also be related to #271

Some general thoughts on this topic, for consideration when writing the design doc:
Some operations in spanner are simple idempotent RPCs by definition, for example GetDatabase or GetInstance are simple reads, they return a single value, they either succeed or fail. Those can be safely retried for transient failures.
That suggests one should define what failures are transient, for that, this is a good start: https://grpc.github.io/grpc/cpp/md_doc_statuscodes.html
Some operations in Spanner are idempotent even though they are write operations, for example, a Commit() for a transaction with an id() would only succeed once.  That suggests such operations are retryable on transient failures.
Some operations in Spanner like GetOperation() RPCs can be allowed to fail without retrying because they execute as part of polling loop. There is an implicit retry for them.  Do we want to avoid retries for operations inside a RunTransaction()/RunCommitBlock()?
In other services operations are idempotent depending on their parameters (e.g., a "create if does not exist" operation is idempotent in GCS, while "create new version" is not).  Do we have such operations in Spanner?
Some operations in Spanner (Read() and ExecuteSql()) can be resumed on a partial failure, that is the issue raised in #271.
One question is whether something like ExecuteBatchDml() is retryable on a partial failure.  Should the remaining (not applied) statements be executed a second time?
In addition to the question of what gets to be retried one should determine how?  What class is responsible for retrying?  For how long?  Do we backoff?  And are these p

I am going to call this done.


How many computing resources did you use to train the model?

I would like to know if your model can be trained on Nvidia RTX 3090s?

Certainly, it can be trained on NVIDIA RTX 3090s. The batch size have to be adjusted accordingly.

I would like to know the GPU numbers while training the model. I train a model with 2 Nvidia V100 and batch size = 1, but it still has the error "CUDA out of memory".

I would like to know the GPU numbers while training the model. I train a model with 2 Nvidia V100 and batch size = 1, but it still has the error "CUDA out of memory".

Please note that the batch size here is for a batch on a single GPU. A V100 with 24GB memory can handle the training with a batch size of 1.

I would like to know the GPU numbers while training the model. I train a model with 2 Nvidia V100 and batch size = 1, but it still has the error "CUDA out of memory".

Please note that the batch size here is for a batch on a single GPU. A V100 with 24GB memory can handle the training with a batch size of 1.

Thank you very much.

Certainly, it can be trained on NVIDIA RTX 3090s. The batch size have to be adjusted accordingly.
Thank you so much,I would like to know how many gpu hours it take you to train the model and which kind of GPU you used？Looking forward to your reply.


fixed build not working after pr/158 on #137

When changing English version, other language versions need to be updated as well, when introducing breaking changes, like updating components (Home.vue).

My bad would've catched it if I ran build before opening the PR. Would be great to set up a CI build checker in PR's to avoid this in the future

No worries man. Build checker Action Would be awesome! You think you can whip something up? Sounds like a legit bounty to me.

Yes we can add that as a bounty.

My bad would've catched it if I ran build before opening the PR. Would be great to set up a CI build checker in PR's to avoid this in the future

No worries man. Build checker Action would be awesome! You think you can whip something up? Sounds like a legit bounty to me.

Sure thing! I'll create an issue


Arch Linux os-release

Here is an /etc/os-release file from Arch for your collection:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

Thanks @nixfu, os_release added in https://github.com/stejskalleos/os_release/commit/d312c06c4aff89684372c7fa8d55fa837bffde4f


Resolve 4605: enhance SCONS_MSCOMMON_DEBUG handling of invalid input

Enhancements:

Detect double quote character(s) in SCONS_MSCOMMON_DEBUG value and raise a UserError immediately.
Catch logging module OSError and FileNotFoundError and wrap in SCons UserError.

Resolves #4605
Contributor Checklist:

[ ] I have created a new test or updated the unit tests to cover the new/changed functionality.
[ ] I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
[ ] I have updated the appropriate documentation

Looks straightforward enough to me.


exit status 1

I am facing this error which I believe might relate to the mismatch version of Arduino_Json. Can you help me with this. Plenty of thank to your great work.
In file included from something\ChatGPT_Client\src/ChatGPT.hpp: In member function 'bool ChatGPT<T>::simple_message(const String&, const String&, const String&, String&)':
something\\Documents\Arduino\libraries\ChatGPT_Client\src/ChatGPT.hpp:30:7: error: 'DynamicJsonDocument' was not declared in this scope
       DynamicJsonDocument doc(result.length() + 200);
       ^~~~~~~~~~~~~~~~~~~
something\\Documents\Arduino\libraries\ChatGPT_Client\src/ChatGPT.hpp:31:7: error: 'DeserializationError' was not declared in this scope
       DeserializationError error = deserializeJson(doc, result.c_str());
       ^~~~~~~~~~~~~~~~~~~~
something\\Documents\Arduino\libraries\ChatGPT_Client\src/ChatGPT.hpp:32:11: error: 'error' was not declared in this scope
       if (error) {
           ^~~~~
something\\Documents\Arduino\libraries\ChatGPT_Client\src/ChatGPT.hpp:32:11: note: suggested alternative: 'perror'
       if (error) {
           ^~~~~
           Perror
something\\Documents\Arduino\libraries\ChatGPT_Client\src/ChatGPT.hpp:36:30: error: 'doc' was not declared in this scope
       const char* _content = doc["choices"][0]["message"]["content"];
                              ^~~

exit status 1
Compilation error: exit status 1

@yuufong Which ArduinoJson version are you using? It should be ArduinoJson 6.X. (The current version is 6.21.2)


[dv/otp_ctrl] Fix cdc issue

Fix otp cdc issue because the testbench did not wait long enough before issuing the csr read.

@cindychip there are several ROM failures in CI which seem unrelated - can you make sure this PR is rebased on the newest state on master?


Add FIAT currency conversions

Would be good to allow the user to type in an amount in a FIAT currency and to auto convert to sats.
Check the BlueWallet code for how they do this.
Might need a backend servce, wonder if there is something in the LNBits LNDHub extension to do this?

BTCPay Server rate providers here
e.g. https://api.coingecko.com/api/v3/exchange_rates
Rates probably update every 15 minutes so could be cached for a while - maybe 5 minutes - for PoS performance.

This is done


Any plans to introduce client interceptors?

The Twirp canonical implementation supports both server and client interceptors. This allows us to do similar things for both clients and servers, such as emit specific metrics based on type of request. In the Ruby stack, this facility exists only for the server side. Are there any plans to introduce client interceptors as well?
As a side note, what twirp-ruby calls service hook is actually server interceptor in the canonical lingo. Any reason for this naming choice?

ref https://github.com/arthurnn/twirp-ruby/issues/66 for similar/equivalent "around hook" suggestion


New package: Blowfish v0.1.0

Registering package: Blowfish
Repository: https://github.com/2HgO/Blowfish.jl
Created by: @2HgO
Version: v0.1.0
Commit: c3402149cca1413c67128d743abc5585a9656b47
Reviewed by: @2HgO
Reference: https://github.com/2HgO/Blowfish.jl/commit/c3402149cca1413c67128d743abc5585a9656b47#commitcomment-40191841

close


Update XLC16 to FP11 on AIX build machines

We have tested the new FP11 of the XLC11 on two of the AIX machines (test-osuosl-aix715-ppc64-2 and build-osuosl-aix71-ppc64-1) and it successfully builds XLC11 now that the prereq of XLC16 has been put into openjdk.
We should therefore verify that the other builds using XLC16 are unaffected, and assuming they are still good, we should install it on the other machines. For now I have marked build-osuosl-aix71-ppc64-1 offline so that the builds will all run on the upgraded machine in order to verify it.

Builds on the upgraded system:

https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/65/console
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk17u/job/jdk17u-aix-ppc64-temurin/51/console
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk18u/job/jdk18u-aix-ppc64-temurin/46/console
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk/job/jdk-aix-ppc64-temurin/61/console

Those failed due to issues with files in /tmp. Re-running:
Builds on the upgraded system:

https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11u/job/jdk11u-aix-ppc64-temurin/66/console
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk17u/job/jdk17u-aix-ppc64-temurin/52/console
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk18u/job/jdk18u-aix-ppc64-temurin/47/console
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk/job/jdk-aix-ppc64-temurin/62/console

(NOTE: This is a subtask required to fully complete https://github.com/adoptium/temurin-build/issues/2882)

FYI: All AIX systems have XLC-FP11 installed (last Thursday)

LGTM - re-enabled the build tags


Request: README/docs on only including this in dev

Could the README be expanded with a section explaining how to only load in the component/styles when running the dev server? I saw you tweet that that's what you were doing.

Will add it as soon as I precisely figure it out too, there are a lot of remix setups and dynamic imports don't work everywhere so it's a bit trickier than just doing import("remix-development-tools", module => module)


Support iframe autoconnect

This adds support for the iframe to autoconnect when it detects it's in an iframe whose parent is running Cosmiframe.

memorializing discord convo:
we want autoconnect by default because the app has to specify which origins it trusts, and they may not want to add the iframe wallet to a wallet connection modal as it might not make much sense to the user. thus, let's just make autoConnect a boolean that defaults enabled, and attempt auto-connection to all chains provided to GrazProvider


main.py error reporting

2023-11-28

NOTE 'RDA extension' = uwlswd_vocabs/university_of_washington_libraries_rda_application_profile_extension/university_of_washington_libraries_rda_application_profile_extension.rdf

Run main.py - all target resources processed successfully except RDA extension - error - see CLI input/output 1
Attempt to open RDA extension in oXygen - UTF-8 error [1 below]
commit and push changes to all resources except RDA extension
git restore changes to RDA extension
Open RDA extension in oXygen, OK
Run main.py for RDA extension only - error - see CLI input/output 2
Attempt to open RDA extension in oXygen, UTF-8 error [1 below]
git restore changes to RDA extension, branch bcp_lang_tags is up-to-date

[1]

@briesenberg07
Was this after making any changes to that RDF/XML file?
And is this in the bcp_lang_tags branch?

Hi @cspayne
This is in the bcp_lang_tags branch. Changes to the RDA extension RDF/XML were made in commit 7c05513

Error from main.py run during meeting - CLI input/output 3

@briesenberg07
I just made a change to the python files that specifies that RDFLib should encode RDF/XML files when they are serialized.
Would you pull that commit and then try running it on the old version of RDA Extension and see if you are still getting that error?


Comment in actual features in notes-template.md

So you can actually add features where indicated and those are not commented out.
I ran into this yesterday when trying to add release notes and I saw that they didn't show up in the actual notes.

@bot-gradle test and merge

OK, I've already triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

OK, I've already triggered a build for you.


Fix MiqRequestTask#options configuration_script_id

The ConfigurationScriptPayload.run method returns an miq_task_id which was causing this to fail.
Also added some specs covering MiqRequestTask#deliver_queue when using a workflow

Backported to quinteros in commit 7de1fc12f4b642e3cff81ad97832cce93758abc0.
commit 7de1fc12f4b642e3cff81ad97832cce93758abc0
Author: Jason Frey<EMAIL_ADDRESS>Date:   Fri Sep 29 12:20:08 2023 -0400

    Merge pull request #22722 from agrare/fix_configuration_script_id_miq_request_task

    Fix MiqRequestTask#options configuration_script_id

    (cherry picked from commit ba51ae6b2aad91085d69bfb0d73c97f223856c01)


Support programming ligatures

Such as in the font http://github.com/tonsky/FiraCode .

Duplicate of #192


Bubble image overlaps with status bar

I found in 7.1.0 that when the view controller has no top bar and the first message is an incoming message, that message will overlap the status bar until the input toolbar is selected.

you can change the inset "topContentAdditionalInset = 100"

yep. topContentAdditionalInset or collection view content insets


typo in appsettings IncludeScopes parameter

In the configuration section, in the appsetting example
"IncludeScopes": "true"
should be without quotes
"IncludeScopes": true

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

ID: 7184a308-a254-9350-a5cd-5bced1f369ae
Version Independent ID: 726e3bf1-f367-d733-8933-bccc04da0e16
Content: Logging in ASP.NET Core
Content Source: aspnetcore/fundamentals/logging/index.md
Product: aspnet-core
GitHub Login: @ardalis
Microsoft Alias: tdykstra

@niboj Thank you for reporting this problem. The fix will go live later today.


To decree form

PR includes

[x] Feature

Related issues

https://github.com/user-attachments/assets/4932d99f-e54a-4d86-8d49-36bd3a68f3f4


Response codes for testChunks

I find the response codes to implement testChunks feature on the server a bit strange.

If this request returns a 200, 201 or 202 HTTP code, the chunks is assumed to have been completed.

IMHO It would make more sense for us to return 304 Not Modified, 206 Partial Content or 302 Found when chunks already exist on the server.

If request returns a permanent error status, upload is stopped.
That's fine.

If request returns anything else, the chunk will be uploaded in the standard fashion.
Change this to use the ones we currently use for 1) so 200 Ok, 201 Created or 202 Accepted.

It seems that this issue has been resolved. I was using an old version of flow.js in which I had used the PHP backend example. I was returning header("HTTP/1.0 404 Not Found"); and that was causing it to stop. I simply switch it to header("HTTP/1.0 206 Partial Content"); and it worked as before.


experimental_connect_to_cluster hangs

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):No custom code

TensorFlow installed from (source or binary):Binary

TensorFlow version (use command below): '2.1.0-dev20191124'

Python version:3.5.3

Using GCP image: debian-9-tf-nightly-2-x-v20191124

Using TPU version: v2-8 , nightly-2.x , preempitble

zone(probably irrelevent): us-central1-b

*The TPU and Host were built without ctpu tool
Code to reproduce the issue
import tensorflow as tf
resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu='grpc://<IP_ADDRESS>:8470')
tf.config.experimental_connect_to_cluster(resolver)

Describe the current behavior
The experimental_connect_to_cluster call hangs indefinitely.
No error message is produced, it is unclear what should be done.
I had the same problem in 2.0.0.
Describe the expected behavior
a.Call shouldn't hang and should provide informative error information
b. If some environment settings need to be set to facilitate TPU-host communications, it should be better documented.
Other info / logs
Jupyter log is:
[I 22:07:17.299 NotebookApp] Kernel restarted: c9cf10ac-3d03-4a62-a737-3f8e94b44aec
[W 22:07:18.426 NotebookApp] SSL Error on 13 ('<IP_ADDRESS>', 59971): [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:720)
[I 22:07:18.935 NotebookApp] Restoring connection for c9cf10ac-3d03-4a62-a737-3f8e94b44aec:c5d1ab723abe433986849772ed497483
[I 22:07:18.935 NotebookApp] Replaying 3 buffered messages
2019-11-24 22:07:31.539205: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-11-24 22:07:31.546892: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-11-24 22:07:31.547399: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55dc09561c30 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2019-11-24 22:07:31.547455: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2019-11-24 22:07:31.554227: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:300] Initialize GrpcChannelCache for job worker -> {0 -> <IP_ADDRESS>:8470}
2019-11-24 22:07:31.554338: I tensorflow/core/distributed_runtime/rpc/grpc_channel.cc:300] Initialize GrpcChannelCache for job localhost -> {0 -> localhost:31900}
[I 22:07:43.819 NotebookApp] Saving file at /project_drive/project/Trainv3.ipynb
[W 22:07:43.820 NotebookApp] Notebook project_drive/project/Trainv3.ipynb is not trusted

gcloud compute instances describe host:
canIpForward: false
cpuPlatform: Intel Haswell
creationTimestamp: '2019-11-24T10:28:54.344-08:00'
deletionProtection: false
description: ''
disks:
- autoDelete: false
  boot: true
  deviceName: instance-1
  guestOsFeatures:
  - type: VIRTIO_SCSI_MULTIQUEUE
  index: 0
  interface: SCSI
  kind: compute#attachedDisk
  licenses:
  - https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-9-stretch
  - https://www.googleapis.com/compute/v1/projects/ml-images/global/licenses/debian-tensorflow
  mode: READ_WRITE
  source: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/zones/us-central1-b/disks/instance-1
  type: PERSISTENT
- autoDelete: false
  boot: false
  deviceName: yaop-project
  index: 1
  interface: SCSI
  kind: compute#attachedDisk
  mode: READ_WRITE
  source: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/zones/us-central1-b/disks/yaop-project
  type: PERSISTENT
displayDevice:
  enableDisplay: false
id: '7023192423693513994'
kind: compute#instance
labelFingerprint: 42WmSpB8rSM=
machineType: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/zones/us-central1-b/machineTypes/n1-highmem-4
metadata:
  fingerprint: oW9kyu6jwEE=
  kind: compute#metadata
name: instance-1
networkInterfaces:
- accessConfigs:
  - kind: compute#accessConfig
    name: External NAT
    natIP: <IP_ADDRESS>
    networkTier: PREMIUM
    type: ONE_TO_ONE_NAT
  fingerprint: VbmPG2_4Dak=
  kind: compute#networkInterface
  name: nic0
  network: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/global/networks/default
  networkIP: <IP_ADDRESS>
  subnetwork: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/regions/us-central1/subnetworks/default
reservationAffinity:
  consumeReservationType: ANY_RESERVATION
scheduling:
  automaticRestart: true
  onHostMaintenance: MIGRATE
  preemptible: false
selfLink: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/zones/us-central1-b/instances/instance-1
serviceAccounts:
- email<EMAIL_ADDRESS>
  scopes:
  - https://www.googleapis.com/auth/devstorage.read_only
  - https://www.googleapis.com/auth/logging.write
  - https://www.googleapis.com/auth/monitoring.write
  - https://www.googleapis.com/auth/servicecontrol
  - https://www.googleapis.com/auth/service.management.readonly
  - https://www.googleapis.com/auth/trace.append
startRestricted: false
status: RUNNING
tags:
  fingerprint: Uv7CXg8qQhM=
  items:
  - http-server
  - https-server
  - jupyter
  - nomachine
zone: https://www.googleapis.com/compute/v1/projects/deeplearning-257902/zones/us-central1-b

Trying to get tpu connection to work, I observed similar behavior in TF 1.15, in
tf.contrib.distribute.initialize_tpu_system(resolver)
which seems to be the previous name for the function.
In a test case using all default settings with ctpu, and TF 1.15.
if the tpu is down or the ip is incorrect, or it is unreachable for some reason,  it will hang similarly forever.
In my case, it seems to be something about the network connectivity.

@MikeOfZen, Could try with proper network connectivity and check again. Thanks!

@gadagashwini ,Hi, yes, I got it working, it was due to tf.config.experimental_connect_to_cluster(resolver) not being able to reach the server, for any reason (might be down, wrong address, firewalled, etc...).
It's continuously polling for the server and if the server comes online, the call will proceed.
It might be the design, but I believe it's an issue for a number of reasons.

It doesn't log that it's waiting for the server, it just logs that it's initializing it
This behavior is undocumented.
The typical behavior in such functions is to have a number of retries (as a parameter of the function call), and an appropriate informative exception if it fails + logging information for each retry.

This issue is compounded by the TPU network accessibility, the TPU servers don't respond to pings and it's hard to verify they are indeed accessible.
The only way I found to work to test connectivity is nmap -Pn -p8470 TPUIP

There's Another serious issue with this command that might warrant a separate issue, but for now I'm gonna bundle with this, because it's about the command input.
The simple code:
import tensorflow as tf
tpu_address = 'grpc://<IP_ADDRESS>470'  #missing ':' between ip and port
resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu=tpu_address)
tf.config.experimental_connect_to_cluster(resolver)

Has the distinction of being able to crash the python kernel (3.5).

Was able to replicate the issue in TF v2.5,please find the gist here..Thanks !


Rigid Bodies floating in the air

Godot version:
First appeared in https://github.com/godotengine/godot/commit/a9d4cde0f5abc399332dde0c7415b99a5796eb34 (result of git bisect)
OS/device including version:
Linux
Issue description:
A project that worked as expected in Godot 3.1.1 Stable has issues with rigid bodies in the latest master.
Actual result: rigid bodies float in the air, remain there when hit, or overlap each other.

Expected result: rigid bodies fall to ground

The commit in question added the following lines:
https://github.com/godotengine/godot/commit/a9d4cde0f5abc399332dde0c7415b99a5796eb34#diff-51c3f48359856e1f53cfeb65f82a859fR302
On its own this is correct, as it prevents an unchanged property from firing a spurious shape_changed().  However, taking out the guard fixes the issue.  This leads me to believe that some other function should be calling shape_changed() and is not, and the fact that it used to be always called here was covering for it.
Steps to reproduce:

Run the project below, turn left to find some floating rigid bodies.
Comment out the two lines listed above and rebuild the engine.
Re-run the project and the rigid bodies will work normally.

Minimal reproduction project:
Not minimal, but easily reproduced in my project: https://github.com/jonri/StuntPlaygroundGodot

CC @ShyRed @AndreaCatania

If you reset the scale of the collision shapes to 1 and instead resize them using the handles, then the rigid bodies should touch the ground as they should.
I'm not sure if the change is intended though.

Do you have the sleeping on? if Yes this is the reason

When I imported the original collision objects into Blender, I failed to apply the scale on a couple of them before re-exporting.  The problem is indeed limited only to the ones that have a scale on the shape.
I'll definitely fix my shapes since we consider it bad practice to scale collision shapes, but it was actually working in the previous release so we might still want to consider making the code work again.  Given that it worked with the extra shape_changed() call, it might just be a matter of calling that when the scale is set.
If we want to support this, I can try to figure it out.  Or if the official position is that we shouldn't support it, I think we should have an editor warning flag show up when the scale is set.

Turned out to be an easy one-liner so I sent in a PR.  Let me know if you want a minimal example to isolate the issue for testing.


DrakeScans: Update domain

Closes  #3977
Checklist:

[ ] Updated extVersionCode value in build.gradle for individual extensions
[x] Updated overrideVersionCode or baseVersionCode as needed for all multisrc extensions
[x] Referenced all related issues in the PR body (e.g. "Closes #xyz")
[ ] Added the isNsfw = true flag in build.gradle when appropriate
[x] Have not changed source names
[ ] Have explicitly kept the id if a source's name or language were changed
[x] Have tested the modifications by compiling and running the extension through Android Studio
[ ] Have removed web_hi_res_512.png when adding a new extension

Hej, can I ask what can i do with this? After update I have this problem and don't know what to do.


Extending scripts attached to a preloaded scene

If a script is attached to a scene that is preloaded in a different script that is also extended the extension for the script of the preloaded scene will not work. This is because the extension scripts are parsed before take_over_path is used to add the modified version to the cache.

closed by https://github.com/GodotModding/godot-mod-loader/pull/378


Add nofollow.regexUrl to GenericLinkExtractor

This adds support to be able to entirely bypass link extraction from certain pages (but index the pages themselves).

Thanks for the pull request!


[Bug]: Game is also running on the zero also.

Give a brief about the bug ✍
Description: Game is also running on the rows = 0, columns =0 and players = 0.
What is the expected behavior? 🤔
Description: It should report an error or message to the user.
Provide step by step information reproduce the bug 📄
Description : I will create the message to the user which shows the minimum rows, columns and players to be selected by user.
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

If you have any doubt you can directly send message on our discord (https://discord.gg/rZb46cCMmK), we have created seprate chennals for all projects...
Thank you :)

please assign me this issue