Nextgen branch

@developerfromjokela can you give short intro to branch nextgen ideas?

I was planning to do a redesign, I'm currently little busy, so I'll go in-depth later this day.

I was planning to do a redesign, I'm currently little busy, so I'll go in-depth later this day.

So, I wanted to re-code the whole app as a new repository, and we can then merge that here.
Main problem for me has been notifications, I think if we make package checks on the server, we can save battery and CPU usage. (aka. Sending tracking code and checking for changes in server). Android comes with more restrictions as time passes, so on-device check becomes slowly unreliable.

So, I wanted to re-code the whole app as a new repository, and we can then merge that here.
Main problem for me has been notifications, I think if we make package checks on the server, we can save battery and CPU usage. (aka. Sending tracking code and checking for changes in server). Android comes with more restrictions as time passes, so on-device check becomes slowly unreliable.

I think if we make package checks on the server, we can save battery and CPU usage

Which server are you talking about? I hope the plan is not to start checking/storing the states in an external server. I believe this might result in too many requests from a single point, enough to require using paid services.
How often are you checking for updates and how bug percentage of the battery tends to be used by the app while updating on the background?

I think if we make package checks on the server, we can save battery and CPU usage

Which server are you talking about? I hope the plan is not to start checking/storing the states in an external server. I believe this might result in too many requests from a single point, enough to require using paid services.
How often are you checking for updates and how bug percentage of the battery tends to be used by the app while updating on the background?

The problem is not how often, it's simply not reliable, because Android limits background tasks to save battery automatically.
About the server, if designed correctly, it wouldn't be a expensive.
I don't think there's other reliable way for notifications, restrictions get more agressive over time.

The problem is not how often, it's simply not reliable, because Android limits background tasks to save battery automatically.
About the server, if designed correctly, it wouldn't be a expensive.
I don't think there's other reliable way for notifications, restrictions get more agressive over time.

I think if we make package checks on the server, we can save battery and CPU usage

Which server are you talking about? I hope the plan is not to start checking/storing the states in an external server. I believe this might result in too many requests from a single point, enough to require using paid services.
How often are you checking for updates and how bug percentage of the battery tends to be used by the app while updating on the background?

Theres other problems appearing too:

Server will hit public parcel api's request limit so we need to start using paid apis. Who pays it?
Who pays server and server from where?
Privacy problems which was one original idea of this app to not request parcel details thru "creators" server.. I do however know people dont really give a s*** about this when comparing competitor apps which do like this.

@developerfromjokela Maybe should create fully new app having new approach with this app code as a base with support for global parcel tracking, new name, new logo new everything and make it full of paid content like others do. Also gather and sell information within limits of privacy laws.

I think if we make package checks on the server, we can save battery and CPU usage

Which server are you talking about? I hope the plan is not to start checking/storing the states in an external server. I believe this might result in too many requests from a single point, enough to require using paid services.
How often are you checking for updates and how bug percentage of the battery tends to be used by the app while updating on the background?

Theres other problems appearing too:

Server will hit public parcel api's request limit so we need to start using paid apis. Who pays it?
Who pays server and server from where?
Privacy problems which was one original idea of this app to not request parcel details thru "creators" server.. I do however know people dont really give a s*** about this when comparing competitor apps which do like this.

@developerfromjokela Maybe should create fully new app having new approach with this app code as a base with support for global parcel tracking, new name, new logo new everything and make it full of paid content like others do. Also gather and sell information within limits of privacy laws.

Or just completely new app no connection to this app

Or just completely new app no connection to this app

Hmm, I see. Maybe I should launch a new app, so I could host the server (in Finland). I'm planning to keep it fully open source.

Hmm, I see. Maybe I should launch a new app, so I could host the server (in Finland). I'm planning to keep it fully open source.

I understand the privacy issue for server, and I'll create a separate app. My primary issue is (and was) notifications. maybe I should reinvent the server part to preserve privacy as much as possible.

I understand the privacy issue for server, and I'll create a separate app. My primary issue is (and was) notifications. maybe I should reinvent the server part to preserve privacy as much as possible.

I understand the privacy issue for server, and I'll create a separate app. My primary issue is (and was) notifications. maybe I should reinvent the server part to preserve privacy as much as possible.

Sounds good and to make competitor to parcels app.

I understand the privacy issue for server, and I'll create a separate app. My primary issue is (and was) notifications. maybe I should reinvent the server part to preserve privacy as much as possible.

Sounds good and to make competitor to parcels app.

@developerfromjokela anyway I like the idea and your plan is right way to do it!

@developerfromjokela anyway I like the idea and your plan is right way to do it!

Just watch out for GDPR stuff if you're planning on doing the checks on the server and pushing notifications based on that.
Parcels app is quite crappy IMO but their mobile web search at parcelsapp.com is quite amazing. It will save all previous searches to local storage and you can even replace the tracking code with a memorable name. If I'd only need simple tracking without additional info/archiving/exporting I might just use the web app.

Just watch out for GDPR stuff if you're planning on doing the checks on the server and pushing notifications based on that.
Parcels app is quite crappy IMO but their mobile web search at parcelsapp.com is quite amazing. It will save all previous searches to local storage and you can even replace the tracking code with a memorable name. If I'd only need simple tracking without additional info/archiving/exporting I might just use the web app.

Yes, the app isn't the best and it has an issue of leaking tracking codes (informed to developer, no response for over a year), so.

Yes, the app isn't the best and it has an issue of leaking tracking codes (informed to developer, no response for over a year), so.

Yes, the app isn't the best and it has an issue of leaking tracking codes (informed to developer, no response for over a year), so.

"leaking tracking codes" sounds like a feature

Yes, the app isn't the best and it has an issue of leaking tracking codes (informed to developer, no response for over a year), so.

"leaking tracking codes" sounds like a feature

I assume this conversation is finished

I assume this conversation is finished

I would like to give a small update.
So I've started working on a new app (open-source), new and fresh codebase. I plan to make notifications work without server side processing, until it is really mandatory, and I'll keep that as an optional feature, not activated by default.
Here's a screenshot:

App isn't near to its completion yet, but we can possibly merge our efforts some day 😊

I would like to give a small update.
So I've started working on a new app (open-source), new and fresh codebase. I plan to make notifications work without server side processing, until it is really mandatory, and I'll keep that as an optional feature, not activated by default.
Here's a screenshot:

App isn't near to its completion yet, but we can possibly merge our efforts some day 😊

I dont know can I bring much value for your version. Should you just release it when ready as a totally new app, I assume you target it for global tracking and not only Finland like I do here.

Anyway lets talk about it when you get closer to first release.

So I've started working on a new app (open-source), new and fresh codebase. I plan to make notifications work without server side processing, until it is really mandatory, and I'll keep that as an optional feature, not activated by default.
Here's a screenshot:

App isn't near to its completion yet, but we can possibly merge our efforts some day blush

I dont know can I bring much value for your version. Should you just release it when ready as a totally new app, I assume you target it for global tracking and not only Finland like I do here.

So I've started working on a new app (open-source), new and fresh codebase. I plan to make notifications work without server side processing, until it is really mandatory, and I'll keep that as an optional feature, not activated by default.
Here's a screenshot:

App isn't near to its completion yet, but we can possibly merge our efforts some day blush

I dont know can I bring much value for your version. Should you just release it when ready as a totally new app, I assume you target it for global tracking and not only Finland like I do here.

I am planning to target Finland, because global targeting is too huge, there are too many couriers to support 😄

Will you try to put time on visuals to make it different or like posti app is?


Implement Alternative labels in Stepper component

Bug, feature request, or proposal:
Feature request
What is the expected behavior?
Add an ability to display labels below step number. See the "Alternative labels" section on https://material.io/guidelines/components/steppers.html#steppers-types-of-steppers
What is the current behavior?
Apparently, placing labels under step numbers is not currently supported in Angular Material. At least, I didn't find anything in the docs.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 2+, All browsers

@philip-firstorder-io : Can you share you html file for the same?

@philip-firstorder You can use negative margins to bring the horizontal line closer to where you want them.
.mat-stepper-horizontal-line {
border-top-width: 2px !important;
margin: -38px -60px 0 -60px !important;
}

Please don't forget ::ng-deep, e.g.
::ng-deep .mat-step-header {
    border-radius: 50%;
}

We added support for this a couple of major versions ago. Closing this issue.
https://material.angular.io/components/stepper/overview#label-position


X-Editable and select2

I seem unable to get X-Editable to work nicely with select2. I can get X-Editable to work with other fields and select2 works on its own, but combining them seems cumbersome. Examples don't seem to work and include things that have been deprecated in select2 a long time ago (initSelection).
At least some of the issues I have:

I can get an initial value to the field but when I click it the field empties. So I
I can't figure out what my (Flask) backend is supposed to return because it seems no matter what I return component keeps telling nothing is found. I have verified my backend function does indeed return something but apparently in the wrong format. I've tried several different options.
Default width of the component is 30px for some reason, only way I could figure how to fix this is by adding this as a parameter. This is ugly and not needed when using select2 alone.
Save function is never seems to be called after I click the submit button.
Are there any examples on how to use select2 with the multiple choice option (again, what format should I use?) and tags = true? Should the latter work like with how select2 normally does, i.e. with the createTag callback?

I use it with the 3.5.4 version of select2. It seems that it broke when passing to version 4


Docs for Field methods are out of date and fail to compile

Aim
Attempted to learn how to_le_bytes and to_be_bytes worked from their noir-lang.org/docs page
Expected Behavior
Expected to find how those methods worked, including each parameter, along with working example code
Bug

