Recording video using the camera plugin results in a black screen at the end of the video.

Steps to reproduce
1.initialize everything
2.start recording
3.stop recording
4.initialize video_player controller
5.seekTo the end of the video
6.now you can see a black frame.
Using the example code, you can long press the "camera" button to film something.
lift up your finger, you will see a player widget with 5 buttons:
play: start to play this video
pause: pause
a right arrow: jump to the beginning of this video (Duration.zero)
a E: jump to the end of this video (videoController.value.duration)
exit: resume the preview.

I tested on my iPhone, not sure if this happens on Android devices.
It seems that the iOS gallery has applied some optimization for this issue. When viewing the video in the album, there is no black screen anymore. However, when playing the same video using QuickTime, the black screen can be seen again.
Expected results
it should be the real last frame, instead of a black one.
Actual results
a black frame
Code sample
Code sample
import 'dart:io';

import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';

late List<CameraDescription> _cameras;

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  _cameras = await availableCameras();
  runApp(const MainApp());
}

class MainApp extends StatefulWidget {
  const MainApp({Key? key}) : super(key: key);

  @override
  State<MainApp> createState() => _MainAppState();
}

class _MainAppState extends State<MainApp> {
  late CameraController cameraController;
  late VideoPlayerController videoPlayerController;

  @override
  void initState() {
    cameraController = CameraController(
      _cameras[0],
      ResolutionPreset.medium,
    );

    super.initState();
  }

  @override
  void dispose() {
    cameraController.dispose();
    videoPlayerController.dispose();
    super.dispose();
  }

  bool isPlaying = false;
  String filePath = "";

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Stack(
            children: [
              if (!isPlaying)
                FutureBuilder(
                    future: cameraController.initialize(),
                    builder: (context, snapshot) {
                      if (snapshot.connectionState == ConnectionState.done) {
                        return CameraPreview(cameraController);
                      } else {
                        return const CircularProgressIndicator();
                      }
                    }),
              if (isPlaying)
                VideoFrame(
                  videoPlayerController: videoPlayerController,
                  backCallback: () {
                    videoPlayerController.pause();
                    videoPlayerController.dispose();
                    File(filePath).delete();
                    isPlaying = false;
                    setState(() {});
                  },
                ),
              if (!isPlaying)
                Positioned(
                  bottom: 20,
                  right: 20,
                  child: GestureDetector(
                    onLongPressStart: (LongPressStartDetails details) async {
                      await cameraController.startVideoRecording();
                    },
                    onLongPressEnd: (LongPressEndDetails details) async {
                      var file = await cameraController.stopVideoRecording();
                      filePath = file.path;

                      videoPlayerController =
                          VideoPlayerController.file(File(filePath))
                            ..initialize().then((_) {
                              setState(() {});
                            });
                      isPlaying = true;
                      setState(() {});
                      videoPlayerController.play();
                    },
                    child: Container(
                        height: 90,
                        width: 90,
                        decoration: const BoxDecoration(
                          shape: BoxShape.circle,
                          color: Colors.amber,
                        ),
                        child: const Icon(Icons.camera)),
                  ),
                ),
            ],
          ),
        ),
      ),
    );
  }
}

class VideoFrame extends StatelessWidget {
  const VideoFrame(
      {super.key,
      required this.videoPlayerController,
      required this.backCallback});

  final VideoPlayerController videoPlayerController;
  final Function() backCallback;

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        AspectRatio(
            aspectRatio: videoPlayerController.value.aspectRatio,
            child: VideoPlayer(videoPlayerController)),
        Positioned(
          bottom: 0,
          child: Row(
            children: [
              GestureDetector(
                onTap: () {
                  videoPlayerController.play();
                },
                child: Container(
                    height: 60,
                    width: 60,
                    decoration: const BoxDecoration(
                      shape: BoxShape.circle,
                      color: Colors.amber,
                    ),
                    child: const Icon(Icons.play_arrow)),
              ),
              GestureDetector(
                onTap: () {
                  videoPlayerController.pause();
                },
                child: Container(
                    height: 60,
                    width: 60,
                    decoration: const BoxDecoration(
                      shape: BoxShape.circle,
                      color: Colors.amber,
                    ),
                    child: const Icon(Icons.pause)),
              ),
              GestureDetector(
                onTap: () {
                  videoPlayerController.seekTo(Duration.zero);
                },
                child: Container(
                    height: 60,
                    width: 60,
                    decoration: const BoxDecoration(
                      shape: BoxShape.circle,
                      color: Colors.amber,
                    ),
                    child: const Icon(Icons.start)),
              ),
              GestureDetector(
                onTap: () {
                  videoPlayerController
                      .seekTo(videoPlayerController.value.duration);
                },
                child: Container(
                    height: 60,
                    width: 60,
                    decoration: const BoxDecoration(
                      shape: BoxShape.circle,
                      color: Colors.amber,
                    ),
                    child: const Icon(Icons.e_mobiledata)),
              ),
              GestureDetector(
                onTap: () {
                  backCallback();
                },
                child: Container(
                    height: 60,
                    width: 60,
                    decoration: const BoxDecoration(
                      shape: BoxShape.circle,
                      color: Colors.amber,
                    ),
                    child: const Icon(Icons.exit_to_app_rounded)),
              )
            ],
          ),
        ),
      ],
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.9, on macOS 14.2.1 23C71 darwin-arm64, locale zh-Hans-US)
    • Flutter version 3.16.9 on channel stable at /Users/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (7 weeks ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/Library/Android/sdk
    • Platform android-34, build-tools 33.0.0
    • ANDROID_HOME = /Users/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • iPhone (mobile) • 00008030-000E31623C81802E • ios            • iOS 17.3.1 21D61
    • macOS (desktop)      • macos                     • darwin-arm64   • macOS 14.2.1 23C71 darwin-arm64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 122.0.6261.128

[✓] Network resources
    • All expected network resources are available.

• No issues found!

I also can reproduce this issue on iOS device iPhone 7, iOS 15.8 using the latest package camera: ^0.10.5+9, camera_avfoundation: ^0.9.14+1. Sometimes this doesn't occur (occurrence/non-occurrence rate is about 50% on my end). And this is not reproduced on Android.

Demo (on iOS)
https://github.com/flutter/flutter/assets/104349824/6ea98f00-622f-423c-8337-86406961bffb

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.19.3 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba39319843 (6 hours ago), 2024-03-07 15:22:21 -0600
    • Engine revision 2e4ba9c6fb
    • Dart version 3.3.1
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • iPhone (mobile) • d9a94afe2b649fef56ba0bfeb052f0f2a7dae95e • ios            • iOS 15.8 19H370
    • macOS (desktop) • macos                                    • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)    • chrome                                   • web-javascript • Google Chrome 122.0.6261.112

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.21.0-7.0.pre.25, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.21.0-7.0.pre.25 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fa2f64ad1a (66 minutes ago), 2024-03-13 22:10:38 -0400
    • Engine revision 599dbd7382
    • Dart version 3.4.0 (build 3.4.0-229.0.dev)
    • DevTools version 2.33.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D          • android-arm64  • Android 11 (API 30)
    • iPad (mobile)    • 00008103-000A1464346A201E • ios            • iOS 17.2 21C62
    • macOS (desktop)  • macos                     • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome                    • web-javascript • Google Chrome 122.0.6261.128
    ! Error: iPhone has recently restarted. Xcode will continue when iPhone is unlocked. (code -14)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

just FYI, I checked the video file with ffmpeg and found that the audio stream is 1ms longer than the video stream (only for my test video). I think this may be the reason for the black screen


Add codenew shortcode to style guide

This is for #18231

@sftim added link to the https://deploy-preview-18245--kubernetes-io-master-staging.netlify.com/docs/contribute/style/style-guide/#code-snippet-formatting for newcode shortcode in case of downloadable code blocks.

/assign @ryanmcginnis

Assigning @zacharysarah and @jimangel for architectural review
/assign @zacharysarah
/assign @jimangel


