[PE-D][Tester B] Discrepency in behaviour of displayed list when performing subsequent commands after a find command

First I perform: find n/p. I have the following list:

Then I perform: delete 1. I notice as below that the list display is still filtered. Hence this is my expected behaviour

Then I perform: edit 1 n/meme. However unlike the delete command, the filtered list will reset and the display showcases all users as shown below which is a discrepancy with the other commands.

Hence I think that the display of the list should be standardised for all commands, when performing commands after a find command. This will come under a functionality bug since behavior of displayed list is not specified and differs from command to command.

Labels: severity.Low type.FunctionalityBug
original: LinkesV/ped#13

Edit UG and DG to mention that edit and add commands reset the personlistpanel


Bug Report: option data with object keys as numbers does not work

Option data with object keys as numbers does not work
Code to reproduce:
const template = await fs.promises.readFile("certificates/FinalCertificateTemplate.docx");
const { fullDate, formattedTime } = await getFormatedDateTime();
const buffer = await createReport({
    template,
    data: { "1": fullDate, "2": formattedTime },
    cmdDelimiter: "#",
});

Template: FinalCertificateTemplate.docx
Result:

In the results file, keys 1 and 2 are not replaced.
If i do the same thing but with keys as strings, result will be correct
Code to reproduce:
const template = await fs.promises.readFile("certificates/FinalCertificateTemplate.docx");
const { fullDate, formattedTime } = await getFormatedDateTime();
const buffer = await createReport({
    template,
    data: { a: fullDate, b: formattedTime },
    cmdDelimiter: "#",
});

Template: FinalCertificateTemplate.docx
Result:

In the results file, keys a and b are replaced.
For JavaScript objects keys is always strings, so it must be no difference.
Information about my stack:
I'm using Next.js version 14.2.4, with pure Node.js version 20.11.0 as the back-end. All the certificate generation logic is in the back-end part

The commands in the template are effectively javascript syntax. If you put literal numbers in a command, e.g #12#it gets executed as code so the result will be the insertion of the literal 12.
The keys of the data object are unwrapped into the global namespace of the template commands. So data.someProperty becomes available as the global variable someProperty in the template's namespace, so you can refer to it from within template commands using e.g. #someProperty#. This does not work for numbers, because variable names cant be number literals in JS. E.g. 4 = 'abc' can't work.
In light of the above, I'd say what you want to do is impossible currently. However, given that commands are essentially javascript, docx-templates supports all kinds of creative hacks. So maybe you can find something to solve your problem.

In summary: data object properties need to be valid as javascript global variable names. Literal numbers are not.

Thank you for quick response!
I understood why it doesn't work, but there is no documentation about it, and there are no errors when I run the createReport function with an invalid data object.
I think you should make a choice:

Or change this behavior. Fro example add variable data and replace  with data[] under the hood, and then execute like JavaScript code.
Or explain this behavior in documentation, add trowing error for number as key for object data or add type for data object where it will be specified.

Because now it is not possible to understand why it happens without your clarifications.


Unifi Protect cameras does not show livestream in Homekit

Current Situation
My Unifi Protect cameras does not show livestream in Homekit.
I have just installed homebridge  on my raspberrypi coming from HOOBS hoping the livestream of cameras will work smoother.
Logs
G4 Garage Side [G4 Bullet]: Streaming request from <IP_ADDRESS>: 1280x720@30fps, 299 kbps. Transcoding 1280x720@24fps (Medium) [H264], 2,000 kbps [RTSP].
[25/08/2024, 12:47:21 am] [UniFi Protect] G4 Garage Side [G4 Bullet]: Stopped video streaming session.
[25/08/2024, 12:47:21 am] [UniFi Protect] G4 Garage Side [G4 Bullet]: FFmpeg process ended unexpectedly with an exit code of 1.
[25/08/2024, 12:47:21 am] [UniFi Protect] G4 Garage Side [G4 Bullet]: FFmpeg (6.0-homebridge-alpine-aarch64-static) command that errored out was: /var/lib/homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -nostats -fflags +discardcorrupt -max_delay 500000 -flags low_delay -r 24 -probesize 16384 -avioflags direct -rtsp_transport tcp -i rtsps://<IP_ADDRESS>:7441/RdI0w8ADSXPT87Pj?enableSrtp -map 0:v:0 -c:v libx264 -preset veryfast -profile:v main -level:v 4.0 -noautoscale -bf 0 -filter:v format=yuvj420p, scale=-2:min(ih,720) -g:v 120 -bufsize 598k -maxrate 363k -crf 20 -reset_timestamps 1 -payload_type 99 -ssrc 13917716 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 8ScQHwgtHuMsQS5vbgbYFJxbf6/xMtwMLmhN4KOQ srtp://<IP_ADDRESS>:61146?rtcpport=61146&pkt_size=1378 -map 0:a:0? -acodec libfdk_aac -afterburner 1 -eld_sbr 1 -eld_v2 1 -profile:a 38 -flags +global_header -f null -ar 24k -b:a 24k -bufsize 48k -ac 1 -frame_size 720 -payload_type 110 -ssrc 711375 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Oj1Vl2VOn8LFDxhY9BKPzBc22NotJ7QRtRxtUOxe srtp://<IP_ADDRESS>:59303?rtcpport=59303&pkt_size=160
[25/08/2024, 12:47:21 am] [UniFi Protect] G4 Garage Side [G4 Bullet]: rtsps://<IP_ADDRESS>:7441/RdI0w8ADSXPT87Pj?enableSrtp: Immediate exit requested
[25/08/2024, 12:47:21 am] [UniFi Protect] G4 Garage Side [G4 Bullet]: Exiting normally, received signal 15.
Config
No response
Homebridge UI Version
v4.56.4
Homebridge Version
v1.8.4
Node.js Version
v20.15.0
Operating System
Official Homebridge Raspberry Pi Image
Environment Info
None
Raspberry Pi Model
Raspberry Pi 4 B