The docs are out of date, as those methods (and several others) no longer return slices: https://github.com/noir-lang/noir/blob/master/noir_stdlib/src/field/mod.nr#L81
The code in the docs isn't being run because it's failing on nargo nightly, e.g.

fn main() {
    let field = 2;
    let bytes = field.to_le_bytes(4);
}

warning: unused variable bytes
  ┌─ src/main.nr:3:9
  │
3 │     let bytes = field.to_le_bytes(4);
  │         ----- unused variable
  │

error: Function expects 1 parameter but 2 were given
  ┌─ src/main.nr:3:17
  │
3 │     let bytes = field.to_le_bytes(4);
  │                 --------------------
  │

Aborting due to 1 previous error

To Reproduce

Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.33.0 noirc version = 0.33.0+e84f7d2e81c1f59e9af015f38c2d477607a9c558 (git version hash: e84f7d2e81c1f59e9af015f38c2d477607a9c558, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response

This is expected as those are the docs for the version 0.33.0 which is from before these changes. The latest docs are correct.


Reset food order status if make sends error somehow

Possibility to force order with command?

Make is not used anymore


❓ [Question] grid_sampler_2d converter doesn't get used?

❓ Question
From the debug log below, it seems that the aten.grid_sampler_2d operator gets decomposed into several lower-level operators. But isn't there a corresponding converter which should be used?
What you have already tried
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch_tensorrt

class MyModule(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, input, grid):
        return F.grid_sample(input, grid, mode="bilinear", padding_mode="border", align_corners=True)

model = MyModule().eval().cuda()

inputs = [
    torch.randn((1, 3, 8, 8), dtype=torch.float, device="cuda"),
    torch.randn((1, 16, 16, 2), dtype=torch.float, device="cuda")
]

optimized_model = torch_tensorrt.compile(
    model,
    ir="dynamo",
    inputs=inputs,
    enabled_precisions={torch.float},
    debug=True,
    min_block_size=1,
    truncate_long_and_double=True,
    output_format="fx",
)

DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_1 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_1 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_2 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_2 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_3 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_3 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_4 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_4 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_5 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_5 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_6 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_6 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_7 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_7 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.partitioning._global_partitioner:
Supported Nodes:
- torch.ops.aten.reshape.default + Operator Count: 13
- torch.ops.aten.expand.default + Operator Count: 1
- torch.ops.aten.select.int + Operator Count: 2
- torch.ops.aten.mul.Tensor + Operator Count: 10
- torch.ops.aten.add.Tensor + Operator Count: 7
- torch.ops.aten.clamp.default + Operator Count: 2
- torch.ops.aten.floor.default + Operator Count: 2
- torch.ops.aten.sub.Tensor + Operator Count: 8
- torch.ops.aten.ge.Scalar + Operator Count: 8
- torch.ops.aten.lt.Scalar + Operator Count: 8
- torch.ops.aten.logical_and.default + Operator Count: 12
- torch.ops.aten.where.self + Operator Count: 12
- torch.ops.aten.index.Tensor + Operator Count: 4

DEBUG:torch_tensorrt.dynamo.partitioning._global_partitioner:
Unsupported or Excluded Nodes:
- torch.ops.aten._to_copy.default + Operator Count: 8

DEBUG:torch_tensorrt.dynamo._compiler:Detected support for 89 operators out of 97 in subgraph.
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_1 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_1 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_2 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_2 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_3 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_3 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_4 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_4 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_5 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_5 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_6 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_6 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_7 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.conversion.aten_ops_converters:_to_copy converter rejected node _to_copy_7 with dtype torch.int64
DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Number of TensorRT-Accelerated Engines Generated: 2
DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Supported Nodes:
- torch.ops.aten.reshape.default + Operator Count: 13
- torch.ops.aten.expand.default + Operator Count: 1
- torch.ops.aten.select.int + Operator Count: 2
- torch.ops.aten.mul.Tensor + Operator Count: 10
- torch.ops.aten.add.Tensor + Operator Count: 7
- torch.ops.aten.clamp.default + Operator Count: 2
- torch.ops.aten.floor.default + Operator Count: 2
- torch.ops.aten.sub.Tensor + Operator Count: 8
- torch.ops.aten.ge.Scalar + Operator Count: 8
- torch.ops.aten.lt.Scalar + Operator Count: 8
- torch.ops.aten.logical_and.default + Operator Count: 12
- torch.ops.aten.where.self + Operator Count: 12
- torch.ops.aten.index.Tensor + Operator Count: 4

DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Unsupported or Excluded Nodes:
- torch.ops.aten._to_copy.default + Operator Count: 8

++++++++++++++++++++++++++++++++++++++++++++++++++ Dry-Run Results for Graph ++++++++++++++++++++++++++++++++++++++++++++++++++

The graph consists of 97 Total Operators, of which 89 operators are supported, 91.75% coverage

The following ops are currently unsupported or excluded from conversion, and are listed with their op-count in the graph:
 torch.ops.aten._to_copy.default: 8

The following nodes are currently set to run in Torch:
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_1
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_2
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_3
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_4
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_5
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_6
Node: torch.ops.aten._to_copy.default, with layer location: __/_to_copy_7
Note: Some of the above nodes may be supported, but were not included in a TRT graph by the partitioner

Compiled with: CompilationSettings(precision=torch.float32, debug=True, workspace_size=0, min_block_size=1, torch_executed_ops=set(), pass_through_build_failures=False, max_aux_streams=None, version_compatible=False, optimization_level=None, use_python_runtime=False, truncate_long_and_double=True, use_fast_partitioner=True, enable_experimental_decompositions=False, device=Device(type=DeviceType.GPU, gpu_id=0), require_full_compilation=False, disable_tf32=False, sparse_weights=False, refit=False, engine_capability=<EngineCapability.DEFAULT: 0>, num_avg_timing_iters=1, dla_sram_size=1048576, dla_local_dram_size=1073741824, dla_global_dram_size=536870912, dryrun=False, hardware_compatible=False, output_format='fx')

  Graph Structure:

   Inputs: List[Tensor: (1, 3, 8, 8)@float32, Tensor: (1, 16, 16, 2)@float32]
    ...
    TRT Engine #1 - Submodule name: _run_on_acc_0
     Engine Inputs: List[Tensor: (1, 16, 16, 2)@float32]
     Number of Operators in Engine: 58
     Engine Outputs: Tuple(Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@float32)
    ...
    TRT Engine #2 - Submodule name: _run_on_acc_2
     Engine Inputs: List[Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 8, 8)@float32, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@float32, Tensor: (1, 3, 16, 16)@bool, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@int32, Tensor: (1, 3, 16, 16)@float32]
     Number of Operators in Engine: 31
     Engine Outputs: Tensor: (1, 3, 16, 16)@float32
    ...
   Outputs: List[Tensor: (1, 3, 16, 16)@float32]

  ------------------------- Aggregate Stats -------------------------

   Average Number of Operators per TRT Engine: 44.5
   Most Operators in a TRT Engine: 58

  ********** Recommendations **********

   - For minimal graph segmentation, select min_block_size=58 which would generate 1 TRT engine(s)
   - For moderate graph segmentation, select min_block_size=45 which would generate 1 TRT engine(s)
   - The current level of graph segmentation is equivalent to selecting min_block_size=31 which generates 2 TRT engine(s)

Environment

PyTorch Version (e.g., 1.0): 2.3.0.dev20240221+cu121
CPU Architecture: x64
OS (e.g., Linux): Ubuntu 22.04 LTS
How you installed PyTorch (conda, pip, libtorch, source): pip
Build command you used (if compiling from source):
Are you using local sources or building from archives:
Python version: 3.10.12
CUDA version: 12.1
GPU models and configuration: RTX 3050
Any other relevant information:

The same for aten.leaky_relu.
import torch
import torch.nn as nn
import torch_tensorrt

class MyModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.m = nn.LeakyReLU()

    def forward(self, x):
        return self.m(x)

model = MyModule().eval().cuda().half()
inputs = [torch.randn((1, 3, 4, 4), dtype=torch.half, device="cuda")]

optimized_model = torch_tensorrt.compile(
    model,
    ir="dynamo",
    inputs=inputs,
    enabled_precisions={torch.half},
    debug=True,
    min_block_size=1,
)

DEBUG:torch_tensorrt.dynamo._compiler:Input graph: graph():
    %arg0_1 : [num_users=1] = placeholder[target=arg0_1]
    %_to_copy : [num_users=3] = call_function[target=torch.ops.aten._to_copy.default](args = (%arg0_1,), kwargs = {dtype: torch.float32})
    %gt : [num_users=1] = call_function[target=torch.ops.aten.gt.Scalar](args = (%_to_copy, 0), kwargs = {})
    %mul : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%_to_copy, 0.01), kwargs = {})
    %where : [num_users=1] = call_function[target=torch.ops.aten.where.self](args = (%gt, %_to_copy, %mul), kwargs = {})
    %_to_copy_1 : [num_users=1] = call_function[target=torch.ops.aten._to_copy.default](args = (%where,), kwargs = {dtype: torch.float16})
    return (_to_copy_1,)
DEBUG:torch_tensorrt.dynamo.lowering.passes.constant_folding:Graph after constant folding:
graph():
    %arg0_1 : [num_users=1] = placeholder[target=arg0_1]
    %_to_copy : [num_users=3] = call_function[target=torch.ops.aten._to_copy.default](args = (%arg0_1,), kwargs = {dtype: torch.float32})
    %gt : [num_users=1] = call_function[target=torch.ops.aten.gt.Scalar](args = (%_to_copy, 0), kwargs = {})
    %mul : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%_to_copy, 0.01), kwargs = {})
    %where : [num_users=1] = call_function[target=torch.ops.aten.where.self](args = (%gt, %_to_copy, %mul), kwargs = {})
    %_to_copy_1 : [num_users=1] = call_function[target=torch.ops.aten._to_copy.default](args = (%where,), kwargs = {dtype: torch.float16})
    return (_to_copy_1,)
