Unable to add global remotes on snap version of lxd

Required information

Distribution: Ubuntu
Distribution version: 20.04
The output of "lxc info" or if that fails:

Kernel version: 5.4.0-1075-kvm
LXC version: 5.0.1
LXD version: 5.0.1
Storage backend in use: btrfs
Snap Version: 5.0/stable

Issue description
Unable to add global remotes to the host for all users to use that was implemented in #7322 by following the docs page as well as utilizing the release notes for snap specific directory.
While following these directions I was unable to see any remotes listed in lxc remote list that were added in the config.yml in the numerous directories tried.
Directories tried:

/etc/lxc
/etc/lxd
/var/snap/lxd/common

Each directory tried had the sub-folder of servercerts that contained the *.crt file that had a name that matched the entry in the config.yml
Steps to reproduce

Install LXD via snap
Create config.yml based off documentation in any of the 3 folders listed above
run lxc remote list to see no newly added remotes
repeat steps 2 & 3 for the directories mentioned above along with making sure the *.crt files exist in servercerts under the folders tried

Information to attach

[ ] Any relevant kernel output (dmesg)
[ ] Container log (lxc info NAME --show-log)
[ ] Container configuration (lxc config show NAME --expanded)
[ ] Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log)
[ ] Output of the client with --debug
[ ] Output of the daemon with --debug (alternatively output of lxc monitor while reproducing the issue)

Try /var/snap/lxd/common/global-conf/

Try /var/snap/lxd/common/global-conf/

That worked perfectly!
I created a MR for adding it to the docs page to help avoid confusion for the next person that needs to use this


Workflowlevel1 edition permissions #400

Purpose
Fixes permissions for program edition:
https://github.com/toladata/TolaDataV2/issues/400
Also fixes permissions for destroy method.

Coverage increased (+0.5%) to 54.646% when pulling cda41a29134012ea81b00fe670ca863ed4cd0665 on Menda:workflowlevel1-edition-permissions into 80ef7cdf0eb786d086b729c7a7070321d2f843a5 on toladata:dev-v2.

Coverage increased (+0.03%) to 48.955% when pulling 163e235f0f7090e0b5895da6853bd81975b07b73 on Menda:workflowlevel1-edition-permissions into d1e327c3579f4f9c658a36163e10df59ed373ffb on toladata:dev-v2.


HoeffdingTree classifier fails with spam dataset

bug_info.zip
(base) nuwan@nuwan-asus:~/Desktop/scikit-multiflow$ git reflog
495659aa (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: pull origin master: Fast-forward
b0d4bd1a HEAD@{1}: reset: moving to HEAD
b0d4bd1a HEAD@{2}: reset: moving to HEAD
b0d4bd1a HEAD@{3}: clone: from https://github.com/scikit-multiflow/scikit-multiflow.git

(base) nuwan@nuwan-asus:~/Desktop/scikit-multiflow$ source venv/bin/activate

(venv) (base) nuwan@nuwan-asus:~/Desktop/scikit-multiflow$ venv/bin/python test.py -i ~/Desktop/spam_corpus_class_map_100.csv -o /dev/null
Input dimensions = 39916
/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/trees/hoeffding_tree.py:35: FutureWarning: 'HoeffdingTree' has been renamed to 'HoeffdingTreeClassifier' in v0.5.0.
The old name will be removed in v0.7.0
  "The old name will be removed in v0.7.0", category=FutureWarning)
[HoeffdingTreeClassifier(binary_split=False, grace_period=200,
                        leaf_prediction='nba', max_byte_size=33554432,
                        memory_estimate_period=1000000, nb_threshold=0,
                        no_preprune=False, nominal_attributes=None,
                        remove_poor_atts=False, split_confidence=1e-07,
                        split_criterion='info_gain', stop_mem_management=False,
                        tie_threshold=0.05)]
['HT']
Prequential Evaluation
Evaluating 1 target(s).
Evaluating...
 ######-------------- [28%] [20.30s]/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/bayes/utils.py:37: RuntimeWarning: overflow encountered in double_scalars
  X[att_idx], class_index)
/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/utils/utils.py:62: RuntimeWarning: invalid value encountered in double_scalars
  dictionary[key] = value / factor
 ##########---------- [48%] [35.24s]/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/bayes/utils.py:37: RuntimeWarning: invalid value encountered in double_scalars
  X[att_idx], class_index)
Can not normalize, normalization factor is NaN
Processed samples: 50
Mean performance:
Traceback (most recent call last):
  File "test.py", line 38, in <module>
    evaluator.evaluate(stream=stream, model=learner, model_names=learner_name)
  File "/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/evaluation/evaluate_prequential.py", line 250, in evaluate
    self.model = self._train_and_test()
  File "/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/evaluation/evaluate_prequential.py", line 375, in _train_and_test
    self.evaluation_summary()
  File "/home/nuwan/Desktop/scikit-multiflow/src/skmultiflow/evaluation/base_evaluator.py", line 612, in evaluation_summary
    self._data_buffer.get_data(metric_id=constants.ACCURACY, data_id=constants.MEAN)[i]))
TypeError: 'NoneType' object is not subscriptable

Attached is the test scrip and first 99 instances of spam dataset.
I used get_data_set_info.py to check whether spam_corpus_class_map_100.csv has any missing values. But it does not seem to have any:
(venv) (base) nuwan@nuwan-asus:~/Desktop/scikit-multiflow$ venv/bin/python get_data_set_info.py -i ~/Desktop/spam_corpus_class_map_100.csv
columns with missing values:  Index([], dtype='object')

Thanks for reporting this @nuwangunasekara
It seems that the culprit is an underflow/overflow in the calculation of probability calculation for naive Bayes:
https://github.com/scikit-multiflow/scikit-multiflow/blob/495659aa235a7b6464c80d5b83528129829418a9/src/skmultiflow/bayes/utils.py#L36-L37
At some point, the calculation returns a NaN which ends in the votes and eventually triggers an error. This is likely related to the high dimensionality of the dataset (+39.9K attributes).
Here is a suggestion to protect the calculation:
                    tmp = votes[class_index] * obs.probability_of_attribute_value_given_class(
                        X[att_idx], class_index)
                    votes[class_index] = tmp if not np.isnan(tmp) else 0

Comments @smastelini

Thanks for reporting the problem @nuwangunasekara.
The workaround looks good to me, @jacobmontiel. What about using math.isnan rather than the numpy function? We might get some slight performance improvements.

What about using math.isnan rather than the numpy function?

Agree, the calculations in probability_of_attribute_value_given_class are performed using the math package anyway.

Closing since it was adressed in #258.


LG Editor: Pre-Built functions should be shown alphabetically

The pre-built functions list shown when you choose the functions helper on the LG editor shows a long list of functions.  Currently they don't appear to be in any sort of order, making them potentially hard to locate.  We should re-order the main and sub menus to be displayed alphabetically.
Note, if we take this then we should also update the functions list shown as a dropdown when editing conditions.

The list of functions was not created for this feature, it exists as a separate package and there are some other consumers of this package. The order in which the functions appear in that list is provided by that package (@bfc/built-in-functions) and I'm not sure if we have to sort them alphabetically.

@hatpick as discussed can we find out if there is a specific reason they are in the order they exist in today.  If not then I believe we should update the package to list them alphabetically.

@garypretty I did and it turns out the order is somewhat random, so I sorted them alphabetically.


Instance example magically inherits transform information of a random entity if any number of new pbr bundles is spawned

Bevy version
0.14.2
[Optional] Relevant system information
Windows 11
[Nvidia RTX A2000 8gb laptop GPU, vendor: 4318, device: 9658, device_type: DiscreteGpu, driver: "Nvidia", driver_info: "536.67", backend: Vulkan]
What you did
I ran the rendering example https://bevyengine.org/examples-webgpu/shaders/shader-instancing/ and added a new spherical pbr bundle (full code listing later)
commands.spawn(PbrBundle {
    mesh: meshes.add(Sphere::new(0.2727).mesh().uv(10, 10)),
    material: materials.add(Color::linear_rgb(1.0, 1.0, 1.0)),
    transform: Transform::from_translation(
        Vec3::new(-5.0, 0.0, 0.0),
    ),
    ..default()
});

What went wrong
What I expected: the default centered instanced example to display, with out moving.
What actually happened: The instancing example somehow inherited the transform information of that new bundle, and adding it before or after the instanced example bundle doesn't change the result.
Additional information
Where I expected the instance example to render:

Where it ended up rendering (centered on sphere):

Source code:
src/main.rs:

//! A shader that renders a mesh multiple times in one draw call.

use bevy::{
    core_pipeline::core_3d::Transparent3d,
    ecs::{
        query::QueryItem,
        system::{lifetimeless::*, SystemParamItem},
    },
    pbr::{
        MeshPipeline, MeshPipelineKey, RenderMeshInstances, SetMeshBindGroup, SetMeshViewBindGroup,
    },
    prelude::*,
    render::{
        extract_component::{ExtractComponent, ExtractComponentPlugin},
        mesh::{GpuBufferInfo, GpuMesh, MeshVertexBufferLayoutRef},
        render_asset::RenderAssets,
        render_phase::{
            AddRenderCommand, DrawFunctions, PhaseItem, PhaseItemExtraIndex, RenderCommand,
            RenderCommandResult, SetItemPipeline, TrackedRenderPass, ViewSortedRenderPhases,
        },
        render_resource::*,
        renderer::RenderDevice,
        view::{ExtractedView, NoFrustumCulling},
        Render, RenderApp, RenderSet,
    },
};
use bytemuck::{Pod, Zeroable};

fn main() {
    App::new()
        .add_plugins((DefaultPlugins, CustomMaterialPlugin))
        .add_systems(Startup, setup)
        .run();
}

