Adding a reference to Xamarin.iOS.SwiftRuntimeSupport breaks build

Create a new Xamarin forms project.  Build and deploy it to iOS 14.5.  Everything works.  Add the Nuget package Xamarin.iOS.SwiftRuntimeSupport and I receive the following error:
Error		The command "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool --copy --verbose --sign 'XXXXXX' --scan-executable 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/App8.iOS' --scan-folder 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/Frameworks/' --scan-folder 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/PlugIns/' --platform 'iphoneos' --toolchain '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/' --destination 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/Frameworks/' --resource-destination 'bin/iPhone/Debug/device-builds/iphone12.1-14.6/App8.iOS.app/' --resource-library libswiftRemoteMirror.dylib --unsigned-destination 'obj/iPhone/Debug/device-builds/iphone12.1-14.6/SwiftSupport' --strip-bitcode --strip-bitcode-tool '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip' --emit-dependency-info 'obj/iPhone/Debug/device-builds/iphone12.1-14.6/SwiftStdLibToolInputDependencies.dep' --source-libraries '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/../../../../../Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphoneos'" exited with code 255.	App8.iOS	C:\Users\xxx.nuget\packages\xamarin.ios.swiftruntimesupport\0.2.0\buildTransitive\Xamarin.iOS.SwiftRuntimeSupport.targets	19
How do I investigate what code 255 is?  If I remove the package, everything builds and deploys normally.

Not sure if its the same problem, but this package has been giving me grief as well lately...
Whenever I try to Archive for publishing, I get the error "ditto exited with code 1" and this in the log:
Target _SRSCopySwiftSupport:
    Copying SwiftSupport folder from obj/Release/SwiftSupport to /SwiftSupport folder.
    /usr/bin/ditto obj/Release/SwiftSupport /SwiftSupport
    ditto: Cannot get the real path for source 'obj/Release/SwiftSupport'
    /Users/tompi/.nuget/packages/xamarin.ios.swiftruntimesupport/0.2.0/buildTransitive/Xamarin.iOS.SwiftRuntimeSupport.targets(25,9): error MSB6006: "ditto" exited with code 1.

Not sure if its the same problem, but this package has been giving me grief as well lately... Whenever I try to Archive for publishing, I get the error "ditto exited with code 1" and this in the log:
Target _SRSCopySwiftSupport:
    Copying SwiftSupport folder from obj/Release/SwiftSupport to /SwiftSupport folder.
    /usr/bin/ditto obj/Release/SwiftSupport /SwiftSupport
    ditto: Cannot get the real path for source 'obj/Release/SwiftSupport'
    /Users/tompi/.nuget/packages/xamarin.ios.swiftruntimesupport/0.2.0/buildTransitive/Xamarin.iOS.SwiftRuntimeSupport.targets(25,9): error MSB6006: "ditto" exited with code 1.

Having the same issue here with vers 0.2.1.
@tompi did you find a solution?

Hi,
Having the same issue here with version 0.2.1.

Visual studio Mac 17.4 build 2406
Xcode 14.1
Xamarin.ios <IP_ADDRESS>
Xamarin.iOS.swiftruntimesupport 0.2.1

please, has anyone found a solution?

@tompi @Totonti @mrrenaud  Have you found a workaround for that?

Does anyone found a solution?

Adding this to your csproj might fix it:
<Target Name="_SRSCopySwiftSupport" />

Note that you'll also have to make sure the min iOS version (the SupportedOSPlatformVerison property in the csproj) is at least 12.2.

I think I fixed this in PR #1431

Issue present in MacOS sonoma with the latest VS and xcode 15
  Target _SRSCopySwiftSupport:
        Copying SwiftSupport folder from obj/Release/xamarin.ios10/SwiftSupport to /SwiftSupport folder.
        /usr/bin/ditto /obj/Release/xamarin.ios10/SwiftSupport /SwiftSupport
        ditto: Cannot get the real path for source 'obj/Release/xamarin.ios10/SwiftSupport'
        /.nuget/packages/xamarin.ios.swiftruntimesupport/0.2.1/buildTransitive/Xamarin.iOS.SwiftRuntimeSupport.targets(25,9): error MSB6006: "ditto" exited with code 1.