DEBUG:torch_tensorrt.dynamo._compiler:Lowered Input graph: graph():
    %arg0_1 : [num_users=1] = placeholder[target=arg0_1]
    %_to_copy : [num_users=3] = call_function[target=torch.ops.aten._to_copy.default](args = (%arg0_1,), kwargs = {dtype: torch.float32})
    %gt : [num_users=1] = call_function[target=torch.ops.aten.gt.Scalar](args = (%_to_copy, 0), kwargs = {})
    %mul : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%_to_copy, 0.01), kwargs = {})
    %where : [num_users=1] = call_function[target=torch.ops.aten.where.self](args = (%gt, %_to_copy, %mul), kwargs = {})
    %_to_copy_1 : [num_users=1] = call_function[target=torch.ops.aten._to_copy.default](args = (%where,), kwargs = {dtype: torch.float16})
    return (_to_copy_1,)
INFO:torch_tensorrt.dynamo._compiler:Compilation Settings: CompilationSettings(precision=torch.float16, debug=True, workspace_size=0, min_block_size=1, torch_executed_ops=set(), pass_through_build_failures=False, max_aux_streams=None, version_compatible=False, optimization_level=None, use_python_runtime=False, truncate_long_and_double=False, use_fast_partitioner=True, enable_experimental_decompositions=False, device=Device(type=DeviceType.GPU, gpu_id=0), require_full_compilation=False, disable_tf32=False, sparse_weights=False, refit=False, engine_capability=<EngineCapability.DEFAULT: 0>, num_avg_timing_iters=1, dla_sram_size=1048576, dla_local_dram_size=1073741824, dla_global_dram_size=536870912, dryrun=False, hardware_compatible=False, output_format='exported_program')

DEBUG:torch_tensorrt.dynamo.partitioning._global_partitioner:
Supported Nodes:
- torch.ops.aten._to_copy.default + Operator Count: 2
- torch.ops.aten.gt.Scalar + Operator Count: 1
- torch.ops.aten.mul.Tensor + Operator Count: 1
- torch.ops.aten.where.self + Operator Count: 1

DEBUG:torch_tensorrt.dynamo.partitioning._global_partitioner:
All Nodes Supported

DEBUG:torch_tensorrt.dynamo._compiler:Detected support for 5 operators out of 5 in subgraph.
DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Number of TensorRT-Accelerated Engines Generated: 1
DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Supported Nodes:
- torch.ops.aten._to_copy.default + Operator Count: 2
- torch.ops.aten.gt.Scalar + Operator Count: 1
- torch.ops.aten.mul.Tensor + Operator Count: 1
- torch.ops.aten.where.self + Operator Count: 1

DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
All Nodes Supported

DEBUG:torch_tensorrt.dynamo._compiler:Submodule name: _run_on_acc_0
 Input shapes: [(1, 3, 4, 4)]
 graph():
    %arg0_1 : [num_users=1] = placeholder[target=arg0_1]
    %_to_copy : [num_users=3] = call_function[target=torch.ops.aten._to_copy.default](args = (%arg0_1,), kwargs = {dtype: torch.float32})
    %gt : [num_users=1] = call_function[target=torch.ops.aten.gt.Scalar](args = (%_to_copy, 0), kwargs = {})
    %mul : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%_to_copy, 0.01), kwargs = {})
    %where : [num_users=1] = call_function[target=torch.ops.aten.where.self](args = (%gt, %_to_copy, %mul), kwargs = {})
    %_to_copy_1 : [num_users=1] = call_function[target=torch.ops.aten._to_copy.default](args = (%where,), kwargs = {dtype: torch.float16})
    return _to_copy_1
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name arg0_1
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name /m/_to_copy
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name /m/gt
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name /m/mul
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name /m/where
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name /m/_to_copy_1
DEBUG:torch_tensorrt.dynamo.conversion.converter_utils:Node meta name output
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:TRT INetwork construction elapsed time: 0:00:00.002993
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:Build TRT engine elapsed time: 0:00:00.459272
INFO:torch_tensorrt.dynamo.conversion._TRTInterpreter:TRT Engine uses: 0 bytes of Memory
DEBUG:torch_tensorrt.dynamo._DryRunTracker:
++++++++++++++++++++++++++++++++++++++++++++++++++ Dry-Run Results for Graph ++++++++++++++++++++++++++++++++++++++++++++++++++

The graph consists of 5 Total Operators, of which 5 operators are supported, 100.0% coverage

Compiled with: CompilationSettings(precision=torch.float16, debug=True, workspace_size=0, min_block_size=1, torch_executed_ops=set(), pass_through_build_failures=False, max_aux_streams=None, version_compatible=False, optimization_level=None, use_python_runtime=False, truncate_long_and_double=False, use_fast_partitioner=True, enable_experimental_decompositions=False, device=Device(type=DeviceType.GPU, gpu_id=0), require_full_compilation=False, disable_tf32=False, sparse_weights=False, refit=False, engine_capability=<EngineCapability.DEFAULT: 0>, num_avg_timing_iters=1, dla_sram_size=1048576, dla_local_dram_size=1073741824, dla_global_dram_size=536870912, dryrun=False, hardware_compatible=False, output_format='exported_program')

  Graph Structure:

   Inputs: List[Tensor: (1, 3, 4, 4)@float16]
    ...
    TRT Engine #1 - Submodule name: _run_on_acc_0
     Engine Inputs: List[Tensor: (1, 3, 4, 4)@float16]
     Number of Operators in Engine: 5
     Engine Outputs: Tensor: (1, 3, 4, 4)@float16
    ...
   Outputs: List[Tensor: (1, 3, 4, 4)@float16]

  ------------------------- Aggregate Stats -------------------------

   Average Number of Operators per TRT Engine: 5.0
   Most Operators in a TRT Engine: 5

  ********** Recommendations **********

   - For minimal graph segmentation, select min_block_size=5 which would generate 1 TRT engine(s)
   - The current level of graph segmentation is equivalent to selecting min_block_size=5 which generates 1 TRT engine(s)