fn setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>,
         mut materials: ResMut<Assets<StandardMaterial>>) {
    commands.spawn((
        meshes.add(Cuboid::new(0.5, 0.5, 0.5)),
        SpatialBundle::INHERITED_IDENTITY,
        InstanceMaterialData(
            (1..=10)
                .flat_map(|x| (1..=10).map(move |y| (x as f32 / 10.0, y as f32 / 10.0)))
                .map(|(x, y)| InstanceData {
                    position: Vec3::new(x * 10.0 - 5.0, y * 10.0 - 5.0, 0.0),
                    scale: 1.0,
                    color: LinearRgba::from(Color::hsla(x * 360., y, 0.5, 1.0)).to_f32_array(),
                })
                .collect(),
        ),
        // NOTE: Frustum culling is done based on the Aabb of the Mesh and the GlobalTransform.
        // As the cube is at the origin, if its Aabb moves outside the view frustum, all the
        // instanced cubes will be culled.
        // The InstanceMaterialData contains the 'GlobalTransform' information for this custom
        // instancing, and that is not taken into account with the built-in frustum culling.
        // We must disable the built-in frustum culling by adding the `NoFrustumCulling` marker
        // component to avoid incorrect culling.
        NoFrustumCulling,
    ));

    // camera
    commands.spawn(Camera3dBundle {
        transform: Transform::from_xyz(0.0, 0.0, 15.0).looking_at(Vec3::ZERO, Vec3::Y),
        ..default()
    });

    commands.spawn(PbrBundle {
        mesh: meshes.add(Sphere::new(0.2727).mesh().uv(10, 10)),
        material: materials.add(Color::linear_rgb(1.0, 1.0, 1.0)),
        transform: Transform::from_translation(
            Vec3::new(-5.0, 0.0, 0.0),
        ),
        ..default()
    });
}

#[derive(Component, Deref)]
struct InstanceMaterialData(Vec<InstanceData>);

impl ExtractComponent for InstanceMaterialData {
    type QueryData = &'static InstanceMaterialData;
    type QueryFilter = ();
    type Out = Self;

    fn extract_component(item: QueryItem<'_, Self::QueryData>) -> Option<Self> {
        Some(InstanceMaterialData(item.0.clone()))
    }
}

struct CustomMaterialPlugin;

impl Plugin for CustomMaterialPlugin {
    fn build(&self, app: &mut App) {
        app.add_plugins(ExtractComponentPlugin::<InstanceMaterialData>::default());
        app.sub_app_mut(RenderApp)
            .add_render_command::<Transparent3d, DrawCustom>()
            .init_resource::<SpecializedMeshPipelines<CustomPipeline>>()
            .add_systems(
                Render,
                (
                    queue_custom.in_set(RenderSet::QueueMeshes),
                    prepare_instance_buffers.in_set(RenderSet::PrepareResources),
                ),
            );
    }

    fn finish(&self, app: &mut App) {
        app.sub_app_mut(RenderApp).init_resource::<CustomPipeline>();
    }
}

#[derive(Clone, Copy, Pod, Zeroable)]
#[repr(C)]
struct InstanceData {
    position: Vec3,
    scale: f32,
    color: [f32; 4],
}

#[allow(clippy::too_many_arguments)]
fn queue_custom(
    transparent_3d_draw_functions: Res<DrawFunctions<Transparent3d>>,
    custom_pipeline: Res<CustomPipeline>,
    msaa: Res<Msaa>,
    mut pipelines: ResMut<SpecializedMeshPipelines<CustomPipeline>>,
    pipeline_cache: Res<PipelineCache>,
    meshes: Res<RenderAssets<GpuMesh>>,
    render_mesh_instances: Res<RenderMeshInstances>,
    material_meshes: Query<Entity, With<InstanceMaterialData>>,
    mut transparent_render_phases: ResMut<ViewSortedRenderPhases<Transparent3d>>,
    mut views: Query<(Entity, &ExtractedView)>,
) {
    let draw_custom = transparent_3d_draw_functions.read().id::<DrawCustom>();

    let msaa_key = MeshPipelineKey::from_msaa_samples(msaa.samples());

    for (view_entity, view) in &mut views {
        let Some(transparent_phase) = transparent_render_phases.get_mut(&view_entity) else {
            continue;
        };

        let view_key = msaa_key | MeshPipelineKey::from_hdr(view.hdr);
        let rangefinder = view.rangefinder3d();
        for entity in &material_meshes {
            let Some(mesh_instance) = render_mesh_instances.render_mesh_queue_data(entity) else {
                continue;
            };
            let Some(mesh) = meshes.get(mesh_instance.mesh_asset_id) else {
                continue;
            };
            let key =
                view_key | MeshPipelineKey::from_primitive_topology(mesh.primitive_topology());
            let pipeline = pipelines
                .specialize(&pipeline_cache, &custom_pipeline, key, &mesh.layout)
                .unwrap();
            transparent_phase.add(Transparent3d {
                entity,
                pipeline,
                draw_function: draw_custom,
                distance: rangefinder.distance_translation(&mesh_instance.translation),
                batch_range: 0..1,
                extra_index: PhaseItemExtraIndex::NONE,
            });
        }
    }
}

#[derive(Component)]
struct InstanceBuffer {
    buffer: Buffer,
    length: usize,
}

fn prepare_instance_buffers(
    mut commands: Commands,
    query: Query<(Entity, &InstanceMaterialData)>,
    render_device: Res<RenderDevice>,
) {
    for (entity, instance_data) in &query {
        let buffer = render_device.create_buffer_with_data(&BufferInitDescriptor {
            label: Some("instance data buffer"),
            contents: bytemuck::cast_slice(instance_data.as_slice()),
            usage: BufferUsages::VERTEX | BufferUsages::COPY_DST,
        });
        commands.entity(entity).insert(InstanceBuffer {
            buffer,
            length: instance_data.len(),
        });
    }
}

#[derive(Resource)]
struct CustomPipeline {
    shader: Handle<Shader>,
    mesh_pipeline: MeshPipeline,
}

impl FromWorld for CustomPipeline {
    fn from_world(world: &mut World) -> Self {
        let mesh_pipeline = world.resource::<MeshPipeline>();

        CustomPipeline {
            shader: world.load_asset("shaders/instancing.wgsl"),
            mesh_pipeline: mesh_pipeline.clone(),
        }
    }
}

impl SpecializedMeshPipeline for CustomPipeline {
    type Key = MeshPipelineKey;

    fn specialize(
        &self,
        key: Self::Key,
        layout: &MeshVertexBufferLayoutRef,
    ) -> Result<RenderPipelineDescriptor, SpecializedMeshPipelineError> {
        let mut descriptor = self.mesh_pipeline.specialize(key, layout)?;

        descriptor.vertex.shader = self.shader.clone();
        descriptor.vertex.buffers.push(VertexBufferLayout {
            array_stride: std::mem::size_of::<InstanceData>() as u64,
            step_mode: VertexStepMode::Instance,
            attributes: vec![
                VertexAttribute {
                    format: VertexFormat::Float32x4,
                    offset: 0,
                    shader_location: 3, // shader locations 0-2 are taken up by Position, Normal and UV attributes
                },
                VertexAttribute {
                    format: VertexFormat::Float32x4,
                    offset: VertexFormat::Float32x4.size(),
                    shader_location: 4,
                },
            ],
        });
        descriptor.fragment.as_mut().unwrap().shader = self.shader.clone();
        Ok(descriptor)
    }
}

type DrawCustom = (
    SetItemPipeline,
    SetMeshViewBindGroup<0>,
    SetMeshBindGroup<1>,
    DrawMeshInstanced,
);

struct DrawMeshInstanced;

impl<P: PhaseItem> RenderCommand<P> for DrawMeshInstanced {
    type Param = (SRes<RenderAssets<GpuMesh>>, SRes<RenderMeshInstances>);
    type ViewQuery = ();
    type ItemQuery = Read<InstanceBuffer>;

    #[inline]
    fn render<'w>(
        item: &P,
        _view: (),
        instance_buffer: Option<&'w InstanceBuffer>,
        (meshes, render_mesh_instances): SystemParamItem<'w, '_, Self::Param>,
        pass: &mut TrackedRenderPass<'w>,
    ) -> RenderCommandResult {
        let Some(mesh_instance) = render_mesh_instances.render_mesh_queue_data(item.entity())
        else {
            return RenderCommandResult::Failure;
        };
        let Some(gpu_mesh) = meshes.into_inner().get(mesh_instance.mesh_asset_id) else {
            return RenderCommandResult::Failure;
        };
        let Some(instance_buffer) = instance_buffer else {
            return RenderCommandResult::Failure;
        };

        pass.set_vertex_buffer(0, gpu_mesh.vertex_buffer.slice(..));
        pass.set_vertex_buffer(1, instance_buffer.buffer.slice(..));

        match &gpu_mesh.buffer_info {
            GpuBufferInfo::Indexed {
                buffer,
                index_format,
                count,
            } => {
                pass.set_index_buffer(buffer.slice(..), 0, *index_format);
                pass.draw_indexed(0..*count, 0, 0..instance_buffer.length as u32);
            }
            GpuBufferInfo::NonIndexed => {
                pass.draw(0..gpu_mesh.vertex_count, 0..instance_buffer.length as u32);
            }
        }
        RenderCommandResult::Success
    }
}

assets/shaders/instancing.wgsl:
#import bevy_pbr::mesh_functions::{get_world_from_local, mesh_position_local_to_clip}

struct Vertex {
    @location(0) position: vec3<f32>,
    @location(1) normal: vec3<f32>,
    @location(2) uv: vec2<f32>,

    @location(3) i_pos_scale: vec4<f32>,
    @location(4) i_color: vec4<f32>,
};

struct VertexOutput {
    @builtin(position) clip_position: vec4<f32>,
    @location(0) color: vec4<f32>,
};

@vertex
fn vertex(vertex: Vertex) -> VertexOutput {
    let position = vertex.position * vertex.i_pos_scale.w + vertex.i_pos_scale.xyz;
    var out: VertexOutput;
    // NOTE: Passing 0 as the instance_index to get_world_from_local() is a hack
    // for this example as the instance_index builtin would map to the wrong
    // index in the Mesh array. This index could be passed in via another
    // uniform instead but it's unnecessary for the example.
    out.clip_position = mesh_position_local_to_clip(
        get_world_from_local(0u),
        vec4<f32>(position, 1.0)
    );
    out.color = vertex.i_color;
    return out;
}

@fragment
fn fragment(in: VertexOutput) -> @location(0) vec4<f32> {
    return in.color;
}

Cargo.toml:
[package]
name = "bevy_instance_test"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = "0.14.2"
bytemuck ="*"