What mdns advertiser (in Homebridge settings) ?
And why question is here? Not on plugin repo? Do you suspect it's Homebridge UI's fault?

Sorry, this was a mistake. I will delete.


Change the way to process the

Instead of searching for a concrete tag like <pseudoimport-html /> ...
consider an attribute like <div pseudoimport-src="URI" />.

The construction:
<pseudoimport-html src="URL">
  <pseudoimport-html-src></pseudoimport-html>
</pseudoimport-html>

Doesn't fit well when mixing with
<router3 src="url">
  <router3-src></router3-src>
</router3>

For this reason, this issue must be fixed ASAP! And the expected solution must be
<router3 src="url">
  <pseudoimport-html-src></pseudoimport-html-src>
</router3>

So, <pseudoimport-html-src /> must become the unique allowed tag to define the body of an import.


replace gulp shell with node processes

Not really a need for gulp streams here to run a process. consider using spawn, fork, and child_process with gulp

I am guessing something like this: http://stackoverflow.com/a/21133455/463785?

Here is a basic child running https://github.com/johnpapa/gulp-patterns/blob/master/gulpfile.js#L494
and here is a fork to a child process
https://github.com/johnpapa/gulp-patterns/blob/master/gulpfile.js#L583-L592

@luisrudge hey, do you know about this stuff? Seems like this can potentially fix #7 and #14, maybe?

Hmm. I never used that node stuff.

I'm not sure if this issue is related to one where I can't use gulp-dnx in an OSX environment due to the spawning of the Powershell process. If not, I'll open up a new ticket. Can anyone confirm one way or the other?

@jasoncavett as mentioned in https://github.com/tugberkugurlu/gulp-dnx/issues/8#issuecomment-117840673, it might be. I am not sure, I have limited experience in this area so I need to look that up. In any case, #7 is tracking xplat support and that's the priority. I also moved to ubuntu for development now, so I actually need xplat support here :smile: So, I will get on it soon!

@tugberkugurlu Excellent! I'll keep an eye on that issue, then. Thanks so much.


Fail to build Falco eBPF module from source.

Describe the bug
I am building the Falco eBPF module from source, in this when executing 'make bpf' getting the below error:
[root@58572a5f66d4 build]# make bpf
make[5]: *** No targets specified and no makefile found.  Stop.
make[4]: *** [Makefile:18: all] Error 2
make[3]: *** [driver/bpf/CMakeFiles/bpf.dir/build.make:57: driver/bpf/CMakeFiles/bpf] Error 2
make[2]: *** [CMakeFiles/Makefile2:657: driver/bpf/CMakeFiles/bpf.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:669: driver/bpf/CMakeFiles/bpf.dir/rule] Error 2
make: *** [Makefile:381: bpf] Error 2

How to reproduce it
Follow the steps of official documents, on the below environment.
Expected behaviour
In the execution of 'make bpf', it should get the Makefile and should be executed successfully, which results the successful creation of Falco eBPF module.
Environment

Falco version: 0.23.0
OS: RHCOS
Kernel: 4.18.0-147.8.1.el8_1.x86_64

Falco version:

0.23.0

Installation method:
I'm following the steps mentioned in official documents of 'Falco' (https://falco.org/docs/source/)