WARNING: [Torch-TensorRT] - Using default stream in enqueue()/enqueueV2()/enqueueV3() may lead to performance issues due to additional cudaDeviceSynchronize() calls by TensorRT to ensure correct synchronizations. Please use non-default stream instead.
C:\Python311\Lib\site-packages\torch\export\exported_program.py:740: UserWarning: Unable to execute the generated python source code from the graph. The graph module will no longer be directly callable, but you can still run the ExportedProgram, and if needed, you can run the graph module eagerly using torch.fx.Interpreter.
  warnings.warn(

I'm not sure about this one. Is upsample_bilinear2d should be used for F.interpolate(mode="bilinear")?
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch_tensorrt

class MyModule(nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, x):
        return F.interpolate(x, scale_factor=2, mode="bilinear")

model = MyModule().eval().cuda().half()
inputs = [
    torch.randn((1, 3, 128, 128), dtype=torch.half, device="cuda"),
]

optimized_model = torch_tensorrt.compile(
    model,
    ir="dynamo",
    inputs=inputs,
    enabled_precisions={torch.half},
    debug=True,
    min_block_size=1,
)

DEBUG:torch_tensorrt.dynamo.partitioning._global_partitioner:
Supported Nodes:
- torch.ops.aten._to_copy.default + Operator Count: 2
- torch.ops.aten.index.Tensor + Operator Count: 4
- torch.ops.aten.sub.Tensor + Operator Count: 3
- torch.ops.aten.mul.Tensor + Operator Count: 3
- torch.ops.aten.add.Tensor + Operator Count: 3

DEBUG:torch_tensorrt.dynamo.partitioning._global_partitioner:
All Nodes Supported

DEBUG:torch_tensorrt.dynamo._compiler:Detected support for 15 operators out of 15 in subgraph.
DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Number of TensorRT-Accelerated Engines Generated: 1
DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
Supported Nodes:
- torch.ops.aten._to_copy.default + Operator Count: 2
- torch.ops.aten.index.Tensor + Operator Count: 4
- torch.ops.aten.sub.Tensor + Operator Count: 3
- torch.ops.aten.mul.Tensor + Operator Count: 3
- torch.ops.aten.add.Tensor + Operator Count: 3

DEBUG:torch_tensorrt.dynamo.partitioning._adjacency_partitioner:
All Nodes Supported

++++++++++++++++++++++++++++++++++++++++++++++++++ Dry-Run Results for Graph ++++++++++++++++++++++++++++++++++++++++++++++++++

The graph consists of 15 Total Operators, of which 15 operators are supported, 100.0% coverage

Compiled with: CompilationSettings(precision=torch.float16, debug=True, workspace_size=0, min_block_size=1, torch_executed_ops=set(), pass_through_build_failures=False, max_aux_streams=None, version_compatible=False, optimization_level=None, use_python_runtime=False, truncate_long_and_double=True, use_fast_partitioner=True, enable_experimental_decompositions=False, device=Device(type=DeviceType.GPU, gpu_id=0), require_full_compilation=False, disable_tf32=False, sparse_weights=False, refit=False, engine_capability=<EngineCapability.DEFAULT: 0>, num_avg_timing_iters=1, dla_sram_size=1048576, dla_local_dram_size=1073741824, dla_global_dram_size=536870912, dryrun=False, hardware_compatible=False, output_format='exported_program')

  Graph Structure:

   Inputs: List[Tensor: (1, 3, 128, 128)@float16]
    ...
    TRT Engine #1 - Submodule name: _run_on_acc_0
     Engine Inputs: List[Tensor: (1, 3, 128, 128)@float16]
     Number of Operators in Engine: 15
     Engine Outputs: Tensor: (1, 3, 256, 256)@float16
    ...
   Outputs: List[Tensor: (1, 3, 256, 256)@float16]

  ------------------------- Aggregate Stats -------------------------

   Average Number of Operators per TRT Engine: 15.0
   Most Operators in a TRT Engine: 15

  ********** Recommendations **********

   - For minimal graph segmentation, select min_block_size=15 which would generate 1 TRT engine(s)
   - The current level of graph segmentation is equivalent to selecting min_block_size=15 which generates 1 TRT engine(s)
WARNING: [Torch-TensorRT] - Using default stream in enqueue()/enqueueV2()/enqueueV3() may lead to performance issues due to additional cudaDeviceSynchronize() calls by TensorRT to ensure correct synchronizations. Please use non-default stream instead.
C:\Python311\Lib\site-packages\torch\export\exported_program.py:740: UserWarning: Unable to execute the generated python source code from the graph. The graph module will no longer be directly callable, but you can still run the ExportedProgram, and if needed, you can run the graph module eagerly using torch.fx.Interpreter.
  warnings.warn(


[Ubisoft Connect] Individual Games Won't Load - Assassin's Creed Syndicate

I'm having issues playing Ubisoft games from their individual game entry after being scanned by NSL Game Scanner.
I installed the latest desktop version of NonSteamLaunchers and ran a NSL game scan which detected my Assassin's Creed Syndicate install and upon restart was added to Steam.
I launched the Assassin's Creed Syndicate shortcut which loads Ubisoft Connect and the game and successfully loads all the loading screens of the game but after the final loading screen (about the game automatically saving), the screen goes black and the game menu does not load. Just the button prompts at the bottom the screen to press Steam for menu or B to abort game.
The game plays fine through the Ubisoft Connect shortcut.
Do you have any ideas on how to fix this? Thanks.

@louisefindlay23 I have that game as well, I'll test

@louisefindlay23 for that specific game I would run it with Proton GE 8-25. It's working on mine with that one. Also just FYI, my script automatically only keeps the most updated ge proton. So what I would, is download and install Proton UpQT from the discover store and download 8-25. From there, open up NSL in desktop mode and click on Stop NSLGame Scanner. It will ask to restart click NO. Once that is done with. I would download the decky plugin version of NSL in the testing store, going forward I would use that to scan your games in real time no longer needing to restart steam anymore. This will also allow to switch between protons easier.


Alphabetize chapter dropdown in admin interface

Description
When adding a new bio or sponsor in the admin interface, users must select a chapter from a long dropdown list. This list in unordered. With 50+ chapters to choose from, it's a serious usability issue.
Ask
Alphabetize the chapter list, probably by adding an ORDER BY to the relevant SQL query.
To Do

[x] Alphabetize list
[ ] Test

Additional Info
Where is my chapter?

This better, @Roenok? :)
Thankfully it was a quick fix --

filter :chapter, member_label: :chapter, collection: proc { Chapter.order(:chapter) }

It's beautiful! I know where my city is.

hah I'm glad you brought this one up again because it was subtly bugging me each time I had to use it. Good idea! I'll get it pushed with a few other items soon.

@kstack7 This seems to have reverted on production. Any thoughts?

3, 2, 1 cache off!!
Can anyone else recreate this? Maybe try a new browser or refresh?

@kstack7 Seeing it both in Chrome Incognito and Firefox, which is weird. It's all database-driven, right? Browser shouldn't affect it.
To clarify, the filters dialog is still in alphabetical order. However, when I go to add a new bio/sponsor/admin user, that dropdown is unordered

OH. Geez, yes. That's a whole different scenario and clearly one that I missed! I thought you were seeing that on the filter, which resulted in my "turn it on and off" troubleshooting mindset :) I see it now. Thanks, @Roenok

Going to merge this to staging since only a few of us actually see this dropdown. Most admin users can only edit against their own chapter so the dropdown isn't there at all.

https://girl-develop-it-staging.herokuapp.com/admin

Putting this puppy to bed!
https://github.com/girldevelopit/gdi-new-site/pull/365
Go break it now, @Roenok ;)


Need help with calculating FID scores

Hey,
Your project is a marvellous representation of the working of the paper. I really appreciate your hard work.
I know it's been a while, but I would really appreciate if you would guide through it.
Just wanted a little bit of help with the FID scores calculations. I cannot replicate your process there and I wanted to ask if you did anything differently in that.
Running the command bash python calculate_metrics.py -c 'path_to_checkpoint_file' is giving me a value error as follows

Can you give me some advice to rectify this issue. It'll mean the world to be.
Thanks and have a great day ahead.

Hey,
Thank you, I'm glad you found our work useful!
Regarding your issue, it seems that len(dataset) is 0 which results in this error. Did you create the preprocessed data file before running the FID score calculation? You can do this by following steps 1-3 of "Steps for training the ScrabbleGAN model from scratch".

Hi Again,
Thanks for replying!
As mentioned in your instructions I used your checkpoints to directly calculate the FID scores. But maybe I should try what you insisted.
Thanks for the advice and have a nice day. :D


Updating object without updatedAt returns error that field is of wrong type

Making a PUT request to our goal class https://ourparse/classes/Goal/<goalid> with the following data:
{
    "name":"lol",
    "startTime":{"__type":"Date","iso":"2016-06-06T07:00:45.653Z"},
    "group":{"__type":"Pointer","className":"Group","objectId":"LhQclT1kTc"},
    "type":"event",
    "externals":[]
}

Returns this:
{
  "code": 111,
  "error": "schema mismatch for Goal.updatedAt; expected Date but got String"
}

We should look into why that might be the case.

I found that this is because creating objects in parse-server returns a response with updatedAt which is incorrect according to the RestAPI spec, fix forthcoming.

The JS SDK depends on this behavior quite a bit, I'm surprised nobody has run into problems with this.


[macOS] Migrate @NSApplicationMain attribute to @main

This migrates Flutter to use the @main attribute introduced in Swift 5.3. The @NSApplicationMain attribute is deprecated and will be removed in Swift 6. See: https://github.com/apple/swift-evolution/blob/main/proposals/0383-deprecate-uiapplicationmain-and-nsapplicationmain.md
This change is split into two commits:

https://github.com/flutter/flutter/commit/a508d3e5038c36849448f6b0b2567e8d416842fa - This updates the macOS app template and adds a migration to replace @NSApplicationMain uses with @main.
https://github.com/flutter/flutter/commit/f43482786edafc48ee90bea607704c4a0c8cb96f - I ran flutter run -d macos on each Flutter macOS app in this repository to verify the app migrates and launches successfully.

Follow-up to https://github.com/flutter/flutter/pull/146707
Fixes https://github.com/flutter/flutter/issues/143044
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] I followed the breaking change policy and added Data Driven Fixes where supported.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Strawman idea - what if we just regenerate the whole thing? This way we can have a simple one-for-all migration script that simply detects some sort of version change.

We can't regenerate files Flutter doesn't "own", at least not easily, or we would blow away the user changes.  For example in https://github.com/flutter/flutter/pull/146707/files#r1566254461, if we had regenerated the AppDelegate the user would have lost all their changes.
https://github.com/flutter/flutter/blob/224099872edbb1908466ee4de47c3aa56a58258e/examples/platform_channel_swift/ios/Runner/AppDelegate.swift#L22-L23
The Xcode project files are another example: users are supposed to edit their Xcode project in some cases (as you know from the validator), so we can't just regenerate it for them without keeping track of the deltas in a much more complicated, error-prone way.
There was an attempt to do something much more complicated with https://github.com/flutter/flutter/wiki/Flutter-migrate, (see https://flutter.dev/go/flutter-migrate and https://github.com/flutter/flutter/issues/40460), but it was extremely complicated and required users running a tool explicitly, and allowing rollbacks.  There wasn't much appetite to finish up that project since these incremental migrations that essentially just string match (the first one was introduced in https://github.com/flutter/flutter/pull/51453) were doing a decent enough job.  Before that, users would just get build errors and have to figure out how to fix them themselves.


add github workflow

heavily basing the test on this getting started repo: https://github.com/devcontainers/template-starter
i added a couple top directory
src/

app1

devcontainer-template.json
.devcontainer.json
...

app2

devcontainer-template.json
.devcontainer.json
...

test/
test.sh
test utils
.github/

workflow
action

the initial motivation is to test the devcontainer and the startup script. however, the gcp startup script does things like query the metadata server, log in with application default credentials, ssh setup, resource mount that we can't do in a github action test. so I added another argument to disable login.
i'm keeping the current rstudio/ and vscode for now but i'd like to release the template and use devcontainer templates apply --template-arg={cloud=gcp,login=true} instead.

hi @mbookman this is ready for another review :)


The translations on docs.docker-cn.com are still not completed

Problem description
After a year，the translation work on https://docs.docker-cn.com are still not completed.
I am a student major in computer science,  if you need someone to translate the docs, I am very glad to help.
As I know, many Chinese developers are paying attention to docker，but the docs and books are out of date.
SO, I will appreciate it so much if the community can finish the translation work as soon！

@JustinINevill, are there plans for translation?


Added support for collections of Parceler values

Fixing #72.

@f2prateek can you take care of this please ?
The PR looks great to me. S.
2015-10-16 12:28 GMT-07:00 Iain Connor<EMAIL_ADDRESS>
Fixing #72 https://github.com/f2prateek/dart/issues/72.
You can view, comment on, or merge this pull request online at:
https://github.com/f2prateek/dart/pull/76
Commit Summary