I've tested this with manually setting transforms in the spatial bundle for the example, and it still doesn't work properly.    The only thing I can think of is maybe the spatial bundle transform doesn't get sent to the Render phase, but the PBR bundle transform does, so maybe the default information just appears like it works when nothing is added, but when a PBR bundle is added, the transform uniform is overwritten for the spatial bundle instance as well when rendering.  Waaaay too complicated for me to figure out though.

Thanks for the excellent report! Are you able to reproduce this on the latest commit?

Awesome thank you!

The comment above the line get_world_from_local(0u) explained the reason: 0u might not be the correct index of the instancing mesh when there are other meshes.
Passing in the correct index via another uniform will fix it.
Here's a good example: https://github.com/EmiOnGit/warbler_grass
Key step 1: find the correct index and create the uniform buffer.
https://github.com/EmiOnGit/warbler_grass/blob/bdb4228d715bed7868f8183a5a14d0abd0ba7ebc/src/render/prepare.rs#L41-L46
(replace phases: Query<&RenderPhase<...>> with phases: Res<ViewSortedRenderPhases<Transparent3d>> for bevy 0.14)
Key step 2: set bind group for the uniform.
https://github.com/EmiOnGit/warbler_grass/blob/bdb4228d715bed7868f8183a5a14d0abd0ba7ebc/src/render/draw.rs#L135-L158
Key step 3: use the index in shader
https://github.com/EmiOnGit/warbler_grass/blob/bdb4228d715bed7868f8183a5a14d0abd0ba7ebc/src/render/assets/grass_shader.wgsl#L148-L149

From what I can tell because of the RenderPhase changes some of the fields are crate private so you aren't able to use the solution @yyrust suggested.

From what I can tell because of the RenderPhase changes some of the fields are crate private so you aren't able to use the solution @yyrust suggested.

Is this possible in the latest or 14.x?

It is possible with sorted render phases, so the method above would work. I'm still trying to find a way with binned render phases.


changed bonsai version to latest 5.x (5.4.3)

bonsai:sandbox-6 5.1 is not available now on Heroku.
An error was encountered when contacting the add-on partner to create bonsai:sandbox-6: The requested version [5.1] is not available in this region on your plan. Available options are: 1.7.5, 2.4.0, 5.3.2, 5.4.3, 5.6.8, 6.0.1

@nekoruri Thank you for your contribution.
This really helped us out because we don't used Heroku routinely.

:+1:


updated release notes

Explicitly mentioned support for Mendix 10

@GautamJ700 - Can you give me access to edit your pull request as there are a couple of formatting changes I'd like to make before merging. See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork for more information.

Thanks.

HI @MarkvanMents  I cannot see the options "Allow edits from maintainers". I believe the repository owner need to enable this feature , and the owner is on holiday and will be back next week.

@GautamJ700
Thanks for getting back to me.
I think you should be able to set this option for each individual Pull Request - to the right of this comment at the bottom of the list of Reviewers, Assignees, Labels, etc. I don't think it needs to be set for the entire fork. But perhaps there is some setting on the fork which is overriding this.
Can you have one more look. If you can't change it today I'll merge your changes tomorrow and then do the formatting afterwards.


trying to provide a list of functions and receive an error

Describe the bug
Attempt of sending request to completion endpoint return an error
" status code: 400, message: Invalid schema for function 'get_current_weather': None is not of type 'object' "
To Reproduce
Steps to reproduce the behavior, including any relevant code snippets.
functions := []openai.FunctionDefinition{
	{
		Name: "get_current_weather",
		Parameters: jsonschema.Definition{
			Type: jsonschema.Object,
			Properties: map[string]jsonschema.Definition{
				"location": {
					Type:        jsonschema.String,
					Description: "The city and state, e.g. San Francisco, CA",
				},
				"unit": {
					Type: jsonschema.String,
					Enum: []string{"celcius", "fahrenheit"},
				},
			},
			Required: []string{"location"},
		},
	},
}

client := openai.NewClient(GPT_TOKEN)

response, err := client.CreateChatCompletion(
	context.Background(),
	openai.ChatCompletionRequest{
		Model:     openai.GPT3Dot5Turbo0613,
		Messages:  chat_context.Messages,
		Functions: functions,
	},
)

Expected behavior
API to consume functions list
Environment (please complete the following information):

go-openai v1.14.1
go version go1.20.7 linux/amd64
OpenAI API version: v1
OS: Ubuntu 20.04

@evdanil This problem fixed https://github.com/sashabaranov/go-openai/pull/434.
Just to be sure, I tested with v1.14.1 using your code and it worked fine.

Hello,
yes it is fixed indeed, for some reason, json.go I had in my code, was not up to date. Thank you for quick response.


Add clientresponse.url attribute into docs: it is necessary for inspe…

…cting redirection history

Thanks


Please upgrade the Monolog library to version 2.x

The SDK still loads Monolog 1.x, which is an old version of the library, and it can't be used in any environment which requires the newer version. I would recommend to change file composer.json to reference Monolog 2.x and adjust your code to use the new version.
The changes should be minimal, as Monolog 2.x is backward compatible and includes better support for PHP 7. You can find a list of the most important changes here: https://github.com/Seldaek/monolog/blob/master/UPGRADE.md. Such update would allow to use the Flutterwave SDK in modern PHP applications.

@daigo75 this issues has been resolved with latest update to the repo

Excellent, thanks 👍

@daigo75 kindly close the issue

Thanks for taking action so quickly. Just a note, if I may. Some customers reported that the latest version of Monolog 2.x requires PHP 7.2. Despite the fact that PHP 5.6 is now obsolete, quite a few servers run that version. Due to that, we modified our solutions to use the latest Monolog 1.x (currently 1.25.5), which works with both PHP 5.6 and 7.x.
I'm aware that this is a "step back", but it was necessary to maintain compatibility with the sites where an old version of PHP is still being used. I thought of letting you know, in case you come across some issues with Monolog 2.x and older PHP versions.


[Feature Request] Command container for center of titlebar

Add commands to the center of the titlebar

Done.


Change command prefix on fanshawe

Summary
Change the prefix that fanshawe uses for commands to something other than .
Background
Fanshawe sees any message that starts with . as a command and then tries to parse it. However, messages are often started with ..., which fanshawe will attempt to parse and then drop an error message in chat, which is annoying.
Details
Configuration change
Outcome
See Summary

Implemented in jwflory/infrastructure@bb4b8f3447950e5ba70bbaa2c39e56e69978259c. @ct-martin Thanks for opening a ticket on this.


Feature/fix android desktop target

fix: Turns out jmdns doesn't work on Android
This change turns off all the zeroconf on the Android target for the desktop app.

I thought jmdns just used sockets so it works on everything?

I thought jmdns just used sockets so it works on everything?

It crashes when you try to use it. I didn't spend much time debugging it to be honest since the Android usecase is just a dev tool and especially on Emulators it wont't be able to access other devices easily anyway


Update testcontainers-scala-pulsar to 0.40.5

Updates com.dimafeng:testcontainers-scala-pulsar from 0.40.1 to 0.40.5.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.dimafeng", artifactId = "testcontainers-scala-pulsar" } ]

labels: test-library-update, early-semver-minor, semver-spec-patch, commit-count:1

Superseded by #104.


CSV Example

I have taken a look at the csv.scala example file and attempted to use in 2.11 and 2.12 I have been getting a diverging implicit expansion for type CSVConverter[this.Repr] starting with method deriveClass in object CSVConverter.  I have also seen not enough arguments for method implicitly CSVConverter[List[Person]]...  Not sure exactly why this isn't working for me, or if something has changed since the last check in.  Does anyone have some tips on what I am doing wrong or if something has changed.  Cheers

Is this the exact example in examples/src/main/scala/shapeless/examples/csv.scala or have you modified it in some way? Have you extracted it to a standalone project? In which case, what does your build.sbt look like?

Not enough details to be actionable.


Api upgrade

Hey Kenny, dbox is awesome!  I was checking it out tonight but got an error when authorizing at first.  It turned out to be because Dropbox upgraded their API and so my oauth keys were too new.  I've attempted to upgrade it to use the new API but there are a few failing specs still...

Awesome, thanks Solts! I'll take a look at this tomorrow.

I took a look at the diff, and it looks mostly good. There are a couple of extensions I'd made to the Dropbox API, primarily adding streaming downloads (instead of sticking the whole download in a string and then saving to a file, which is the default), so I'll have to port those over before I merge this into mainline. Not sure when I'll have time to do it -- hopefully this week or next. Thanks for the patch :)

Okay, I've got Dbox all ported to the new Dropbox API, and made a boatload of other improvements as well, so pull from me or upgrade your gem (0.6.0 is the new release). Thanks for getting the API upgrade started.

word! Works like a charm :)


Tape Gradient

How to use Tape gradient in tensorflow/c/eager/gradients in C++ application?

Cento 7
tensorflow 2.6
Cuda 11.2

Hi!@domGitDev,We see that the issue template has not been filled, could you please do so as it helps us analyse the issue [tf version, steps followed before you ran into this error or stand alone code/colab gist to reproduce the issue faced].Thanks

Thanks, posted in the forum.


Add global placement to select all clusters

/assign @ldpliu @zhiweiyin318

need add placement rbac to foundation clusterrole. also need update the clusterrole in mce.

/approve
/lgtm

/hold

can be merged after add rbac in MCE operator


After override valueEdit, I can't input continuously

I suspect that after each input, handleOnchange caused valueEditor to rerender
const customEdit = (props) => {
return <input onChange={(e)=>props.handleOnChange(e.target.value)} value={props.value} />
}
const controlElements = {
valueEditor: customEdit
}

This is almost certainly related to this problem: https://react-querybuilder.js.org/docs/tips/common-mistakes#custom-component-as-closure

这几乎可以肯定与这个问题有关：https://react-querybuilder.js.org/docs/tips/common-mistakes#custom-component-as-closure

This solves the current problem.But in this case, my custom component cannot obtain the values passed by the parent component.

This solves the current problem. But in this case, my custom component cannot obtain the values passed by the parent component.

Can you be more specific? What values are not accessible? And as always, a working code sample demonstrating the issue is helpful.

这解决了当前的问题。但在这种情况下，我的自定义组件无法获取父组件传递的值。