Fix the SPIFFS POSIX API (#489)

The commit ebdd2f9 defined some offsets to differentiate between the
standard, socket and file descriptors.
SPIFFS_FILEHDL_OFFSET was updated accordingly but the code didn't use
that constant and this broke the SPIFFS POSIX API.
Fix it by initializing the fh_ix_offset field of the spiffs_config
structure to SPIFFS_FILEHDL_OFFSET.

Thank you!


linux-generic: Remove qcs404 from deploy on mainline, next, generic

As of next-20181119, a new Qualcomm board has been added to
Linux, which seems problematic when dealing with dtbTool. The
workaround has been to remove those files before they present
any problems, so this is in line with the current behavior.
Currently, only linux-next is affected, but it will eventually
reach mainline, and might bit if using the generic kernel as
that can build any revision whatsoever.
Signed-off-by: Daniel Díaz<EMAIL_ADDRESS>

as i said by email, using dtbTool is most likely a bad idea by now.. none of us uses it anymore, and for at least 1 year now..
the workaround is fine though.. just wanted to make sure you are aware.


Hook into BlockProcesser with events

Hello there,
I notice in your BlockProcessor class you have methods and properties that return the char indexes of the current Markdown element being processed, things like:
        public int CurrentLineStartPosition { get; private set; }
        public int LineIndex { get; set; }
...
        public int Column { get; set; }
        public int Start => Line.Start;

Is there currently a way to hook into the BlockProcessor so I can build up a list of info objects that describe what has been processed?
I would like a list of info object something like:
public class Info
{
    int StartIndex
    int EndIndex
    string Tag
    string Content
}

So the following Markdown:
## Hello

**123**

# Goodbye

Would produce a List of Info objects like:
[
    { StartIndex = 0, EndIndex = 8, Tag = "##", Content = "Hello" },
    { ..., Tag = "**", Content = "123" }
    { ..., Tag = "#", Content = "Goodbye" }
]

The reason I want to do this is because I am creating a WYSIWYG editor, I have the Markdown (in a <textarea>) in one panel and the rendered HTML above.
I want to find out which element the user has clicked on when they click in the Markdown <textarea>.

Note: The GUI is in html and the Markdig compilation in done via ajax call to C# WebAPI.

If this is hard to understand, but hopefully you get the idea ;-)

Is there currently a way to hook into the BlockProcessor so I can build up a list of info objects that describe what has been processed?

No. It would also be hard to add in the form you suggest due to the Tag.
However, when you parse some markdown, you can look at the MarkdownDocument that contains all the parsed elements. All elements (MarkdownObjects) also contain a Span field. You can therefore find the element in the document that matches the clicked region. Make sure you tell the pipeline to UsePreciseSourceLocation.
In your case this would look like:
string markdown = @"## Hello

**123**

# Goodbye";

var builder = new MarkdownPipelineBuilder()
    .UsePreciseSourceLocation();

var pipeline = builder.Build();

MarkdownDocument document = Markdown.Parse(markdown, pipeline);

var obj = GetHoveredOverObject(document, 13);
// obj is EmphasisInline

string content = markdown.Substring(obj.Span.Start, obj.Span.Length);
// **123**

I wrote a quick function that will extract the smallest/deepest object matching the index.
public static MarkdownObject GetHoveredOverObject(MarkdownDocument document, int index)
{
    var block = document.Descendants<Block>()
        .FirstOrDefault(b => b.Span.Start <= index && b.Span.End >= index);

    if (block != null)
    {
        if (block is LeafBlock leaf)
        {
            var inline = TryGetHoveredOverInline(leaf.Inline, index);
            if (inline != null)
            {
                return inline;
            }
        }

        return block;
    }

    return document;
}

private static Inline TryGetHoveredOverInline(ContainerInline container, int index)
{
    if (container is null)
        return null;

    var child = container.FirstChild;

    while (child != null)
    {
        if (child.Span.Start <= index && child.Span.End >= index)
        {
            if (child is ContainerInline subContainer)
            {
                var candidate = TryGetHoveredOverInline(subContainer, index);
                if (candidate != null)
                {
                    return candidate;
                }
            }

            return child;
        }
        child = child.NextSibling;
    }

    return null;
}

Thanks for giving my a full code example!
I managed to modify your code a little for my needs and I have manage to create the list of info object in a kinda way  that I can work with in the client-side.
Thank you for your help!


Fix Lint errors

While running npm run lint, there are some errors:

Afer fixing:

I can't merge a PR in master branch. @dhwaj1902 could you send it to the dev branch?

I can't merge a PR in master branch. @dhwaj1902 could you send it to the dev branch?

Done.

Nice. Thanks.


fix: don't trim when serializing borsh

closes #420
Motivation
bug in my impl of #416.
cc @rtrombone this will cause structs containing uints with trailing 0 bytess that are still within the fixed byte size of the integer to serialize incorrectly
Solution
don't trim, always write the exact byte size
PR Checklist

[x] Added Tests
[ ] Added Documentation
[ ] Updated the changelog

closing in favor of #422


[WinUI] Change default background and foreground color of TitleBar (#3379)

closes #3379

@mhrastegari
plz resolve the conflict(s).


Update/Use rem units for spacing

💬 Description
As agreed the other day, we're moving to rem spacing!
This means we can use all of tailwinds lovely spacing classes, and not have to bother to keep inventing our own 👌
This PR:

Removes the old spacing values from tailwind.config.js, which enables tailwinds default rem values
Replaces uses of the old spacing values.

🔗 Links
Links that relate to the PR (Trello, Figma etc.)
📹 GIF (optional)
A short GIF of the changes in action.
🚪 Start Points
Where is a good place to start the review? If there are multiple changes it may be worth listing multiple files.
👫 Related PRs (optional)
Any PRs that relate to the changes.
✅ Checklist

[ ] Tests written
[ ] Browser tested
[ ] Added to documentation
[ ] Added to storybook

 Use rem for GCDS and GUI spacing


The game window is on top by default

Tested versions
v4.4.dev.mono.gh-97745 [16528f0fa]
System information
Godot v4.4.dev.mono (16528f0fa) - Arch Linux #1 ZEN SMP PREEMPT_DYNAMIC Wed, 23 Oct 2024 00:18:38 +0000 on Wayland - Wayland display driver, Single-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) UHD Graphics 630 (CFL GT2) - Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz (8 threads)
Issue description
https://github.com/user-attachments/assets/5045ff66-c729-4aad-8c5b-6d6af8eaf4e5
The project window run from the editor is pinned to the top, and the exported project has no tests.
Steps to reproduce
Running project from editor
Minimal reproduction project (MRP)
N/A

I can't reproduce this issue.
Judging from the screen record, it seems that you are using my MRP for https://github.com/godotengine/godot/pull/97745#issuecomment-2440334619. It does have "Alway on Top" enabled for editor.

I can't reproduce this issue.
Judging from the screen record, it seems that you are using my MRP for #97745 (comment). It does have "Alway on Top" enabled for editor.

Wow, it seems that I misunderstood that setting. I thought it took effect on the editor, but it actually takes effect on projects run from the editor.


Major performance issue when parsing a long list of reference links

We noticed a major performance problem when parsing a long list of references similar to this benchmark: https://github.com/markdown-it/markdown-it/blob/master/benchmark/samples/block-ref-list.md
In our case we have a list of 1000+ references.
The root cause seems to be this termination logic:
https://github.com/markdown-it/markdown-it/blob/d07d585b6b15aaee2bc8f7a54b994526dad4dbc5/lib/rules_block/reference.mjs#L29-L51
Removing this logic doesn't break any tests and improves speed of parsing our long list 30x 🙀
I tried to find some similar problems and found this thread: https://github.com/markdown-it/markdown-it/issues/54
I believe this table is incorrect but I'm not sure:
https://github.com/markdown-it/markdown-it/blob/d72c68b520cedacae7878caa92bf7fe32e3e0e6f/lib/parser_block.js#L13-L25
From the CommonMark spec I can't see that reference can be terminated by other rules and it's the other way around actually - the reference can terminate some of the rules. Am I correct?
I tried modifying the code above to the variant below and all the tests are passing performance is still fast:
const _rules = [
  // First 2 params - rule name & source. Secondary array - list of rules,
  // which can be terminated by this one.
  ['table',      r_table,      ['paragraph']],
  ['code',       r_code],
  ['fence',      r_fence,      ['paragraph', 'blockquote', 'list']],
  ['blockquote', r_blockquote, ['paragraph', 'blockquote', 'list']],
  ['hr',         r_hr,         ['paragraph', 'blockquote', 'list']],
  ['list',       r_list,       ['paragraph', 'blockquote']],
  ['reference',  r_reference, ['table', 'fence', 'blockquote', 'hr', 'list', 'html_block', 'heading']],
  ['html_block', r_html_block, ['paragraph', 'blockquote']],
  ['heading',    r_heading,    ['paragraph', 'blockquote']],
  ['lheading',   r_lheading],
  ['paragraph',  r_paragraph]
]

Could someone check if my understanding is correct? I would be happy to open a PR.

Now I read a bit more code and I'm not sure I understand the spec correctly 🤔
https://github.com/markdown-it/markdown-it/blob/d07d585b6b15aaee2bc8f7a54b994526dad4dbc5/lib/rules_block/reference.mjs#L166

From the commonmark spec:

Hey @puzrin, @rlidwka, sorry for pinging you directly 🙌
Could you help me figure it out. I would be happy to open a PR if you just point me into correct direction.
Thanks in advance!

['reference',  r_reference, ['table', 'fence', 'blockquote', 'hr', 'list', 'html_block', 'heading']],

It never makes sense to put hr or heading (or table iirc) in that list, because they don't call block parser recursively. Their end is determined by their own markup, and nothing can interrupt those tags.
In any case, if you have a solution that massively improves performance, and all tests still pass, it's worth adding PR.

@rlidwka but is it about interrupting those tags or interrupting BY those tags.

 [ 'table',      require('./rules_block/table'),      [ 'paragraph', 'reference' ] ],
This means that table interrupts a paragraph.
This also means that paragraph can be interrupted by a table.

Thanks!
Created PR here: https://github.com/markdown-it/markdown-it/pull/998

This is not just a performance issue, this is algorithmic complexity issue.
[ref1]: url 'title'
[ref2]: url
[ref3]: url
[ref4]: url
...
[ref10000]: url

Where does first reference end?
Keep in mind, that it could look like this, which is one big reference:
[ref1]: url '
[ref2]: url
[ref3]: url
[ref4]: url
...
[ref10000]: url
'

Currently, reference 1 is parsed from line 1-10000, reference 2 is parsed from line 2-10000, etc., and this entire block of text has to be extracted beforehand (to remove indents, leading > for quotes and such).
Do you see O(n^2) popping up here?
Commonmark implementation probably doesn't have it, because they can strip indents on the fly (I guess), but here it would mean a big rewrite (possibly can't even be done without losing modularity).
Would be interesting to know if you have any ideas regarding that.