You need to add the  -DBUILD_BPF=ON flag when you run cmake.
From a fresh repository here are the steps you can do to get Falco compiling the BPF probe. Note that the flags are configurable, but this is what I use on my system which has 32 CPU cores and why I use -j32
git clone git@github.com:falcosecurity/falco.git
mkdir build
cd build
cmake ../ \
      -DBUILD_BPF=ON \
      -DBUILD_WARNINGS_AS_ERRORS="OFF" \
      -DCMAKE_BUILD_TYPE="Release" \
      -DCMAKE_INSTALL_PREFIX="/usr" \
      -DFALCO_ETC_DIR="/etc/falco" \
      -DUSE_BUNDLED_DEPS=OFF
make bpf -j32

If adding the flag works for you please let us know and close the issue.

Thank you kris-nova for your reply!

You need to add the  -DBUILD_BPF=ON flag when you run cmake.

I had already added this flag with 'cmake', as it was mentioned in official documents.

From a fresh repository here are the steps you can do to get Falco compiling the BPF probe. Note that the flags are configurable, but this is what I use on my system which has 32 CPU cores and why I use -j32
git clone git@github.com:falcosecurity/falco.git
mkdir build
cd build
cmake ../ \
      -DBUILD_BPF=ON \
      -DBUILD_WARNINGS_AS_ERRORS="OFF" \
      -DCMAKE_BUILD_TYPE="Release" \
      -DCMAKE_INSTALL_PREFIX="/usr" \
      -DFALCO_ETC_DIR="/etc/falco" \
      -DUSE_BUNDLED_DEPS=OFF
make bpf -j32

I tried this approach, but still getting the same error.


Make sure all nugets publish the repo URL

https://blog.nuget.org/20180827/Introducing-Source-Code-Link-for-NuGet-packages.html

Missing

IdentityServer4.AspNetIdentity

done


Issue tending

While all you @DarkEnergyScienceCollaboration/twinkles people tend your own issues (click on your avatar to filter the list), I will wrangle the whole lot to make sure everything is assigned and labeled. Please close issues aggressively - we can always re-open them if we disagree!
Notes to self from chatting with @tony-johnson and @jbkalmbach:

[x] Re-assign issues to Run 2 milestones, and while doing so, think about any nearer milestones that could be of use
[x] Look for groups of issues that could be assigned to an Epic. The NERSC test is one example, there are bound to be others.
[ ] Look up ZenHub "Story Points" and adopt some system for estimating "complexity", so as to enable the use of Burndown Charts - these look useful for trying to ensure progress happens linearly
[ ] Try labelling by: Goal (of which we have multiple), Criticality, Opportunity ("help wanted") - and move to color scheme that brings these things out. Labels are good for 2 things: filtering the issue list, and improving visual parsing of both the list and the ZenHub board.
[ ] Clean up the watchlist, by asking old owners if they want to be removed.

This is on top of the initial tasks:

[x] Make sure all issues are assigned, labelled, and milestoned
[x] Make sure all assignees are up to date with their issue monitoring

Notes to self from chatting with @tony-johnson and @jbkalmbach:

[ ] Re-assign issues to Run 2 milestones, and while doing so, think about any nearer milestones that could be of use
[ ] Look for groups of issues that could be assigned to an Epic. The NERSC test is one example, there are bound to be others.
[ ] Look up ZenHub "Story Points" and adopt some system for estimating "complexity", so as to enable the use of Burndown Charts - these look useful for trying to ensure progress happens linearly
[ ] Try labelling by: Goal (of which we have multiple), Criticality, Opportunity ("help wanted") - and move to color scheme that brings these things out. Labels are good for 2 things: filtering the issue list, and improving visual parsing of both the list and the ZenHub board.
[ ] Clean up the watchlist, by asking old owners if they want to be removed.

Looks like "story points" are just an abstract measure of task complexity that are defined by agreement among the group. So, I can go ahead and make estimates for all issues, and everyone else can calibrate the meaning from that. I think. Then, ZenHub will make "burndown charts" for us, like this.
The ZenHub story point scale runs from 1 to 40, and looks sort of logarithmic. I'll try estimating according to 1 story point = 1 Phil-hour, and see how I get on.

OK, I have done half the issue reorg work:

Identified epics and labelled them, and their associated issues, accordingly
New labeling color scheme to try and make it easy to filter issues by epic, and also by pathfinder category.
Brought all milestones up to date, and ensured all issues are assigned

Next is to implement other labels ("criticality") and then provide links to these filterings on the README page. After that, I'll see about doing some estimates to enable burndown plots.

@tony-johnson @drphilmarshall
Looks like zenhub will now do epics which could make the organization of tasks easier
https://www.zenhub.io/blog/working-with-epics-in-github/