你能说得更具体一点吗？哪些值不可访问？与往常一样，演示该问题的工作代码示例很有帮助。

For example, I want to pass options to the custom component to generate, which I can define internally，as follows. If I follow the above solution by defining the CustomiValueEditor outside of queryBuilder, I will not be able to obtain options
const queryBuilder = (options)=>{
       //other stuff.........
       const  CustomValueEditor= props => {
             return  <select options={options}/>
       }
       return {
            <QueryBuilder
             fields={fields}
              query={query}
              handleOnChange={q => setQuery(q)}
              controlElements={{
                  valueEditor: CustomValueEditor,
              }}
    />
       }
}

I'm not sure this is the best solution, but you might try the context prop. You can put anything you want in that prop and it will be passed down to every component.

My problem has been solved. Thank you for your answer


Fix empty navigation for non engine users in API keys page

#14915
Acceptance to be done by:

[x] Log as a non engine user
[x] Check that navigation bar shows properly
[x] Check that user dropdown works ok
[x] Check that search box works ok

Acceptance passed!! 👍


ci/docs: use simple runner

What does this PR do?
alow us to use higher Python versions transparently

Before submitting

Was this discussed/agreed via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
Did you make sure to update the documentation with your changes? (if necessary)
Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
Did you list all the breaking changes introduced by this pull request?
Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

Reviewer checklist

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

NOTE: some past docs build failed silently:

https://github.com/Lightning-AI/lightning/actions/runs/5510378761
https://github.com/Lightning-AI/lightning/actions/runs/5650063485


How use grub font generated by grub-mkfont inb your own theme?

I have issue to load the pf2 font I have created using grub-mkfont
I tried to follow your steps here to create it:
Creating custom fonts (.pf2) for GRUB] (https://github.com/VandalByte/grub-tweaks#-topics)
I run this command:
sudo grub-mkfont --output=./DejaVuSansMono28.pf2 --size=28 /usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf
on a font that is local already on Ubuntu 24.04 (To make it easy to reproduce and we might use same font).
But when loading it in theme.txt like this. I only see the color take effect, but the theme font is not loaded (I use grub2-theme-preview look it there I see on command line they are loaded.  However not in GUI)
+ boot_menu {
    ....
    item_font = "DejaVuSansMono20.pf2"
    item_color = "#919090"
    selected_item_font = "DejaVuSansMono30.pf2""
    selected_item_color = "#ffffff"
    ...
}

I saw that you loaded your font like this:
item_font = "Norwester Regular 28"
in https://github.com/VandalByte/dedsec-grub2-theme
but the files in the dedsec had format:
norwester_24.pf2
norwester_28.pf2
norwester_30.pf2

How do you know what name to use in item_font? How do you create it in the font?

I found that I need to add --verbose flag to see the name to use:
sudo grub-mkfont --output=./DejaVuSansMono28.pf2 --size=28 /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf --verbose
Font name: DejaVu Sans Mono Regular 28
Max width: 26
Max height: 34
Font ascent: 28
Font descent: 10
Number of glyph: 3452
the boldname I name I use in theme.txt after like: item_font = "DejaVu Sans Regular 28"
Maybe it can updated in your guide? or if you have even a better way of finding the name on already existing fonts.

I found the answer my self.
I need to add the --verbose flag
sudo grub-mkfont --output=./DejaVuSansMono30.pf2 --size=30 /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf --verbose
Font name: DejaVu Sans Regular 30
Max width: 48
Max height: 39
Font ascent: 33
Font descent: 12
Number of glyph: 6288
The bold font name in the output is the name that I needed to use in theme.txt for the fonts.
+ boot_menu {
    ....
    item_font = "DejaVu Sans Regular 30"

Maybe the guide could clarify this step?

@hugo-is-hugo
Yeah so the file name has nothing to do with how grub see's the font file, what I usually did was, just put all the fonts that I wanted to test and list all that loaded fonts in grub command line, didn't knew about the verbose tho
If possible, add it to this section and submit a pull request so that others facing the same issue can easily find it or I'll try to add it when I get some free time. Cheers!
https://github.com/VandalByte/grub-tweaks#-creating-custom-fonts-pf2-for-grub


zinmanhwa url change

Source information
Zinmanhwa 1.4.33
Source language
English
Source new URL
https://zinmanga.io
Other details
No response
Acknowledgements

[X] I have updated all installed extensions.
[X] I have opened WebView and checked that the source URL has not changed yet.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[ ] I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
[X] I will fill out all of the requested information in this form.

Zinmanga.com is still up, can you provide context on why it should be changed?

Zinmanga.com and zinmanhwa are two completely different sources, and
zinmanhwa is now zinmanhwa.io
A sábado, 3/02/2024, 19:07, Mike @.***> escreveu:

Zinmanga.com is still up, can you provide context on why it should be
changed?
—
Reply to this email directly, view it on GitHub
https://github.com/keiyoushi/extensions-source/issues/946#issuecomment-1925431329,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4S2Q7JTFEI6YI43K5AVUW3YR2DGHAVCNFSM6AAAAABCXRNPKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGQZTCMZSHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Zinmanga.io*
A sábado, 3/02/2024, 19:30, Alexis Vas Tusto @.***>
escreveu:

Zinmanga.com and zinmanhwa are two completely different sources, and
zinmanhwa is now zinmanhwa.io
A sábado, 3/02/2024, 19:07, Mike @.***> escreveu:

Zinmanga.com is still up, can you provide context on why it should be
changed?
—
Reply to this email directly, view it on GitHub
https://github.com/keiyoushi/extensions-source/issues/946#issuecomment-1925431329,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4S2Q7JTFEI6YI43K5AVUW3YR2DGHAVCNFSM6AAAAABCXRNPKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGQZTCMZSHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Zinmanga.com is still up, can you provide context on why it should be changed?

Zinmanga.com and zinmanhwa are two completely different sources, zinmanhwa URL redirects to zinmanga.io


Remove green border

Hi, Thanks for this library.
In my case,  green border appears after scanning the barcode.
Is there any way to remove this?

Attach screen shot

Hi @berrybana, I'm not quite sure what green border you mean. Would you be able to provide us with some code to reproduce the issue and your flutter doctor output?

Green border like screenshot below.
I think green border is focus highlight.
So I added this code to style.xml
false
then, border disappeared!!


✨ [Feature request]: Provide a link to the play from play idea page

Is your feature request related to a problem? Please describe.
Currently, when the user comes to the play ideas page looking for some ideas to practice, there is only the title and short description of some ideas listed there.
There are only two options they can do with any idea,

Create their own idea (which takes to the same how-to-create-play/ section in docs)
Start a discussion on the repo for that idea

Describe the solution you'd like.
From the user's point of view, when they come to the ideas page looking for some project ideas and wants to see what the project code/application looks like, he/she does not find it on that page.
My suggestion would be to :
Provide a link to the play of that idea, it could be the code link/demo link which will help the users to get some idea.
Describe alternatives you've considered.
An alternative suggestion would be to create another button View Play just like Create or Start discussion, on click of which the user is taken to the plays page of that idea.
Screenshot / Screenshare

Additional context
No response
Record

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue

Code of Conduct

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

@HarshithaSolai I think the whole idea of the Play Idea page is to give the contributor an idea of what type of plays can be created, why would they need a link to the play's code or url, all the plays are directly visibles on plays page?


evhtp_send_reply_chunk does not properly chunk

I initially tried to implement chunked encoding using libevent but turned to this library when that didn't work out. Unfortunately, the same issue seems to persist here. I've been trying to send large amounts of data over a single HTTP request, but the amount is too large for one evhtp_send_reply. So, I turned to chunking, which seems like it should have been the perfect solution--it ostensibly sends the content in pieces so that a single buffer won't become overfilled (which causes the crashing on my machine). And yet, it doesn't work at all.
I stepped through the code using GDB (libevhtp's own test_chunking test) and found that evhtp_send_reply_chunk merely pushes the overflowing buffer back a step. The content is progressively added to req->conn->bev->output (where req is the evhtp_request_t) with each chunk call. This buffer grows until evhtp_send_reply_chunk_end flushes its content into the network. Nothing is sent over the network until all the chunks have been loaded into this intermediary buffer, a confounding discovery that seems to eliminate all utility of this encoding method. (The bufferevent_flush call at the end of chunk seems to do nothing at all--digging down, it ultimately calls libevent's be_socket_flush function, which just returns 0 because of course.) I furthermore did a practical test in which I inserted sleep calls in between the chunk calls and, indeed, the server simply hanged until all the sleep and chunk calls had gone through. If chunking were working properly, pieces of the request should have been sent incrementally.
Am I missing something? It just doesn't seem like chunking is working at all like it's supposed to. Any help would be greatly appreciated.

Hi,
bufferevent_flush does nothing at the moment.
What version of libevent and libevhtp are you using to test?

Hi Nathan,
I ended up figuring out the solution with the help of someone on the libevent git page. I was missing the event loop/event add process, which I didn't realize was necessary for chunked encoding. So my issue is no longer relevant.

Awesome! Can you please paste what you had to do to fix this specific issue? I can annotate it.
Thanks!


Rename "Two-factor Authentication" to "Security" in the admin menu

Part of https://github.com/opencollective/opencollective/issues/5289
We think it should be renamed to "Security", and "Two-factor Authentication" should be a subcategory there. The reasons evoked were:

We'll certainly want to put more stuff there in the future (#5294, new policies, etc)
It matches what some other large actors (e.g. Github) are doing

Related: I'm going to move this new "Security" tab from "Fiscal host settings" to "Organization settings". Both will share the Enforce 2FA for all admins checkbox, and fiscal hosts will also see the Enable 2FA for payouts part.

Implemented in https://github.com/opencollective/opencollective-frontend/pull/8573


[video_player]- support HTTP headers #16466

Description
Sometimes we need HTTP headers to authentication in real development world.
This PR allows developers adding header into video_player if constructing VideoPlayerController
from network.
Related Issues
see  flutter/flutter#16466
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the [Flutter Style Guide].
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the [CLA].
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

Might want to fix your tab width so that your PR doesn't reformat the indentation of every line of code

@MichaelMarner reformatted now.

Hey @JarvanMo - look I'm not on the Flutter team so feel free to ignore this.
The big issue with this PR is there have been so many unnecessary changes to files that are not part of the actual feature you've implemented. Most of them look like your code editor automatically reformatting things.
For example, https://github.com/flutter/plugins/pull/2074/files#diff-e534c460662d39cc715c4eed77a31c3fL34
Here your code editor has repositioned the * character in the variable declarations:
@property(readonly, nonatomic) AVPlayer* player; becomes
@property(readonly, nonatomic) AVPlayer *player;
And so on.
Likewise packages/video_player/example/ios/Runner.xcodeproj/project.pbxproj has been modified for no reason that I can see.
I think if you update this PR so that it only includes actual functionality changes for the feature you have implemented, it will be much easier to judge the scope of the change and more likely to be merged.
(Again, I'm not on the Flutter team, this is just my view)

@MichaelMarner agree. Now this PR will be under review, if there is any problem, I'll re-PR. Thanks bro.

Did this ever get fixed and merged?

Hello,
any idea WHEN this will be merged?

Are there any news about merging it to the master need this functionality for my engineer thesis ASAP ?

It would be nice, if this feature is added. Even better, when the headers won't get transformed to lower case automatically. :)

What is the problem with this PR?
The feature is much needed.

The problem is that this uses a hidden iOS api. It should be using the iOS functionality to create a playlist and intercept the http request and pass the token. As a result this could get your apps banned from the store AND this won't ever work if you want to have captions as an example on the video.
So this PR likely has to be redone to support it properly on iOS which means a complete rewrite of the iOS code to be able to start handling captions etc. as part of this. (And of course add all of the rest of this to the web platform etc.)

Any update?


Use kubectl create instead of apply

When running YAML E2E tests, use kubectl create instead of apply,
so that example can use generateName, which is a best practice
for run objects (TaskRun/PipelineRun).
Fixes #1397

Changes

Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[x] Commit messages follow commit message best practices

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
Release Notes
Describe any user facing changes here, or delete this block.

Examples of user facing changes:
- API changes
- Bug fixes
- Any changes in behavior

/hold cancel

/test pull-tekton-pipeline-integration-tests

/lgtm


Update http4s-circe, http4s-dsl, ... to 0.23.19

About this PR
📦 Updates

org.http4s:http4s-circe
org.http4s:http4s-dsl
org.http4s:http4s-server

from 0.23.14 to 0.23.19
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.http4s" }
}]

labels: library-update, early-semver-minor, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #171.


Add GCDTimer by @hemantasapkota to GCD section

Project URL

https://github.com/hemantasapkota/GCDTimer
Description

Add GCDTimer by @hemantasapkota to GCD section
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 7 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Error

  :no_entry_sign:
  Found 1 link issue

Link issue by awesome_bot

Line
Status
Link

852
Error
https://www.pushwoosh.com  Connection timed out - connect(2) for "www.pushwoosh.com" port 443

  Generated by :no_entry_sign: danger


Unable to parse S3 Key with prefix under Thumbor mode

example:

URL that could be parsed correctly: https://xxxxx.cloudfront.net/fit-in/400x400/filters:watermark(test,random.jpg,0,0)/lena.jpg

URL that couldn't be parsed:   https://xxxxx.cloudfront.net/fit-in/400x400/filters:watermark(test,test/random.jpg,0,0)/lena.jpg    be

That looks like is due to
        if (requestType === "Thumbor" || requestType === "Custom") {
            return decodeURIComponent(event["path"].replace(/\d+x\d+\/|filters[:-][^/;]+|\/fit-in\/+|^\/+/g,'').replace(/^\/+/,''));
        }

the regex will lead the key to be 'random.jpg,0,0)/lena.jpg  '
in parseImageKey  in image-request.js

Thanks @beomseoklee , any update?

@salander0411 I think this would work. Not fully tested though.
\d+x\d+\/|filters:.+(.?\))|\/fit-in\/+|^\/+