Support for Collections of Parceler
Support for Collections of Parceler

File Changes

M
dart-common/src/main/java/com/f2prateek/dart/common/AbstractDartProcessor.java
https://github.com/f2prateek/dart/pull/76/files#diff-0 (17)

Patch Links:

https://github.com/f2prateek/dart/pull/76.patch
https://github.com/f2prateek/dart/pull/76.diff

—
Reply to this email directly or view it on GitHub
https://github.com/f2prateek/dart/pull/76.

The PR looks good. Can you just add 1 or 2 tests please ? @iainconnor

Sure, where would you like to see the tests? Do they make sense in the Dart module or the processor?(Or the Henson processor?)

test that you can pass lists and sparse array as requested. There are already some tests for that (I don't remember where). A priori in Dart, not in Henson.

@iainconnor they tests would go here - https://github.com/f2prateek/dart/blob/master/dart-processor/src/test/java/com/f2prateek/dart/processor/InjectExtraTest.java.
Essentially write a sample of the code, and verify that the generated source code matched what was expected.

Shouldn't we also test that the collection bundle and unbundles fine as
well ?
Here :
https://github.com/f2prateek/dart/blob/master/dart-sample/src/test/java/com/f2prateek/dart/example/SampleActivityTest.java
That would also give an example.
2015-10-16 16:00 GMT-07:00 Prateek Srivastava<EMAIL_ADDRESS>
@iainconnor https://github.com/iainconnor they tests would go here -
https://github.com/f2prateek/dart/blob/master/dart-processor/src/test/java/com/f2prateek/dart/processor/InjectExtraTest.java
.
Essentially write a sample of the code, and verify that the generated
source code matched what was expected.
—
Reply to this email directly or view it on GitHub
https://github.com/f2prateek/dart/pull/76#issuecomment-148861001.

@iainconnor, I know this is a rare case, but you could have a Parceler collection that is deeper than one level:
@Parcel class Example{}
List<List<Example>>
Map<String, List<Example>>

What do you think about recursively searching the generics tree for @Parcel?

Interesting edge case. The recursive approach would solve this problem once
for all...
On Sat, Oct 17, 2015 at 7:08 AM John Ericksen<EMAIL_ADDRESS>wrote:

@iainconnor https://github.com/iainconnor, I know this is a rare case,
but you could have a Parceler collection that is deeper than one level:
@Parcel class Example{}
List<List>
Map<String, List>
What do you think about recursively searching the generics tree for
@Parcel?
—
Reply to this email directly or view it on GitHub
https://github.com/f2prateek/dart/pull/76#issuecomment-148918165.

@johncarl81 @iainconnor that's our week before we release RC 2. Does anyone want to fix the comments ?

What do we feel about the performance of a recursive traversal?

The performance should be negligible, especially during compile time.  This could also be done iteratively.

FYI: https://github.com/iainconnor/dart/pull/1

Did you do a PR against dart ?
S.
2016-02-22 22:08 GMT-08:00 John Ericksen<EMAIL_ADDRESS>
FYI: iainconnor#1 https://github.com/iainconnor/dart/pull/1
—
Reply to this email directly or view it on GitHub
https://github.com/f2prateek/dart/pull/76#issuecomment-187555124.

Thanks @johncarl81. @stephanenicolas just have to resolve some conflicts.

I'd consider a rebase @iainconnor.

:+1:

I'm considering moving this code into a shared utility library within the
parceler codebase as there are a few other implementations very similar to
this.  Would you like this utility for the upcoming release?
On Feb 23, 2016 9:50 AM, "Daniel"<EMAIL_ADDRESS>wrote:

[image: :+1:]
—
Reply to this email directly or view it on GitHub
https://github.com/f2prateek/dart/pull/76#issuecomment-187786074.

@johncarl81 I think it would be nice to have it.
We can merge this PR now and update to use the utility when it is ready


WIP: saucelabs daemon

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 15 committers have signed the CLA.:white_check_mark: gregmagolan:x: bougwal:x: kalbarczyk:x: crisbeto:x: AndrewKushnir:x: alxhub:x: jakovljevic-mladen:x: atscott:x: cexbrayat:x: angular-robot:x: phenomnomnominal:x: JeanMeche:x: alan-agius4:x: devversion:x: Michael-ZiluckYou have signed the CLA already but the status is still pending? Let us recheck it.


Adding Birthday Paradox problem

💥 Proposal
I want to add the Birthday paradox problem. (Math Section)
What is the minimum number of people present in a hall so that there is an X% chance of two people having the same birthday.?
Here X is the Input.
Sample Input:
50
Sample Output:
23 people with a probability of 49.2703%
Have you read the Contributing Guidelines on Pull Requests?
Yes
I am a participant in GSSoC 2021.

/assign


Automatic animation management

Short description of the problem:
In the app I'm currently working on, I have a modal which opens after an action sheet button is clicked (or tapped). The problem I encounter, is that I have to manually wait for the transition to be finished, using a promise (which by the way introduces some lag). I think this is not elegant and should be managed framework side.
What behavior are you expecting?
Almost no animation at all when not checking for transition. It also prevents the Modal.onDismiss callback from being called.
Steps to reproduce:

Open an alert or action sheet
In one of the handlers, open a modal
(Let me know if you want a Plunker)

Which Ionic Version? 2.x
Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.1.1
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.8
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.0.0
Xcode version: Xcode 7.3.1 Build version 7D1014

Hello, thanks for opening an issue with us! Would you mind posting a plunker that demonstrates this issue? Im having a little bit of a hard time understanding this issue but a plunker should clear it up for me (:

Here is the Plunker. Look in openAction() method in home.ts. I've not been able to reproduce the inexistant animations, the modal wouldn't show without the ugly code.

Ahh, ok i see now, thanks for the plunker! So this is actually the correct and preferred way to do navigation in Ionic 2. Our entire navigation system in Ionic 2 is async and built around using promises. You can read more about that here. Thanks for using Ionic and hopefully those docs clear everything up for you! I will be closing this issue, but feel free to comment if you have any more questions, or you can check out our forum too.

Could there be a method on NavController to get most recent transition promise. That way I wouldn't have to have a currentTransition property in my view controllers (when I open another Alert in a function, for example).


XSS via filename

serve-index directory listings are vulnerable to XSS via arbitrary uploader-controlled filenames.
Repro steps:

Run https://github.com/expressjs/serve-index#serve-directory-indexes-with-vanilla-nodejs-http-server
cd public/ftp
touch ''
Load the serve-index server in Chrome 41, see an alert box

I spotted this when testing webpack-dev-server, which is also vulnerable as it uses serve-index.

Thanks for the report. I'm going to publish a fix ASAP right now. P.S. if you like, always feel free to email me directly for security issues :) You can always post publicly on the repo if the author (me in this case) does not seem to be responding in a reasonable amount of time :D

Sorry, I'll do that in the future! I looked at http://expressjs.com/ for a security contact, but I should have just tried your email.

No problem. We are working on a policy. I was mainly just talking in general :)

Oh, I see, it's the title attribute. Doh!

...and the content, lol. Basically, only the href seems to be escaped... this is terrible :'(

Please feel free to confirm this fix :)

Thanks, that seems to have fixed the one I reported.
I found another, though: the directory/path indicator at the top of the index page needs escaping as well.  Try an mkdir '' and navigate to that directory.

Awesome!! Fixing...

Also, in the title tag.

Ok, I think I may have gotten them all now.

@andrewrk I'm pinging you because of the last serve-static back-port. Do you need this fix back-ported to some older minor line?

I'm ok, thanks. I'd like the option to ask for it later if I have to deal with another bug report asking for the patch earlier, if that's OK.

I'd like the option to ask for it later

The option is always available :) I was just checking ahead of time just in case you happened to know :)

This has been published to npm as 1.6.3.


Not killing background apps

Beta 5.0.0 on linux:
Running v5.0.0 as appimage from distro kills background epic-wallets and tor when you quit.
Running from electron:serve does not kill background epic-wallets and tor when you quit.

yes that's correct. it should work this way for developing


Stop receiving if there is no monitor plugged/enabled

https://www.electronjs.org/docs/latest/api/power-monitor#powermonitorgetsystemidlestateidlethreshold


fix: Sitemap: Return a QuerySet in CMSSitemap.items()

Description
According to the Django docs also a sequence like a list is allowed as the return value type of CMSSitemap.items(),
but djangocms_page_sitemap applies exclude, which only works with QuerySet.
This PR changes the type of the return value back to QuerySet.
Related resources

https://github.com/nephila/djangocms-page-sitemap/blob/5c1a44fa3b1238a5b5d43a7f2f0dd934aa659743/djangocms_page_sitemap/sitemap.py#L14

Checklist

[x] I have opened this pull request against develop-4
[x] I have added or modified the tests when changing logic
[x] I have followed the conventional commits guidelines to add meaningful information into the changelog
[x] I have read the contribution guidelines  and I have joined the channel #pr-reviews on our Discord Server to find a “pr review buddy” who is going to review my pull request.

Fixes #8029


Feature Request: Add option that allows player to locking a door with a password

It would basically be the feature already present of locking doors based on key items, but without items and only with a dialog to set the password.

@Saibot393 sorry i must be very stupid, i cannot find this feature , what did you mean with "only useable with the popup-menu control sceme" ?

A nevermind i found it!.
Two things:

Add a check for avoid the new passwrod to be empty (because it will convert to a standard key behaviour)
It is possible to add a additional key binding for set the new password without the player go to set the module setting ?

I currently don't have a kofi link (or somilar). Not sure if i will ever make one/add one to the project.

sorry to bother again...people who had difficulty setting module settings have difficulty setting keybinding...can you put a default value on the "Change Password" key binding ? (also for the "pick pocket" if that is not a problem)