Nice! Looks like they implement the same functionality that our homegrown system has, with the added feature of keeping track of the story points associated with the epic. I'll upgrade each epic issue to a ZenHub epic as I do my rounds. Thanks!

BTW, currently you can only use this on Chrome.  Here is an issue to make it work with Safari:
https://github.com/ZenHubIO/support/issues/53

@tony-johnson I think you are close to being able to complete the Run 2 Data Release Milestone - would you mind taking a look and seeing if you can close all the issues this week (one way or another), please?
Likewise, @jbkalmbach and @rbiswas4 the Run 1.1 Analysis milestone should be closeable if you both manage to get light curves extracted and analyzed in time for the collaboration meeting! :-)

I'm going to close this, on the grounds that I now understand issues and ZenHub boards and how to use them. The issues will always need tending, but they are in much better shape than when we made this issue.


Create a Site-to-site VPN Connections tab

ISSUE TYPE

Enhancement Request

COMPONENT NAME
Componet:UI
Componet:api

CLOUDSTACK VERSION
4.18 nightly
4.17.2

SUMMARY
Create a Site-to-site VPN Connections tab
It will be nice list the site to site vpn connections details  under Network
It will good feature for the admin user to list all the vpn connection with the required filters
Network > Site to site vpn connections
Currently to manage VPN connections end users has to perform the following steps
Network > VPC > VPN connection >
https://cloudstack.apache.org/api/apidocs-4.17/apis/listVpnConnections.html

fixed in 9066


[WIP] PINE64: Kernel init

I am giving this a shot.
The PINE is a relatively new SoC.
I am thinking this should work similarly to the Raspberry Pi support.
A 3.10 kernel that works on the PINE can be found here:
http://forum.pine64.org/showthread.php?tid=343
The kernel needs to be built on an ARM system from what I can tell. Will use my existing Raspberry Pi to do so and then see if the kernel works on the PINE.
If anybody would like to contribute, you are more than welcome.

So mainline kernel support for the Pine64 seems to already be in progress (and maybe even committed by now): http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/403866.html.
This kernel, on the other hand is based on 3.10, which according to kernel.org went out of support in end of 2015.

Oh, I had not seen the mainline progress for the PINE. That's awesome. I may just hold out then and use an existing image until we can just make a mainline kernel image (from what I can tell, . I hope everybody is OK with me closing this then. Will revisit later :)


Inheritance principle: Include enumeration indices in source

Testing to see whether or not including enumeration indices in the source code as proposed here does or does not result in a CI complaint about formatting.

Works; but I'll defer to maintainers the conversation around whether or not this is something you want to permit / permit in this fashion / permit everywhere.
(Personally: I see no point in enumerating unless you intend on referring to a specific entry; if that's not the case, they should be bullet points instead. I'd almost prefer that appropriate enumeration in code be enforced, since if the entries / order changes, the rest of the source needs to be checked for cross-references)

Would this also lead to a rendering of list items as 5.1.2 instead of 5.a.ii? The latter is what we currently have in the PR. see also https://github.com/bids-standard/bids-specification/pull/946#discussion_r773006270


Angle picker doesn't pick angles

I guess this probably happened during a merge?

This is quite mysterious...it seems that the mousemove event is being bound, but no event is ever called.

Seems the mousemove event is getting lost here:
https://github.com/LLK/scratch-blocks/blob/develop/core/utils.js#L121
I'm surprised this isn't affecting google/blockly. Thoughts @rachel-fenichel ?

It seems to work after setting opt_noCaptureIdentifier...does that make sense?

The problem is that there's no mousedown or touchstart even that we're listening to to start the drag, so this line isn't getting hit: https://github.com/LLK/scratch-blocks/blob/develop/core/touch.js#L197
As a result, the touch identifier is staying null and the mousemoves are being ignored.
As a general rule, setting opt_noCaptureIdentifier will make these sorts of problems go away, but will break multitouch.

By break multitouch, do you mean dramatically?

Probably dramatically.  If noCaptureIdentifier is true, it won't check whether the touch is coming from the currently active finger, which can put you back to the state that blockly has previously been in.
In this case it may be okay, because we want this to work on any mousemove, not just ones that are part of an active drag.  I'll have to test it on mobile to be sure.

Assigning Carl for thoughts about hovering.

Fixing in mainline: https://github.com/google/blockly/pull/676


Add Chinese Translation for the CONTRIBUTING.md

I've added a Chinese Translation version of the CONTRIBUTING.md. However, I'm having trouble with the gitmoji rules.

If u have problems with commit stuff, check this following commit rules:
https://github.com/arvinxx/gitmoji-commit-workflow/tree/master/packages/commitlint-config#readme
I hope that help