@tompi @Totonti @mrrenaud @rolfbjarne
any insights on this? (the path obj/Release/xamarin.ios10/SwiftSupport doesn't really exists) and i've looked in all obj/ in the solution

@WanftMoon did you try the workaround here: https://github.com/xamarin/XamarinComponents/issues/1198#issuecomment-1886427642?

@WanftMoon did you try the workaround here: #1198 (comment)?

Yeah, tried in the native binding, then the lib wrapping the native binding and then in the iOS project, then tried all of the 3.

@WanftMoon did you try the workaround here: #1198 (comment)?

@rolfbjarne Got it working!!
I had the swift package in the native bidings, so i just removed from it and added it to the target iOS project. Then VSMac finally got to archive it.
But if I may question, the <Target Name="_SRSCopySwiftSupport" />  will not copy the swift libs. Is there any point in adding the Xamarin.iOS.swiftruntimesupport nuget after iOS 12.2, or still needed for the build?

Is there any point in adding the Xamarin.iOS.swiftruntimesupport nuget after iOS 12.2, or still needed for the build?

It looks like it's not needed if you set the deployment target to at least iOS 12.2, but I might be wrong. Note that you might also get the reference through another NuGet package, so it might not be that easy to remove the reference.


Deployer doesn't test the chain providers

As an idea for a new feature, the deployer can get the chain ID from each provider and confirm that it matches the chain ID it was used under

The ping-providers.ts script from the api3dao/chains repo has a related example of confirming chainId:
https://github.com/api3dao/chains/blob/338b1b700af404a2620c5451bf0c50839f09f742/scripts/ping-providers.ts#L1-L12C4

Good point. As in @api3/chains we should validate that the provider is synced

We've agreed on the call not to do this. (cc: @dcroote )


Fix errors when trying to enable Kiali in Helm installation

The attributeRestrictions aren't documented in the PolicyRule API reference.
Specifying those generates errors.
Fixes #6583

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ymesika
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: gyliu513
Assign the PR to them by writing /assign @gyliu513 in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/assign @gyliu513

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gyliu513, ymesika
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS [gyliu513]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[Bug]: Inconsistent footers

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The footers are not consistent.
Page 1:

Other pages:

I would like to make it consistent over all pages
Add Screenshots
No response
What browsers are you seeing the problem on?
Chrome
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

Could you please assign the issue to me ? I' am eager to drive in and make a meaningful impact .Thankyou for considering my request!"

2nd one is correct. due to some blunders, footers have been changed on homepage


SUP-1431 Upgrade path for pipeline teams

PR checklist:

[x] docs/ updated
[x] tests added
[x] an example added to examples/ (useful to demo new field/resource)
[x] CHANGELOG.md updated with pending release information

I've had a play around with an automated test and manual test and can't actually get it to throw an error. It just removes the team block from state and is fine.
It leaves the team/pipeline relationship in place though so if switching over to buildkite_pipeline_team it will cause an error because the team is already present. I don't think that is something we can fix automatically for people though because it would mean removing the team which could break users workflows.
We'll need to outline how to upgrade in the docs for v1.0 so it doesn't cause an outage for them

I added a callout to the docs page:


LokiNativeScriptAdapter saveDatabase not working

First of all I'm writing a mobile application using NativeScript so because of that I'm using LokiNativeScriptAdapter. I'm trying to download some data and save into loki database but the application stopped working and I didn't understand why that happened cause nativescript write file is async. So after some debug I found that the LokiNativeScriptAdapter saveDatabase was never hit and the persistence adapter is type of LokiFsSystemAdapter and not of LokiNativeScriptAdapter. Should this happen?

No, so is this using partitioning adapter or just nativescript adapter alone?  If you pass in adapter to loki constructor options it should use that and not reassign the adapter... at least for the loki instance you are constructing.
Since this is opened as new issue, please post your call to loki constructor and adapter instantiations.

Now I'm using just nativescript adapter.
My code:
this.path = fs.path.join(fs.knownFolders.currentApp().path, "database.db");
this.db = new Loki(this.path, {adapter: new LokiNativeScriptAdapter()});

That looks right, so if you add something like this to the next line(s) :
console.log("Adapter class : " + this.db.persistenceAdapter.constructor.name);
console.log("Environment: " + this.db.ENV);

what does it output?

JS: Adapter class : LokiFsSystemAdapter
JS: Environment: NATIVESCRIPT

That looks wrong, so if you do this :
this.path = fs.path.join(fs.knownFolders.currentApp().path, "database.db");
var nsa = new LokiNativeScriptAdapter();
this.db = new Loki(this.path, {adapter: nsa});
console.log("nsa class : " + nsa.constructor.name);
console.log("Adapter class : " + this.db.persistenceAdapter.constructor.name);

JS: nsa class : LokiFsSystemAdapter
JS: Adapter class : LokiFsSystemAdapter

wtf
ok how about just :
var nsa = new LokiNativeScriptAdapter();
console.log("nsa class : " + nsa.constructor.name);

If that's the same, I'd say maybe you are requiring it incorrectly?

ow I realized that I was requiring it incorrectly.


Feature/step slider

Overview
Fixes: #4140
A slider that can have number of snap points specified in the inspector.
Original: https://gfycat.com/impolitefabulousauk
StepSlider: https://gfycat.com/happythatcow
I'm using 6 snap points on the left most slider, 10 on the middle and only 1 on the right most.
Changes

I added a StepSlider.cs that extends on PinchSlider.cs. To create the requested functionality I needed to change the private members to protected.
All other changes were made on separately created prefabs and scenes.

Verification
I tested this on the device as well as the emulator. Also tested two separate builds on Unity 2019.3.9f1 and 2019.4.7f1.

As a reviewer, it is possible to check out this change locally by using the following
commands (substituting {PR_ID} with the ID of this pull request):
git fetch origin pull/{PR_ID}/head:name_of_local_branch
git checkout name_of_local_branch

/azp run

Thank you! I'll add the description panel in the scene. I work on a windows machine and test on the device itself. I'll ask a friend for his Mac so I can thoroughly test the feature before requesting review again.
This is my first open source contribution so thank you so much for your time and feedback!
I wasn't able to message you on twitter but I was able to join the HoloDevelopers Slack group, is it okay to message you there if I have any questions?

/azp run

/azp run

Thank you! I'll add the description panel in the scene. I work on a windows machine and test on the device itself. I'll ask a friend for his Mac so I can thoroughly test the feature before requesting review again
I just saw that the PR build failed because I was missing meta files. I'll get those checked in in the next commit as well!
This is my first open source contribution so thank you so much for your time and feedback!
I wasn't able to message you on twitter but I was able to join the HoloDevelopers Slack group, is it okay to message you there if I have any questions?

Thank you very much for this great contribution! Yes, feel free to message me on the holodevelopers slack.

I added the experimental documentation but I wasn't sure where to include this in the main slider documentation so I briefly mentioned it at the top.

Hi @gauravb4 ,
Thanks so much for this PR! I wanted to let you know that the Elastic feedback systems coming in 2.5 are designed to precisely fill this functionality. The elastic sim has a snapping point configuration system built in, such that you can specify snapping intervals and the spring system will snap to these points. This will probably be integrated with the pinch slider at some point, which would accomplish this step-slider behavior.

@Zee2 Could I email you with some questions? I'm interested in contributing more to the project.

@Zee2 Could I email you with some questions? I'm interested in contributing more to the project.

Absolutely. My email should be on my website that I linked.

@gauravb4 Did you email me? It might have been lost. Would love to have a conversation about this feature.

/azp run

/azp run

/azp run


4708 add a warning for expired license (#5079)

Pull request opened by the merge tool on behalf of #5079

Merged in 1ca65968e1edfda774c8b1db7b8df74008bb5ed9


no rendering @cookieconsentview only on prod

Hello,
I have install your script and on 2 differents dev environnemnts, everything is ok but only on prod I have @cookieconsentview on screen and no render form/popup.
what can I check ?
thanks

https://github.com/whitecube/laravel-cookie-consent/issues/36


Could I copay all content of div tag?

I would like to copay all content of div tag like this

Hello

.......
   .........

What do you mean? Copy innerHTML of #copyHear?
new Vue({
  ...somecode,
  methods: {
    onClick () {
      this.$copyText(document.querySelector('#copyHear').innerHTML) // or outerHTML?
    }
  }
})

Yes, would copy of #copyHear.
I will try soon 👍

If you need text content instead, use textContent attribute.

@thearabbit If you solved your problem, please close the issue. Or I will close it later.

Sorry, have a bit busy.
Please wait

It work fine.
but could I use ref instead of document.querySelector('#copyHear').innerHTML?

Hello

.......
   .........

-----
methods: {
    onClick () {
      this.$copyText(this.$refs........)
    }
  }

Please advise

Very thanks, 😄


Awesome Portfolio website guide for beginners

https://github.com/ayushi-1408/Awesome-portfolio-website-documentation-for-beginners.git
Website link:
https://ayushi-1408.github.io/Awesome-portfolio-website-documentation-for-beginners/

https://ayushi-1408.github.io/Awesome-portfolio-website-documentation-for-beginners/

https://github.com/ayushi-1408/Awesome-portfolio-website-documentation-for-beginners.git
Website link:
https://ayushi-1408.github.io/Awesome-portfolio-website-documentation-for-beginners/

@ayushi-1408 can you please switch to the test branch of the repo, delete everything, and put the code for the website you built using mkdocs


Upcoming Community Standup stream has incorrect date/time, no GitHub issue for questions

Stream: https://www.youtube.com/watch?v=50PGkfLNDoQ
Suggest creating a GitHub issue for questions, a la WinUI.

Update: Steam now reflects the correct date/time.

Ah, I think I see the ask. @mevey, if you look at the WinUI repo, there's a pinned issue for the July WinUI Community Call. Since the subject for this week's WinUI call is Reunion, we should have a similar pinned issue letting Reunion folks know about the upcoming call and pointing them to the details at the WinUI issue. Can you work with @anawishnoff to set that up Monday?

There are two community calls this week. Learn more here https://github.com/microsoft/ProjectReunion/issues/110


[SYSTEMML-1141] Enable configurable testTemp location

Added the ability to override the default testTemp directory location of "target/testTemp" by setting JVM property systemml.testTemp.root.dir when invoking the maven command that produces the test failure.  (e.g., mvn test -e -Dtest=CSVReadUnknownSizeTest -Dsystemml.testTemp.root.dir=/tmp/foo/testTemp)
This enables formal build environments (typically larger enterprises) to better protect their assets while allowing tests to complete within less-protected hierarchies.

LGTM. Thank you @kevin-bates!


Ore placement blocking some ores

So today me, TVX and bunker were talking about the ores and found out that you can place certain ores while others are possible.
So I dont know if this should be possible or not. (This is only on the server, on single player it all works normal)
A list below will show the ore and yes or no behind it if its possible or not.
gold-no
iron-no
bauxite-no
silicon-no
coal-yes
lapis-yes
diamond-yes
redstone-yes
emerald-yes
nether quartz-yes
thunderstone-yes
leafstone-yes
waterstone-yes
firestone-yes
dusk/dawn stone-yes
sunstone-yes
ruby-yes
saphire-yes
amethyst-yes
crystal-yes

This is as intended. If you could place iron/gold ore then you could infinitely farm mining rpg levels.


not working when ipv6 packages/libraries are not installed

cannot install or cannot start after installation if ipv6 packages/libraries are not installed, complaining about libiptext6.so

cannot install or cannot start after installation if ipv6 packages/libraries are not installed, complaining about libiptext6.so

Hello @dancremar
The aegis script uses binaries included in the firmware (iptables, iprange, ipset, ip, and so on)
Although aegis does not use any of these binaries for IPv6, it is likely that at least one of them depends on libiptext6.so.
The library is included by default in the firmware, so it is not really an issue…
root@R7800:~$ find / -name *libiptext6*
/rom/usr/lib/libiptext6.so
/usr/lib/libiptext6.so

Anyway, this is not an aegis issue.
If you want to not have any IPv6 library, you would need to recompile the whole firmware without IPv6 support.


Add PublicHoliday Service and Tests

In this PR, I add an service that wraps the Location API from
"https://date.nager.at/api/v2/publicholidays/{year}/{countryCode}"
Closes #10

this pull request became redundant because i merged the two branches i worked on separately (for service and controller) into the branch that was previously merged


Iteration Plan: June 25 - July 6, 2018

This is the two week development plan for Atom for June 25 - July 6, 2018.
:atom: Atom Core

[x] Fix failing build for archive-view package (@jasonrudolph)
[x] Integrate atom/telemetry into atom/metrics (https://github.com/atom/metrics/pull/91) (@annthurium @jasonrudolph)
[x] Implement new metric to better understand awareness and perceived approachability of Atom's hackability (@jasonrudolph)
[x] Review Atom chat-ops and apps (@jasonrudolph)
[x] 🤒 Fix failing tree-view build (@daviwil)
[x] :necktie: Prepare for and deliver Demo Day presentation (@daviwil)
[x] :bug: Fix failing tests in Atom Nightly builds (@daviwil)
[ ] :night_with_stars: Finish Atom Nightly Releases PR atom/atom#17538 (@daviwil)
[ ] :memo: Publish RFC for moving "small" bundled packages back into atom/atom (@daviwil)
[ ] :memo: Prototype format for "This Month in Atom" blog series (@daviwil)
[ ] :bug: Git status for modified files doesn't update after git pull used in repo  https://github.com/atom/atom/issues/17355 (@daviwil)

:deciduous_tree: Tree-sitter

[ ] Ship Tree-sitter grammar injection PR 💉 (https://github.com/atom/atom/pull/17551)

Next iteration plan issue is here: https://github.com/atom/atom/issues/17660


Property 'new' is a static member of type 'Cloudinary'

Sorry if this is a basic question but I'm very new to typescript and I'm having trouble with getting Cloudinary to work with typescript.
Here are the relevant parts of the file.
import "cloudinary-video-player/dist/cld-video-player.min.css";
import cloudinary from "cloudinary-core";
import "cloudinary-video-player/dist/cld-video-player.min.js";

const VideoPlayer = props => {
  const cld = cloudinary.Cloudinary.new({ cloud_name: "dombgxi4e" });
}

and I get this error
TS2576: Property 'new' is a static member of type 'Cloudinary'
Failed to compile.

Any ideas how to fix this error?

Hi @davidhan527,  Currently we don’t support typescript with our video player. You can embed the video player in a javascript project.

@michalkcloudinay this seems to be a problem with the typing of import cloudinary from "cloudinary-core" and nothing with the video player, I do not understand why this issue has been closed?

Hi @PaulPCIO does this solve it for you?
import {Cloudinary} from 'cloudinary-core';
const cld = new Cloudinary({cloud_name: "demo"});

Yea that solved it! thanks


Canvas Box Overlay

Is your feature request related to a problem? Please describe.
Leaflet supports image and video overlays. I have a project that need a canvas overlay.
I looked at the documentation fairly deeply and did not find a way to do that, i.e. place a dynamic canvas at a given bounding box. I then posted a stack overflow question but have not yet heard back.
Describe the solution you'd like
I would like the equivalent to the image or video overlay, but without the url, i.e. a dynamic canvas with bounds.
Describe alternatives you've considered
I could use Mapbox, here is an example.
In Mapbox i used:
export function addViewLayer(map, id, bbox, canvas) {
    map.addSource(id, {
        type: 'canvas',
        canvas: canvas, // <===
        animate: true,
        coordinates: bbox, // <===
    })
    map.addLayer({
        id: id,
        type: 'raster',
        source: id,
    })
}

But the project has become of interest to local schools teaching maps and gis data and they would prefer Leaflet.
Additional context
Here are more examples of the Mapbox use:
https://code.agentscript.org/gis/droplets.html (click in the box, zoom/pan for the box to move)
https://code.agentscript.org/gis/virus.html
All the Mapbox examples use the same solution: install a dynamic canvas with it's bounds within a map. Really a good idea! And would make any canvas based simulation or similar dynamic view easily installed within Leaflet! Please!! :-)

Note: http://bl.ocks.org/Sumbera/11114288 is called a canvas overlay, but is full-screen, not like the current image/video overlays.

I'm closing this, this plugin solves both this and use with esm.
https://github.com/RedfishGroup/LeafletElementOverlay


Fix Image Faker

Lorempixel changed the way randomization works from query param to path param. Thereby the order of resource id and text changed, too. I also added some more documentation and of course tests.
Im not sure about the gitignore changes. Is this okay to merge?

i need dis

Any pointer about the LoremPixel change? Also, needs rebase.

Ok. Gonna remove gitignore changes and rebase.
Regarding the lorempixel changes, there is no official statement or documentation. I stumbled upon this while using Faker with non randomized images. I then checked the code and the routes listed on http://lorempixel.com/ (white/blue box) and they differed. I even asked the owner of lorempixel for a documentation but he didnt answer. So I just fixed the obvious.

bump, still needs rebase

@hottehead any update on this one? Or help you might need?

Completely forgot about this one. I currently can't do it as Im on vacation. @pimjansen If you could remove the .DS_Store change in gitignore and rebase the branch that would be great and solve the issues!


Allow optional properties to be truely optional

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
I am using pydantic directly to write json to kafka, or via FastAPI to expose API responses. In both scenario, a good practice we where doing so far in my company with pydantic v1, was, when a property was optional, to omit it totally if it was not "present" (saving network/storage spaces)
With pydantic v2, it is not possible anymore easily. From the migration guide table here it is missing a "Not required, cannot be None, no default"
Also, the generated json schema are declaring they might return "null", when we actually don't want to do so
With the current set of feature, we have various options :

set exclude_none to True every time we dump an object (it could be quite a lot)
define a BaseModel overriding few methods (below what we currently have, might contain bugs)
having default, but then excluding them with exclude_defaults (but it has a lot of downsides)

In my opinion, for a non required field, the approach of:

omitting the property in json dump if None
having a simpler json schema

should be the default, or at least, Pydantic should expose a config to have this behavior
It is some kind of common practice to do such schema https://json-schema.org/learn/json-schema-examples instead of mutating property with anyOf and a nullable type everywhere
Our BaseModel override
from typing import Any

from pydantic import BaseModel as OriginBaseModel, GetJsonSchemaHandler
from pydantic.json_schema import JsonSchemaValue
from pydantic_core import CoreSchema

_DEFAULT_DUMP_ARGS = {"exclude_none": True}

class BaseModel(OriginBaseModel):

    @classmethod
    def __get_pydantic_json_schema__(cls, __core_schema: CoreSchema,
                                     __handler: GetJsonSchemaHandler) -> JsonSchemaValue:
        schema = __handler(__core_schema)
        schema["properties"] = {k: cls._remove_nullable(v) for k, v in schema.get("properties", {}).items()}
        return schema

    @classmethod
    def _remove_nullable(cls, property_def):
        if "default" in property_def and property_def["default"] is None:
            del (property_def["default"])
            not_null_def = property_def["anyOf"][0]
            del (property_def["anyOf"])
            return {
                **property_def,
                **not_null_def
            }

        return property_def

    def model_dump(self, **kwargs) -> dict[str, Any]:
        return super().model_dump(**{**_DEFAULT_DUMP_ARGS, **kwargs})

    def model_dump_json(self, **kwargs) -> str:
        return super().model_dump_json(**{**_DEFAULT_DUMP_ARGS, **kwargs})

    def dict(self, **kwargs) -> dict[str, Any]:
        return super().dict(**{**_DEFAULT_DUMP_ARGS, **kwargs})

Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[X] Data serialization - .model_dump() and .model_dump_json()
[X] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

@sydney-runkle could we make PydanticOmit work for model fields and then provide an Omittable[T] = Annotated[Optional[T], SomeOmitNoneAnnotation`? (Open to other names)

@vmaurin,
Thanks for this well thought out feature request. I'd agree, especially in terms of the JSON schema generation, we could support more simple configuration for excluding fields which have defaulted to None.
I also think Adrian's suggestion above is valuable. I'll add this to the 2.6.0 milestone -- not promising that we'll add everything you've requested, but hopefully we can offer some more convenient support 😄.

@sydney-runkle @adriangb Thank you for the feedback both of you, sure waiting for the next version(s)
Meanwhile, here the latest version of our own BaseModel we are using, if it could help somebody. Note that if you are using FastAPI, it won't prevent FastAPI to return json null as it seems they use a type adapter for the serialization, so you need to configure your routes to exclude none
from typing import Any

from pydantic import BaseModel as OriginBaseModel, GetJsonSchemaHandler
from pydantic.json_schema import JsonSchemaValue
from pydantic_core import CoreSchema

_OVERRIDE_DUMP_ARGS = {"exclude_none": True}

class BaseModel(OriginBaseModel):

    @classmethod
    def __get_pydantic_json_schema__(cls, __core_schema: CoreSchema,
                                     __handler: GetJsonSchemaHandler) -> JsonSchemaValue:
        schema = __handler.resolve_ref_schema(__handler(__core_schema))
        schema["properties"] = {k: cls._remove_nullable(v) for k, v in schema.get("properties", {}).items()}
        return schema

    @classmethod
    def _remove_nullable(cls, property_def):
        if "default" in property_def and property_def["default"] is None:
            variants = [type_def for type_def in property_def["anyOf"] if type_def.get("type", None) != "null"]
            if len(variants) == 1:
                not_null_def = variants[0]
            else:
                not_null_def = {"anyOf": variants}
            return {
                **{k: v for k, v in property_def.items() if k not in ["default", "anyOf"]},
                **not_null_def
            }

        return property_def

    def model_dump(self, **kwargs) -> dict[str, Any]:
        return super().model_dump(**{**kwargs, **_OVERRIDE_DUMP_ARGS})

    def model_dump_json(self, **kwargs) -> str:
        return super().model_dump_json(**{**kwargs, **_OVERRIDE_DUMP_ARGS})

    def dict(self, **kwargs) -> dict[str, Any]:
        return super().dict(**{**kwargs, **_OVERRIDE_DUMP_ARGS})

I'm having an issue with the Swagger UI upload button rendering using FastAPI, and I think it's related to this change on Pydantic from v1 to v2. See https://github.com/tiangolo/fastapi/discussions/10755. Do you think it's gonna be fixed with this issue being closed?

Somewhat related, when you set exclude_none to True, the JSON becomes incompatible when trying to load it again.
I couldn't find a workaround besides explicitly creating before validation for each optional field.

class X(BaseModel):
    x:Optional[int]
    y:Pending[str]
    z:int

a = X(x=7,z=2)        # we didn't get any error
a.model_dump()        # here we gonna get an error because y is not attached yet
a.y = "miao"          #
a.model_dump()        # every thing is fine

i think this type shall be best practice for this situation

i think it's better to create a branch with issues name for implementation.

@sydney-runkle could we make PydanticOmit work for model fields and then provide an Omittable[T] = Annotated[Optional[T], SomeOmitNoneAnnotation`? (Open to other names)

PEP-655 provides a list of names that were considered for "potentially-missing" items in a TypedDict.
Is there a strong opposition to having a pydantic.NotRequired[T] that works for BaseModel? It's not technically a built-in, so can use that name, but maybe confusing.

This isn't going to fit into the scope of v2.10, but is definitely a high priority, and we're hoping this can be one of our banner features for v2.11.


Tons of debug spew in cmd window

VSCode Version: 1.0.0
OS Version: Windows 1511 (10586.104) But happens on Win7 as well

Steps to Reproduce:

Set VS Code to be the default app for opening .log files.  (Or any file, really)
Open a cmd window
Navigate to a directory with .log files.
Type Logfile.log  (Or whatever the name of your log file is) And press Enter
VS Code will launch and open the log file
If you switch back to the cmd window, you'll see tons of debug spew being dumped into that window.

Need a way to turn that off.

Make sure you put C:\Program Files\Code\bin\code.cmd on the path and not the exe.

Checked my path.  Last entry is "C:\Program Files\Microsoft VS Code\bin".  The only contents of that directory are code and code.cmd.
I suspect the problem comes from step 1 of my repro.  When you chose a default app, you're picking the exe, not a .cmd.  So by opening a .log file from the cmd window, the system is directly launching code.exe, not code.cmd from the path.

@joaomoreno seems related to https://github.com/Microsoft/vscode/issues/4808

@Piscean exactly right. We don't have a clear answer for this.

Seems fixed.


Update link to virtual machine disk images

on this page: https://fangohr.github.io/nmag.github.io/0.2/install/index.html (section 3, link to 'available disk images') is broken.

where are we storing the disk image currently? It's too big to store on github.

Can we edit the following files under homepage source: https://github.com/mhanberry1/nmag.github.io.

nmag.github.io/index.html at master · mhanberry1/nmag.github.io  (Line number 138)
nmag.github.io/vmware.html at master · mhanberry1/nmag.github.io (Line number 172)

In both the above files, we can give the href address as
href="https://drive.google.com/file/d/13p6kTmP2gp2MjwEc38Y-yO874U0aFudR/view"
Its a temporary solution though, later we can find the permanent solution.

Other relevant virtual disk images and containers are available from the virtual micromagnetics project:

http://virtualmicromagnetics.org
Virtual Disk File: https://doi.org/10.5281/zenodo.5376274
Container Image File: https://doi.org/10.5281/zenodo.5377979


DuckDBType.Date representation as DateTime/DateOnly

It seems DuckDB.NET handles date columns differently in netstandard and net6/net8 builds: https://github.com/Giorgi/DuckDB.NET/blob/develop/DuckDB.NET.Data/Internal/Reader/DateTimeVectorDataReader.cs
System.DateOnly is not available in netstandard2.1, and this causes weird situation when DuckDB.NET is referenced from, say, net8 app (so dates are returned in DbDataReader as System.DateOnly) but when datareader is processed in the netstandard2.1 library it simply cannot handle these values because it knows nothing about this type which even cannot be converted to DateTime (via Convert.ToDateTime, for instance).
It would be helpful to have an option to specify which .NET type use for date-only values (for net6+ builds).

You can use DuckDBDataReader.GetFieldValue<> to read those columns with a desired type.

I cannot - this processing is inside the lib, and it simply reads all values via DbDataReader.GetValues(object[]) so it gets values as they are returned by ADO.NET provider implementation. It seems implementations like System.Data.SqlClient, NpgSql, MysqlConnector return DateTime in this case (when no desired type specified) which guarantees 100% backward compatibility.

Those libraries return DateTime because when they were started DateOnly didn't exist. DbDataReader.GetValues(object[]) will box all the values read from the database and unbox when casting to specific type, so I would recommend updating that library and prepare for moving to .NET Core

I understand where you are coming and it would be good to be compatible with those libraries but it would be great if those libraries moved to .NET Core and added support for modern data type as well as migrate to GetFieldValue. This way those libraries will benefit from increased performance too. Also, it would benefit not only DuckDB.NET users but also other ADO.NET provider consumers. Instead of asking me to be compatible with libraries that don't move forward, I think it's better to ask those library authors (maybe you already have done) to support modern .NET (alongside netstandard if they want to) I'm sure those libraries will benefit from other features too in modern .NET. Until then as you have said you can decorate DuckDBDataReader with your custom reader.
As for specific APIs from modern .NET, this library avoids boxing when reading numeric types on .NET 8: https://github.com/Giorgi/DuckDB.NET/blob/a241693e8f37d12943afba63cc98dfdccba81a12/DuckDB.NET.Data/Internal/Reader/NumericVectorDataReader.cs#L244
Also, LibraryImport requires .NET 7 and newer and requires lots of #ifdef to support .Net Core and netstandard at the same time.


bump ads and extensions

Bump ADS and extension versions

Pull Request Test Coverage Report for Build 266296549

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 38.079%

Totals

Change from base Build 266259927:
0.0%

Covered Lines:
19096

Relevant Lines:
45828

💛  - Coveralls

also, please bump asde-deploy


Environment variable consistency

Some environment variables start with SQLPAD while others don't. I've also noticed some are quite long, and SQLPAD_ may not be necessary.
I'd like to make these consistent, and I'm leaning towards prefixing them all with SQLPAD_ or perhaps shortening the prefix to SP_ similar to how Metabase uses MB_.
Whatever the decision, I think the existing can be supported for a version, and a deprecation warning logged.  This can also coincide with deprecating JSON/INI formats.
The biggest advantage for all this is simplifying documentation. No more needing to reference keyName and KEY_NAME or SQLPAD_KEY_NAME.

Actually maybe SQLPAD_ isn't so bad SP_ only saves 4 characters 🤔

SQLPAD_ is cool
I think max env var name should  be 32 characters

Some variables are not sqlpad specific so they don't need SQLPAD_ Prefix.for example smtp configuration.

But isn't the SMTP variable for SQLPad's config?
I guess what I'm confused by is when variables should be namespaced and when they shouldn't be. For example, all ldap could start with LDAP_, all saml with SAML_, etc. But if you run multiple services in same space (probably unlikely/not best practice) could those conflict with any existing vars?
The project today has SAML_CERT, SAML_ISSUER, SAML_CALLBACK_URL but also has SQLPAD_SAML_AUTO_SIGN_UP. I suppose one could reason that the latter is something SQLPad specific, while other SAML vars are generic for SAML?
Personally, making a rule that all env vars should be prefixed with SQLPad makes it easy to remember to be consistent and also minimizes conflict (if that is an issue I'm not actually sure).

I agree that all saml stuff should be prefixed  with sqlpad. This configuration is sqlpad specific. Some stamp config can be seen IMO as client agnostic and in this case can be used without sqlpad prefix. (Maybe).

OK, I went over the current env vars list. It makes sense not to rename all of SQLPAD_SMTP_* vars to SMTP_*.

LDAP_* --> SQLPAD_LDAP_*
ENABLDE_LDAP_AUTH --> SQLPAD_LDAP_AUTH_ENABLED
DISABLE_AUTH --> SQLPAD_AUTH_DISABLED
DISABLE_USERPASS_AUTH --> SQLPAD_USERPASS_AUTH_DISABLED
GOOGLE_* --> SQLPAD_GOOGLE_*
CERT_PASSPHRASE, CERT_PATH, KEY_PATH  -  deprecated - don't change
SAML_* --> SQLPAD_SAML_*  #764
PUBLIC_URL - can keep PUBLIC_URL, but I think it will remain the only env var w/o SQLPAD in its name so that would be funny. So SQLPAD_PUBLIC_URL

@eladeyal-intel I've renamed HTTPS cert/key variables since they are being left in.
I'm going to update SERVICE_TOKEN_SECRET to SQLPAD_SERVICE_TOKEN_SECRET then tag 5.1.0

Thanks for all the help renaming these @eladeyal-intel!


ChangeEntityExperienceEvent doesn't work

I want to write a plugin which can edit the exp formula, but the event ChangeEntityExperienceEvent seems cannot be fired when a player gains EXP. How to deal with it?
Code: https://my.pcloud.com/publink/show?code=XZEFXcZRnULoH9L1RzvyRoOPEvdP48t8IGV
There is no error in the log.

I have some prototype code ready. I will submit it after #1565 is merged.

closing in favor of https://github.com/SpongePowered/SpongeCommon/issues/1569
dont need two issues for this


[FAI-343] Better encapsulation of counterfactual result

Encapsulate the counterfactual result in a special purpose class in order to return additional information, e.g.

The actual prediction for this counterfactual
Counterfactual prediction score (if available)

Thanks @tteofili! Merging.

Thanks @tteofili! Merging.


[fix][broker] Fix DNS cache maxTtl issue.

Motivation
When the user set DNS cache maxTTl to 0, it will throw below exception :
Caused by: java.lang.IllegalArgumentException: maxTtl : 0 (expected: > 0)
	at io.netty.util.internal.ObjectUtil.checkPositive(ObjectUtil.java:100)
	at io.netty.resolver.dns.DefaultDnsCnameCache.<init>(DefaultDnsCnameCache.java:60)
	at io.netty.resolver.dns.DnsNameResolverBuilder.newCnameCache(DnsNameResolverBuilder.java:451)
	at io.netty.resolver.dns.DnsNameResolverBuilder.build(DnsNameResolverBuilder.java:485)
	at io.netty.resolver.dns.DnsAddressResolverGroup.newNameResolver(DnsAddressResolverGroup.java:114)
	at io.netty.resolver.dns.DnsAddressResolverGroup.newResolver(DnsAddressResolverGroup.java:92)
	at io.netty.resolver.dns.DnsAddressResolverGroup.newResolver(DnsAddressResolverGroup.java:77)
	at io.netty.resolver.AddressResolverGroup.getResolver(AddressResolverGroup.java:70)

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Codecov Report

Merging #18565 (31eaac2) into master (be1d07e) will increase coverage by 0.18%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #18565      +/-   ##
============================================
+ Coverage     36.82%   37.00%   +0.18%
+ Complexity     7842     1961    -5881
============================================
  Files           698      209     -489
  Lines         68060    14414   -53646
  Branches       7277     1573    -5704
============================================
- Hits          25062     5334   -19728
+ Misses        39675     8503   -31172
+ Partials       3323      577    -2746

Flag
Coverage Δ

unittests
37.00% <ø> (+0.18%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...g/apache/pulsar/client/impl/ConnectionHandler.java
50.00% <0.00%> (-3.20%)
:arrow_down:

...va/org/apache/pulsar/client/impl/HandlerState.java
67.56% <0.00%> (-2.71%)
:arrow_down:

...n/java/org/apache/pulsar/client/api/RawReader.java

...a/org/apache/pulsar/broker/admin/v2/Functions.java

...ransaction/buffer/impl/InMemTransactionBuffer.java

...r/broker/delayed/DelayedDeliveryTrackerLoader.java

...saction/timeout/TransactionTimeoutTrackerImpl.java

...broker/loadbalance/ModularLoadManagerStrategy.java

...sar/broker/stats/metrics/ManagedCursorMetrics.java

...broker/stats/prometheus/metrics/ObserverGauge.java

... and 481 more


French translations for individuals

Most of instances GAMSO and GSBPM instances do not have a French label

Currently Insee uses an unofficial translation of phases and sub-processes' labels with verbs. But there is also one with nouns that has been adapted from version 5.0 translation.

Done in commit ff23a8fda3947ddb42f894dd47e1118af90514d8, so closing the issue.


Mailing list has moved to Discourse.

Also updated CodeClimate badge URL. Either will work, but 'chef' and not 'opscode' is now canonical.

For now let's keep calling it the mailing list, pivoting to a new label is a future project.

:+1:

:+1:


Reason for running on edge instead of stable?

Curious about two things:

Why running on edge? Edge is broken for at least mysql-client (my test case for mini/base was a super small MySQL client). However, that works fine when rebuilt on v3.1.
Why extra layers for maintainer and apk upgrade? The upgrade would be better left to the user if they wanted to. Not sure if there is a need to upgrade assuming you just build the image. Also, adding extra layers for stuff like MAINTAINER seems kind of against the spirit of something trying to be minimal.

Just my $0.02. I'd love to try and use this as my go to for minimal containers. But don't really want to really on edge and would much prefer a base on stable or even better, tags to choose my version.
I'd be happy to make a pull request if you agree on these points. Thanks for your work on this so far!

@andyshinn thank you for your questions, very good ones!

Why running on edge?

The decision of usage of edge is to be able to access latest packages on it that are not part of stable. For example PostgreSQL 9.4 or latest Redis.

Why extra layers for maintainer and apk upgrade?

Well, MAINTAINER is there because... well, I do maintain it, right? :smile:
Honestly maintainer does not add megabytes to the size of the image that is downloaded, is just metadata.
The upgrade and the installation of some basic packages was required when rootfs was done my other (see when rootfs was introduced). Things like musl gets updated every now and then.
I believe now it is not required since rootfs has been build recently. However, from time to time we should perform a rebuild of rootfs.
Since I'm using automated builds, I think maintaining a separate stable-3.1 branch that contains latest stable version (instead of edge) is possible.
Would that work for you?
Cheers.

@andyshinn link to rootfs change: #1

I didn't realize the rootfs wasn't being built every Docker image build. That makes a little more sense now. A stable-3.1 tag would definitely work. I'm also playing with the mkimage.sh script to build my own customized version. I appreciate the explanations!

@andyshinn seems you took inspiration from mini/base and put into your own thing:
https://github.com/gliderlabs/docker-alpine
Seems definitely MAINTAINER was itching you :smile:
Are you still interested in these changes or can I close this issue?
Please let me know.

I think MAINTAINER was not the issue, but that it was using up an extra
layer for no significant reason. We've gotten quite meticulous about
minimal containers, and especially for base images, there should be as few
layers as possible.
Also, we wanted to open up and include the build process to run on
CircleCI. Maybe you can take advantage of some of these changes, but our
assumption is that mini/base is really used for your own projects and not
as much as a general purpose base image. If that's not the case, then lets
work together to make a really solid, minimal Alpine base that we can later
add to the Docker standard library so someday soon people can do just
docker pull alpine or FROM alpine.
On Sat, Jan 24, 2015 at 9:41 AM, Luis Lavena<EMAIL_ADDRESS>wrote:

@andyshinn https://github.com/andyshinn seems you took inspiration from
mini/base and put into your own thing:
https://github.com/gliderlabs/docker-alpine
Seems definitely MAINTAINER was itching you [image: :smile:]
Are you still interested in these changes or can I close this issue?
Please let me know.
—
Reply to this email directly or view it on GitHub
https://github.com/mini-containers/base/issues/3#issuecomment-71322952.

--
Jeff Lindsay
http://progrium.com

@progrium thanks for your response, really appreciate you took the time.
mini/base is the building block of several containers we have been using to run development services (as you can see part of mini-containers organization) and also for other stuff, like builders, binary RubyGems compilers and other stuff.
We are also using it to base tailored containers for Ruby which we are thinking release too.
While I have no particular interest if this gets vetted as official image or not, I left a comment on my concerns about lack of attribution for mkimage.sh:
https://github.com/gliderlabs/docker-alpine/commit/7155b54cc87d89a9b7b19a8eb82c673104bcbd58#commitcomment-9428403
Specially if you read this project README and #1 request for permission.
If you read the README, will notice that the idea of the project was serve as foundation for others to build on top, so definitely I'm interested in anything that can improve that for others (aka: collaboration).
As for CircleCI usage, I had the assumption automated builds were better for users, but seems that is no longer the case (or the recommendation). Taking that in consideration we might change the way we build things. Thanks for sharing that information.
Once again, I appreciate you took the time to respond; will review what you guys have shared and probably introduce some of those modifications to mini/base myself, if is OK with you.
Cheers.


chore: fix kwok api version group

Fixes #N/A
Description
This fixes the api group of the kwok node class, and by association its labels. It was incorrectly ordered, and should now match the validation.
How was this change tested?
make presubmit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
9 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.05%) to 81.248%

Files with Coverage Reduction
New Missed Lines
%

pkg/test/expectations/expectations.go
2
93.29%

pkg/controllers/provisioning/scheduling/preferences.go
7
86.67%

Totals

Change from base Build<PHONE_NUMBER>:
-0.05%

Covered Lines:
8297

Relevant Lines:
10212

💛  - Coveralls


recorder/database error for systemmonitor/command line sensors after 0.81.6 upgrade

Home Assistant release with the issue:

0.81.6
Last working Home Assistant release (if known):
0.81.0
Operating environment (Hass.io/Docker/Windows/etc.):

Hassio 139 on Raspbian stretch on RPi3B+
Component/platform:

Recorder/History/Database/Frontend/command-line-sensor/systemmonitor
Description of problem:
After upgrade to 0.81.6, my systemmonitor and command line sensors (used to monitor server stats such as temp, cpu use, memory use, etc. cannot display the history graph and cause the following error in the log.
command line sensors:

cat /sys/class/thermal/thermal_zone0/temp

systemmonitor platform:

memory_use_percent
processor_use

Error Log:
2018-11-08 13:44:53 ERROR (SyncWorker_18) [homeassistant.components.recorder.util] Error executing query: (sqlite3.DatabaseError) database disk image is malformed [SQL: 'SELECT states.state_id AS states_state_id, states.domain AS states_domain, states.entity_id AS states_entity_id, states.state AS states_state, states.attributes AS states_attributes, states.event_id AS states_event_id, states.last_changed AS states_last_changed, states.last_updated AS states_last_updated, states.created AS states_created, states.context_id AS states_context_id, states.context_user_id AS states_context_user_id \nFROM states JOIN (SELECT states.state_id AS max_state_id \nFROM states \nWHERE states.last_updated < ? AND states.entity_id IN (?) ORDER BY states.last_updated DESC\n LIMIT ? OFFSET ?) AS anon_1 ON states.state_id = anon_1.max_state_id \nWHERE states.domain NOT IN (?, ?) AND states.entity_id IN (?)'] [parameters: ('2018-11-07 09:44:52.500000', 'sensor.memory_use_percent', 1, 0, 'zone', 'scene', 'sensor.memory_use_percent')] (Background on this error at: http://sqlalche.me/e/4xp6)
2018-11-08 13:44:53 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
    context)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 509, in do_execute
    cursor.execute(statement, parameters)
sqlite3.DatabaseError: database disk image is malformed

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
sensor:
  - platform: systemmonitor
    resources:
      - type: memory_use_percent
      - type: processor_use
  - platform: command_line
    name: CPU Temperature
    command: "cat /sys/class/thermal/thermal_zone0/temp"
    unit_of_measurement: "C"
    value_template: '{{ (value | multiply(0.001)) | round(1) }}'

Traceback (if applicable):
Continued from the log above:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start
    resp = await self._request_handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_app.py", line 366, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 113, in handle
    result = await result
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/history.py", line 332, in get
    entity_ids, self.filters, include_start_time_state)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/history.py", line 93, in get_significant_states
    include_start_time_state)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/history.py", line 239, in states_to_json
    for state in get_states(hass, start_time, entity_ids, filters=filters):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/history.py", line 214, in get_states
    return [state for state in execute(query)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/recorder/util.py", line 64, in execute
    (row.to_native() for row in qry)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2988, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3011, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context
    context)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception
    exc_info
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 265, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 248, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context
    context)
  File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 509, in do_execute
    cursor.execute(statement, parameters)

Additional information:

Your database file seems to be corrupted.

No. I don't think the database is initially corrupt. I deleted it several times to force it to recreate and always end up with the same error even with a new db. I think either the recorder has changed or the queries. I may be possible that the recorder is corrupting the db or that it's all related to the same root cause for the flood of problems that HASS has seen recently (the sorry attempt to add pre-alpha-quality auth system to reliability-sensitive home automation setups)

The problem still persists in 0.82.0
I would like to ask anyone who uses the systemmonitor platform on RPi3B+ to check if the can use/see the history graphs of these components. I tried to start fresh with 0.82.0 and I still got the same error.

Because of this issue. I stopped using this platform, and later, I stopped using Home Assistant altogether due to the high number of breaking changes and other big changes every two weeks. My sincere advice to this ambitious project is to slow down! Smart Home isn't a software project that can be fixed with a simply reset. We spend hours and sometimes days setting things up using multiple platforms. I am sure the vast majority of HA users also use other platforms at the same time, and with these delicate setups even a small change in HA may need major work to restore peace between platforms again.


[Feature Request] User-definable decimal separator

Hi,
I hope this is not a RTFM but I wish there was a way to set the decimal separator for non-english speaking users ("," instead of ".").
Thanks!
Marco

Thanks @esamecar, this is good feature request for making Solve for accessible for all. I'll look into this for 1.0.0.

Tracking as part of #48. I'll now close this.


Backgrounds are available on dropdown once linked, but don't show up in text box

Backgrounds can be selected, but don't display in the text box. For example, in the screenshot, 'acolyte' is selected, but it does not display in the box to the right.

oooh I see what you mean. I didn't realise this would be confusing, but its the "standard" behaviour right now: the text box is only shown when you select to create a new feature.
If you select an existing feature, you should be able to click it and see the item pop-up. If I add the text description here, it would then differ from Race/Class features, that also don't show their description.

I understand what you mean now. I am not able to open the background item by clicking on it however. Is there something I'm missing?

Hmm ok, I seemed to have missed something here definitely. From what I could tell on my testing, CREATED items (so, race features or class features, backgrounds, spells) don't pop up the window, some throw an error, some don't. It only works for "default" items, and the ones from DDBImporter also work. So I might be messing up something on my side here, marking this as a bug.
Though rest assured that the items ARE adequately added to the created actor, it's just the visualization that is a little iffy.

Renaming the issue because I keep coming back to it trying to remember what's wrong in here hahah

got it! going into next version


iOS: Add link to privacy policy and terms of use to premium upgrade dialog

Apple rejected the app stating that those two links need to be present. Can we design an attributed string that says "See NewsBlur's [privacy policy] and [terms of use] for details." and link to newsblur.com/privacy and newsblur.com/tos.

Add the attributed string right below the subtitle paragraph and above the subscription price

Sure, I'll do that right now.  Putting the text (and links) between the purchase policy text (... "Cancel at any time from Account Settings in iTunes.") and the products table might be better, since it's grouping the policies.  It'd also be significantly easier, which of course is less important.


Hide bottom border of bot instances  when there are no collaborators

Also fixes the padding of the panel.

@j-f1 I lied, getting this on asset deploy:
Sass::SyntaxError: Invalid CSS after "...-collaborators)": expected "{", was "&:not(:last-child)"

"&:not(:last-child)" may only be used at the beginning of a compound selector.


Use clone to install lib dependency in sketch compilation workflow

The "Compile Examples" GitHub Actions workflow defines the dependencies of the example sketches which must be defined before attempting their compilation.
Previously, it attempted to install the "ESP Async WebServer" library via Library Manager, but the library maintainer never submitted the library to Library Manager (https://github.com/me-no-dev/ESPAsyncWebServer/issues/468) so that is not possible. Fortunately, the arduino/compile-sketches GitHub Actions action supports installing dependencies from multiple sources, which include Git repositories.
This new configuration will cause the library to be installed from a clone of the https://github.com/me-no-dev/ESPAsyncWebServer.git repository, checked out to the tip of the default branch.

Already working on this, check the rename_class_deps_fixes. Doesn't get the example compiling, though; it can't find DNSServer.h.


Add files generated by AutoRest

Adds files generated by AutoRest in the src/ folder as they are done in Azure/azure-powershell.
This adds files generated with the following extensions:

.cs, .csproj, .nuspec
.ps1,  .psm1,  .psd1, .ps1xml
.md

and ignores files in the following folders:

obj/
resources/
tools/
docs/

(files are first added for Azs.AzureBridge.Admin and will be added for other modules shortly)

/azp run


events_nv insufficient buffer

Describe the bug
we are getting the following error on the eventbuilding of 032540
Exception in thread build:events_nv:
Target Mailbox (events_nv) killed, exception <class 'strax.mailbox.MailboxKilled'>, message (<class 'AssertionError'>, AssertionError('Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.'), <traceback o
bject at 0x7f2f052d8940>)
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/home/xedaq/software/npshmex/npshmex.py", line 193, in shm_wrap_f
    result = f(*args, **kwargs)
  File "/home/xedaq/software/strax/strax/plugin.py", line 525, in do_compute
    result = self.compute(**kwargs)
  File "/home/xedaq/software/straxen/straxen/plugins/veto_hitlets.py", line 141, in compute
    strax.hitlet_properties(temp_hitlets)
  File "/home/xedaq/software/strax/strax/processing/statistics.py", line 92, in highest_density_region
    assert len(gaps) < _buffer_size, mes
AssertionError: Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 932, in _bootstrap_inner
Exception in thread discard_lone_raw_records_nv:
Exception in thread discard_lone_raw_record_statistics_nv:
Traceback (most recent call last):
    self.run()
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 932, in _bootstrap_inner
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 870, in run
Traceback (most recent call last):
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self._target(*self._args, **self._kwargs)
  File "/home/xedaq/software/strax/strax/mailbox.py", line 294, in _send_from
    self.run()
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 870, in run
    self.run()
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 870, in run
    self.kill_from_exception(e)
  File "/home/xedaq/software/strax/strax/mailbox.py", line 213, in kill_from_exception
    self._target(*self._args, **self._kwargs)
    raise e
  File "/home/xedaq/software/strax/strax/processor.py", line 220, in discarder
  File "/home/xedaq/software/strax/strax/mailbox.py", line 281, in _send_from
    self._target(*self._args, **self._kwargs)
  File "/home/xedaq/software/strax/strax/processor.py", line 220, in discarder
    for _ in source:
    x = next(iterable)
  File "/home/xedaq/software/strax/strax/mailbox.py", line 394, in _read
  File "/home/xedaq/software/strax/strax/plugin.py", line 616, in iter
    for _ in source:
  File "/home/xedaq/software/strax/strax/mailbox.py", line 394, in _read
    yield from super().iter(iters, executor=executor)
    raise MailboxKilled(self.killed_because)
  File "/home/xedaq/software/strax/strax/plugin.py", line 369, in iter
strax.mailbox.MailboxKilled: (<class 'AssertionError'>, AssertionError('Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.'), <traceback object at 0x7f2f052d8940>)
    raise MailboxKilled(self.killed_because)
    if not self._fetch_chunk(pacemaker, iters):
strax.mailbox.MailboxKilled: (<class 'AssertionError'>, AssertionError('Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.'), <traceback object at 0x7f2f052d8940>)
  File "/home/xedaq/software/strax/strax/plugin.py", line 301, in _fetch_chunk
    [self.input_buffer[d], next(iters[d])])
  File "/home/xedaq/software/strax/strax/mailbox.py", line 432, in _read
    res = msg.result(timeout=self.timeout)
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
  File "/home/xedaq/software/strax/strax/storage/common.py", line 646, in save_from
    source.throw(e)
  File "/home/xedaq/software/strax/strax/storage/common.py", line 608, in save_from
    next_chunk = next(source)
  File "/home/xedaq/software/strax/strax/mailbox.py", line 432, in _read
    res = msg.result(timeout=self.timeout)
Exception in thread save_0:hitlets_nv:
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/_base.py", line 439, in result
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/process.py", line 239, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/home/xedaq/software/npshmex/npshmex.py", line 193, in shm_wrap_f
    result = f(*args, **kwargs)
  File "/home/xedaq/software/strax/strax/plugin.py", line 525, in do_compute
    result = self.compute(**kwargs)
  File "/home/xedaq/software/straxen/straxen/plugins/veto_hitlets.py", line 141, in compute
    strax.hitlet_properties(temp_hitlets)
  File "/home/xedaq/software/strax/strax/processing/statistics.py", line 92, in highest_density_region
    assert len(gaps) < _buffer_size, mes
AssertionError: Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.
"""
    return self.__get_result()

The above exception was the direct cause of the following exception:

  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
Traceback (most recent call last):
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    raise self._exception
AssertionError: Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.
    self.run()
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/xedaq/software/strax/strax/storage/common.py", line 646, in save_from
    source.throw(e)
  File "/home/xedaq/software/strax/strax/storage/common.py", line 608, in save_from
    next_chunk = next(source)
  File "/home/xedaq/software/strax/strax/mailbox.py", line 432, in _read
    res = msg.result(timeout=self.timeout)
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/home/xedaq/miniconda/envs/py38/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
AssertionError: Found more intervals than "_buffer_size" allows pleaseincrease the size of the buffer.

To Reproduce
Process 032540 events_nv
Expected behavior
work
Versions
Please add the output of:
(py38) xedaq@eb1:~/joran$ python -c "import straxen ; straxen.print_versions()"
cutax is not installed
Working on eb1.xenon.local with the following versions and installation paths:
python  v3.8.5  (default, Aug  5 2020, 08:36:46) [GCC 7.3.0]
strax   v1.1.1  /home/xedaq/software/strax/strax        git branch:master | 1f4d22e
straxen v1.1.2  /home/xedaq/software/straxen/straxen    git branch:master | 63a1561

Should be solved with https://github.com/AxFoundation/strax/pull/591


submit digital ocean guide

The image folder is misspelled. Also for static assets we probably should consider moving them into a folder under docusaurus/static/img/

Putting some more input as suggested by team.


added samuel's Fact card

Thank you for your contribution Samuel

thanks bro at least have learnt how to make pull request
On Mon, 6 Sep 2021, 13:41 Franklin Okolie, @.***> wrote:

Thank you for your contribution Samuel
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DeveloperAspire/Developers-fact-card/pull/20#issuecomment-913618685,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQXPZP5GJG4BZ44AFQXCG3TUASZF3ANCNFSM5DPEWSVA
.

You are welcome Samuel, I am glad you learned that. You can check the live site here:  DevFact and see your contribution. I am sure you must be very proud of yourself, because I am

ok bro, once again thank you bro🤪
On Mon, 6 Sep 2021, 13:58 Franklin Okolie, @.***> wrote:

You are welcome Samuel, I am glad you learned that. You can check the live
site here: DevFact https://devfact.vercel.app/ and see your
contribution. I am sure you must be very proud of yourself, because I am
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DeveloperAspire/Developers-fact-card/pull/20#issuecomment-913629421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQXPZPY5IGCEYVU3ZSAVCHDUAS3HNANCNFSM5DPEWSVA
.

hello good day bro,
bro pls is there any way I can message you directly maybe on WhatsApp or on
Facebook
drop number of FB name
On Mon, 6 Sep 2021, 14:02 CIVIL GAMING STUDIO, @.***>
wrote:

ok bro, once again thank you bro🤪
On Mon, 6 Sep 2021, 13:58 Franklin Okolie, @.***>
wrote:

You are welcome Samuel, I am glad you learned that. You can check the
live site here: DevFact https://devfact.vercel.app/ and see your
contribution. I am sure you must be very proud of yourself, because I am
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DeveloperAspire/Developers-fact-card/pull/20#issuecomment-913629421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQXPZPY5IGCEYVU3ZSAVCHDUAS3HNANCNFSM5DPEWSVA
.

.....................................
Adeyemi would like to stay in touch on LinkedIn.
Adeyemi Samuel
--Frontend developer || HTML | CSS | JS | REACTJS - NEXT.JS
Nigeria
View profile https://www.linkedin.com/comm/in/adeyemi-samuel-382690206?trk=eml-guest-invite-pprofile-link-cta&trkEmail=eml-email_m2g_invite_single_01-null-373-null-null-~4hxxbe~kyfvakzm~bf-null-neptune%2Fprofile~vanity.view&lipi=urn%3Ali%3Apage%3Aemail_email_m2g_invite_single_01%3BCfJZlLNeTGq6I380Sjq%2FPA%3D%3D
Confirm that you know Adeyemi https://www.linkedin.com/e/v2?e=-4hxxbe-kyfvakzm-bf&lipi=urn%3Ali%3Apage%3Aemail_email_m2g_invite_single_01%3BCfJZlLNeTGq6I380Sjq%2FPA%3D%3D&t=suwj&tracking=eml-guest-invite-cta&ek=email_m2g_invite_single_01&validationToken=PHbwrFJi&invitationId=6888109993778913280
.....................................
Unsubscribe: https://www.linkedin.com/e/v2?e=-4hxxbe-kyfvakzm-bf&t=lun&midToken=AQFmrFVhGEd36Q&ek=email_m2g_invite_single_01&li=381&m=unsub&ts=unsub&loid=AQEQyEjgzTnm3wAAAX5d7sc0IP0fbV0fthhoIW0gKnQD-9wAJhcOzn9j8JkdegOusPdW8VPQcsW7VEUBIQH-zkOdemLXmy5fXRUnj-Fy8N6dc3USusmEjRj_meM8UPOJjFzOvrq2jZvYHcA2kk4PqC_5Qfr3ZeQXFQ&eid=-4hxxbe-kyfvakzm-bf
Help: https://www.linkedin.com/e/v2?e=-4hxxbe-kyfvakzm-bf&lipi=urn%3Ali%3Apage%3Aemail_email_m2g_invite_single_01%3BCfJZlLNeTGq6I380Sjq%2FPA%3D%3D&a=customerServiceUrl&ek=email_m2g_invite_single_01&li=380&m=footer&ts=help&articleId=67
You are receiving Invitation emails. LinkedIn will use your email address to make suggestions to our members in features like People You May Know.
This email was sent to @.***
© 2022 LinkedIn Ireland Unlimited Company, Wilton Plaza, Wilton Place, Dublin 2. LinkedIn is a registered business name of LinkedIn Ireland Unlimited Company. LinkedIn and the LinkedIn logo are registered trademarks of LinkedIn.


Graphic for December webinar

Related Issue
No response
Description
Date: December 17, 2024
Time: 17:00 CET/ 11:00 ET
Title: Sky's Journey to Faster Data Delivery with FlowFuse
Presenters:  Anthony Sargeant, Senior Developer Global Digital Platforms at Sky and ZJ
headshot:

Considerations:

Where will the image be displayed/shared, product? blog post? social media? presentation? website?

Inspirations:

Hi @Hasmin-AC here it is!


Docker service stop request aborts machine create if service not available

When creating a new instance, the process attempts to stop the existing docker service.  If Docker is not already installed this causes the 'service docker stop' command to fail, which in turn aborts the 'docker-machine create'.  This causes an issue for individuals using private machine images that do not already have Docker installed.  I ran into this using the OpenStack driver but it shouldn't be specific to any particular driver.
DEBU[0041] Command: %s[sudo sh -c 'sudo service docker stop']  MachineId=XXXXXXX
DEBU[0041] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 22 -i /home/USERNAME/.docker/machine/machines/foo/id_rsa deploy@IPADDR sudo sh -c 'sudo service docker stop'
ERRO[0041] Error creating machine: exit status 255
WARN[0041] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0041] Error creating machine

This strikes me as odd, since we shouldn't be stopping/restarting the Docker service before Docker has been installed. @ggiamarchi any input?

@smo921 Can you try with latest version of Docker Machine Please?


Float Options

There should be some kind of float type support built-in.

I was trying the following:
  ratio := cmd.Float32(cli.Float32Opt{
    Name:   "r ratio",
    Value:  0.8,
    Desc:   "ratio",
    EnvVar: "RATIO",
  })

Any plans of adding this?

Hi and thanks for raising the issue.
I'll work on this as soon as I can find the time.
a PR would be more than welcome (and should not be very hard to implement) 👍 😋


refactor: used object.hasown instead of object.hasownproperty in generator.js

used hasown instead of hasownproperty
this is the issue

/rtm


Libpng library Vulnerability issue

I'm using the scanner for my project and when i try to upload the apk in developer console, google isn't allowing to upload the apk & message as follows,
We rejected xxxx , with package name com.xx.xxx, for violating our Malicious Behavior or User Data policy. If you submitted an update, the previous version of your app is still available on Google Play.
This app uses software that contains security vulnerabilities for users or allows the collection of user data without proper disclosure.
Below is the list of issues and the corresponding APK versions that were detected in your recent submission. Please upgrade your app(s) as soon as possible and increment the version number of the upgraded APK.
Could anyone help me to resolve this.

https://github.com/jhansireddy/AndroidScannerDemo/issues/22


Next.js  with Thumbnails throws warning when changing images relatively faster

Describe the bug
When changing images fast the warning appears. If you change images slower the warning doesn't show up.
Expected behavior
Not to receive the warning when changing images fast.
How to reproduce
<Lightbox         open={open}         close={() => setOpen(false)}         slides={images}         render={{ slide: NextJsImage, thumbnail: NextJsImage }}         plugins={[Thumbnails]}       />
Screenshots / Logs

Additional context
No response

Please provide a complete reproducible example.

Never mind, I was able to reproduce this error.


fix(sinsp): check the correct parameter for PT_PID type

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area API-version

/area build

/area CI

/area driver-kmod

/area driver-bpf

/area driver-modern-bpf

/area libscap-engine-bpf

/area libscap-engine-gvisor

/area libscap-engine-kmod

/area libscap-engine-modern-bpf

/area libscap-engine-nodriver

/area libscap-engine-noop

/area libscap-engine-source-plugin

/area libscap-engine-savefile

/area libscap-engine-udig

/area libscap

/area libpman

/area libsinsp

/area tests

/area proposals

Does this PR require a change in the driver versions?

/version driver-API-version-major

/version driver-API-version-minor

/version driver-API-version-patch

/version driver-SCHEMA-version-major

/version driver-SCHEMA-version-minor

/version driver-SCHEMA-version-patch

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Am I the only one ever using debug builds? :D
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/milestone 0.13.0

LGTM label has been added.  Git tree hash: 6d1c06071dccfb276221e026ac3d50adaa1acc76

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Whoops. This got merged along with #839 (I messed up the rebase)


Shared parameters for actor and critic

Wrt #225 ,
Still working on the multiactorcritics

Also, take a look at codacy

Is this good to merge?

Can you incorporate the suggested changes?

Can you incorporate the suggested changes?

I've done this. Put the comments on the reshaping stuff, and changed the names as you requested.
So Yes, it is good to merge

Have you tried training the shared actor critics? Could you add a short documentation file on how to use shared actor critics?
Will merge it post these

Have you tried training the shared actor critics? Could you add a short documentation file on how to use shared actor critics?
Will merge it post these

Yep, they are training
I'll get working on the documentation

This good to merge?

If the tutorial added needs no additions/modifications, then yep

The doc file needs to be added in an appropriate index or some other file. It would not show up anywhere right now

The doc file needs to be added in an appropriate index or some other file. It would not show up anywhere right now

This is done


Symbolic useData

As discussed in Discord, the current numeric input to useData is brittle (even with the negative-number extension of #69). Using a component at different depths of the hierarchy makes it difficult to find the right ancestor data.
The general agreement from the thread was to introduce a context-like API. I believe the plan is to pass in the same function that was given as a data attribute to the Route.  For example, <Route data={UserData}> woudl get accessed like so:
const data = useData(UserData);

Type-wise, this could work as follows:
function useData<T>(dataFunc: () => T): T | undefined;
  // returns undefined if no ancestor route uses this dataFunc

There was also discussion about useDataLoader but that seemed more specific to Resources (maybe a Solid Start thing?).
A related question is whether this should replace the existing numeric model (breaking change), or augment it as a second option (more code). I think at least we should preserve the common case, where useData() returns the current route's data, though this version will be better for typing even in that case.

Fixed with new solution in 0.3.x.


discrepancy in bosh-init tutorial

[I'm guessing this document is actually in https://github.com/cloudfoundry/docs-bosh somewhere, but I can't find it]
Hey @cppforlife ,
In https://bosh.io/docs/init-aws.html, the deployment manifest uses <IP_ADDRESS>/24 for the subnet. However, the screenshots use <IP_ADDRESS>/16 for the VPC and <IP_ADDRESS>/24 for the subnet on AWS. It looks like the example manifest should be switched to match, right? Thanks for your help!

Updated docs-bosh repo to have latest document. Also updated init-aws to use example range. Thanks!


Trial Spawners

I thought about a way to incorperate trial chambers and thought that it would be cool to have to bring a silverfish to a trial chamber and then somehow a trial spawner would activate making it possible to get both trial key variants

1.12.3 released here
https://github.com/TreeOfSelf/CarpetSkyAdditions-Reborn/


Adding id and class attribute to elements through the interface HtmlSelector

Hi,
What do you think about this little modification.
Class and id are very useful to manipulate elements with CSS and javascript.

I liked your proposal. But I have some enhancements to suggest to you. Tomorrow I will give you detailed feedback. Thanks

Ok show me,
Actually while I looked back at my modifications, I reworked the project a little bit yesterday to handle attributes with a generic way.

Hello,
The second thing I am trying to do right now is to find a generic way to have attributes with the fluent style.
It could be written like this :
headerRow.th().a().class("link").id("gnaLink").href("http://gnagna.com").text("text towards link");
**** NEW package ******
htmlflow.attributes
AttrClass
AttrHref
AttrId
HtmlAttribute
HtmlAttributeAbstract
But I am struggling with genericity
public abstract class HtmlWriterComposite<T, U extends HtmlWriterComposite<T,U>> implements HtmlWriter<T>, HtmlSelector<HtmlWriterComposite<T, U>> {

    private final AttrId<U> attrId = new AttrId<U>();

    public U id(String href){attrId.setValue(href);return this;} <-- incompatible types expected U, found :HtmlWriterComposite<T,U>

Instead of:
   implements ..., HtmlSelector<HtmlWriterComposite<T, U>>

Shouldn't it be:
    implements ..., HtmlSelector<U>

?
Regarding my thoughts I was planning the two simple suggestions:

I think that setClassAttribute method could have a shorter name with just one word, such as, className(...) or attribClass(...)

The HtmlSingleElement should also share this same feature -- the capacity to define its class and id attributes.

Finally, with this new feature we must replicate the following instruction by all concrete elements:
   out.println("<div"+getClassAttribute()+getClassAttribute()+">");

We should find some way of avoiding this repetition among all elements. Maybe the methods doWriteBefore and doWriteAfter should disappear. The base class of all elements could store the tag of the derived element, and then the write() method could do all the job. What do you think?
In this case some elements, such as the HtmlForm that currently are including its attributes through the doWriteBefore, should also use the same base storage to hold the other attributes. In their instantiation they could provide to base constructor, the tag and the attributes.
Maybe we should have an AbstractHtmlWriter that is the base class for the composite and the HtmlSingleElement.

About my idea about genericity, I think it's too much for my needs at this time.
About replication of code, yes there is redundancy at this specific point,
the difficulty for having a generic do writeXXX methods is about handling the depth.
How to handle the difference between :
'''java
@Override
public void doWriteBefore(PrintStream out,  int depth) {
tabs(depth);
out.println("");
tabs(++depth);
}
'''
and
'''java
// htmlflow.elements.HtmlDiv
@Override
public void doWriteBefore(PrintStream out, int depth) {
out.println("<div"+getClassAttribute()+getIdAttribute()+">");
tabs(depth+1);
}
@Override
public void doWriteAfter(PrintStream out, int depth) {
	out.println();
	tabs(depth);
	out.println("</div>");
}

'''
or
'''java
// htmlflow.elements.HtmlForm
// why 2 depths at this point?
@Override
public void doWriteAfter(PrintStream out, int depth) {
out.println("");
tabs(depth);
out.println("");
tabs(depth);
}
'''
otherwise of course we might have a generic method.
About
'''
implements ..., HtmlSelector<HtmlWriterComposite<T, U>>
'''
It is because I want
'''    @Override
public HtmlWriterComposite classAttr(String classAttribute) {
this.classAttribute = classAttribute;
return this;
}
'''
to return itself.

I have made a lot of changes :

I think that setClassAttribute method could have a shorter name with just one word, such as, className(...) or attribClass(...) :+1:

We should find some way of avoiding this repetition among all elements. Maybe the methods doWriteBefore and doWriteAfter should disappear. The base class of all elements could store the tag of the derived element, and then the write() method could do all the job. What do you think? :+1:

I have tried first to move up those methods doWriteBefore and doWriteAfter into the HtmlWriterComposite so the maximum of code will be at the same place. It will be easier to manage them. The difficulty is to handle hierarchy when printing
'''
public void doWriteBefore(PrintStream out, int depth) {
tabs(depth);
out.print(getElementValue());
}
public void doWriteAfter(PrintStream out, int depth, boolean doTab) {
    // RMK : do not insert tabs after a text node
    if(doTab){
      tabs(depth);
    }
    out.println("</"+ getElementName()+">");
}

protected String getElementValue() {
  return  "<"+ getElementName()+getClassAttribute()+getIdAttribute()+">";
 }

'''
Now I have the following output : (check unit tests on my branch if you want to see)
'''html

Task Details

Task Details

Id: 1
Title: Unit Test
Description: Test of element name
Priority: High

'''

I agree with your last changes and I think that I have an alternative to provide a fluent idiom that enables to write:
headerRow.th().classAttr("link").idAttr("gnaLink").href("http://gnagna.com").text("text towards link");

To that end, you must declare HtmlWriterComposite as:
HtmlWriterComposite<T, U extends HtmlWriterComposite> implements HtmlWriter<T>, HtmlSelector<U>

And  the classAttr method must be implemented as :
    public U classAttr(String classAttribute) {
        this.classAttribute = classAttribute;
        return (U)this;
    }
    // as well for idAttr method

And then any derived class must define its own class as the second type argument, such as:
class HtmlForm<T> extends HtmlWriterComposite<T, HtmlForm>

I think this way you can solve all the requirements, including a generic way to have attributes with the fluent style.

Good idea about the fluent style for genericity!
I applied it to the code I already add and it works! see the commit I just did.
I can make them even more generic and I can remove code such as
	@Override
	public void write(int depth, Object model) {
		out.print("<link rel=\"Stylesheet\" type=\"text/css\" href=\"" + href + "\"/>");
		tabs(depth);
	}

having 3 attributes (rel, type and href) and a single write method that parses attributes to generate the tag.

Yes, it looks consistent with your approach to other attributes. It is fine for me.

Hi again, maybe you can help me.
I have  a new struggle with generics again.
please take a look at my branche attribute from the fork :
https://github.com/kenji-getpowered/HtmlFlow/tree/attribute
htmlflow.elements.HtmlDivTest.testIdAndClassAttribute()
Line 73
      taskView.head().scriptLink("test.css");
    taskView.body()
    .div()
      .classAttr(divClass) // after addAttr() I have a HtmlDiv
      .idAttr(divId)
      .addAttr("toto", "tutu").form("/action.do"); // after addAttr() I have a HtmlWriterComposite ==> compilation ERROR
//    .div()
//    .classAttr(divClass)
//    .form("/action.do")

Can you see why?

That is very strange!!!! Because if you split it in various statements, it will work:
    HtmlDiv<Task> d = taskView.body().div();
    d = d.classAttr(divClass);
    d = d.idAttr(divId);
    d = d.addAttr("toto", "tutu");
    d.form("/action.do");

And again the following gives an error:
d = d.classAttr(divClass).idAttr(divId);

But like this just works again:
d = d.classAttr(divClass);
d = d.idAttr(divId);

I don’t get it. But I will keep looking for the reason. I will give you news soon…

@kenji-getpowered I found it. instead of:
public class HtmlDiv<T> extends HtmlWriterComposite<T, HtmlDiv>

You must declare it as:
public class HtmlDiv<T> extends HtmlWriterComposite<T, HtmlDiv<T>>

In truth you must do it for all concrete elements.


Single http request for posting results and generating report from them

Currently to generate report you need to:

zip folder
upload it with HTTP form request
store id from response
use results-id in next request with some additional params to actually trigger report generation and publish

To do this, i had to write .js script to make these requests

So my pipeline looks like:

Would be nice to have one single endpoint to publish results and generate report with one request, so it can be done with single curl command. Report generation params probably can be passed as form data values.

in next major release

org.apache.tomcat.util.http.fileupload.impl.SizeLimitExceededException: the request was rejected because its size exceeds the configured maximum


Icing/http2 2.0

New version of mod_http2 using pollsets. Sync with trunk for the module.

The APR sales rep, who sold me this feature, never mentioned this!

Never trust a sales ;)


Following the the Guide fails

Hi all,
first of all: im a noob! ;)
And maybe someone could help me and others that get stuck in the TUTORIAL.md.
i followed step by step the tutorial (and didnt du anything more).

plexdrive is working, playback via plex is also working.
rclone is installed but something does not work (see below).

--> i don't need the encryption (but if possible i would take) but the real thing i want is to be able to synchronize in both ways (when I try to upload s.th. to  /mnt/plexdrive/ it'll fail. (i think for this I need the rclone and unionfs-fuse?)
[local-crypt]
remote = /mnt/plexdrive/encrypted
filename_encryption = standard
password = *** ENCRYPTED ***
password2 = *** ENCRYPTED ***

But when I want to start rclone in step 13 with the command "systemctl start rclone.service" get this error:
Failed to create file system for "local-crypt:": didn't find section in config file
systemd[1]: rclone.service: main process exited, code=exited, status=1/FAILURE
fusermount[17792]: /bin/fusermount: failed to unmount /mnt/media: Invalid argument
systemd[1]: rclone.service: control process exited, code=exited status=1

what am i doing wrong? :(

you don't have the --config line in the systemd script... Please take this over to the rclone forum if you have any more issues as they can help you better.


Glitch on OpenGL plot

Depending on the width of the plot, the last pixel column sometimes blink.
It is easy to reproduce on my machine.
Debian 10
pyopengl                  3.1.5                      py_0    conda-forge
pyqt                      5.9.2            py37hcca6a23_4    conda-forge
qt                        5.9.7                h0c104cb_3    conda-forge

Could you send me the env.yml of your env so I can try it?
Do you have the same issue with a more recent version of Qt? 5.9 is rather old.


Updated los,icu,vent params for all facilities. data from 4/20

updated los, vent and icu parameters for all facilities.  Data from Clarity and LGH.  Data from 4/20.

nope, I see a bug.  wait for an update


initialExpression extension for advanced form behaviour

Is your feature request related to a problem? Please describe.
When rendering a Questionnaire via the data capture library, I need to be able to use an expression to set an initial value - see SDC Expressions
Describe the solution you'd like
SDC Library support for initialExpression extension using FHIRPath
For example:

Set a value to current date - %today()
Set name of the first patient - %patient.name.where(use='official').given.first()
Set the gender of the patient - %patient.gender

For other examples, see sample questionnaire
Describe alternatives you've considered
CQL or Questionnaire population

In order to implement this issue, the approach that I am going to use will be as follows.

Check if the expression starts with today(), then inside this will check if days are being added to or subtracted from today() if yes then perform the operation else return current date.
Try to fetch answer based on provided resource and expression if not succeeded then fetch answer using definition if provided.
Use FhirPath to evaluate expressions.

Currently, FHIRLexar is only able to recognize expressions without where() and any function call.
I have one question should I handle every possible expressions mentioned here http://hl7.org/fhirpath on SDK side?
CC: @f-odhiambo @ndegwamartin @maimoonak @jingtang10 @Tarun-Bhardwaj

In order to implement this issue, the approach that I am going to use will be as follows.

Check if the expression starts with today(), then inside this will check if days are being added to or subtracted from today() if yes then perform the operation else return current date.
Try to fetch answer based on provided resource and expression if not succeeded then fetch answer using definition if provided.
Use FhirPath to evaluate expressions.

Currently, FHIRLexer is only able to recognize expressions without where() and any function call. I have one question should I handle every possible expressions mentioned here http://hl7.org/fhirpath on SDK side?
CC: @f-odhiambo @ndegwamartin @maimoonak @jingtang10 @Tarun-Bhardwaj

After Exploring the FhirPathEngine further, I came to know that it has multiple overloaded methods for evaluating FhirPath expressions. So, I modified the approach that I proposed before as follows,

Get answers using FhirPathEngine evaluate method List<Base> evaluate(Base base, String path) throws FHIRException
If above method is not able to evaluate expression then will evaluate expression using List<Base> evaluate(Base base, ExpressionNode ExpressionNode) throws FHIRException
If unable to evaluate to expressions using above mentioned methods then fetch answer using definition if provided.

@jingtang10 CC: @f-odhiambo

Looking through the code of FHIRPathEngine https://github.com/hapifhir/org.hl7.fhir.core/blob/b075c5695ffa7267ef7010f8e560731d20a90383/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/FHIRPathEngine.java#L502 the code for evalute(Base,String) and evaluate(Base,ExpressionNode) are pretty similar - are you sure your step 1 and 2 will generate different results?

@jingtang10 I checked the methods, they are actually almost identical and doing the same job. I can modify step one to use only this method List<Base> evaluate(Base base, String path) throws FHIRException and pass resource from provided resources if any and then use definition if there's no answer found using expression.

Related to the expressions that are not currently supported, I posted a query here https://chat.fhir.org/login/#narrow/stream/179255-questionnaire/topic/FHIRPATH.20SDC.20implementation

@jingtang10  CC: @f-odhiambo @shoaibmushtaq25

Dear,
I just realized that initialExpression is part of the populate questionnaire, if this is not supported, then does the SDK support Observation-based Population or StructureMap based population ?
thanks again for your work
best regards

Dear,
I just realized that initialExpression is part of the populate questionnaire and not a extension to be managed by the form filler, if this is not supported, then does the SDK support Observation-based Population or StructureMap based population ?
thanks again for your work
best regards

We currently support Expression Based population - https://github.com/google/android-fhir/wiki/Structured-Data-Capture-Library#questionnaire-population
This extension allows for adding an expression as part of the population e.g. time.now() versus setting the value of a field that was previously collected

@fredhersch does it means that this issue can be closed ?
(all the related work will be usefull for other expressions)

this issue can be closed after two things:

[ ] the issue Raazia is fixing. which is that in some cases we're not providing the context to fhir path engine correctly, causing it unable to evaluate expressions such as today().
[ ] we will also need a follow up PR to handle the population context properly using the launch context and population context extensions.


Fix link to zigtools/zls#from-source

The link to https://github.com/zigtools/zls#from-source in README.md is broken.

@SuperAuguste It would be great if you could check the pull request when you have time.

Tysm <3


fix: Fixes drizzle db push command

Closes #
✅ Checklist

[x] I have followed every step in the contributing guide (updated 2022-10-06).
[x] The PR title follows the convention we established conventional-commit
[x] I performed a functional test on my final commit

Changelog

Drizzle Kit 0.21.0 has dropped the dialect from the drizzle-kit push command https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210
Updated cli/src/installers/drizzle.ts to reflect this change

💯

this doesn't fix anything does it? it's just stylistic?

Hey, Thanks for the PR.
This change was incorporated in #1893 which also added some other stuff, so I'll close this one.