Commonmark implementation probably doesn't have it, because they can strip indents on the fly (I guess), but here it would mean a big rewrite (possibly can't even be done without losing modularity).
Would be interesting to know if you have any ideas regarding that.

May be we could restrict max lines count for refs to reasonable number? As far as I remember, we have some hard limits in emphasis. All those hard limits can be exposed to options

This is not just a performance issue, this is algorithmic complexity issue.

@rlidwka yes, I already figured it out.
I started digging into the algorithm and I have some progress already but nothing that I can share yet.
I'll update my PR when I have something.

May be we could restrict max lines count for refs to reasonable number?

This is a great idea. If everyone is happy with that (and I can't come up with anything better) I will adjust my PR to use the limit.


test(wrapped in act warning): set testing-library/dom override

Description
Music year: 2003

sets override of "testing-library/dom" , because "user-events" was running a lower version, which caused the warning

see https://github.com/testing-library/user-event/discussions/906 for more details

removes a bunch of act() calls which are now unnecessary (and lead to warnings themselves!)

How to test

run npm t
should see far fewer "wrapped in act()" warnings

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


Upload all SC segmentation annotations to git-annex

Currently, only manually corrected SC segmentation annotations are included in the git-annex (basel-mp2rage). We should also add the automatically generated SC annotations (via sct_deegseg_sc as shown in the preprocessing script) there.

duplicate of #55


Parallel Scans

Summary:
I can't be fully sure at the moment but wanted to see what you thought.
There may be an issue with parallel scans where when one segment finishes it starts again since it leaves an undefined in the lastKey returned. and thus makes parallel scans infinite
Code sample:
Schema
// Code here

Model
// Code here

General
// Code here

Current output and behavior:
Expected output and behavior:
Environment:
Operating System:
Operating System Version:
Node.js version (node -v):
NPM version: (npm -v):
Dynamoose version:
Other information (if applicable):
Type (select 1):

[ ] Bug report
[ ] Feature suggestion
[x] Question
[ ] Other suggestion
[ ] Something not listed here

Other:

[x] I have read through the Dynamoose documentation before posting this issue
[x] I have searched through the GitHub issues (including closed issues) and pull requests to ensure this issue has not already been raised before
[x] I have searched the internet and Stack Overflow to ensure this issue hasn't been raised or answered before
[ ] I have tested the code provided and am confident it doesn't work as intended
[ ] I have filled out all fields above
[x] I am running the latest version of Dynamoose

Will do. That was my plan over the weekend.
Was just asking as a question to see if this was something you think was possible based on my undefined theory.
"Meeting all your software solutions needs"
Devonte Emokpae
Managing Director | DTOX Consulting
M:<PHONE_NUMBER>6
E<EMAIL_ADDRESS>On 16 Nov 2018, 16:24 +0000, Charlie Fish<EMAIL_ADDRESS>wrote:

Can't really answer this without more information? Have you tried running export DEBUG=dynamoose* to see if that produces anything interesting? Can you make a test project or something that replicates this error? Is Dynamoose throwing an error or is it an infinite loop?
Giving some type of code so I can test it and reproduce it would be super helpful in this case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sadly I don't. I haven't actually used the parallel function before. Let me know how things go, and after we get further information I can try to help further.

Closing this due to no recent activity. If this is still a problem or you have questions please feel free to comment again and we can try to help further.


Unable to run utility

root@tmp-db-migration:~# rust-pgdatadiff-client diff postgres://"$db_user"@"$SOURCE":"$SOURCE_PORT"/"$db_name" postgres://"$db_user"@"$TARGET":"$TARGET_PORT"/"$db_name" --only-count 2024-07-29T13:42:06.403208Z  INFO rust_pgdatadiff::diff::diff_ops: Initiating DB diffing… 2024-07-29T13:42:06.403255Z  INFO rust_pgdatadiff::diff::diff_ops: Connected to first DB 2024-07-29T13:42:06.404287Z  INFO rust_pgdatadiff::diff::diff_ops: Connected to second DB 2024-07-29T13:42:06.405297Z  INFO rust_pgdatadiff::diff::diff_ops: Going for diff… 2024-07-29T13:42:06.405325Z  INFO rust_pgdatadiff::diff::table::table_differ: Starting data analysis… 2024-07-29T13:42:06.405483Z  INFO rust_pgdatadiff::diff::sequence::sequence_differ: Starting sequence analysis… thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rust-pgdatadiff-0.1.6/src/diff/sequence/query/sequence_query_executor.rs:96:47: called Result::unwrap()on anErrvalue: Backend(Error { kind: Db, cause: Some(DbError { severity: "FATAL", parsed_severity: Some(Fatal), code: SqlState(E28000), message: "no pg_hba.conf entry for host \"<IP_ADDRESS>\", user \"admissioncontroller_user\", database \"admissioncontroller\", SSL off", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("auth.c"), line: Some(495), routine: Some("ClientAuthentication") }) }) note: run withRUST_BACKTRACE=1 environment variable to display a backtrace

It seems that's an issue with your connection settings to the target database. The utility starts off properly, as we observe from the initial logs!

@pavlospt do you think this might be version incompatibility issue since my source is pg12 and target is on pg15.

Nope it is able to connect to both databases but it fails on authentication, so it most likely is the connection string issue I metnioned earlier!

The with-inquire works fine since it asks for TLS validation
`> Do you want to accept invalid TLS cert for first DB? Yes

Do you want to accept invalid TLS cert for second DB? Yes`

But with clap it seems we do not have option to skip TLS validation

That’s a good finding. I will provide a fix!
Pavlos-Petros Tournaris
Sr. Staff SWE (Platform/DevOps/SRE) @ Blueground (https://theblueground.com)
On Mon, 29 Jul 2024 at 20:20, Asif J @.***> wrote:

The with-inquire works fine since it asks for TLS validation

Do you want to accept invalid TLS cert for first DB? Yes
Do you want to accept invalid TLS cert for second DB? Yes

But with clap it seems we do not have option to skip TLS validation
—
Reply to this email directly, view it on GitHub
https://github.com/pavlospt/rust-pgdatadiff/issues/28#issuecomment-2256486598,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIFOF3FZOZH773ILYXOHFDZOZ2VJAVCNFSM6AAAAABLUKHYK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWGQ4DMNJZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@asifhj what version are you using?

The same flags for invalid cert acceptance exists in the with-clap feature as well!

Closing the issue, since there no reply. Feel free to comment again if you have any updates!


Clock control if started does not allow normal VM exit

One you start running a Clock, the java vm will not exit. I believe either the task thread or executor is not getting cleaned up properly.

If you call the stop() method on the Clock it should work...

I will close this bug because I did not get any response to my comment, please re-open if the problem still occurs.


Question: Why does consumer takes lot of time, when rejoining the same group.

When the new consumer joins with new group id, Kafka consumer gets all messages immediately in no time. However if I now stop the application (Control + C) and then re run the same code with same group_id, and a new message is produced by producer, it takes around 30-40 seconds, before i can see the consumer consuming the message(by console logging data). Why does re-joining group takes lot of time?
How can i reduce this time. From kafka documentation, i see max.poll.interval.ms, and is default to 5 minutes. I also read, rebalancing the groups when the consumer leaves the group without close() operation, would result in taking time for rebalancing since the leader waits for group timeout if any group is idle.
Any suggestions how to deal with this, when there are cases where .close() is not called.

Any suggestions how to deal with this, when there are cases where .close() is not called.

As long as error is retriable, we can set the option
restartOnFailure: (function (e) {
    return Promise.resolve(true);
})

and kafka will restart automatically.
If it isNon retrievable errors like KafkaJSGroupCoordinatorNotFound , in such cases you must be using consumer.crash event, and handle it programmatically and restart.


Enabling CORS when there is authentication

How to enable CORS in a web app that uses authentication?

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

ID: 59bca5db-1196-2a8b-a0d8-4e89b2382288
Version Independent ID: d3f332c4-4c60-039e-0e1e-bc6b11831f87
Content: Enable Cross-Origin Requests (CORS) in ASP.NET Core
Content Source: aspnetcore/security/cors.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

It's  no different.


Timesheet - 11/09/2021 - James Pang

Task 1
Fix comments from Sanjeev, review PRs
Proof of Work

https://github.com/thenewboston-developers/Website/pull/2043
https://github.com/thenewboston-developers/Website/pull/1999

Time Spent
2 hours

Task 2
Moving some existing dev portal code to the dev portal repo
Proof of Work

https://github.com/thenewboston-developers/Developer-Portal/pull/2

Time Spent
2.5 hours
Total Time Spent
2.5 hours
Account Number
3443227b5f81d2e2e595c52fe0fafce0870c4c4d837a550ef084d44cb95aa4be

@jamessspanggg, I think the Total Time Spent is too low.

@tspearing changed, thanks!


Base path setting

Hello, thanks for making this, I find Coltrane very useful in my current project.
I have an issue with the assumptions Coltrane makes about paths. I saved the *.md files in the myrepo/coltrane subfolder and have no problem serving it on the urls I want. But I also have a myrepo/data subfolder that contains non-related .json files. It appears that retriever.py on line 44  is reading in all json files in myrepo/data and all its subfolders. I randomly had a few empty json files there and coltrane crashed on loading with a "JSONDecodeError".
It would be nice to be have the ability in settings.py to overwrite the defaults that currently use settings.BASE_DIR / 'data' and  settings.BASE_DIR / 'content'.
Maybe you could also catch the error when reading an empty json file.

Hey, sorry this has been a long time, but I just noticed this issue. Handling the JSONDecodeError should be straight-forward -- I should probably log the error?
Changing the folder settings is something I've thought about, but wasn't sure if it would be useful. I can add that to my todos.

Sorry again I missed this for so long. Those features have been merged into main and will be released soon. Closing this!


Is support for Github Enterprise planned?

Unfortunately not. I never had the impression there is enough demand to implement it ...

Thanks for the reply. If inch-ci gets more popular it'll probably a topic.


Code with Us list not returning

Still having performance issues with the "code with us" list of work items.
Intermittent behaviour includes:

List never resolving
List grid returning without rows
List grid taking more than 5 seconds to return

I think this is a bit of double jeopardy.  First, the response from github can take some time, then the response from pathfinder can take quite a while, so we get hit twice.  I will run some benchmarks so you get an idea

This is caused by the transient network error that we've been having for some time. We have monitoring in place that informs us when the underlying API becomes unresponsive and we re-deploy the app, which temporarily resolves the issue.  We are continuing to work on tracking down the underlying network issue.
In the mean time, one suggestion @ccoldwell is to experiment with making the API calls to GitHub sequential.  There may also be some opportunities to improve the logging and/or error-handling.


running ./_helpers/build-infra fails on components backend.tf.example

running ./_helpers/build-infra fails on components backend.tf.example
Failure is happening since bucket name placeholder is not overridden correctly.
The following commit modifies the components//backend.tf.example to be on the same convention as projects//backend.tf.example

@googlebot I signed it!

@broady @amygdala @glarizza  WDYT?

I'm sorry, I'm not familiar with this codebase.  You might wanna check with @jmound or @chroto


[Office2PDF] ...

Extension
https://www.raycast.com/ARui/office2pdf
Description
Very awesome extension! I really like it a lot. Perhaps you could add an option to select multiple files at once. It would be much more convenient if you could choose the file you marked in Finder instead of searching for the file within the extension window. Thank you.
Who will benefit from this feature?
everyone
Anything else?
No response

@raycastbot rename this issue to "Multiple files selection"


adding in logic to work with rot.js Cellular type maps

This adds in logic to work for Cellular type map parameters
Which you can set when calling Axolemma.generate
passes = 6   //number of passes to run the Cellular growth algorithm
randomize = .54  //number between 0 and 1 for the chance of each room starting out with a 'cell'
This doesn't account for several additional Cellular type parameters, I'd like to incorporate later.
born:
survive:
topology:

Also, it seems like this means that the Cellular type would only be usable via requireing axolemma, and not the CLI -- this is fine and CLI support for it can be added later, or I could walk you through how to do that.


Why the facets button size is too big to see (again)

I know this is a previous issue that was closed but I'm using the latest and I still have the oversized buttons. if I start a jupyter notebook the facet-dive html will load fine. Clear the output of that cell and re-run it and then the buttons blow up:

Having the same issue, would like to know how to solve it besides hard refresh of the browser page.

Having the same issue, would like to know how to solve it besides hard refresh of the browser page.


Comparison for boolean variables in configuration is still faulty

The last attempt to fix variable comparison for environment variables in the configuration file in https://github.com/YOURLS/docker-yourls/commit/71832c631cd4cb174070d54d3136aa2e413edee8 doesn't work for booleans which have true as default value.
For example
define( 'YOURLS_UNIQUE_URLS', filter_var(getenv('YOURLS_UNIQUE_URLS'), FILTER_VALIDATE_BOOLEAN) ?: true );
will always evaluate to true, even if getenv('YOURLS_UNIQUE_URLS') is false.
Because if set to false, the statement would be:
define( 'YOURLS_UNIQUE_URLS', false ?: true );
which results in true.
The fix would be to delete the comparsion, because the filter will always return true or false. For example:
define( 'YOURLS_UNIQUE_URLS', filter_var(getenv('YOURLS_UNIQUE_URLS'), FILTER_VALIDATE_BOOLEAN));

Indeed, good catch. Thanks!
Would you like to open a PR with the fix?

I just realized, that my proposed fix would also remove the default values if the variable is not set. But I will think of another fix and create a PR.

would also remove the default values if the variable is not set

Indeed too. 😆
Sure for the PR, thanks!

X-Ref: #21


Dev

Update to 1.7.6
features:

ability to set a custom font for each single Vanilla Editor. The font is saved by the plugin settings

thank you so much -- i will try it out. very fast response.

New PR requested for #25
Implementation solution:

Add method to load automatically the editor font for the Vanilla Editor:
at VanillaEditor.gd

func _read():
 load_default_font()

[...]

func load_default_font():
 set_font(<script editor font>)

Add a getter for the font in VanillaEditor.gd
Update the FileEditor code to not overwrite a custom font if the Vanilla Editor font is already set to the default font:
at FileEditor.gd

func open_file(path : String, font : String = "null"):
 [...]
 if font != "null" and vanilla_editor.get_font() != <default_font>:
  [...]


Lists with checkboxes render badly

ext: 1.67.0
os: ubuntu 18.04.2
pr: https://github.com/Tyriar/xterm.js/pull/5

.com:

I've got the same issue on mac

and here's what it looks like on GitHub:


Latency Question

Hello,
As issue #816 states, there is some latency between capturing the image and releasing the capture to the program.
Questions:

How accurate are the latency measurements in the tables provided by Wes-b.

for example if we use 1280x720 with BGRA32, the table says that we can ecnouter a latency of roughly 68ms. But what is the error on this measurement. can it also be 80ms or 50ms sometimes?
-How can i measure this latency programatically, in our case preferably in c#.

These are rough numbers. The number will vary by content.


SQL Error : Chat plugins

Hi,
I have this error when I try to use the chat plugins :
[2017-05-12 21:25:27] [critical] Chat: SQL error: SQLSTATE[42P01]: Undefined table: 7 ERROR:  relation "chat_messages" does not exist LINE 1: SELECT "id" FROM "chat_messages"     ORDER BY "id" DESC  LIM...
And I don't see the plugins windows on the browser. Anybody have this error or It's my configuration ;).
My configuration :

Application version: 1.0.43
PHP version: 7.0.8
PHP SAPI: fpm-fcgi
OS version: OpenBSD 6.0
Database driver: postgres
Database version: 9.5.3
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0

Best regards.

You should check your installation because SQL migrations are not executed.

Hi,
I fix my problem, I create manually each table need for chat plugins and after all is correct. I don't understand why not created automatically ? Sure config.php problem ;).
Bye


What is the task switcher applet you use?

I just saw the screenshot in redesign branch, and I am really interested in that tab-like task switcher. Can you tell me how to set up it? And maybe if you can, can you tell me how do you move the window's title bar to the left?

I'm not the maintainer, but I could perhaps help triage this a bit.

I just saw the screenshot in redesign branch, and I am really interested in that tab-like task switcher.

I cannot see one in the screenshots folder. Maybe you could link to the screenshot in question?

[…] can you tell me how do you move the window's title bar to the left?

The README on the master branch used to document this. This is a feature of Awesome WM and not something that can be done inside Firefox. It's a window managers responsibility.


Add package, cdn and storybook publishing to nightly builds

This looks like it changes the location of what these commands produce. Do you know if this will affect the current publish process? :thinking:

@kminehart should be fixed by 90158d2a1e282e75c8e47ea5c7803bfcc4b675f7


godoc not properly linked in new version 1.14.6 (after installation)

Describe the bug
I just installed GO version 1.14.6 with asdf. After that (and installing godoc manually, because it is no longer default in installation) the function godoc does not work anymore. I get the following message:

asdf: No preset version installed for command godoc
Please install the missing version by running one of the following:
asdf install golang 1.14.6

To Reproduce
Steps to reproduce the behavior:

asdf install golang 1.14.6
asdf global golang 1.14.6
go get golang.org/x/tools/cmd/godoc
asdf reshim golang
godoc help (just for testing)

Expected behavior
Execute installed godoc.
Server (please complete the following information):

OS: Ubuntu Server 18.04.4 LTS

Hmm, I can't reproduce. I followed the same steps and godoc works as expected. What does your go env look like? And are you using the latest version of asdf and the plugin?

In case it is helpful...
I had the same issue. It was because I changed the GOBIN environment variable to point to a personal ~/bin folder but forgot to add this folder to the $PATH.
Running go get golang.org/x/tools/cmd/godoc installed the godoc binary in my personal ~/bin folder instead of the default .asdf one. So it was not accessible because such folder was not in the $PATH.
Make sure you have the GOBIN path in your $PATH.
go env GOBIN

Once added to the $PATH it worked perfectly.

asdf-golang is working correctly for me too (Ubuntu and Fedora).  The critical step appears to asdf reshim golang since installed utilities initially don't appear in the ~/.asdf/shim directory.

I'm not sure that there's anything else to do to totally prevent other people from running into this issue. Any ideas, or maybe I'll just close this for now?

Yeah, just wanted to document the issue.  Thanks!

👍

Step 3 works for me if it's go install golang.org/x/tools/cmd/godoc@latest


Update references to the repo name

We have changed the name of the repo to CoupledNODE.
In this PR there are the changes regarding the naming of the repo and the julia package to make it consistent.

Thanks a lot, Luisa.


Bug: Stamps.com rates are expressed in dollars in the API, ActiveShipping sometimes interprets them as cents

Before I make a PR, I'd like advice on the best approach to fixing this issue.
The code in question is https://github.com/Shopify/active_shipping/blob/master/lib/active_shipping/package.rb#L117-L131
    def self.cents_from(money)
      return nil if money.nil?
      if money.respond_to?(:cents)
        return money.cents
      else
        case money
        when Float
          (money * 100).round
        when String
          money =~ /\./ ? (money.to_f * 100).round : money.to_i
        else
          money.to_i
        end
      end
    end

When querying the Stamps.com API for rates, it returns amount values that look like 10.50 representing $10.50, for example. However, when the value is an amount of whole dollars, it looks like 10 representing $10, for example. This causes the cents_from method above to assume that the 10 is a value in cents since it doesn't contain a ..
We discovered this when a customer was charged $0.57 for a shipment from California to Finland! Whoops!
Perhaps the best way would be to have the Stamps Carrier class return this value as an instance of a class that implements a cents method. What would be best practice here?
Thanks

Oh boy. This cents_from method is super painful.
I'm going to put this in the 2.0 milestone. We should replace this with proper money parsing.


Maximize fail graph

This is a workaround for #865. Which will try to resolve a failing context with a re-ordered request for maximizing fail graph, take the example in #856, this PR will generate the following graph when --fail-graph is set.

Closing this for the comment.


⚠ Mobitopup has degraded performance

In 57d843c, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 13072 ms

Resolved: Mobitopup performance has improved in 87cd9df after 15 minutes.


closing a native port does not guarantee that no messages will be handled

Calling Dart_CloseNativePort does not guarantee that Dart_NativeMessageHandler callback will not be called again because we don't drain message queue or synchronize with message handling loop in any way. Because of that callback might continue to fire with dest_port_id set to an already closed port number.
This was broken by https://codereview.chromium.org/11440035

/cc @mkustermann


Remove duplicated parseCreateField in LuceneFieldMapper

Description
Right now, we duplicate pretty closely the logic for parseCreateField in the LuceneFieldMapper that we do in KNNVectorFieldMapper:

https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/mapper/LuceneFieldMapper.java#L79-L123
https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/mapper/KNNVectorFieldMapper.java#L547-L583

The difference is that LuceneFieldMapper will create a KnnVectorField while the KNNVectorFieldMapper will create a VectorField. Im thinking we can simplify this to implement one parseCreateField and delegate based on engine type.

@jmazanec15 do you see any reason why we have duplicated this code? I took a look at the code and the code duplication can be removed easily by having a function that can return the field type for a specific mapper.
Also I think in the KNNVectorFieldMapper this code to handle byte vectors(https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/mapper/KNNVectorFieldMapper.java#L549-L562) seems unnecessary.
@naveentatikonda do you remember any specific reason of having duplicated code?

Also I think in the KNNVectorFieldMapper this code to handle byte vectors(https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/index/mapper/KNNVectorFieldMapper.java#L549-L562) seems unnecessary.
@naveentatikonda do you remember any specific reason of having duplicated code?

Not sure if there is any easy and better way to generalize this function because the corresponding VectorField constructor(to serialize to bytes) and other functions might also needs to be generalized.

@naveentatikonda, @jmazanec15 I created the PR for refactoring, please check. 👯♂

Resolving the GH issue as the changes are merged and will be released with 2.15 version of Opensearch.


deps: migrate to @electron/notarize

Closes #3669

I am verifying it works at https://github.com/camunda/camunda-modeler/actions/runs/5265891992/jobs/9519124382

Second try: https://github.com/camunda/camunda-modeler/actions/runs/5266399516/jobs/9520272611


chore(refactor): the translation of upstream

Type of change:

[ ] Bugfix
[ ] New feature provided
[x] Improve performance
[ ] Backport patches

What this PR does / why we need it:

Backend: The code logic of this part is split into many places, and there is redundancy.

Decouple the translation of upstream, the logic of this part only exists in one place.
Delete redundant codes.

Pre-submission checklist:

[ ] Did you explain what problem does this PR solve? Or what new features have been added?
[ ] Have you added corresponding test cases?
[ ] Have you modified the corresponding document?
[ ] Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Codecov Report

Merging #1295 (4559b34) into master (4eede7e) will decrease coverage by 0.03%.
The diff coverage is 7.50%.

@@            Coverage Diff             @@
##           master    #1295      +/-   ##
==========================================
- Coverage   42.72%   42.68%   -0.04%
==========================================
  Files          73       73
  Lines        6486     6365     -121
==========================================
- Hits         2771     2717      -54
+ Misses       3418     3352      -66
+ Partials      297      296       -1

Impacted Files
Coverage Δ

...kg/providers/apisix/translation/apisix_upstream.go
100.00% <ø> (ø)

.../providers/gateway/translation/gateway_tlsroute.go
0.00% <0.00%> (ø)

pkg/providers/translation/translator.go
0.00% <ø> (ø)

pkg/providers/translation/upstream.go
11.41% <3.12%> (ø)

pkg/providers/apisix/translation/apisix_route.go
18.52% <9.43%> (-0.62%)
:arrow_down:

pkg/providers/apisix/translation/apisix_plugin.go
57.18% <100.00%> (-0.36%)
:arrow_down:

...providers/gateway/translation/gateway_httproute.go
64.10% <100.00%> (ø)

pkg/api/validation/utils.go
32.43% <0.00%> (-12.02%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

could you please resolve conflicts? thanks

Sorry for delay.
There are too many conflicts now. If you want to proceed, you need to resolve the conflict first. thanks

Since there are tons of conflicts and no updates yet, I want to put it in v1.7. thanks


Listing Articles

Good day,
I just want to know if someone could help regards to showing the articles created.
At the moment on my home page you are able to see the article headers but no images.
I'm trying to replicate the gird view so my front matter is:
layout: home

title: Welcome
article_header:
  type: overlay
  theme: dark
  background_image:
    src: /assets/home/header.jpg

articles:
  type: grid
  show_excerpt: true
  show_readmore: true
  show_info: true

on my blog page i want to replicate the "Articles - Item (Cover + Excerpt + Read More)" sample and my front matter is
layout: articles
title: Articles - Item (Cover + Excerpt + Read More + Info)
articles:
  data_source: site.sample_page
  show_excerpt: true
  show_readmore: true
  show_info: true

However here nothing is showing..
my repo can be found at https://github.com/bitVivAZ/blog
or you can live version at https://bitvivaz.com/blog
Thanks!

Okay i figure out how to do the first one.. I just had to add cover + the url of the image to my front matter! Still struggling a lot with the second one

Figured everything out thanks!


Broken Site Links

It seems that some of the entries have https://www.aecstartups.com/' prepended to them. Resulting in a link that appears as https://www.aecstartups.com/www.awesomeaecstartup.com.
A few I found are:

Kitchautomation
Kreo
Mindesk VR
PlanIT Impact
Saltmine

Thanks.
It was caused by missing http protocol on url fields.
Fixed it there for now, but I will fix on html template as well so links without protocol work too


Fix session save before redirect

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f9cda63). Click here to learn what that means.
The diff coverage is 50%.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   99.77%
=========================================
  Files             ?       18
  Lines             ?      893
  Branches          ?        0
=========================================
  Hits              ?      891
  Misses            ?        2
  Partials          ?        0


Retrieve refresh_token from httponly cookie

Hello there eveyrone,
First of all i would like to thank you for this great library :)
I have couple of questions (I might be just stupid or tired but bare with me),
Basically upon successful authentication I'm setting the cookie using Set-Cookie in an event listener that i have, it works fine and as expected, the thing is when i try to refresh the token, i need to pass the refresh_token to the /token/refresh route.
My questions are,
1 - is it okay (I assume it's not) to store the refresh token somewhere (Like localStorage) and then send it whenever i need to refresh the token?
2 - Can i add the refresh_token in the cookie that i already got from the login action to the token that i already set? if Yes then can i get that value from the cookie ? Because as far as I'm concerned by default it looks for the token in the either the request body or get parameters.
Hopefully someone could answer those question, Also sorry of this is just a duplicate issue, I've looked through some of them but none could answer my questions .
Cheers :)

Hi @konshensx16 thanks for your comments.

It's ok to save it in localStorage, or as a cookie
You could read refres_token from cookie, look at this: https://github.com/gesdinet/JWTRefreshTokenBundle/issues/132#issuecomment-461333191

Hello @markitosgv , Thank you for responding,
One more question, let's assume the user hijacked my machine and got access to the refresh_token, does that give access to my application? doesn't make sense but hackers always find a way :D.
When refreshing the application does the library check for the initial token or something like that before generating the refresh token?

@konshensx16 there is a command to revoke refresh tokens. so if some token would be compromised you could revoke it and kill the future access for the hacker. but then your jwt token should have very small lifetime

@konshensx16 as @norkunas said, there's no problem because user can revoke refresh token. Think about PHP session cookies, it's the same, someone could stole it and grant access.


Marking attendance for erica-lin.md

Notes for Reviewers

This PR fixes #

Signed commits

[ ] Yes, I signed my commits.

🚀 Preview for commit 4c1232fbc05278dfb31ecd20b7432f45de9b2852 at: https://67487aa3041fd0cb9395148a--meshery-docs-preview.netlify.app


Update tutorial-create-route-table-cli.md

Update the document, with a reference to network interface myVmNvaVMNic created by default and possible work around for the installation of traceroute on VM's.

@vuvasira : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Se traducen algunas partes del documento sobre hacer comentarios en P…

…ython
Se traducen partes de los códigos del ejemplo dados para explicar como comentar en Python

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


AP-2850: Update Ingress hosts

What
Link to story
After the EKS migration, we ended up with a variety of legacy and modern hosts on all of our services.
We agreed on a new pattern to be applied to all services in the apply namespace
A future commit will remove the legacy hosts
Checklist
Before you ask people to review this PR:

Tests and rubocop should be passing: bundle exec rake
Github should not be reporting conflicts; you should have recently run git rebase main.
There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
The PR description should say what you changed and why, with a link to the JIRA story.
You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
You should have checked that the commit messages say why the change was made.

Just in case someone had updated their local dev environment 🤷♂
Belt and braces, but probably not necessary - I think your approach is fine too


Whichway

Adds a few additional directional signs for mapping;
HOP
Food
Bar
Jani

Maybe make it say "HoP" instead of "HOP".

Maybe make it say "HoP" instead of "HOP".

Looks nice.

Better?

Yeah, it's better

How do you feel about this?
I also thought "Books" but that's so reductive. DnD? haha

LBRY is understandable enough I think


Apply metrics-server manifest to the cluster fails

The task "Apply metrics-server manifest to the cluster" fails with the following message. I'm able to run the yml as root directly on the host ...
TASK [Apply metrics-server manifest to the cluster.] ******************************************************************************************************************************************************
task path: /home/pi/raspberry-pi-dramble/tasks/k8s-services.yml:10
Using module file /usr/lib/python3/dist-packages/ansible/modules/clustering/k8s/k8s.py
<<IP_ADDRESS>> ESTABLISH SSH CONNECTION FOR USER: pi
<<IP_ADDRESS>> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=pi -o ConnectTimeout=10 -o ControlPath=/tmp/ansible-ssh-%h-%p-%r <IP_ADDRESS> '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-wxwuxpteccmvhyzdsouvqgdwqmrtfjez; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<<IP_ADDRESS>> (1, b'', b'Traceback (most recent call last):\n  File "", line 113, in \n  File "", line 105, in _ansiballz_main\n  File "", line 48, in invoke_module\n  File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 171, in \n  File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 167, in main\n  File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/raw.py", line 89, in execute_module\n  File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/common.py", line 174, in get_api_client\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 71, in init\n    self.__discoverer = discoverer(self, cache_file)\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 259, in init\n    Discoverer.init(self, client, cache_file)\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 31, in init\n    self.__init_cache()\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 78, in __init_cache\n    self._load_server_info()\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 158, in _load_server_info\n    'kubernetes': self.client.request('get', '/version', serializer=just_json)\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 42, in inner\n    resp = func(self, *args, **kwargs)\n  File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 247, in request\n    _return_http_data_only=params.get('_return_http_data_only', True)\n  File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 353, in call_api\n    _preload_content, _request_timeout, _host)\n  File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 184, in __call_api\n    _request_timeout=_request_timeout)\n  File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 377, in request\n    headers=headers)\n  File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 243, in GET\n    query_params=query_params)\n  File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 216, in request\n    headers=headers)\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 75, in request\n    method, url, fields=fields, headers=headers, **urlopen_kw\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 96, in request_encode_url\n    return self.urlopen(method, url, **extra_kw)\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 375, in urlopen\n    response = conn.urlopen(method, u.request_uri, **kw)\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen\n    **response_kw\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen\n    **response_kw\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen\n    **response_kw\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen\n    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]\n  File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 573, in increment\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9e2a250>: Failed to establish a new connection: [Errno 111] Connection refused',))\n')
<<IP_ADDRESS>> Failed to connect to the host via ssh: Traceback (most recent call last):
File "", line 113, in
File "", line 105, in _ansiballz_main
File "", line 48, in invoke_module
File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 171, in
File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 167, in main
File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/raw.py", line 89, in execute_module
File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/common.py", line 174, in get_api_client
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 71, in init
self.__discoverer = discoverer(self, cache_file)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 259, in init
Discoverer.init(self, client, cache_file)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 31, in init
self.__init_cache()
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 78, in __init_cache
self._load_server_info()
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 158, in _load_server_info
'kubernetes': self.client.request('get', '/version', serializer=just_json)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 42, in inner
resp = func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 247, in request
_return_http_data_only=params.get('_return_http_data_only', True)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 353, in call_api
_preload_content, _request_timeout, _host)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 184, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 377, in request
headers=headers)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 243, in GET
query_params=query_params)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 216, in request
headers=headers)
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 75, in request
method, url, fields=fields, headers=headers, **urlopen_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 96, in request_encode_url
return self.urlopen(method, url, **extra_kw)
File "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 375, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9e2a250>: Failed to establish a new connection: [Errno 111] Connection refused',))
The full traceback is:
Traceback (most recent call last):
File "", line 113, in
File "", line 105, in _ansiballz_main
File "", line 48, in invoke_module
File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 171, in
File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 167, in main
File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/raw.py", line 89, in execute_module
File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/common.py", line 174, in get_api_client
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 71, in init
self.__discoverer = discoverer(self, cache_file)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 259, in init
Discoverer.init(self, client, cache_file)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 31, in init
self.__init_cache()
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 78, in __init_cache
self._load_server_info()
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 158, in _load_server_info
'kubernetes': self.client.request('get', '/version', serializer=just_json)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 42, in inner
resp = func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 247, in request
_return_http_data_only=params.get('_return_http_data_only', True)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 353, in call_api
_preload_content, _request_timeout, _host)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 184, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 377, in request
headers=headers)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 243, in GET
query_params=query_params)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 216, in request
headers=headers)
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 75, in request
method, url, fields=fields, headers=headers, **urlopen_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 96, in request_encode_url
return self.urlopen(method, url, **extra_kw)
File "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 375, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9e2a250>: Failed to establish a new connection: [Errno 111] Connection refused',))
fatal: [kube1 -> <IP_ADDRESS>]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "", line 113, in
File "", line 105, in _ansiballz_main
File "", line 48, in invoke_module
File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 171, in
File "/tmp/ansible_k8s_payload_7eRJbk/main.py", line 167, in main
File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/raw.py", line 89, in execute_module
File "/tmp/ansible_k8s_payload_7eRJbk/ansible_k8s_payload.zip/ansible/module_utils/k8s/common.py", line 174, in get_api_client
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 71, in init
self.__discoverer = discoverer(self, cache_file)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 259, in init
Discoverer.init(self, client, cache_file)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 31, in init
self.__init_cache()
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 78, in __init_cache
self._load_server_info()
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/discovery.py", line 158, in _load_server_info
'kubernetes': self.client.request('get', '/version', serializer=just_json)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 42, in inner
resp = func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openshift/dynamic/client.py", line 247, in request
_return_http_data_only=params.get('_return_http_data_only', True)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 353, in call_api
_preload_content, _request_timeout, _host)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 184, in __call_api
_request_timeout=_request_timeout)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 377, in request
headers=headers)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 243, in GET
query_params=query_params)
File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 216, in request
headers=headers)
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 75, in request
method, url, fields=fields, headers=headers, **urlopen_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 96, in request_encode_url
return self.urlopen(method, url, **extra_kw)
File "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 375, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa9e2a250>: Failed to establish a new connection: [Errno 111] Connection refused',))
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1