Your commit messages must to start with a gitmoji from gitmoji.dev, then with type and then the subject

I've added a Chinese Translation version of the CONTRIBUTING.md. However, I'm having trouble with the gitmoji rules.

Hello @yt172 Welcome to the community! Thank you very much for your contribution!
Jose C.


State of the plugin

Hello Prisma Labs team,
This issue is more like a concern about the current state of the plugin as there hasn't  been any update (release) since July 2019 and there are several issues (and PRs) waiting for response.
I would like to know if there is any plan to handle these things in the short (and long) term or if this plugin is lacking maintainers to step in and take charge of reviewing and other related task.
Awaiting for any response from the team.
Cheers!

I tried all day getting this plugin running with the current version of serverless and typescript without success. Could it be that it's simply not working with the current versions?

Hi @namelesswc
I recently published a new version from my forked repo on npm: @kingdarboja/serverless-plugin-typescript
Please test it as I merged several PRs from this repo in order to solve several issues, I have tested it with latest serverless version (1.64 I think) and everything is fine! Not sure about the latest Typescript (tested on 3.6.4).
Cheers!

Hi @KingDarBoja
Unfortunately it didn't worked. I think is an issue with the way my project is setup. I have a root project folder where I install all the node modules. My serverless projects are inside subfolders like this: root/sevices/app-api.
Other modules including serverless-plugins work fine only typescript-plugin seem to have issues. Actually I'm not even sure if it is typescript. The typscript uses fs-extra which uses graceful-fs. All those modules loads but then graceful-fs starts looking for modules inside the serverless folder instead of the root folder where the modules are installed. I'll open an issue at graceful-fs and see if they have a solution

I recommend checking out @serverless/typescript and the aws-nodejs-typescript serverless template. They seem to be well supported and actively developed. Here's a great overview of getting a serverless typescript application up and running with common tooling: https://dev.to/michael_timbs/get-started-with-aws-serverless-and-typescript-5hgf


Cross platform Cocos Builder

Hi Guys!
Do you have any plans to make cocos builder cross platformed say as html5 browser editor or windows ?

Is this idea still make sense ?
as true open source project ?

I think a more reasonable approach would be to extend some existing tool to replicate the functionality.
I'm thinking it should be possible to wrote python scripts to export .ccbi format from blender.


[Question] About refresh token

Am i doing it right ? I want to refresh access token when it expires, Does it refresh token for every api call ? :
    /**
     * Spotify constructor.
     */
    public function __construct()
    {
        $this->api = $this->getToken();
    }

    private function getToken()
    {
        $session = new Session(
            'CLIENT_ID',
            'SECRET_ID',
        );

        $api = new SpotifyWebAPI();

        $api->setSession($session);
        $api->setOptions([
            'auto_refresh' => true,
        ]);

        $session->refreshAccessToken('refresh_token');

        $newAccessToken  = $session->getAccessToken();
        $newRefreshToken = $session->getRefreshToken();

        $session->setAccessToken($newAccessToken);
        $session->setRefreshToken($newRefreshToken);

        return $api;
    }

Hey!
Yes, that code will refresh the access token automatically when it detects an expired one.
Some parts of your code isn't needed though and I recommend you to store the (possibly new) access and refresh tokens somewhere (like a database or session). I'd rewrite it like this:
    /**
     * Spotify constructor.
     */
    public function __construct()
    {
        $this->api = $this->getToken();
    }

    private function getToken()
    {
        $session = new Session(
            'CLIENT_ID',
            'SECRET_ID',
        );

        // Fetch previously requested tokens and set them on the Session instance here

        if ($oldAccessToken && $oldRefreshToken) {
            $session->setAccessToken($oldAccessToken);
            $session->setRefreshToken($oldRefreshToken);
        }

        $api = new SpotifyWebAPI();

        $api->setSession($session);
        $api->setOptions([
            'auto_refresh' => true,
        ]);

        $newAccessToken  = $session->getAccessToken();
        $newRefreshToken = $session->getRefreshToken();

        // Store the new tokens somewhere else here

        return $api;
    }

Hope this helps!

@jwilsson thanks! But i dont understand this part :
if ($oldAccessToken && $oldRefreshToken) If i store this old tokens somewhere else the if condition always be true, Should i check the tokens before condition?