Ty really appreciate  this.


Integrate with Imgui

This PR integrates ImGui using the imgui_bundle library.
the imgui_bundle provides Python bindings for ImGui.
I implemented an ImGui backend based on wgpu-py, as well as an ImGui renderer using the wgpu-py Canvas.
The main challenge I faced in this work was the encapsulation of the API. Ultimately, I abstracted two classes: ImguiWgpuBackend and ImguiRenderer.

ImguiWgpuBackend is a lower-level API that is independent of any GUI framework. It encapsulates the core logic for rendering ImGui using wgpu. Essentially, it wraps the GPU DrawCall required for rendering ImGui, allowing it to be embedded in any Render Pass, — You only need to insert the GPU DrawCall at the appropriate place in your application's rendering loop.  Note that UI events need to be handled yourself (via backend.io).

ImguiRenderer uses the wgpu-py Canvas as its concrete implementation and interfaces with the wgpu-py event system. It draws ImGui using an independent render pass, rendering directly to the Canvas' surface texture. Therefore, we need to be able to retrieve the same surface texture multiple times in different render passes within the same frame.

For specific usage, please refer to the examples included in this PR.
Additionally, I am still considering the integration and API design with pygfx. It could be treated as a special world object in pygfx or deeply integrated with the pygfx renderer to leverage features such as anti-aliasing.
Currently, in pygfx, you can also use the ImguiRenderer implementation to integrate ImGui into the pygfx scene rendering. This is entirely independent of the pygfx rendering logic, sharing only the Canvas instance. Therefore, any methods or features in pygfx will not affect ImGui. (such as snapshot() method in the pygfx.renderer )
Example:
https://github.com/pygfx/wgpu-py/assets/8044566/e5126e46-d3a7-49a4-aef2-fa709d0ef117

This looks really nice! :smile: . I'll play with it in pygfx over the next few days :)

I had never heard of imgui_bundle before. Based on stars it seems pyimgui is a bit more popular. Can you explain the difference between the two libraries and why you picked this one?
I tried to integrate with pyimgui before but I really struggled.

Can you explain the difference between the two libraries and why you picked this one?

When starting this work, I investigated the Python binding libraries listed in the imgui project. I found that the imgui_bundle project was relatively newer and more active. In contrast, pyimgui was last updated in April of last year. Additionally, imgui_bundle also includes bindings for many third-party extensions based on imgui, such as ImPlot, ImGuizmo, and other libraries. I thought that using imgui_bundle integration might help in obtaining a more powerful ecosystem integration.
Overall, however, I didn't particularly carefully consider this choice, and don't have a particular preference. I just tried starting with imgui_bundle, and it worked out quite well. 😅

pygfx currently requires python >= 3.8, but imgui-bundle latest version only supports python >= 3.10
what is the minimum version of imgui-bundle you (want to) support with this code?
imgui-bundle 1.0.0 is the last version with py 3.9 support
imgui-bundle 0.6.6 is the last version with py 3.8 support

I think it makes sense to put the imgui stuff in a utils.imgui subpackage:

Updated.

How portable is this code for using other imgui libs (alternative Python wrappers)? Just to get an impression to know how easy it would be to adjust of the ecosystem changes.

I haven't rigorously tested it, but I believe integration should be quite easy. Since we've implemented a generic backend for imgui, these imgui-based extension libraries should naturally receive support.
I tried implot, and it works well.

This is looking great! Awesome work!
The only hurdle is that this relies on the new char event, which means it does not yet work via jupyter_rfb, sorry @kushalkolar. I created #530 to track this, as it requires some more thought and work. I don't think we need to hold this PR for that. We can merge with desktop-only support, and add full support later.

The only hurdle is that this relies on the new char event, which means it does not yet work via jupyter_rfb, sorry @kushalkolar. I created #530 to track this, as it requires some more thought and work. I don't think we need to hold this PR for that. We can merge with desktop-only support, and add full support later.

yea been playing with it in jupyter_rfb, and yes of course one step at a time, we can do this fully later :smile:


fix: add missing package callsite-record

Package callsite-record is missing from the package.json.
Yoga scaffold command uses this package, so the command was unusable in the most recent version

Noticed that today. Would it be possible to add a build to PR's?
CircleCI config is here: https://github.com/prisma/yoga2/pull/39

Hey there,
Sorry about that, and thanks for the PR! The right fix was to completely remove the references to callsite-record, but you could not know 🙈
@wtrocki Yes, I'm gonna add it today and merge your PR once it's done 🙏


Segmented Sieve Problem

Description
In this problem you have to print all primes from given interval. As it is a range query problem, we will be using segment tree as the name suggests.
@Lakhankumawat please assign me this issue.
Domain
Algorithm
Type of Contribution
Addition
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of LearnCPP.

Hi sir I want to add the explanation as well as the clean code for this algorithm.
@Lakhankumawat please assign me this issue..
I'm a GSsoC'2022.

@Lakhankumawat  I am waiting for you to assign me this issue.

@Lakhankumawat  i am waiting for you to assign me this issue.

@Lakhankumawat i am waiting for you to assign me this issue.

Hello, make sure you give a good description while you write the code for it , it must come under M-MathematicalAlgorithms/
follow all the community guidelines,
Good job go for it

@miraj0507 @Lakhankumawat can I work on this issue???

/assign


Support for hapi v18

https://github.com/pinojs/hapi-pino/blob/master/index.js#L118
request.info.responded is now only set for successful responses. request.info.completed is a new value that is always set. A backwards-compatible way to implement this is to use completed when available, otherwise responded.
In addition, changes to request.url might require other adjustments.

Since #71 is merged and released as 5.4.0, I'd close this issue.


The JSX element type "XXX" does not have any structural signature or call signature.

0.37.0 version Volar appears the following problems

See https://github.com/johnsoncodehk/volar/issues/1405#issuecomment-1148123423.


Add support for reading graph from csv file (Adjacency list)

If we implement support for read/write operations for csv format via adjacency list, our application will be able to work with any graph which can be opened with tools like Gephi
https://en.wikipedia.org/wiki/Comma-separated_values
https://gephi.org/users/supported-graph-formats/csv-format/

airport_adj.csv


don't write congestion map outside of the routing layers

Description
I noticed in asap7 that although the min routing layer is M2 we still write out useless congestion map data for M1 into odb.  All the entries are 0.
Suggested Solution
Skip writing outside of min/max layers
Additional Context
No response

@eder-matheus why was this re-opened?

I had to revert my change due to some failures in the CI. I haven't had the chance to get back to it yet.


⚠ GitLab Server has degraded performance

In 46bea3a, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11082 ms

Resolved: GitLab Server performance has improved in 6719492.


refactor(jQuery): Remove $.ajax, use async/await, move custom paths t…

…o their own test

I wanted to remove $.ajax, so replaced it with fetch
Used async/await hopefully makes the tests easier to follow
We were testing custom paths using posts model in every test, moved testing of this behaviour into it's own test and removed from all other tests.

It was bugging me that we had $.ajax in there and were not using async/await, so I fixed it for this file. It does introduce ember-fetch though, maybe you don't want that dependency @samselikoff?

This seems good to me, but generally speaking the only reason ember-fetch works is because it still uses XMLHttpRequest under the hook (e.g. it is not a "true" polyfill for native fetch). We need to create a pretender adapter for fetch (I think @cibernox had a spike of this at one point).
I'm slightly concerned about landing these changes considering that I am also pushing to use native fetch if the host apps targets support it.
Some background links:

https://github.com/pretenderjs/pretender/issues/60
https://github.com/ember-cli/ember-fetch/issues/45
https://github.com/ember-cli/ember-fetch/pull/63
https://github.com/samselikoff/ember-cli-mirage/issues/983

I did. I can't locate it, but it's nothing I can't reproduce within a couple hours. The web community in general, not only the Ember community, needs a fetch stub that works.

Thanks for taking a look @rwjblue.

I am also pushing to use native fetch if the host apps targets support it.

Does that require some work on Pretender first to intercept native fetch requests?
From reading the links, I guess my only concern now would be that ember-fetch stops using XMLHttpRequest, and uses native fetch which would mean these tests break... I think.
In any case I think I'll split this into 3 different PRs. I think we can get the async/await changes and the moving of the custom paths merged fairly easily. The fetch stuff can wait.

Sounds good, thanks for working on this!


Create Network fails if Client-Mode is on

With netmaker switching to container based clients; create network will fail as it tries to create a client in the netmaker-gui container.
Workaround:  Set env CLIENT_MODE="off"

If CLIENT_MODE is set to off for netmaker-gui, everything functions properly even if CLIENT_MODE is on in the netmaker container.  It justs takes a little longer for the client to be created in this case.


Add a trivial conformance test.

Description of changes:
Adding a simple test to enable initial implementation and integration.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

We should take this opportunity to add comments to all of the tests (as we write them) indicating what the test is aiming to verify. Sometimes it's obvious, but often it's not.

I agree, and I think this is an obvious case, no?
BTW I also expect that the suite and the DSL will be evolved regularly as we learn more about what we need.  This will be very much a living product.

I agree, and I think this is an obvious case, no?

It's obvious to Ion maintainers, yes. I don't think it would be obvious to someone implementing Ion for the first time.

It's obvious to Ion maintainers, yes. I don't think it would be obvious to someone implementing Ion for the first time.

I think individual test files should come with a baseline assumption that the reader knows the testing DSL.  We shouldn't have to document fundamentals all over the place.  And once you take that out of the picture, if you assume the reader understands how the testing DSL works, what remains here is trivial.
Or maybe I'll put it this way: if these three LoC are not obvious to the Ion implementer, we should respond by improving the README documentation so they can better understand how the tests work.