I have the same problem.  Should this be running under python2.7 or python3?

FYI - I tried switching to python3 (ansible all -i inventory -a "ln -sf /usr/bin/python3 /usr/bin/python" -b) but I'm still getting the same error:
`TASK [Apply metrics-server manifest to the cluster.] *********************************************************************************************************************************************************
fatal: [kube1 -> <IP_ADDRESS>]: FAILED! => changed=false
module_stderr: |-
/usr/lib/python3/dist-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.26.3) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.7/dist-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1290, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1239, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f8da1fc88>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 102, in <module>
  File "<stdin>", line 94, in _ansiballz_main
  File "<stdin>", line 40, in invoke_module
  File "/usr/lib/python3.7/runpy.py", line 205, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/tmp/ansible_k8s_payload_kimn0u3s/ansible_k8s_payload.zip/ansible/modules/clustering/k8s/k8s.py", line 279, in <module>
  File "/tmp/ansible_k8s_payload_kimn0u3s/ansible_k8s_payload.zip/ansible/modules/clustering/k8s/k8s.py", line 275, in main
  File "/tmp/ansible_k8s_payload_kimn0u3s/ansible_k8s_payload.zip/ansible/module_utils/k8s/raw.py", line 171, in execute_module
  File "/tmp/ansible_k8s_payload_kimn0u3s/ansible_k8s_payload.zip/ansible/module_utils/k8s/common.py", line 200, in get_api_client
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/client.py", line 71, in __init__
    self.__discoverer = discoverer(self, cache_file)
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/discovery.py", line 259, in __init__
    Discoverer.__init__(self, client, cache_file)
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/discovery.py", line 31, in __init__
    self.__init_cache()
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/discovery.py", line 78, in __init_cache
    self._load_server_info()
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/discovery.py", line 158, in _load_server_info
    'kubernetes': self.client.request('get', '/version', serializer=just_json)
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/client.py", line 42, in inner
    resp = func(self, *args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/openshift/dynamic/client.py", line 247, in request
    _return_http_data_only=params.get('_return_http_data_only', True)
  File "/usr/local/lib/python3.7/dist-packages/kubernetes/client/api_client.py", line 353, in call_api
    _preload_content, _request_timeout, _host)
  File "/usr/local/lib/python3.7/dist-packages/kubernetes/client/api_client.py", line 184, in __call_api
    _request_timeout=_request_timeout)
  File "/usr/local/lib/python3.7/dist-packages/kubernetes/client/api_client.py", line 377, in request
    headers=headers)
  File "/usr/local/lib/python3.7/dist-packages/kubernetes/client/rest.py", line 243, in GET
    query_params=query_params)
  File "/usr/local/lib/python3.7/dist-packages/kubernetes/client/rest.py", line 216, in request
    headers=headers)
  File "/usr/local/lib/python3.7/dist-packages/urllib3/request.py", line 75, in request
    method, url, fields=fields, headers=headers, **urlopen_kw
  File "/usr/local/lib/python3.7/dist-packages/urllib3/request.py", line 96, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File "/usr/local/lib/python3.7/dist-packages/urllib3/poolmanager.py", line 375, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 796, in urlopen
    **response_kw
  File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8da1fc88>: Failed to establish a new connection: [Errno 111] Connection refused'))

module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
`