@foremtehan No, you don't need to check the expiration. It'll refresh them if needed. You can skip the ìf` statement if you're sure you'll always have something stored (they're not being null).

Hi @foremtehan and @jwilsson sorry to ask follow up questions on a closed issue.
I wondered how I could implement the code detailed in this issue into my simple application - e.g. say I have this simple code to run a search:
/*
-- I am keeping a record of current accessToken and refreshToken ass session variables
-- set in the callback.php file like this:

$accessToken = $session->getAccessToken();
$refreshToken = $session->getRefreshToken();

// Starting session
if(!isset($_SESSION)) { session_start(); }
$_SESSION["accessToken"] = $accessToken;
$_SESSION["refreshToken"] = $refreshToken;
*/

$session = new SpotifyWebAPI\Session(
	'CLIENT_ID',
	'SECRET_ID'
);

$session->requestCredentialsToken();
$accessToken = $session->getAccessToken();

$options = ['return_assoc' => true];
$api = new SpotifyWebAPI\SpotifyWebAPI($options);
$api->setAccessToken($accessToken);
$search = $api->search('fugazi','album');

I am not sure how I'd change my code to plug in the code that's used on this issue to refresh the access token automatically when it detects an expired one?
Sorry to be asking very basic questions. I realise I need to refresh the accessToken and have read the relevant doc but am still stuck.
Thanks!


transparent background and diagram size

Thanks for this interesting alternative to flowcharting. Just tried to bring my first flowchart diagram to life in a flow panel.
Currently, dark/light theme background seems to be usen as transparent background color. It would be great if color could be selected.
The flow does not occupy the complete panel for some reason, although I chose Fill.

I can add better screenshot and additional remarks when back at my desk.
Kind regards, Dennis

Thanks for the feedback Dennis. Could you attach your svg to the issue?  I just need the svg that demonstrates the problem so I can see how the viewport and dimensions are defined and have a play around with it.

I think the scaling problem you are seeing is caused by the width of the panel being less than the width of the svg. i.e. x scaling under 100%. I've just made a fix for that but if you can attach your svg I can check it scales properly with the fix.
Re the background color, from what I understand, your svg content isn't going to change much when switching grafana from light to a dark theme, so I'd have thought fixing a background color in the svg would make it usable regardless of the theme a user might have setup. Can you explain a bit more why setting the background color in the panel rather than the svg is the more useful solution for you?

Hi Andy,
Here is a simplified version of the SVG that has the same problem sizing problem, it appears in-line in this message but can be saved as SVG.

Regarding the background color there are a number of reasons to keep it transparent in draw.io:

It would allow to choose a different color when using it in a different dashboards
When SVG size does not exactly fit the size of the panel, the rest of the panel would get the assigned background color instead of the default panel background
Figures in documents work better without assigned background color.

Kind regards,
Dennis

Thanks. the scaling fix does work with your svg so that's good news. The review process with Grafana takes anywhere from 2 days to 3 weeks so I'll hold off submitting for a little bit to bundle other stuff in.
Still thinking about the background color. The panel is aware of whether dark or light them is selected. Is it true to say two values are wanted. i.e. a lightTheme bg color and a darkTheme bg color and then the panel would apply the appropriate one based on selected theme?

Thanks for looking into this. I don't mind testing a beta version of the plugin to check the new features.
Regarding the background color, I would really like to be able to use a custom color for the whole panel background. This would solve:

keeping the consistent background color when reshaping the panel
keeping consistent background color with SVG size is different from panel size.
make dashboards come to live with other colors besides black and white from the standard themes;-)

ok, I'll add dark & light theme background color fields to the panel yaml. I think that then meets your need. Say if there's some reason it has to be independent of the yaml and actually drivable as a panel option.

Being able to set the SVG background color in yaml would be great!
In my case it does not need to be dark/light theme dependent, for other users it might.

Background color now drivable via the yaml as of 1.6.0. https://grafana.com/grafana/plugins/andrewbmchugh-flow-panel/

I found the background setting, and it appears to work set the SVG background color but not the panel backgound itself. The scaling does not seem to work yet for my SVG, and that clearly shows that the background is confined to the SVG part of the panel.
# Version 1.6.0 onwards: When undefined the background color is not driven. When defined the color for
# the current theme is used. Colors can be entered in all the normal ways of name, hex, hsl, etc.
background:
  darkThemeColor: "yellow"
  lightThemeColor: "green"

Settings "Actual size" and "Fill all" no look almost the same:

I did a simple experiment to re-shape the dashboard panel and see the panel space at the top grow when reducing size vertically and see the SVG background grow when reducing size horizontally.
Vertically:

and horizontally:

When scaling further vertically, the SVG gets even outside the panel

I am having the same exact problem with a larger SVG. When exporting from draw.io, regardless it exports to over 5500 pixels wide. To have the width adjusted to my browser I need to grow the panel so big that the spacing above my image goes to over 850px

Re the background color, I misunderstood you. I thought this was an svg background-color request. I've just had a play and changing the background of the area available to the svg does look nicer and is straight-forward, so I'll change it to that. The background of the Highlighter and the timeSlider will be unaffected and will stay at the selected theme.
Re the scaling, I've revisited it and I think with the next tweak the behaviour is correct. I'll push another version in a few days.

In version 1.7.0 the background color terms now apply to the whole of the panel available to the svg. The only part still excluded is that reserved by the timeSlider and highlighter legend.
This version also fixes scaling. It's just better all round in this respect and whilst maintaining aspect ratio uses all the panel space available.

Great Andry,
Scaling and background seem to be working fine now, with and without slider, with and without menu highlight menu, and also when re-sizing the panel!

Kind regards,
Dennis

Great, thanks for confirming.


Support Jest collectCoverageFrom option

https://github.com/facebook/jest/issues/1211

When Jest performs code coverage, it seems to only cover the files that were tested instead of all files in my source directory. This gives a skewed percentage of files tested.

Jest 15 added a new config option for this called `collectCoverageFrom``
Can we have support for this in CRA?