I'm not referring to the DSL framework, I mean the intent of the test itself. We're demonstrating equality between null and null.null, while also showing that an annotated null is equivalent to a null with the same annotations.

Oh I see, the test is too trivial.  You're right, at this point its exercising the test framework more than anything.  Would make more sense using text and/or binary but I don't have those implemented.


Feature request, sync status of forks

As we know some of the forks are less than stable and prone to breakage and the whole blockchain crashing etc.
Is there an api call for the sync status from wherever you get information from on forks.
To be clear I'm not talking about my local sync status but whether the whole blockchain is down and if that information is available could it be integrated into forkboard somehow,

Any ideas for UI to display this information?  Was initially thinking of something like a stop light.  Red/yellow/green based on the peak age.

This feature has been added and deployed in v1.0.6 that was released yesterday


EOSIOCPP - Unable to compile with 1.1.2/1.1.3 on fresh install.

I have spent the last two days trying to resolve an issue that is present with recent versions of EOSIO that was not present before.
On fresh installs of Ubuntu 16.04/18.04/18.10 (VBOX)
Installed 1.1.3 following the official guide.

git clone https://github.com/EOSIO/eos --recursive

cd eos
./eosio_build.sh

cd build
sudo make install

No build errors occurred. I manually added the following path to my .profile and resourced it. This was not necessary in earlier versions of EOSIO.
/usr/local/eosio/bin
On trying to compile eosio.token from /eos/contracts/eosio.token, I receive the following error
eosiolib/asset.hpp not found
I tried adding /eos/contracts to my path but no joy. Clearly undocumented changes have been made. It is vital the official documentation is updated when this happens. It wastes lots of developer time and goodwill.
@ #5015

And most possibly, #5040 is related.

I resolved this by installing eosio.wasmsdk and eosio.contracts. Note there is (another) bug in the build script for eosio.wasmsdk, and it does not install the required boost 1.67. You need to do this manually.

On the upside, once you manage to eosio.wasmsdk installed and working you might see significant reductions in your wast file size. My file size went from 34K->17K. This is a huge saving in ram costs, and worth the effort.

@Pdsmithjp , see #5133 for a workaround/fix
(you can close the issue if you think its adequately fixed for you)

try the latest 1.2.0, this should fix your issues (please close this issue if it works for you).


01_api_lesson.md restructuring

I think the figuredincluded at the top of the file may work better in the "API Examples" section of the file.

@Emmavt which figures do you mean? The Google example? I think the reason they are there is to give participants a quick overview of how RESTful APIs can be read/understood. Did this end up being confusing?

Sorry - that was absolutely not clear enough. I meant the workflow referencing the UC library resources for accessing remote data.


Store pipeline output in compressed CSVs and read/write them using data.table

Closes https://github.com/cmu-delphi/forecast-eval/issues/262
Switch to csv.gz format instead of using RDS. CSV is more flexible in what R packages we can use to read/write the files, and in what languages we want to use (e.g. if we want to rewrite the pipeline in Python but keep the dashboard in R).
fread only speeds up the dashboard slightly, but offers the opportunity to use faster data.table processing in the future.

so if I'm reading this right, to test it, I should run make score_forecast and make build_dashboard_dev?

make score_forecast to test the pipeline and make start_dashboard to test the dashboard (build_dashboard_dev is run as a dependency).
make score_forecast depends on an image repo download, a workaround is given as
# `docker_build/Dockerfile` is based on `ghcr.io/cmu-delphi/covidcast:latest`.
# Docker will try to fetch it from the image repository, which requires
# authentication. As a workaround, locally build a docker image
# from https://github.com/cmu-delphi/covidcast-docker/ using the `make build`
# target, and set `--pull=false` below.

That said, given the difficulties of testing this, I'll run the pipeline in GitHub Actions so that the score files are available in the S3 bucket (won't impact the public dashboard since the new extension makes the score file names different), and you can test the dashboard only. I'll let you know when that's done.


feat: crud task according to workflow

Issue #15
I created a task CRUD with workflow configuration.

@melroy89 :wave:

Sorry about my ignorance, but why do we need all those workflow code in a demo app? The CRUD code all seems fine to me. But what does all that workflow code do? Which has even an dependency outside this demo app with @jean-michelet/workflow.
Why not just keep the demo clean, and focus on the CRUD part only? Or do I miss something.

Sorry about my ignorance, but why do we need all those workflow code in a demo app?

The workflow (state machine) is something I used professionally when I was a PHP developer and I think it's a relevant way to handle the life cycle of an entity. I needed it to my job where we handle entities workflows. But I just realize that they are flaws in my implementation as tasks it can be PATCHed without status verification, also deletion right should be handled.

Which has even an dependency outside this demo app with @jean-michelet/workflow
Yes, this is my package, this is more like a POC, I can create an official fastify package for it so it is an official dependency.

But if you think it's inappropriate, too complex, I understand. Some tasks application have very free status transitions, some of them have strict rules. I tough it was an opportunity to add this feature and make discover a way of managing an entity's status.
I am gonne fix the implementation and wait for other reactions, thanks for your review :pray:

@gurgunday @climba03003
Any feedback?

I can take inspiration from it, but maybe we can stick to a task application. I can complete this PR with users endpoints, I just wanted a feedback on a pure CRUD. Autorisation is for a next step.

TODO:

Add users endpoint

Can do Users on an other PR.


SoftKeys

Hi, nice library! I was testing out the demos in your repo, and I can't seem to get SoftKeys to work, unless I use PdCursesMod, which in it's turn seem to have issues with the font in Visual Studio 2022 Dev Console (garbled characters and refresh issues as far as I can tell). PdCurses works fine and all demos do work without issues, just the slk demo that is problematic. So i guess my question is, is Softkeys only supported in PdCursesMod or is it supposed to be working in PdCurses and Ncurses as well?
Here's the error that's thrown:
Sharpie.CursesOperationException: 'The call to slk_init failed: Failed to initialize soft label keys.'

Hi @ClonedPuppy, thanks for giving the lib a try. To your question - PDCurses does not support SLK so it will fail, unfortunately. In relation to PDCursesMod - I found it to be the most stable across platforms (where NCurses is not available). But PDCursesMod has 3 "flavors" in Win32 - wincon, wingui and vt. Not sure which one you have used and what console/terminal settings you have. For the newer versions of Windows with VT support, the vt flavor should be the preferred option, otherwise, wincon will use the old-style Win32 console.
Probably a good enhancement is to auto-detect is the VT is turned on/can be turned on and select the appropriate flavor that way.


Modio.auth().request_code(email) not sending email

Not really much I can say unfortunately, I have this code:
let modio = Modio::new(Credentials::new(env!("MODIO_API_KEY")))?;

modio.auth().request_code("valentinegb@icloud.com").await?;

but I'm not receiving any emails. Not sure if I'm doing something wrong, if this is a bug with the wrapper, or if it's a bug with the SDK- please offer some assistance.

I tried to log in with my cli tools nickelc/modiom. I've just received an email from the test-env with a security code.
modiom login --test-env

I installed modiom and ran the same command, it said Authentication code request was successful. but I still didn't get an email.

hmmm, if there is no email in the spam folder then maybe the email bounced.
I would contact the mod.io team.


Setting IsEnabled to false does not disable DataGrid

Issue seems to come from Avalonia - needs repro and Avalonia ticket

https://github.com/AvaloniaUI/Avalonia/issues/7890


Issue with /docs/tutorials/kubernetes-basics/scale-interactive/

This is a...

[ ] Feature Request
[ x] Bug Report

Problem:
Step 2 of module 5 uses pre-existing service
kubectl describe services/kubernetes-bootcamp
This service is deleted during the module 4 therefore it's not possible to get the command above  produce valid result locally
Proposed Solution:
Do not create service in advance and include create service command in the exercise prior to the node scaling.
Page to Update:
https://kubernetes.io/docs/tutorials/kubernetes-basics/scale-interactive/

The interactive tutorial was built by a third party, so I'll reach out to them.

Thanks for your feedback on this. We've updated this as you suggested.
/close


Erd diagrams: not fully export png

Linux debian 10
Dbeaver 6.2
Postgresql 11
Describe the problem you're observing:
When I try to export erd diagrams to png format, sometimes the diagram is not fully export
Steps to reproduce, if exist:
Makes a diagram with tables containing a few tables with columns

try to export to png
moves the tables and try to export again... a few times
You will see that, depending of the position of tables, sometimes the diagram is fully printed, sometimes not.

still actual (6.3.2)


refactor: apply webpack-defaults

Intended to be merged & released as a part of 1.0.0 on a beta dist-tag once this has been finished and properly tested.
BREAKING CHANGE:
Enforces NodeJS > 4.3 via engines
Closes #47

So given webpack > 2 has native json support, we should probably skip the defaults upgrade and just throw an deprecation warning for 2.x.
The defaults upgrade is of no benefit to webpack 1.x.

Yep or that I can do a separate PR with the warning etc

I think we should also check json5-loader in terms of webpack 2 compatibility, here @json-loader I closed a few issue because of json-loader usage + webpack 2 core JSON support


coveralls broken

Haven't seen an update since November...

Seems to be working a bit better now, but not fully functional yet

Never got working 100% so removed.


GitHub Actions Fail with duty to create docs on library created with copier_pdm