It seems to the untrained eye that the kubectl command is not issued as a root user and fails accordingly

I used the wrong ansible version. Replaced by the most recent version from pip solved the issue.

@Flattermann78 what version of ansible and pip did you end of using?


Add skip lb removal flag to DeleteRequestRequest

Add a flag that can be set on the request deletion request to avoid
removing the basepath associated with the service from the load
balancer. The suggested use case is when the application associated with
the service is moving out of Singularity, but will still be running and
should remain load-balanced.
/cc @ssalinas

👍  Let's give this one a go in staging


Added Web Scrapping Project in Machine_Learning

Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.

Issue Title
Added Web Scrapping Project in Machine_Learning

[x] I have provided the issue title.

Info about the Related Issue
What's the goal of the project?
Scrapping information related to a product listed on E-Commerce Website like Flipkart or Amazon using Python

[x] I have described the aim of the project.

Name
Please mention your name.
Aman Pathan

[x] I have provided my name.

GitHub ID
Please mention your GitHub ID.
AmanPathan

[x] I have provided my GitHub ID.

Email ID
Please mention your email ID for further communication.
<EMAIL_ADDRESS>
[x] I have provided my email ID.

Identify Yourself
Mention in which program you are contributing (e.g., WoB, GSSOC, SSOC, SWOC).
GSSOC and hacktoberfest