We can add it to our config. Should it just look at app's src/? Would you like to send a PR?

Seems someone else raised a PR:
https://github.com/facebookincubator/create-react-app/pull/905

Any update on this ? Is the PR acceptable ? I notice its not CLA signed so does it need to be resubmitted ?

I submitted a pull request #961
Let me know if its acceptable.

Fixed in #961, will be out in 0.8.0.

It is also configurable in the next version.
https://github.com/facebookincubator/create-react-app/pull/1830

Please help beta test the new version that includes this change!
https://github.com/facebookincubator/create-react-app/issues/2172


How much GPU memory is needed to fine-tune the 7B model using LoRA?

How much GPU memory is needed to fine-tune the 7B model using LoRA?

Hi, thanks for your interest in our work! We have not tried the LoRA finetuning before. For reference, we train Oyrx-7B for full fine-tuning with NVIDIA A100 40G GPU, deepspeed zero3, 16k context length, batch size per device=2. Therefore, 40B is sufficient for LoRA fine-tuning, and you can also try on 24GB GPUs with a smaller batch size.


Document & test rollbacks

fix #296

Interesting scenario to document: A hydra-node sees a rollback past the "opening point", i.e. an open head is rolled back to not being open, we would throw away off-chain state and when rolling forward again the head is opened again .. but missing the signed snapshots. This can happen right now and is acceptable.


Error encrypting data - Cannot read property 'importKey' of undefined

I followed all steps above, to setup the sample labelling tool.
I am using the label tool as a service so not the docker. I did deploy with port 80 instead of port 3000. I can see the web page so i assume it works, i'm also able to add a connection.
Once I try to create a new project, I am getting the following error:
Error encrypting data - Cannot read property 'importkey' of undefined
Am i missing something here ? I copied the sas token from the storage explorer and selected the generate new security Token.

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

ID: 67f00138-7492-ba6e-6665-de0a6e0803f8
Version Independent ID: 3835780b-1ace-77e3-553e-a537b6084de9
Content: Quickstart: Label forms, train a model, and analyze a form using the sample labeling tool - Form Recognizer - Azure Cognitive Services
Content Source: articles/cognitive-services/form-recognizer/quickstarts/label-tool.md
Service: cognitive-services
Sub-service: forms-recognizer
GitHub Login: @PatrickFarley
Microsoft Alias: pafarley

@AndreasDL we will review your feedback and get back to you shortly. Thanks.

@PatrickFarley can you please provide guidance here on the above workflow? Thanks.

@AndreasDL Did you copy the whole SAS URL or just the token?

I got the uri from the storage explorer as explained in the documents.
It is of the form:
https://<storage_account>.blob.core.windows.net/?sv=<....>
I feel like i am missing something very obvious, but i can't figure out what. I just removed everything and started again. I copied the uri generated by the storage explorer. I am able to store the connection.
Then i created the project using the uri and api key from the keys and endpoints section of the endpoint connection. When I press safe i still get the same error.

I am getting an error message InvalidResourceNameThe specifed resource name contains invalid characters.
RequestId:a7e4a46c-801e-0074-1a3d-2edc85000000
Time:2020-05-20T00:31:14.1145257Z
I have entered a proper API URI.

Update:
If i create the labeller via the command line with the following bash code:
this is basically what is explained here: https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/label-tool
az container create \
  --resource-group "$resource_group_name" \
  --name "$name" \
  --image mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool:latest \
  --ports 80 \
  --dns-name-label "$dns_label" \
  --location "$region_name" \
  --cpu 2 \
  --memory 8 \
  --command-line "./run.sh eula=accept"