Describe the bug
Using duty, based on a library created with copier_pdm, I keep running into the same error in GitHub Actions where it can't find the library I've created (after having passed multiple other actions). I'm new to using GitHub Actions and duty - so, I apologize if I'm missing something obvious. But I've spent hours trying to find the problem with no luck. The error looks like this:
Run pdm run duty check-docs
  pdm run duty check-docs
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    LANG: en_US.utf-8
    LC_ALL: en_US.utf-8
    PYTHONIOENCODING: UTF-8
    pythonLocation: /opt/hostedtoolcache/Python/3.9.17/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.17/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.17/x64
    Python[2](https://github.com/WithPrecedent/wonka/actions/runs/5466261315/jobs/9950918508#step:6:2)_ROOT_DIR: /opt/hostedtoolcache/Python/[3](https://github.com/WithPrecedent/wonka/actions/runs/5466261315/jobs/9950918508#step:6:3).9.17/x6[4](https://github.com/WithPrecedent/wonka/actions/runs/5466261315/jobs/9950918508#step:6:4)
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.17/x[6](https://github.com/WithPrecedent/wonka/actions/runs/5466261315/jobs/9950918508#step:6:6)4
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.1[7](https://github.com/WithPrecedent/wonka/actions/runs/5466261315/jobs/9950918508#step:6:7)/x64/lib
    LD_PRELOAD: /lib/x[8](https://github.com/WithPrecedent/wonka/actions/runs/5466261315/jobs/9950918508#step:6:8)6_64-linux-gnu/libgcc_s.so.1
> Building documentation
✗ Building documentation (1)
  > mkdocs.build(strict=True, config_file='mkdocs.yml')
  INFO     -  Cleaning site directory
  INFO     -  Building documentation to directory: /home/runner/work/wonka/wonka/site
  ERROR    -  mkdocstrings: No module named 'wonka'
  ERROR    -  Error reading page 'reference/wonka/index.md':
  ERROR    -  Could not collect 'wonka'`

To Reproduce
Steps to reproduce the behavior:
I apologize that the steps to reproduce aren't simple because I'm not sure where the error emerges from. The issue arises whenever I push a new version on either the "main" or "development" package of wonka. Whenever I build the docs locally (which seems to be the step at which the GitHub Action with the corresponding duty fails, I have no problems. Indeed, you can see the manually created docs here: https://withprecedent.github.io/wonka/.
I had made changes to various configuration files, but have reverted them to as close to the created "copier_pdm" template as possible (such as having no "main.py" file because this is a library and not a CLI package).
I'd be happy to run any tests of create something smaller to isolate the reproducible error. I'm just not sure where to start.

Screenshots
I've cut and pasted the error code above. But I can take screenshots as well.
System (please complete the following information):

duty 1.0.0
python 3.11.3
linux manjaro kernel 6.1.31-2

Additional context
I really appreciate your efforts in creating these tools. They are exactly the sort of things I would create in this context. Thanks!
One thing that I noticed that might be odd is that the error coding refers to "/home/runner/work/wonka/wonka/site." I'm not sure how that directory is created (and if it is just temporary or somewhere on GitPages), but I use a "src/wonka" directory locally and "site" (referring to the created docs site) is built outside of "src."

Of course, after posting the issue, I was finally able to find the solution.
For anyone else who stumbles across this error and isn't quite sure what to do, this was what I did.
In the pyproject.toml file, I received an error when I had this in the file:
[tool.pdm.build]
package-dir = "src/wonka"

But, when I removed "wonka" from the dir name, it worked fine. So, it should be:
[tool.pdm.build]
package-dir = "src"

I'm not sure if my adding of the package's specific name was a holdover from using poetry or why I otherwise added it. Regardless, that is how I fixed the problem.

Hey @WithPrecedent, thanks for the report and sorry for the trouble. The package-dir must not include the package name indeed, unless it's an implicit namespace package. Glad you found the solution to your issue :tada: Closing :slightly_smiling_face:

Also, thank you very much for the kind words, and for your demonstration of patience and kindness! That is really appreciated :slightly_smiling_face: Nice project by the way!


allow searching of deleted request logs

The prefixes and files for deleted requests will still be in s3, so we should be able to search them. Updates to just return an absent group if we can't find the request and continue our searching.
@tpetr

Merging this for 0.10.1 bug fix release


chore: update vaadin 24.1.0.alpha4

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Update egghead links in Learning Resources

Checklist

[X] Is there an existing issue for this PR?
No
[X] Have the files been linted and formatted?

What docs page is being added or updated?

Section: Introduction
Page: LearningResources

For Updating Existing Content
What updates should be made to the page?
The link for a specific redux tutorial is not updated. It directs to a page that later asks the users to go to the new tutorial page. It would be better if the new link is added to save time and be on the safer side (just in case the older link is closed by the author).
Do these updates change any of the assumptions or target audience? If so, how do they change?
No, they do not change any assumptions.

Thanks!

Thanks!


update from upstream

chore(deps): update rust:1.66.1 docker digest to b9adf48
chore(deps): update rust:1.66.1 docker digest to 23b7815
chore(deps): update github/codeql-action action to v2.1.38
chore(deps): update docker/metadata-action action to v4.3.0
chore(deps): update actions-rs-plus/clippy-check digest to 02fcef9
chore(deps): update docker/build-push-action action to v3.3.0
chore(deps): update returntocorp/semgrep docker digest to 855cbe1
chore(deps): lock file maintenance
chore(deps): update actions-rs-plus/clippy-check digest to 8440e99
chore(deps): update mcr.microsoft.com/vscode/devcontainers/rust:1-bullseye docker digest to 08a3308
chore(deps): update actions-rs-plus/clippy-check digest to 5eb300c
chore(deps): update github/codeql-action action to v2.1.39
chore(deps): update returntocorp/semgrep docker digest to c842b28
chore(deps): update returntocorp/semgrep docker digest to e497fcd
chore(deps): update actions-rs-plus/clippy-check digest to c4cb3d7
fix: set latest tag

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


Ability to set a pingone_branding_theme as the active theme for an environment

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

When configuring a theme with pingone_branding_theme there needs to be a way to set it as the active theme in the environment.  It is used for the sign-on policies, and also as a fallback for DaVinci errors.
New or Affected Resource(s)

pingone_branding_theme

Potential Terraform Configuration

# Copy-paste your PingOne related Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

# Remember to replace any account/customer sensitive information in the configuration before submitting the issue

References

@patrickcping there is a clean way to do this, without creating the hassle of an orphan setting or resulting in locked loops.
Mark the value options as true | undefined
as per #357 the flag is only passed "if default === true"
If multiple themes are marked as true, either trigger a failure message (uniqueness constraint) or set the most recent called as default (undesirable, but not broken)

Thanks for that, a few considerations:

Mark the default value options as true | undefined

From an API perspective, the value cannot be left undefined - it will default to false when computed back into state, so we're not able to "unset" to "reset" because of the lock situation.

If multiple themes are marked as true, either trigger a failure message (uniqueness constraint)

Terraform's resources (even if they're the same type) aren't aware of each other as they're being applied.  A uniqueness error would prevent a locked loop but I'm not sure we can get there cleanly

set the most recent called as default (undesirable, but not broken)

This is how the API currently works and will work reasonably well until changing the default from one to another.  This will lead us to the lock situation or a state management problem.  The state management problem is where "Theme 2" takes the default from "Theme 1", but "Theme 1" is expecting default == true in it's state - it'll result in TF thinking there is unintended drift and either want to reset it back or show inconsistent state warnings after apply.

If the issue is in the TF validation, there is always the fallback default theme Ping Default that can be either referenced, or even recreated if it has been deleted?

This is the most workable, but we have an objective to put all configuration in the platform under some form of "drift control".  Where we have to fallback to the default theme on delete it will need to be TF unmanaged.  This is where the idea of the pingone_branding_theme_default comes from, to pull that item of config under TF control and be able to detect it's drift

Is there any update to the issues surrounding the inability to set defaults?

I've responded more generally on issue #463 , but the good news is that the branding themes are one of the few where we don't encounter conflicts between the API design and Terraform's implementation.
You're able to set the default branding theme with the pingone_branding_theme_default resource (docs link)


Unable to commit prettier fixes

https://github.com/laravelio/laravel.io/pull/526/checks?check_run_id=641089811

I tried updating the action to the latest version. Can you remove your style commit, rebase with master and try again?


Answers file templating fails when copy message is provided

Describe the problem
The answers file templating fails when using a _message_before_copy and _message_after_copy
If the messages are removed the answers file gets correctly templated
I don't know how the copier internals work well enough to figure out why this is happening. Any ideas?
Template
I created a dummy template in https://github.com/MigQ2/dummy-copier-template, with the master branch working fine but the fix/broken-template branch doesn't work.
The only difference between both branches is the  _message_before_copy and _message_after_copy, you can check that here
To Reproduce
I am using copier==9.4.1
You can run copier copy -d dummy_answer="myanswer" https://github.com/MigQ2/dummy-copier-template.git . and see that the copier answers file gets correctly templated:

Then run copier copy --vcs-ref fix/broken-template  -d dummy_answer="myanswer" https://github.com/MigQ2/dummy-copier-template.git . and you will see the copier answers file doesn't resolve the template:

Logs
No response
Expected behavior
Answer file should be correctly templated when using a message
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
Ubuntu 22.04.3 LTS (running on WSL)
Copier version
9.4.1
Python version
3.10
Installation method
pip+pypi
Additional context
No response

Thanks for reporting this bug, @MigQ2! :pray: I've been able to reproduce the bug (also on the current tip of the master branch) and submitted a PR that fixes it: #1840

I had been running into this issue, and couldn't work out what was causing it for ages until I finally realised it was _message_before_copy. As I was looking into it to try to fix it, I came across your test, thanks for fixing @sisp!
Could I ask what's the release cadence? I'm interested when this (and another PR I've submitted https://github.com/copier-org/copier/pull/1892) could be available for users of our templates