So maybe the source code you provided can be replaced to
        if (requestType === "Thumbor" || requestType === "Custom") {
            return decodeURIComponent(event["path"].replace(/\d+x\d+\/|filters:.+(.?\))|\/fit-in\/+|^\/+/g,'').replace(/^\/+/,''));
        }

The key could be parsed correctly but the overlay image key cannot be parsed now.
https://xxxxx.cloudfront.net/fit-in/400x400/filters:watermark(test,random.jpg,0,0)/lena.jpg
orginal image could be parsed to be:  https://xxxxx.cloudfront.net/lena.jpg
but the overlay image key now parsed to be : filters:watermark(oss-to-s3-test,

Looking forward for  your update, thanks!

Thanks for waiting @salander0411
We've fixed this issue in v5.1.0.


Building errors when I try to run the apps by cmake.

Show as the image, when I run the apps(helloworld), the cargo building system shows the error messages about missing rust -objcopy libs. How can I solve this problem?

Please execute cargo install cargo-binutils to install it.

It woks. Thank you!

By the way, I clone the repository to Gitee. Click here I hope it can give some help to build our Version Control System, like Git platform.


PP-5254 match CardDetails's Json format to that of connector

WHAT

match the Json format of CardDetails to connector

wrong Jira ticket number 🤕


Update to Node 20

GitHub has deprecated the usage of Node 16:
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: mathieu-bour/setup-sentry-cli@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Please would you upgrade.
Thanks for providing this action.

On it!

Thanks, it works great!


[RESOLVED] High ICMP ping response time

Problem started at 08:45:29 on 2023.06.01
Problem name: High ICMP ping response time
Host: HP_iLO
Severity: Warning
Operational data: Value: 718ms
Original problem ID: 23028
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23268&eventid=23028

Problem has been resolved in 6m 0s at 08:51:29 on 2023.06.01
Problem name: High ICMP ping response time
Host: HP_iLO
Severity: Warning
Original problem ID: 23028


changing string concatenation with StringBuilder.Append in Helper.ReplaceAll

With the previous implementation, large queries took a very long time to compile.

I am curious to know if you have some benchmarks for this?

I am curious to know if you have some benchmarks for this?

No, I haven't. Only log observations)


jps: Watch pasti-mega4d.com

jps requests the watch of the watch_keyword pasti-mega4d\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

pasti-mega4d\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


net/http: data race in net/http.(*expectContinueReader)

What version of Go are you using (go version)?

$ go version
go version go1.15.6 linux/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/xyj/.cache/go-build"
GOENV="/home/xyj/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/xyj/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/xyj/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build120895179=/tmp/go-build -gno-record-gcc-switches"

What did you do?

There are two background loops for each connection. readLoop reads responses from server and writeLoop writes reqeusts to server.
In a ReverseProxy, request.Body that writeLoop used may be a net/http.(*expectContinueReader). It means we must send "100 Continue" to client if we want to read data from the body. It may lead to concurrent writes to a same connection from readLoop and writeLoop.
What's worse, the connection is probably closed without waiting writeLoop to exit. After connection is closed, (*conn).bufw will be set to nil. See https://github.com/golang/go/blob/go1.15.6/src/net/http/server.go#L1690 . If writeLoop continues writing data to the connection, a panic will occur. Something like "Invalid memory address or nil pointer dereference".
This bug is mentioned in #29321.  But that issue hasn't been updated for a long time, probably because of the label WaitingForInfo.
Reproduce code is https://play.golang.org/p/6i3dUmUgOjK. You need to run with race detector.
What did you expect to see?
There is no data race or panic.
What did you see instead?
Data race occurred. In very rare case, this caused panic.
Data Race Output
==================
WARNING: DATA RACE
Read at 0x00c00022c068 by goroutine 23:
  bufio.(*Writer).Available()
      /usr/lib/go/src/bufio/bufio.go:624 +0xce
  bufio.(*Writer).WriteString()
      /usr/lib/go/src/bufio/bufio.go:705 +0x2f
  net/http.writeStatusLine()
      /usr/lib/go/src/net/http/server.go:1506 +0x7a
  net/http.(*chunkWriter).writeHeader()
      /usr/lib/go/src/net/http/server.go:1476 +0xd77
  net/http.(*chunkWriter).close()
      /usr/lib/go/src/net/http/server.go:402 +0x188
  net/http.(*response).finishRequest()
      /usr/lib/go/src/net/http/server.go:1622 +0xc9
  net/http.(*conn).serve()
      /usr/lib/go/src/net/http/server.go:1930 +0x8a4
Previous write at 0x00c00022c068 by goroutine 39:
  bufio.(*Writer).Flush()
      /usr/lib/go/src/bufio/bufio.go:619 +0x3c4
  net/http.(*expectContinueReader).Read()
      /usr/lib/go/src/net/http/server.go:905 +0x2c7
  io.(*LimitedReader).Read()
      /usr/lib/go/src/io/io.go:455 +0xc7
  io.copyBuffer()
      /usr/lib/go/src/io/io.go:409 +0x14b
  io.Copy()
      /usr/lib/go/src/io/io.go:368 +0xb0
  net.genericReadFrom()
      /usr/lib/go/src/net/net.go:643 +0x32
  net.(*TCPConn).readFrom()
      /usr/lib/go/src/net/tcpsock_posix.go:54 +0x17c
  net.(*TCPConn).ReadFrom()
      /usr/lib/go/src/net/tcpsock.go:103 +0x79
  io.copyBuffer()
      /usr/lib/go/src/io/io.go:395 +0x3fe
  io.Copy()
      /usr/lib/go/src/io/io.go:368 +0xb5
  net/http.persistConnWriter.ReadFrom()
      /usr/lib/go/src/net/http/transport.go:1733 +0x32
  bufio.(*Writer).ReadFrom()
      /usr/lib/go/src/bufio/bufio.go:730 +0x554
  io.copyBuffer()
      /usr/lib/go/src/io/io.go:395 +0x3fe
  io.Copy()
      /usr/lib/go/src/io/io.go:368 +0x78
  net/http.(*transferWriter).doBodyCopy()
      /usr/lib/go/src/net/http/transfer.go:400 +0x2f
  net/http.(*transferWriter).writeBody()
      /usr/lib/go/src/net/http/transfer.go:359 +0xc31
  net/http.(*Request).write()
      /usr/lib/go/src/net/http/request.go:682 +0x887
  net/http.(*persistConn).writeLoop()
      /usr/lib/go/src/net/http/transport.go:2343 +0x349
Goroutine 23 (running) created at:
  net/http.(*Server).Serve()
      /usr/lib/go/src/net/http/server.go:2969 +0x5d3
  net/http.Serve()
      /usr/lib/go/src/net/http/server.go:2498 +0xe4
Goroutine 39 (running) created at:
  net/http.(*Transport).dialConn()
      /usr/lib/go/src/net/http/transport.go:1709 +0xc30
  net/http.(*Transport).dialConnFor()
      /usr/lib/go/src/net/http/transport.go:1421 +0x151
==================
==================
WARNING: DATA RACE
Write at 0x00c000237000 by goroutine 23:
  runtime.slicestringcopy()
      /usr/lib/go/src/runtime/slice.go:281 +0x0
  bufio.(*Writer).WriteString()
      /usr/lib/go/src/bufio/bufio.go:715 +0x289
  net/http.writeStatusLine()
      /usr/lib/go/src/net/http/server.go:1506 +0x7a
  net/http.(*chunkWriter).writeHeader()
      /usr/lib/go/src/net/http/server.go:1476 +0xd77
  net/http.(*chunkWriter).close()
      /usr/lib/go/src/net/http/server.go:402 +0x188
  net/http.(*response).finishRequest()
      /usr/lib/go/src/net/http/server.go:1622 +0xc9
  net/http.(*conn).serve()
      /usr/lib/go/src/net/http/server.go:1930 +0x8a4
Previous write at 0x00c000237000 by goroutine 39:
  runtime.slicestringcopy()
      /usr/lib/go/src/runtime/slice.go:281 +0x0
  bufio.(*Writer).WriteString()
      /usr/lib/go/src/bufio/bufio.go:715 +0x289
  net/http.(*expectContinueReader).Read()
      /usr/lib/go/src/net/http/server.go:904 +0x28b
  io.(*LimitedReader).Read()
      /usr/lib/go/src/io/io.go:455 +0xc7
  io.copyBuffer()
      /usr/lib/go/src/io/io.go:409 +0x14b
  io.Copy()
      /usr/lib/go/src/io/io.go:368 +0xb0
  net.genericReadFrom()
      /usr/lib/go/src/net/net.go:643 +0x32
  net.(*TCPConn).readFrom()
      /usr/lib/go/src/net/tcpsock_posix.go:54 +0x17c
  net.(*TCPConn).ReadFrom()
      /usr/lib/go/src/net/tcpsock.go:103 +0x79
  io.copyBuffer()
      /usr/lib/go/src/io/io.go:395 +0x3fe
  io.Copy()
      /usr/lib/go/src/io/io.go:368 +0xb5
  net/http.persistConnWriter.ReadFrom()
      /usr/lib/go/src/net/http/transport.go:1733 +0x32
  bufio.(*Writer).ReadFrom()
      /usr/lib/go/src/bufio/bufio.go:730 +0x554
  io.copyBuffer()
      /usr/lib/go/src/io/io.go:395 +0x3fe
  io.Copy()
      /usr/lib/go/src/io/io.go:368 +0x78
  net/http.(*transferWriter).doBodyCopy()
      /usr/lib/go/src/net/http/transfer.go:400 +0x2f
  net/http.(*transferWriter).writeBody()
      /usr/lib/go/src/net/http/transfer.go:359 +0xc31
  net/http.(*Request).write()
      /usr/lib/go/src/net/http/request.go:682 +0x887
  net/http.(*persistConn).writeLoop()
      /usr/lib/go/src/net/http/transport.go:2343 +0x349
Goroutine 23 (running) created at:
  net/http.(*Server).Serve()
      /usr/lib/go/src/net/http/server.go:2969 +0x5d3
  net/http.Serve()
      /usr/lib/go/src/net/http/server.go:2498 +0xe4
Goroutine 39 (running) created at:
  net/http.(*Transport).dialConn()
      /usr/lib/go/src/net/http/transport.go:1709 +0xc30
  net/http.(*Transport).dialConnFor()
      /usr/lib/go/src/net/http/transport.go:1421 +0x151
==================

Duplicate of #34902

Duplicate of #34902

Well, hrm. The same data race was reported on #34902 (in https://github.com/golang/go/issues/34902#issuecomment-643694838), but your report here is for go1.15.6 which should have included the fix.

Well, hrm. The same data race was reported on #34902 (in https://github.com/golang/go/issues/34902#issuecomment-643694838), but your report here is for go1.15.6 which should have included the fix.

CC @katiehockman @FiloSottile @rolandshoemaker (via CL 242598, which was intended to fix #34902)

CC @katiehockman @FiloSottile @rolandshoemaker (via CL 242598, which was intended to fix #34902)

Well, hrm. The same data race was reported on #34902 (in #34902 (comment)), but your report here is for go1.15.6 which should have included the fix.

That fix doesn't work for this issue. The root cause is probably the concurrent writes to the same connection in ReverseProxy.

Well, hrm. The same data race was reported on #34902 (in #34902 (comment)), but your report here is for go1.15.6 which should have included the fix.

That fix doesn't work for this issue. The root cause is probably the concurrent writes to the same connection in ReverseProxy.

This was fixed by CL 251858, which was backported to go1.16 but not go1.15.

Sorry, misread the history: The fix was originally made in go1.16. It was never backported to go1.15.

In that case, I think we can close this issue and update its milestone to Go1.16, since that's the Go release it was fixed in.


Feature Request: Add Total Character, Word, and Page Count Display

Summary:
I would like to request the addition of a new feature that displays the total character count, total word count, and page count at the top of the editor in order to enhance the user experience and provide quick insights into the document's metrics.
Details:
Currently, the editor lacks a built-in feature to show users the total character count, total word count, and page count. Having this information readily available at the top of the editor can be beneficial for users who want to keep track of their document metrics without the need to use external tools.

I've noticed a similar feature implemented in the novel.sh repository by you. It would be great if we could incorporate a similar approach here for consistency and user familiarity.

Hi! That's a good suggestion, I'll definitely add these metrics. Thank you!


Added an external css file

This branch has conflicts that must be resolved
Use the web editor or the  to resolve conflicts.
Conflicting files
index.html

Can you please elaborate that what is causing the conflicts.
8979809698 is my contact number.Please reach out to me as soon as possible
as from my side its saying no conflicts.
On Sun, Oct 3, 2021 at 9:50 AM Adithya Pai B @.***>
wrote:

This branch has conflicts that must be resolved
Use the web editor or the to resolve conflicts.
Conflicting files
index.html
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/adithyapaib/downloadTimeCalculator/pull/15#issuecomment-932860140,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQFQOEP77GIK7ZT7FDKIMWLUE7KZHANCNFSM5FGZERZA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Can you please elaborate that what is causing the conflicts.<PHONE_NUMBER> is my contact number.Please reach out to me as soon as possible as from my side its saying no conflicts.
…
On Sun, Oct 3, 2021 at 9:50 AM Adithya Pai B @.***> wrote: This branch has conflicts that must be resolved Use the web editor or the to resolve conflicts. Conflicting files index.html — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#15 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFQOEP77GIK7ZT7FDKIMWLUE7KZHANCNFSM5FGZERZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Can you please elaborate that what is causing the conflicts.<PHONE_NUMBER> is my contact number.Please reach out to me as soon as possible as from my side its saying no conflicts.
…
On Sun, Oct 3, 2021 at 9:50 AM Adithya Pai B @.***> wrote: This branch has conflicts that must be resolved Use the web editor or the to resolve conflicts. Conflicting files index.html — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub <#15 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQFQOEP77GIK7ZT7FDKIMWLUE7KZHANCNFSM5FGZERZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hey @kritika-sharma130  don't share your contact details on a public Github repo  ( delete the comment ).
if u want help please mail me<EMAIL_ADDRESS>.
U have to change the branch and then PR accordingly .


Use-case for manual expanded control

I have a scenario where I've got an anchor which links to an accordion item which is below the fold.
When user clicks on the link, he's scrolled down to the accordion item.
I'd prefer to have it opened once it's in viewport rather than having to click again to expand to see content.
And to do that elegantly I need an API which allows to expand/collapse desired accordion items.
API to do that could look like:
const [accordion, setAccordion] = useState(null);

const handleAccordionItemExpand = useCallback((itemId) => {
    if (accordion) {
        accordion.expand(itemId);
    }
}, [accordion]);

return (
    Read reviews

    ...

    <Accordion setRef={setAccordion}>
      ...
    </Accordion>
)

Is there any other way to do this except targeting DOM to trigger click events on the accordion button?

If you believe that you have a valid use-case for 'disabled' items, or items which require manual 'expanded' state-management, then please let us know - we're always open for critical (but polite) feedback. Otherwise, we don't plan on implementing this functionality in the near future.

Can you update preExpanded to expand the item I want when user click the link.

dangerouslySetExpanded is now available as an AccordionItem prop in version 3.1.0 ✨ This should neatly solve the issue!


Modification for main modules compatibility

Fixes #816
Proposed Changes

modification for proper scheduler and optimizer handling
modification for proper onnx handling
GAN logger instance
adding model to the models registry

Checklist

[X] CONTRIBUTING guide has been followed.
[X] PR is based on the current GaNDLF master .
[X] Non-breaking change (does not break existing functionality): provide as many details as possible for any breaking change.
[X] Function/class source code documentation added/updated (ensure typing is used to provide type hints, including and not limited to using Optional if a variable has a pre-defined value).
[X] Code has been blacked for style consistency and linting.
[ ] If applicable, version information has been updated in GANDLF/version.py.
[ ] If adding a git submodule, add to list of exceptions for black styling in pyproject.toml file.
[ ] Usage documentation has been updated, if appropriate.
[ ] Tests added or modified to cover the changes; if coverage is reduced, please give explanation.
[ ] If customized dependency installation is required (i.e., a separate pip install step is needed for PR to be functional), please ensure it is reflected in all the files that control the CI, namely: python-test.yml, and all docker files [1,2,3].

Most of it is fine. Just 1 question to address.

Waiting for tests to pass, them will merge

What's the version of black you are using, BTW? Is it different from what's in setup.py?
Also, minor changes.

I have the same, but probably I have different line length settings - I am in the 79 length clan, I believe default is 120 line length? Should I change that back?

What's the version of black you are using, BTW? Is it different from what's in setup.py?
Also, minor changes.

I have the same, but probably I have different line length settings - I am in the 79 length clan, I believe default is 120 line length? Should I change that back?

How are you suggesting black to make that change? I am curious because I don't think GaNDLF is setting that in the linting configuration...

I am setting that in the vscode black plugin settings, I have it configured that vscode automatically formats the document upon saving

Codecov Report
Attention: Patch coverage is 49.20635% with 32 lines in your changes are missing coverage. Please review.

Project coverage is 88.09%. Comparing base (64962a1) to head (1ab1676).
Report is 32 commits behind head on master.

Files
Patch %
Lines

GANDLF/logger.py
21.87%
25 Missing :warning:

GANDLF/utils/modelio.py
53.84%
6 Missing :warning:

GANDLF/utils/tensor.py
80.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
- Coverage   95.04%   88.09%   -6.95%
==========================================
  Files         119      126       +7
  Lines        8288     8957     +669
==========================================
+ Hits         7877     7891      +14
- Misses        411     1066     +655

Flag
Coverage Δ

unittests
88.09% <49.20%> (-6.95%)
:arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


REPL: Add test cases for manual testing

PR for #271

@hachi8833 Nice work! I think this is also a thorough introduction for REPL.


Add sourcespace to Report

Reference issue (if any)
Fixes #12836
What does this implement/fix?

Add a src argument to the Report.add_bem method.
Additional information

I'm not sure which strategy to adopt and changes to make to Report.parse_folder.
The Report.parse_folder method automatically adds BEM to the Report if Report.subject is specified. However, several sourcespaces -src.fif  files might be present in the BEM folder and/or folder to parse.

For add_folder I think if a source space is found, it could be passed in during the add_bem step (assuming that happens in parse_folder, I don't remember!). Not 100% sure the right thing to do when multiple source spaces are found, could just put in whichever is first, or only add one if there is exactly one source space. I'm thinking just using the first one would make sense so that you get some sense whether or not the alignment is correct.
Another place it would be nice to add if you're motivated is in report.add_trans since that's used for making sure everything is nicely aligned, too.
Then it would be good to pass some src in the tests for report.add_bem and report.add_trans

Having looked at the many possibilities, I think the best solution would be to add a figure in the forward section:
the forward object contains all the information needed to display the source space
This solution has the advantage of being able to also  display the EEG sensors projected onto the scalp, as well as displaying only the sources used in for forward computation (as some sources from the original source space may be dropped if too close to the inner skull surface). This will give a global idea of the sensors <-> sources model.
mne.viz.plot_alignment(trans=fwd["mri_head_t"], info=fwd["info"], src=fwd["src"], eeg=dict(original=0.2, projected=0.8))

We could also have a clearer view of the source space with an additional plot:

I like both of those plots! Adding to the forward section sounds reasonable to me


Communication phonenumbers tests failing

Communication Phone numbers:
Executing python - communication - tests on the build is causing failure on the following test. It has been commented out for the same reason.
self = <test_phone_number_administration_client.PhoneNumbersClientTest testMethod=test_update_phone_number_capabilities>

    def test_update_phone_number_capabilities(self):
        poller = self.phone_number_client.begin_update_phone_number_capabilities(
            self.phone_number,
            PhoneNumberCapabilityType.INBOUND_OUTBOUND,
            PhoneNumberCapabilityType.INBOUND,
            polling = True
        )
        poller.result()
>       assert poller.status() == 'succeeded'
E       AssertionError: assert 'Succeeded' == 'succeeded'
E         - succeeded
E         ? ^
E         + Succeeded
E         ? ^

test/test_phone_number_administration_client.py:67: AssertionError

With a value of 'succeeded' - python - communication - tests -- fails
With a value of 'Succeeded' - python - communication - ci -- fails

Working on it on this PR right here https://github.com/Azure/azure-sdk-for-python/pull/17487

With #17487 new tests are breaking
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=797119&view=ms.vss-test-web.build-test-results-tab

It's not an issue with the PR itself. We are having a toll free phone number shortage at the moment.

Is it still valid?


comand and tomcat war support

Description of the issue:

I want to deploy an tomcat app  with a base image, but not have relative parameters can config  comand to start container  in labels "configuration",  "mainClass" is not satisfy
I can't put my application war into the specified location of the base image.

Expected behavior:

put my application war into the specified location of the base image；
can config comand to start container  in labels "configuration"

Thanks for contributing!

Hi @SnowerWkh , thanks for filing this issue! We are actively working on support for WARs in #431 .

I would like to deploy java war  on a tomcat ,so I use a tomcat base image, and I also have not just like "mainClass", I use entrypoint ["catalina.sh",run] in my dockerfile
There is some JVM  profiles args

Hi @YJFinBJ , what sorts of instructions are you performing in your entrypoint script (catalina.sh)? The default base image gcr.io/distroless/java does not include a shell by design. If you'd like to use an entrypoint script, you can use the gcr.io/distroless/java:debug image or another base image that includes a shell.
 If not, I would recommend either setting them using the jvmFlags parameter or adding them via the JAVA_TOOL_OPTIONS environment variable at run time.

@YJFinBJ we are currently gearing toward using Jetty instead of Tomcat, at least for now, for WAR support: #431. If people find Jetty lacking some functionalities and need Tomcat, we can think about the feature to switch the servlet engine.

Hi  @coollog @chanseokoh    There is start/stop Bootstrap in catalina.sh,and also some env args like JAVA_OPTS etc.   And JVM args can setting them in jvmFlags that's OK
But since you are currently gearing toward using Jetty,do you have any demo with war package deploy on jetty, jetty is similar with tomcat I think

@YJFinBJ this may be helpful: https://github.com/GoogleContainerTools/jib/issues/431#issuecomment-406356286

HI  @chanseokoh  I still have another question maybe not abt this issue.
[ERROR] No plugin found for prefix 'jib' in the current project and in the plugin groups
how to set my repository in my ./m2/settings, and I cann't package jib-maven-plugin upload to our own maven repository myself

Closing this in favor of #431. For WAR use cases now, we recommend converting to a JAR with embedded Tomcat (via dependencies under org.apache.tomcat.embed).


Will there be a version for symfony ^7.0?

Thanks for the reminder!
I've pushed a new release with SF7 compatibility https://github.com/williarin/cook/releases/tag/1.2.0


Merge refs/heads/feature/properties-default-values into alpha

Merge refs/heads/feature/properties-default-values into alpha

This PR has not been merged into alpha. Please fix the issues and re-open the PR.


Bad file hinting when using include_tasks

Hi guys,
I am now using your plugin in version 0.3.0 and I really thanks you.
I just discovered an issue when there are a lint warning/error in a file that is included with include_tasks.
Let's see the main.yml file :
---
- name: Pre-processing checks
  include_tasks: pre-check.yml

Now, here is the pre-check.yml that has an indentation lint error on the last line, to trigger the lint message in the console :
- name: pre-check| clients list is empty
  fail:
    msg: "clients list is empty, please check configuration..."
  tags:
  - generate-rules

Ok so, let's see what the linter says :

Regarding the error message, it seems that there is something bad on line 5 within main.yml. Actually, the error message is into the pre-check.yml included file.
Thanks guys !

Unless you pre-check.yml is under a tasks/ that is not a bug in our extension. Be sure you do not mix playbooks and tasks under the same folder.

@ssbarnea pre-check.yml is under tasks/ directory, like the main.yml file.
Both files are role tasks, and not playbook.

Please upgrade to 0.3.2 and let me know if it still reproduces. Otherwise close it.
PS. I suspect it may be related to https://github.com/ansible-community/vscode-ansible/pull/70

Upgrading to 0.3.2 fixed it :) Thanks


JavaScript

JavaScript
As a bootcamp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Given a prework study guide website
When I view the study guide
Then I can see the four topics I learned listed along with a suggestion on what I should study first

practiced using variables and functions.


Not all imported visuals work with the new format pane

I was unable to change the number of rows and columns on the chiclet slicer

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

ID: 99728831-9577-faee-e82a-8def045dadea
Version Independent ID: 99728831-9577-faee-e82a-8def045dadea
Content: The new Format pane in Power BI Desktop (preview) - Power BI
Content Source: powerbi-docs/fundamentals/desktop-format-pane.md
Service: powerbi
Sub-service: pbi-fundamentals
GitHub Login: @maggiesMSFT
Microsoft Alias: maggies

Hi @rbakerpage, thanks for reaching out to us with your comment. I believe the Chiclet slicer is a Microsoft-developed custom visual, is it not? Yes, I can see that it might be helpful to know which properties can't be edited, both for the out-of-the-box visuals and also for custom visuals. In any event, I am forwarding your feedback on to the owner of the article for further consideration. Thanks again for your feedback!

Hi, @rbakerpage -- thanks for asking! I just installed the cliclet slicer to check it out. I can change rows and columns -- it's under General in the Format pane.

Hmmm, I am using the Feb 2022 version of Power BI Desktop, <IP_ADDRESS> 64-bit (February 2022). That may not be publicly available, but if not, it will be coming soon!
Hope that helps!


feature request

Doom eternal has a nice feature where it can change the resolution dynamically based on a fps target it would be neat if this could be added

that does sound useful for igpu setups.


docker systemd service environment settings not propagated to docker commands

Output of docker version:
Client:
 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 7
 Running: 1
 Paused: 0
 Stopped: 6
Images: 2
Server Version: 1.12.0
Storage Driver: devicemapper
 Pool Name: docker-253:0-394340-pool
 Pool Blocksize: 65.54 kB
 Base Device Size: 10.74 GB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 1.358 GB
 Data Space Total: 107.4 GB
 Data Space Available: 37.13 GB
 Metadata Space Used: 3.039 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.144 GB
 Thin Pool Minimum Free Space: 10.74 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Deferred Deletion Enabled: false
 Deferred Deleted Device Count: 0
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 WARNING: Usage of loopback devices is strongly discouraged for production use. Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge overlay host null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.10.0-327.22.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.797 GiB
Name: fazenda
ID: C3DB:3GZE:WC2U:LJYL:DTYN:VDJH:QZFV:AMYT:AMZD:MX6S:W3QB:WHDR
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://<IP_ADDRESS>:5865/
Https Proxy: http://<IP_ADDRESS>:5865/
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Insecure Registries:
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):

cat /etc/systemd/system/docker.service.d/proxy.conf

[Service]
Environment='HTTPS_PROXY=http://proxy:port/' 'HTTP_PROXY=http://proxy:port/'

Steps to reproduce the issue:

Create a conf file for docker systemd service
run a container which need that environment variable value (e.g docker run -i sample_image curl <http://some_sandbox>

Describe the results you received:
Container don't have access the that environment variable settings on docker systemd service.
e.g. (behind the proxy) curl or wget cant access internet inside the container. It's necessary to pass docker run --env https_proxy=[...].
Describe the results you expected:
If I setup a docker systemd service environment variable for any "app, service, container etc" I hope docker would use that on most or every command I do (docker run, docker exec etc).
Additional information you deem important (e.g. issue happens only occasionally):

I don't think it would necessarily be correct to automatically set proxy values inside containers. These proxy values often contain credentials which could cause an issue if this is loaded into the container env.
The proxy values ARE used by the daemon, for instance when it needs to pull an image.

proxy is only one example configuration, we can abstract to other environment variables that were put there for a real running container.
If I need to setup some MYSERVICE_ENV_VAR on a docker systemd service  conf file it could use that.

@adrianovieira Nope, this is wrong. Just because something is in the docker daemon's env does not mean it should ever propagate to containers... and likewise you shouldn't have to set an environment variable that is completely useless to the docker daemon to have that propagate into a container.
There might be a case here for a daemon setting for setting envs that should go to all containers.

I see.
Thanks.

I agree with @cpuguy83 here; propagating these to the containers doesn't sound like the right thing to do. I'll close this issue, but feel free to continue the discussion


0.6.2 CI now fails

Re-running CI on 0.6.2 results in errors
https://travis-ci.org/jayvdb/collectfast/builds/495173846
======================================================================
ERROR: collectfast.tests.test_command (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: collectfast.tests.test_command
Traceback (most recent call last):
  File "/opt/python/3.6.3/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/opt/python/3.6.3/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/jayvdb/collectfast/collectfast/tests/test_command.py", line 7, in <module>
    from .utils import test, clean_static_dir, create_static_file, override_setting
  File "/home/travis/build/jayvdb/collectfast/collectfast/tests/utils.py", line 10, in <module>
    import boto
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/site-packages/boto/__init__.py", line 1216, in <module>
    boto.plugin.load_plugins(config)
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/site-packages/boto/plugin.py", line 93, in load_plugins
    _import_module(file)
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/site-packages/boto/plugin.py", line 75, in _import_module
    return imp.load_module(name, file, filename, data)
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "/usr/lib/python2.7/dist-packages/google_compute_engine/boto/compute_auth.py", line 19, in <module>
    from google_compute_engine import logger
ModuleNotFoundError: No module named 'google_compute_engine'
======================================================================
ERROR: collectfast.tests.test_etag (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: collectfast.tests.test_etag
Traceback (most recent call last):
  File "/opt/python/3.6.3/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
    module = self._get_module_from_name(name)
  File "/opt/python/3.6.3/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
    __import__(name)
  File "/home/travis/build/jayvdb/collectfast/collectfast/tests/test_etag.py", line 7, in <module>
    from storages.backends.s3boto import S3BotoStorage
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/site-packages/storages/backends/s3boto.py", line 25, in <module>
    from boto import __version__ as boto_version
  File "/home/travis/build/jayvdb/collectfast/.tox/py36-django200/lib/python3.6/site-packages/boto/__init__.py", line 1216, in <module>
    boto.plugin.load_plugins(config)
AttributeError: module 'boto' has no attribute 'plugin'

When I try to run it on openSUSE build environment, with latest moto, I get different errors:
======================================================================
ERROR: test_basics (collectfast.tests.utils.test_basics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/moto/core/models.py", line 74, in wrapper
    result = func(*args, **kwargs)
  File "collectfast/tests/utils.py", line 33, in wraps
    boto.connect_s3().create_bucket(django_settings.AWS_STORAGE_BUCKET_NAME)
  File "/usr/lib/python2.7/site-packages/boto/__init__.py", line 141, in connect_s3
    return S3Connection(aws_access_key_id, aws_secret_access_key, **kwargs)
  File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line 194, in __init__
    validate_certs=validate_certs, profile_name=profile_name)
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 569, in __init__
    host, config, self.provider, self._required_auth_capability())
  File "/usr/lib/python2.7/site-packages/boto/auth.py", line 1021, in get_auth_handler
    'Check your credentials' % (len(names), str(names)))
NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your credentials

Yes, I believe this is the same reason master fails, looked into to it some time ago but haven't had the time to fix it. This is due to changes in the dependencies and "not a real bug", nevertheless needs to be fixed at some point.

The tests get a bit further with https://github.com/jayvdb/collectfast/commit/c58d98da585d4cf702f284a1449c7daccb938d56 , but many are still failing.

fwiw, you can see the openSUSE 0.6.2 logs at https://build.opensuse.org/package/show/home:jayvdb:django/python-Collectfast

This is the moto issue: https://github.com/spulec/moto/issues/1793
Spent another 2 hours trying to fix this ...

I'm considering going back to using a real S3 bucket for integration tests instead of moto ...


Separate Core & Delivery specific functionality

And release 2 packages on npm -> Core & Delivery so that we can easily add new packages in future for Personalization, Content management...

Would you @Enngage share your thoughts on which parts of the existing codebase should be moved to the Core package?

I can't say at the moment as it will mostly depend on what will need to be done for the CM API. It will definitely be some sort of http service, possibly html parsers and object mappers.

This is now underway in 5.x.y release


fix version solving failed error due to coast_audio_fft dependent coast_audio in path dependencies

Change coast_audio  to dependent on the pub.dev version, fix https://github.com/SKKbySSK/coast_audio/issues/6
Since I upgrade the Flutter SDK to 3.10, which cause the pubspec.lock updated, I recommend not check-in all the pubspec.lock file, so that it can avoid the pubspec.lock files be updated due to different Flutter SDK version.

closed as fixed.


Deprecate functions in tests/utils.go

What this PR does / why we need it:
These functions are deprecated by libvmi.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] Design: A design document was considered and is present (link) or not required
[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Testing: New code requires new unit tests. New features and bug fixes require at least on e2e test
[ ] Documentation: A user-guide update was considered and is present (link) or not required. You want a user-guide update if it's a user facing feature / API change.
[ ] Community: Announcement to kubevirt-dev was considered

Release note:

NONE

What do you think about add a tip/example in the comment pointing out how to achieve the same with libvmi?

/retest

/lgtm

Btw, maybe would be good to consider a follow PR that enforce no new deprecated functions are introduced in the diff ?
(there might be even a linter that does it, for example visual studio code + go plugin knows to mark deprecated funcs)


Added matc.txt for matc.edu

"matc.edu" is the domain for faculty at Milwaukee Area Technical College.
Official website URL:
http://www.matc.edu
Specific course pages can't be linked to directly, but these pages list 1-year IT courses (e.g., Web Programming):
IT Web & Software Developer
IT Programmer Analyst
This page lists subjects, from which you can access specific course pages:
http://infonline.matc.edu/live-infonline/html/subject.html
Email address examples for faculty<EMAIL_ADDRESS>http://www.matc.edu/matc_news/ExpertList.cfm

@pup500 Pull request merged. Thank you!


Is it safe to skip first round of komihash when performing discrete-incremental hashsing

When doing discrete-incremental hashing, I feels that first round of wyhash can be skipped. Let's call it komihash_inner
uint64_t komihash_inner(const void* const Msg0, size_t MsgLen,
        uint64_t *Seed1, uint64_t *Seed5  ) {
   //...
}

and komihash can become
uint64_t komihash( const void* const Msg0, size_t MsgLen,
	const uint64_t UseSeed ) {
   	const uint8_t* Msg = (const uint8_t*) Msg0;

	// The seeds are initialized to the first mantissa bits of PI.

	uint64_t Seed1 = 0x243F6A8885A308D3 ^ ( UseSeed & 0x5555555555555555 );
	uint64_t Seed5 = 0x452821E638D01377 ^ ( UseSeed & 0xAAAAAAAAAAAAAAAA );
	uint64_t r1h, r2h;

	KOMIHASH_PREFETCH( Msg );

	KOMIHASH_HASHROUND(); // Required for Perlin Noise.
        komihash_inner(Msg0, MsgLen, &seed1, &seed5);
}

Then we can introduce struct DescreteKomihash and komihash_discrete_hash
struct DescreteKomihash {
        uint64_t Seed1;
        uint64_t Seed5;
}

uint64_t komihash_discrete_hash(struct DescreteKomihash *d, const void* const Msg0, size_t MsgLen) {
        komihash_inner(Msg0, MsgLen, &d->seed1, &d->seed5);
        return d->seed1;
}

where DescretKomihash will be initialized with a seed with similar steps in komihash.
Such construct reduce a multiply operation for each call.
But I don't have knowledge in how to design a good hash function, I have no idea if it's safe do it in this way. Any comment or advise?

I do not think it's possible to opimize komihash that way, because one does not know input data lengths in advance - for example, one may been to hash 64 byte block, and not merely 4- or 8-byte blocks, so needs another initialization.


How to include all the function names in the first page?

I want to make the documentation slightly simpler and everything available in the first page (rather than going through so many links).
Currently this is what I have: http://cogcomp.cs.illinois.edu/software/doc/sioux/
But compare it to pdoc's docs: http://pdoc.burntsushi.net/pdoc  --> in the first page, you can already see the names of all the classes and their functions. How can I do this, without breaking my module structure?

How can I do this, without breaking my module structure?

pdoc is designed to document the public interface of your Python module. If the public interface includes all of your submodules, then it seems like the generated documentation is correct.
If you instead want functions in your submodules to be shown as part of the top-level module, then you must simply re-export them. e.g., In your __init__.py:
from sioux.submodule import Foo

__all__ = ['Foo']

Makes sense.


Remove pull filter feature.

The pull filters feature did not give the expected improvements, so it should be remove to simplify the spec/code.
https://github.com/Storj/storjnet/blob/pull_filters/benchmark/filterupdates.md#test-push-filters-vs-pull-filters-for-extra-propagations

Done