[x] I have mentioned my participant role.

Closes
Enter the issue number that will be closed through this PR.
*Closes: #412 *

[x] I have provided the issue number.

Describe the Add-ons or Changes You've Made
Give a clear description of what you have added or modified.
I have added a new ML project in Machine_Learning folder. It's a web scrapper used to collect information related to a product on Flipkart or Amazon.

[x] I have described my changes.

Type of Change
Select the type of change:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Describe how your changes have been tested.
The code is written in Jupyter Notebook and it is working properly and doesn't generate any errors.

[x] I have described my testing process.

Checklist
Please confirm the following:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

@AmanPathan where is the issue number that has been asked?

@AmanPathan where is the issue number that has been asked?

I have updated the issue number in the above comment and here -
Closes #412

@AmanPathan why is that you raised a PR before and then issue?

It doesn't matter whether we raise the issue first or PR. I did so because you asked for the issue number related to my PR. So, I raised an issue and assigned my previous PR to solve it.

It doesn't matter whether we raise the issue first or PR. I did so because you asked for the issue number related to my PR. So, I raised an issue and assigned my previous PR to solve it.

It matters
Raising an issue first helps ensure the problem is clearly identified and agreed upon before submitting a PR.
If we don’t raise the issue first, it can lead to confusion, especially if someone else has already raised a similar issue. If we assign that issue to another contributor, their work and effort could overlap with what you’ve proposed in your PR, which may result in unnecessary duplication of work.
Raising an issue first allows us to check if the problem you’re addressing in your PR has already been resolved or assigned to someone else.

@AmanPathan sorry but I am not accepting this PR and also the issue. You can contribute more if you want to buy first raise issue then if maintainers assign the issue to you then raise a PR. You can read our discussion announcements section for more contributing guidelines.

okay, thank you for the information. Let me create an issue first and then I will make a PR for that issue. Thank You!


first class support for csv ingestion

Summary of Changes
first class support for csv ingestion - resolves 186
Tests
What tests did you add or modify and why? If no tests were added or modified, explain why. Remove this line
Documentation
What documentation did you add or modify and why? Add any relevant links then remove this line
CheckList
Make sure you have checked all steps below to ensure a timely review.

[ ] PR title addresses the issue accurately and concisely. Example: "Updates the version of Flask to v1.0.2"

In case you are adding a dependency, check if the license complies with the ASF 3rd Party License Policy.

[ ] PR includes a summary of changes.
[ ] PR adds unit tests, updates existing unit tests, OR documents why no test additions or modifications are needed.
[ ] In case of new functionality, my PR adds documentation that describes how to use it.

All the public functions and the classes in the PR contain docstrings that explain what it does

[ ] PR passes make test

Codecov Report

Merging #173 into master will decrease coverage by 4.2%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #173      +/-   ##
==========================================
- Coverage   82.83%   78.62%   -4.21%
==========================================
  Files          59       63       +4
  Lines        2918     3074     +156
  Branches      306      312       +6
==========================================
  Hits         2417     2417
- Misses        404      560     +156
  Partials       97       97

Impacted Files
Coverage Δ

databuilder/models/column_usage_model.py
0% <0%> (ø)

databuilder/models/table_model.py
0% <0%> (ø)

databuilder/extractor/csv_extractor.py
0% <0%> (ø)

databuilder/models/column_model.py
0% <0%> (ø)

Continue to review full report at Codecov.

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


feat: add delete account option

Sorry, but I believe we rewrote the API at around the same time as this, so it's gonna need a pretty big rebase :( I'm going to close for now, but totally happy to reopen in the future


Add Debug implementations for types in library.

Would be nice if Debug implementations are provided in library to ensure that users of the library do not need to spam manual debug implementations.

Most of struct types hold a pointer. A #[derive(Debug)] will be barely useful.

Hmm okay

I'd propose to keep this open. In rust-xcb I provide a custom Debug impl for all types holding pointers.
I can look if something similar can make sense for this project.
If not, the #[derive(Debug)] would still have the benefit to allow other types holding these structs to also derive Debug.


Feature: Publish to Chocolatey

Thanks for bringing nvm capability to Windows! Could we publish this on Chocolatey to make it easier to install for system administrators?
https://chocolatey.org/

Duplicate of #17.


[Release/1.2.1]

add automated release process
add create:tag command for releasing

Is this the branch we are planning to merge into main? If so we need to clean up this messy history. Why were there direct pushing to this branch?
Anything done to this branch should be through a PR that is squashed so the history of the branch is clean.

I will work on a fix as we will not release 1.2.1 anyway, but rather go with 1.3 as we are introducing user priming and provider downtime in the next release.

Re-opened as #50 after renaming branch


Issue UX design proposals

I have some suggestions for the issue view:

add the pen button, which is used to edit comments, to issues, so one can edit issues the same way as editing comments on issues... (Currently this feature is "hidden" in the menu.)
use pull to refresh
use a material design '+' circle button bottom right to add comments
maybe add a close button to the bottom and replace the menu with a simple share button as all actions are moved somewhere else ;)

Sorry that I completely changed this issue ;)

May I add to the wish list as well? I'd like to see support for uploading & managing images, as well as some basic Markdown controls like the desktop editor has.


Update version: Microsoft.PowerShell version <IP_ADDRESS>

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: Open in CodeFlow

Hi @anamnavi,
Do you approve of these changes? The main change seems to be adding the artifact hashes as release notes.

@stephengillie sorry for the delayed response. This change is fine. It adds the DisplayName field under AppsAndFeaturesEntries...do we need to go back and add this to prior (stable release) manifests?
@mdanish-kh I know we said we need to add this for preview release manifests (I've attached the PR with the discussion for that below), but I'm wondering about stable releases in the past, will it upgrade correctly if past versions don't have this change? We'd like to add DisplayName going forward for stable releases anyways, I just want to make sure if we need to update older releases to not break upgrading I do so,
RE the discussion here: https://github.com/microsoft/winget-pkgs/pull/123693

@anamnavi Past versions do not need to have this change. As long as the DisplayName is the correct value (identical to what's written to Control Panel/Registry), it won't break any upgrade scenarios.

Close with reason: See above;


Actor registry

Create an actor registry

[x] registry Dict containing symbols with links to registered actors,
[x] can request! and send! to registered actors represented by a name (`Symbol‘),
[x] can call all API functions with a name,
[x] implement register, unregister, whereis, and registered,
[x] replace local links with remote links before sending them to remote,
[x] an actor knows its name,
[x] call unregister at actor exit,
[x] tests,
[x] documentation,
[x] examples,

The registry must work across nodes.

Therefore it resides on node 1 and establishes an a registry actor with an remote link.
If another node registers an actor, a message is sent to the registry actor.
The registry actor has to handle the registration functions.

CI running


Failed to get wifi scan results while Matter started (CON-616)

In my code I would like to trigger a wifi scan to see the RSSI of the specific AP.
Normally without matter, I can just call
esp_wifi_init()
esp_wifi_set_mode(WIFI_MODE_STA)
esp_wifi_start()
esp_wifi_scan_start
esp_wifi_scan_get_ap_num
esp_wifi_scan_get_ap_records
But after starting matter, I realize the wifi layer is controlled by matter stack
(ConnectivityManagerImpl_WIFI & NetworkCommissioningDriver)
So I instead, just call the scan start function
I got WIFI_EVENT_SCAN_DONE on the event callback sometime later
Then I call the get results functions
But I found that the RSSI information in the ap records is always 0
How can I get this RSSI like what I would do normally?
IDF 5.0.2
Matter SDK: release v1.1 commit 548ef58b604ef1df208e4a040803a4218e213103

https://github.com/project-chip/connectedhomeip/pull/27161 this PR fixed the issue but it is not added to release v1.1 branch. You can try the latest main branch. The issue should be fixed in that branch.

@eme-bennytang The above issue is merged into upstream and the submodule in esp-matter is updated to include that


ci: only set up runtime tauri deps for smoke tests

Setting up Tauri's runtime dependencies takes about a minute and is unnecessary for the Rust unit tests. The Rust Windows unit tests jobs are amongst the slowest and thus impact the overall CI runtime.
See https://github.com/firezone/firezone/actions/runs/9719218798/job/26828616349 for a recent run on main.

Do we ever set it to true anywhere? Looks like it's default false and then set to false in one job.

Ha! Good catch!