I get the following error:

However, when i deploy the labeller tool as a webapp it seems to work. This is described here. I've entered the same parameters in both. https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/deploy-label-tool

@GiftA-MSFT This looks to be a product issue. Can you reassign to @NHaiby ?
If not, @AndreasDL, please take a look at this document and post your issue to the relevant forum.

#please-close

I have done tried it today and I still get the same error.
I used docker to install the tool by following this guide. https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/quickstarts/label-tool
I installed it on amazon EC2 and I cannot proceed beyond this point !


Dart support

Dart (via Flutter) might have the best cross-platform GUI toolkit available.
It would be killer to be able to use Extism plugins.

That sounds like a great idea - completely agree! Do you have any experience writing FFI bindings in Dart and could help us out? No problem if not, just curious if it's something you're interested in working on.

I'm afraid not. But there is significant interest in wasm in that world. Maybe ask on r/dartlang.
On Dec 1, 2022 at 14:43 -0800, Steve Manuel @.***>, wrote:

That sounds like a great idea - completely agree! Do you have any experience writing FFI bindings in Dart and could help us out? No problem if not, just curious if it's something you're interested in working on.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Also, in case you're not aware, the next release of Ruby will have wasm compilation.
On Dec 1, 2022 at 16:19 -0800, @.***, wrote:

I'm afraid not. But there is significant interest in wasm in that world. Maybe ask on r/dartlang.
On Dec 1, 2022 at 14:43 -0800, Steve Manuel @.***>, wrote:

That sounds like a great idea - completely agree! Do you have any experience writing FFI bindings in Dart and could help us out? No problem if not, just curious if it's something you're interested in working on.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

And Dart is also getting wasm support.
WASM is going to take over the world. This project is super interesting.

I'm going to take a look at all of the above - I think it would be great to get this supported. Thanks for sharing the information :+1:

I was doing a bit of dart dev a while ago & built this https://github.com/brad-jones/dexecve
also https://github.com/brad-jones/dart-go
I presume dart has probably changed a bit since then. Or at least I hope it has.
I seem to remember the FFI was super basic & I ended up passing JSON between dart & go.

At least with the flutter_rust_bridge project, it's possible to pass a lot of data types across the bridge. One issue though is that nested structures need to use Box or Vec for some reason (so it's a pointer and not inlined in memory), but that might be caused by that crate itself.
Concerning the changes, I think the biggest one is null safety.

Found this: https://github.com/dart-archive/wasm
Maybe it's time for Extism to provide a plug-in system for Flutter now that Flutter WASM will soon reach stable

Dart would be a very welcome PDK. Though I think at the moment they require wasm-GC which isn't available in every runtime. Has anyone looked into this? Perhaps there is a way to flag the compile to ship with the garbage collector. That would work everywhere. Is anyone interested in taking this on?


chore: bump kubectl dep to v0.24.10

was having a deps nightmare in another project that depends on kubecfg and this will help me.
the missing OpenAPIV3 function in the interface that this required me to add was lifted from this PR: https://github.com/kubernetes/kubernetes/pull/108992 with a few changes to match the variable names here

thanks!


Missing Configuration Classes/Methods

In DotNet 6, when building a Blazor Server Application, following the examples through the doc does not follow. Given the following excerpt:
"The following code:
Calls ConfigurationBinder.Bind to bind the PositionOptions class to the Position section.
Displays the Position configuration data.
public class Test22Model : PageModel
{
    private readonly IConfiguration Configuration;

    public Test22Model(IConfiguration configuration)
    {
        Configuration = configuration;
    }

    public ContentResult OnGet()
    {
        var positionOptions = new PositionOptions();
        Configuration.GetSection(PositionOptions.Position).Bind(positionOptions);

        return Content($"Title: {positionOptions.Title} \n" +
                       $"Name: {positionOptions.Name}");
    }
}

"
I do not have access to "Configuration.GetSection..." instead, I am given the following options:

ConfigurationBuilder
ConfigurationBinder
ConfigurationSection
etc

Please update to reflect changes made in Microsoft.Extensions.Configuration library.

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

ID: 0eb4d762-3910-2c57-8741-3306c15537b6
Version Independent ID: ba2254a0-ea8e-9b28-e94b-edd0fc58c043
Content: Configuration in ASP.NET Core
Content Source: aspnetcore/fundamentals/configuration/index.md
Product: aspnet-core
Technology: aspnetcore-fundamentals
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

This all works for .NET 6. Have you downloaded the sample and tested it? You're probably missing an include.

@JustinErdmierLieberman See Bind hierarchical configuration data using the options pattern
I'm guessing you missed the step Create the following PositionOptions class: