[Specs] CollapsibleToolbarLayout

A shot at a platform-agnostic implementation of the famous collapsible toolbar layout UX.
Could implement successfully #325.
A CollapsibleToolbarLayout has 2 main properties

Name
Type
Description

Toolbar
ICollapsibleToolbar
the toolbar to be collapsed or expanded

Content
object
the body of page that will be wrapped in a ScrollViewer

interface ICollapsibleToolbar
{
	TextBlock Title { get; }

	Brush Background { get; }

	/// <summary>
	/// Called when the collapsible layout header height is changing (in fact it is just scroll up)
	/// </summary>
	/// <param name="state">The current state of the layout.</param>
	/// <param name="expandedRatio">The expanded ratio: 1 is fully expanded (the state will be Expanded), 0 fully collapsed (Collapsed), else would be InBetween.</param>
	void OnCollapsing(CollapsibleLayoutState state, double expandedRatio);
}

For now, we have the NavigationBar in the toolkit, so we could just made it implement ICollapsibleToolbar.
Now we would like also to support collapsibles background images:

I propose the following properties:

Name
Type
Description

ExpandedHeight
double
the bar height when expanded

State
CollapsibleToolbarLayoutState
enum: Collapsed, InBetween, Expanded

ExpandedTitleMargin
Thickness
the title margins when expanded

ExpandedTitleFontSize
double
the title font size when expanded

ExpandedImage
sting
the image path displayed on the background when expanded

The pseudo-xaml implementation would look like this:
<Grid>
    <ScrollViewer>
	<StackPanel>
	        <ExpandedToolbarContent>
        	<Content>
	<StackPanel>
    </ScrollViewer>

    <Toolbar>
</Grid>

Basically the 'ExpandedToolbarContent' would contain the expanded UI, the title with expanded title font size and the background image.
And we used it like this:
<CollapsibleToolbarLayout ExpandedHeight="160"
                          State="Expanded"
                          ExpandedTitleFontSize="26"
                          ExpandedImage="MontrealSnowTornado.png">
    <CollapsibleToolbarLayout.Toolbar>
        <Toolbar />
    </CollapsibleToolbarLayout.Toolbar>

</CollapsibleToolbarLayout>

Use case: from expanded to collapsed
We are in expanded state: the ExpandedToolbarContent is displaying a montreal image in the background and a title with a font size of 26, height is 160dp.
In this state the Toolbar background is transparent, and the title is hidden, its CollapsibleState = "Expanded".
Our CollapsibleToolbarLayout state = "Expanded".

Scroll up is detected. Our CollapsibleToolbarLayout and our Toolbar states = "InBetween".
Thanks to interpolation based on the bottom of the ExpandedToolbarContent respectively to the Y scroll axis we are slowly fading background from image to our toolbar background. And scaling title font size to Toolbar font size.
When the bottom of the ExpandedToolbarContent reaches the bottom of the Toolbar, we set our CollapsibleToolbarLayout state to "Collapsed". We also set Toolbar states = "Collapsed". It does make visible the Toolbar background and title.

This way we can mimic with little effort a collapsible bar.

Ah ok so this way the NavigationBar always stays static at the top of the page and we simply have content below/behind it that will simulate its extended state.
Yeah this way we can simply have the native renderers react to the DependencyProperty for the Expanded state and set its background to transparent and remove the title
Do we maybe want to expose something like an ExpandedTemplate that accepts a DataTemplate so you can define whatever you want as the layout of the expanded view, including background images, etc.?

Great idea for the DataTemplate !

An alternative version less fake, but with maybe issue with smoothness (to be tested):
Alternative for an expandable Toolbar
Instead of mocking it, we leave to the toolbar itself the responsibility to implement its behavior.
We have a attached property named ExpandableView.
ExpandedView
I propose the following properties:

Name
Type
Description

ExpandedHeight
double
the bar height when expanded

State
ExpansionState
Enum: Collapsed, InBetween, Expanded, (read-only)

ExpandedRatio
double
1 is fully expanded, 0 fully collapsed (read-only)

ExpandedTitleMargin
Thickness
the title margins when expanded

ExpandedTitleFontSize
double
the title font size when expanded

ExpandedImage
sting
the image path displayed on the background when expanded

MasterScrollViewer
ScrollViewer
the ScrollViewer that will toggle the expansion/collapsing

And we'd used it like this:
<Grid>
    <utu:Toolbar Title="Home">
        <utu:ExpandableLayout.ExpandableView>
            <utu:ExpandedView MasterScrollViewer="{x:Bind RelatedScrollView}"
                              ExpandedHeight="160"
                              State="Expanded"
                              ExpandedTitleFontSize="26"
                              ExpandedImage="MontrealSnowTornado.png" />
        </utu:ExpandableLayout.ExpandableView>
    </utu:Toolbar>
    <ScrollViewer x:Name="RelatedScrollView">
        <StackPanel Padding="0,180,0,0">
            ...
        </StackPanel>
    </ScrollView>
</Grid>

The expandable is subscribing to the ViewChanged event of the master scroll viewer, and based on the vertical offset and the ExpandedHeight will compute the expandedRatio.
The toolbar must implement a IExpandable interface:
interface IExpandable
{
	/// <summary>
	/// Called when the master scroll viewer is scrolling, inducing a modification of the expanded ratio.
	/// </summary>
	/// <param name="expandedRatio">The expanded ratio: 1 is fully expanded, 0 fully collapsed.</param>
	void OnExpansion(double expandedRatio);
}

Use case: from expanded to collapsed
We are in expanded state: the Toolbar is displaying a Montreal image in the background and a title with a font size of 26, height is 160dp, ExpansionState = "Expanded".

Scroll up is detected. ExpansionState state = "InBetween".
The ExpandedView compute the expandedRatio and calls OnExpansion on the toolbar. Thanks to interpolation, the toolbar will compute correct text margin, size, Montreal image opacity and height.
When expandedRatio == 0, the ExpansionState = "Collapsed", and our toolbar has a solid brush color as a background.

Concerns:
The mechanism resizes the toolbar height as we are scrolling: will the resizing be smooth on all platforms?
Will the sample rates of the ViewChanged event will be enough to achieve smooth resizing?
Need to do a small PoC to test this.

@kazo0 @agneszitte @Xiaoy312 I need your opinion on this :)


Directory

The content directory is for pages and blog posts, assets for images or other files, if I want to write a plugin that needs to store an output file (like a guestbook or message system or so on ), what is the correct directory for this task? For now I assume  assets\myplugin

If the filenames are guessable, I wouldn't use an assets Subfolder. I did that mistake with Calendar files in yml format.
Like the pico-comments Plugin you better use a separate folder with the according rights.

As noted by @dkyme, this depends on what you want to store there. The assets directory is commonly used as public directory with direct file downloads enabled. The content directory should be used for Markdown pages only; unless you can store your data in Markdown and let Pico interpret these files as pages, I wouldn't use it. So if neither assets nor content fits your needs, you might want to create your own directory, like the mentioned PicoComments plugin does. Just remember creating a .htaccess file (or similar) to implement some access restriction, as also noted by @dkyme.

Ok, thanks. What is the best way to deal with the images contained in a blog post? I put everything in 'assets'

What is the best way to deal with the images contained in a blog post? I put everything in assets

Yes, correct.


2D stepping stone in msprime

This is essential in deciding on my simulation approach. See issue 2100 in msprime for a description of the issue I opened.
To-do

[x] #5
[x] #6
[x] run the simple version by msprime folks
[x] #7
[x] #8

I've shifted this issue to connor-french/spaceprime#1. I'm leaving this issue up as a progress indicator for the enaylius project though


ZR300 on Nvidia Jetson TX2 not reporting IMU data

Hello everyone
I have the same problem as #539. I want to know the question has been solved?

I am facing same issue, hope this can be solved.

hi~so is there anybody already solved this problem !?
i also have this problem and stop right here around a week....
hope someone can share your solution...

hi~so is there anybody already solved this problem !?
i also have this problem and stop right here around a week....
hope someone can share your solution...


A11y_AzureDataStudioAAE_Sql Instance 1_Connection Strings_DeveloperTool: No name property is provided for the "ADO.NET Copy" button

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags: #A11yMAS;#A11yTCS;#A11ySev2;#SH_AzureDataStudio_AAE_Jun2021;#SQL Azure Data Studio;#Win10;#FTP;#DesktopApp;#DevTools;#WCAG4.1.2;#AINotInScope;
Environment Details:
Application Name: Azure Data Studio -AAE
Windows Version: Win10
Repro Steps:

Launch the application-Azure Data Studio-Insiders and install extension Azure arc and Azure data ClI
Connect to Azure Arc Controller
Tab till Azure Arc Controller tree and tab to the node present under it
Tab to child node "Sqlinstance1" and open manage and tab to "Connection Strings" page
Tab to "ADO.NET" respective "Copy" button hit "ctrl + shift + i" and check if it has name provided.

Actual:
No name property is provided for the "ADO.NET Copy" button.
similar issue is observed in the scenario given below:

PG1_Properties
PG1_Connection Strings
Sql Instance 1_Compute + Storage - Name of the spin buttons not provided
PG1_Compute + Storage - Name of the spin buttons not provided

Expected:
Name property for the "ADO.NET Copy" button should be assigned according to it's label which is "ADO.NET Copy"
User Impact:
Screen Reader users will not get the proper information about the button

Closing as not repro

GitHub Tags: #Closed;


[Feature Request] Using Browser-Geolocation for Weather Widget

Instead of manually specifying coordinates, it would be a great addition to dynamically use the Geolocation API to retrieve the user's approximated location to show the weather widget for: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API

Thanks for taking care about this!
When I completely understand this change, you can only use it to statically set the location using the geolocation API? What I meant is that always the visitor's geolocation is used when visiting the frontpage, without specifying specific coordinates in the settings.


Merge 1.2.0 branch to develop

1.update eventmesh-runtime.png、eventmesh-define.png supply project-structure.png
2.update eventmesh-runtime-quickstart.md
3.fix:rocketmq-connector tcp pub operation time out exception

the description seems not match the figure


After searching the map and clicking on a Dojo, if you go back you cannot get back to the original search.

Would make it easier if once you navigate to the Dojo listing by searching on the map that you can go back to your original search results to explore other listings nearby.

:+1:

Implemented and pushed by @butlerx


Interoperation with marked tests @pytest.mark.xyz

This is more of a question than an issue.
I have a testsuite and I am using pytest-json-report (which I like very much) to drive our custom CI testing. Our testsuite takes a really long time because of a few long-running (integration) tests. I am marking those tests as "slow" using @pytest.mark.slow, and the idea is to run all the non-slow tests first, and then, if those succeeded, also run the integration tests.
The way I am using pytest-json-report is to get a list of all the test that pytest gets when run with --collect-only and split them into a number of files that are then executed in a distributed way. Now that I'm trying to do this collection phase with the -m 'not slow' flag to select all the fast tests, I am noticing that pytest-json-report does not appear to be marking which tests were deselected by pytest.
I saw in the docs that I could use potentially use the json_metadata fixture to possibly add the slow marker manually, but I would like to avoid this duplication if possible.
Any advice on whether this is possible out-of-the-box, how to hack things together with the current capabilities of the plugin, or how I could modify the plugin to take into account deselected tests during the collection phase will be greatly appreciated.

Good point! While this could be easily done with the provided hooks, I think it makes sense to include that information by default.
So, in v1.2.0, there's now an extra deselected key for collection results.
Let me know if that works for you.
Just FYI, here is one way it could have been done with hooks (in conftest.py):
deselected = []
def pytest_deselected(items):
    deselected.extend([i.nodeid for i in items])

def pytest_json_modifyreport(json_report):
    json_report['deselected'] = deselected

Wow, that was speedy turnaround! Thanks! (I was trying my hand at it, but you were much faster)
And thanks for the explanation of how to achieve the same with hooks in conftest.py. The whole plugin architecture of pytest making more sense to me after this exercise.


Falco failing to start with kernel module not loaded

Describe the bug
Falco failing to start
[root /]# /usr/bin/falco-driver-loader --compile
* Running falco-driver-loader for: falco version=0.33.0, driver version=3.0.1+driver, arch=x86_64, kernel release=4.18.0-372.26.1.el8_6.x86_64, kernel version=1
* Running falco-driver-loader with: driver=module, compile=yes, download=no

================ Cleaning phase ================

* 1. Check if kernel module 'falco' is still loaded:
- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- OK! Unloading 'falco' module succeeded.

* 2. Check all versions of kernel module 'falco' in dkms:
- There are some versions of 'falco' module in dkms.

* 3. Removing all the following versions from dkms:
3.0.1+driver

- Removing 3.0.1+driver...
Deleting module falco-3.0.1+driver completely from the DKMS tree.

- OK! Removing '3.0.1+driver' succeeded.

[SUCCESS] Cleaning phase correctly terminated.

================ Cleaning phase ================

* Looking for a falco module locally (kernel 4.18.0-372.26.1.el8_6.x86_64)
* Filename 'falco_rhel_4.18.0-372.26.1.el8_6.x86_64_1.ko' is composed of:
 - driver name: falco
 - target identifier: rhel
 - kernel release: 4.18.0-372.26.1.el8_6.x86_64
 - kernel version: 1
* Trying to dkms install falco module with GCC /usr/bin/gcc
Sign command: /lib/modules/4.18.0-372.26.1.el8_6.x86_64/build/scripts/sign-file
Binary /lib/modules/4.18.0-372.26.1.el8_6.x86_64/build/scripts/sign-file not found, modules won't be signed
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"
Creating symlink /var/lib/dkms/falco/3.0.1+driver/source -> /usr/src/falco-3.0.1+driver
* Running dkms build failed, couldn't find /var/lib/dkms/falco/3.0.1+driver/build/make.log (with GCC /usr/bin/gcc)
* Trying to load a system falco module, if present
* Success: falco module found and loaded with modprobe
[root /]# /usr/bin/falco -v --cri /run/containerd/containerd.sock
Events detected: 0
Rule counts by severity:
Triggered rules by rule name:
Error: unable to open '/sys/module/falco/parameters/g_buffer_bytes_dim': Errno 2. Please ensure the kernel module is already loaded.

2022-11-03T10:11:20+0000 INFO --- logging initialized ---
2022-11-03T10:11:21+0000 SUBDEBUG Installed: falco-0.33.0-1.x86_64
2022-11-03T10:11:23+0000 INFO Creating symlink /var/lib/dkms/falco/3.0.1+driver/source -> /usr/src/falco-3.0.1+driver

Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
Created symlink /etc/systemd/system/multi-user.target.wants/falco.service → /usr/lib/systemd/system/falco.service.
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

How to reproduce it

Expected behaviour
Falco should come up

Screenshots

Environment

Falco version: 0.33.0

System info: {"machine":"x86_64","nodename":"###","release":"4.18.0-372.26.1.el8_6.x86_64","sysname":"Linux","version":"#1 SMP Sat Aug 27 02:44:20 EDT 2022"}

Cloud provider or hardware configuration:
OS:

Kernel: 4.18.0-372.26.1.el8_6.x86_64 #1 SMP Sat Aug 27 02:44:20 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Installation method: Kube installing from RPM

Additional context

Hi! Thanks for opening this bug report!
Mind to share how you are starting Falco? I mean, through rpm package? Through Falco docker image?

We're building our own docker image which installs it via rpm, and then runs /usr/bin/falco-driver-loader and /usr/bin/falco -v --cri /run/containerd/containerd.sock
rpm --import https://falco.org/repo/falcosecurity-3672BA8F.asc
curl -s -o /etc/yum.repos.d/falcosecurity.repo https://falco.org/repo/falcosecurity-rpm.repo

# 2. Install deps
dnf install -y /tmp/rpms/*

# 3. Install falco
dnf -y install falco
dnf upgrade -y

Thanks for the info!
So, can you issue while the kmod is loaded:
ls -la/sys/module/falco/parameters/g_buffer_bytes_dim
And paste here the output?

[root@kube-bmtl9fnd0adq142d4430-devussouthc-custome-000035d0 source]# ls -la /sys/module/falco/parameters/g_buffer_bytes_dim
ls: cannot access '/sys/module/falco/parameters/g_buffer_bytes_dim': No such file or directory

Ok thanks! Care to share what modinfo falco shows?

Btw are you starting the docker image in privileged mode? Basically, Falco needs rw access to /sys/module/falco folder.

Yeah, we've changed nothing recently after it previously working for years and this has only come up in the last couple weeks
[root@kube-bmtl9fnd0adq142d4430-devussouthc-custome-000035d0 source]# modinfo falco
filename:       /lib/modules/4.18.0-372.26.1.el8_6.x86_64/extra/falco.ko.xz
schema_version: 2.0.0
api_version:    1.0.0
build_commit:
version:        2.0.0+driver
author:         the Falco authors
license:        GPL
rhelversion:    8.6
srcversion:     8150520A5FB9859E9734934
depends:
name:           falco
vermagic:       4.18.0-372.26.1.el8_6.x86_64 SMP mod_unload modversions
sig_id:         PKCS#7
signer:         DKMS module signing key
sig_key:        62:BD:74:D0:45:10:7C:7D:2B:34:1B:06:AF:BA:89:B4:3B:40:8F:20
sig_hashalgo:   sha512
signature:      74:7A:43:85:00:26:0C:B2:07:DD:79:E6:7E:D4:93:60:18:B8:AC:1A:
		95:A6:68:0C:10:D8:A2:BB:46:BB:AC:E7:06:F7:B2:28:C4:6B:80:B5:
		1B:5B:CF:77:3F:A0:0A:20:C2:3D:5A:93:18:E3:26:8B:32:E8:3E:56:
		F0:17:43:52:74:B7:C2:29:60:0F:AD:D4:D6:E3:43:A4:25:72:9D:E3:
		4C:BD:EA:D6:29:3E:EC:EB:8E:3B:69:04:FD:8D:02:D8:D6:E0:77:4D:
		14:57:8F:E2:75:CA:E1:FB:45:63:DC:50:98:97:2F:56:62:6E:19:C6:
		C5:1F:93:70:27:D5:3E:85:B7:3C:F7:DA:F6:38:C7:D8:8B:27:B6:CE:
		25:CE:59:5F:95:96:F2:8D:86:F5:2B:14:E9:CD:37:00:13:A4:D9:09:
		17:6F:54:69:56:6F:EF:67:82:45:DF:F8:7A:60:20:25:9D:87:83:0F:
		6E:8A:4D:22:8A:2A:85:6C:30:C0:5B:D2:E5:D9:9C:93:F9:C3:D0:3B:
		79:7B:7B:C3:1B:85:2E:29:85:5A:13:79:6D:E8:22:0B:DF:2D:D4:A6:
		68:48:71:26:44:CA:32:CC:27:1C:96:86:E6:E5:C0:12:23:BD:69:26:
		E5:BD:7C:88:A5:E2:4F:FA:DE:40:08:5A:3F:F2:38:34
parm:           max_consumers:Maximum number of consumers that can simultaneously open the devices (uint)
parm:           verbose:Enable verbose logging (bool)

So, you are using the 2.0.0+driver but Falco 0.33 needs the 3.0.1+driver unfortunately.

Creating symlink /var/lib/dkms/falco/3.0.1+driver/source -> /usr/src/falco-3.0.1+driver

Running dkms build failed, couldn't find /var/lib/dkms/falco/3.0.1+driver/build/make.log (with GCC /usr/bin/gcc)
Trying to load a system falco module, if present
Success: falco module found and loaded with modprobe

Indeed it is loading the old system module that is the 2.0.0 one.
I think you need to install kernel src, given this error message:

Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

That's odd, from this message it'd suggest it's 3.0.1+driver
[root /]# /usr/bin/falco-driver-loader --compile
* Running falco-driver-loader for: falco version=0.33.0, driver version=3.0.1+driver, arch=x86_64, kernel release=4.18.0-372.26.1.el8_6.x86_64, kernel version=1
* Running falco-driver-loader with: driver=module, compile=yes, download=no

================ Cleaning phase ================

* 1. Check if kernel module 'falco' is still loaded:
- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- OK! Unloading 'falco' module succeeded.

* 2. Check all versions of kernel module 'falco' in dkms:
- There are some versions of 'falco' module in dkms.

* 3. Removing all the following versions from dkms:
3.0.1+driver

- Removing 3.0.1+driver...
Deleting module falco-3.0.1+driver completely from the DKMS tree.

- OK! Removing '3.0.1+driver' succeeded.

[SUCCESS] Cleaning phase correctly terminated.

================ Cleaning phase ================

* Looking for a falco module locally (kernel 4.18.0-372.26.1.el8_6.x86_64)
* Filename 'falco_rhel_4.18.0-372.26.1.el8_6.x86_64_1.ko' is composed of:
 - driver name: falco
 - target identifier: rhel
 - kernel release: 4.18.0-372.26.1.el8_6.x86_64
 - kernel version: 1
* Trying to dkms install falco module with GCC /usr/bin/gcc
Sign command: /lib/modules/4.18.0-372.26.1.el8_6.x86_64/build/scripts/sign-file
Binary /lib/modules/4.18.0-372.26.1.el8_6.x86_64/build/scripts/sign-file not found, modules won't be signed
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"
Creating symlink /var/lib/dkms/falco/3.0.1+driver/source -> /usr/src/falco-3.0.1+driver
* Running dkms build failed, couldn't find /var/lib/dkms/falco/3.0.1+driver/build/make.log (with GCC /usr/bin/gcc)
* Trying to load a system falco module, if present
* Success: falco module found and loaded with modprobe

We're not explicitly installing 2.0.0+driver anwyehre

It tries to build the 3.0.1 driver, but it cannot because you miss kernel src/headers for your currently running kernel:

Running dkms build failed, couldn't find /var/lib/dkms/falco/3.0.1+driver/build/make.log (with GCC /usr/bin/gcc)

Then, it fallbacks at loading a system falco module, if found (and of course, it finds the old 2.0.0 one!).

[root@kube-bmtl9fnd0adq142d4430-devussouthc-custome-000035d0 source]# rpm -qa | grep devel
libxcrypt-devel-4.1.1-6.el8.x86_64
zlib-devel-1.2.11-19.el8_6.x86_64
kernel-devel-4.18.0-372.32.1.el8_6.x86_64
glibc-devel-2.28-189.5.el8_6.x86_64
elfutils-libelf-devel-0.186-1.el8.x86_64

Is kernel-devel-4.18.0-372.32.1.el8_6.x86_64 not the right package? Is there something else I'm missing?

It seems like you are running 4.18.0-372.26.1.el8_6.x86_64 instead; most probably, you upgraded your system, that installed new kernel-devel and kernel, but you haven't rebooted to fully update the running kernel!

Are we talking the system the pod is running on here, or the container?

The system and the container share the same kernel, so you need to reboot the system one, given that it was updated ;)

I rebooted the node, no improvement. Is there a way to get it to load the system falco module @ 3.0.1?

Can you share uname -r now?

No change
4.18.0-372.26.1.el8_6.x86_64

The headers were installed during the docker image build, I'm not sure if they're even installed on the node (nor do I have access to it to check, or install). Is there any other way around it that doesn't involve the kernel headers?

Nope, unfortunately kernel-headers are mandatory to build a module against a kernel!

Is there a way of making it use the system kernel headers over the container ones, or using a prebuilt module? (I assume 2.0.0+driver was prebuilt?)
Just trying to avoid having to keep our container packages in sync with the system, as we have a large estate with quite complex deployments.
[root /]# uname -r
4.18.0-372.26.1.el8_6.x86_64
[root /]# rpm -qa | grep kernel
kernel-tools-libs-4.18.0-372.26.1.el8_6.x86_64
kernel-4.18.0-372.26.1.el8_6.x86_64
kernel-core-4.18.0-372.26.1.el8_6.x86_64
kernel-devel-4.18.0-372.26.1.el8_6.x86_64
kernel-modules-4.18.0-372.26.1.el8_6.x86_64
kernel-tools-4.18.0-372.26.1.el8_6.x86_64
kernel-headers-4.18.0-372.26.1.el8_6.x86_64

That's what's installed at the system level

Of course you can! You must share /lib/modules volume from host:
-v /lib/modules:/host/lib/modules

Thank you! I'll give that a go and report back 😄

Oh looks like we were already doing that actually.
[root modules]# pwd
/lib/modules
[root modules]# ls
4.18.0-372.19.1.el8_6.x86_64  4.18.0-372.26.1.el8_6.x86_64

...
      volumes:
...
          hostPath:
            path: /lib/modules
...
      containers:
          env:
            - name: HOST_ROOT
              value: "/host"
          securityContext:
            privileged: true
          volumeMounts:
...
            - mountPath: /host/lib/modules
              name: lib-modules
              readOnly: false

Wow then it should work :/ HOST_ROOT is also set.
Can you share ls -la /host/lib/modules/4.18.0-372.26.1.el8_6.x86_64/build?

lrwxrwxrwx. 1 root root 45 Aug 27 07:05 /host/lib/modules/4.18.0-372.26.1.el8_6.x86_64/build -> /usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64

How come falco-driver-loader cleans up any compiled drivers? As far as I can tell the driver is compiled when we do dnf -y install falco (which we do during the docker build stage)

Is there anuything under the /usr/src/kernels/4.18.0-372.32.1.el8_6.x86_64/ folder?

How come falco-driver-loader cleans up any compiled drivers?

Yep and it gets recompiled every time Falco is upgraded, when it needs to build a new driver; that's why it cleans up old driver.

[root kernels]# ls -la /usr/src/kernels/4.18.0-372.32.1.el8_6.x86_64/
total 8152
drwxr-xr-x.  23 root root    4096 Nov  4 14:21 .
drwxr-xr-x.   1 root root    4096 Nov  4 14:25 ..
-rw-r--r--.   1 root root  196170 Oct  7 17:11 .config
-rw-r--r--.   1 root root     600 Oct  7 17:11 Kconfig
-rw-r--r--.   1 root root     388 Oct  7 17:11 Kconfig.redhat
-rw-r--r--.   1 root root   61608 Oct  7 17:11 Makefile
-rw-r--r--.   1 root root    2337 Oct  7 17:11 Makefile.rhelver
-rw-r--r--.   1 root root 1366972 Oct  7 17:11 Module.symvers
-rw-r--r--.   1 root root 4362925 Oct  7 17:11 System.map
drwxr-xr-x.  26 root root    4096 Nov  4 14:21 arch
drwxr-xr-x.   3 root root    4096 Nov  4 14:21 block
drwxr-xr-x.   2 root root    4096 Nov  4 14:21 certs
drwxr-xr-x.   4 root root    4096 Nov  4 14:21 crypto
drwxr-xr-x. 137 root root    4096 Nov  4 14:21 drivers
drwxr-xr-x.   2 root root    4096 Nov  4 14:21 firmware
drwxr-xr-x.  73 root root    4096 Nov  4 14:21 fs
drwxr-xr-x.  32 root root    4096 Nov  4 14:21 include
drwxr-xr-x.   2 root root    4096 Nov  4 14:21 init
drwxr-xr-x.   2 root root    4096 Nov  4 14:21 ipc
drwxr-xr-x.  18 root root    4096 Nov  4 14:21 kernel
drwxr-xr-x.  21 root root    4096 Nov  4 14:21 lib
drwxr-xr-x.   3 root root    4096 Nov  4 14:21 mm
drwxr-xr-x.  72 root root    4096 Nov  4 14:21 net
drwxr-xr-x.  27 root root    4096 Nov  4 14:21 samples
drwxr-xr-x.  13 root root    4096 Nov  4 14:21 scripts
drwxr-xr-x.  11 root root    4096 Nov  4 14:21 security
drwxr-xr-x.  27 root root    4096 Nov  4 14:21 sound
drwxr-xr-x.  29 root root    4096 Nov  4 14:21 tools
drwxr-xr-x.   2 root root    4096 Nov  4 14:21 usr
drwxr-xr-x.   4 root root    4096 Nov  4 14:21 virt
-rw-r--r--.   1 root root 2230264 Oct  7 17:11 vmlinux.h
-rw-r--r--.   1 root root      41 Oct  7 17:11 vmlinux.id

This is our run script btw
KERNEL_SOURCE="$HOST_ROOT/usr/src"

# shellcheck source=/dev/null
source "$HOST_ROOT/etc/os-release"
if [ "$PRETTY_NAME" == "Red Hat" ]
then
    KERNEL_SOURCE="$HOST_ROOT/usr/src/kernels"

    for i in "$KERNEL_SOURCE"/*
    do
        base=$(basename "$i")
        ln -s "$i" "/usr/src/kernels/$base"
    done
fi

for i in "$KERNEL_SOURCE"/*
do
    base=$(basename "$i")
    ln -s "$i" "/usr/src/$base"
done

for i in "$HOST_ROOT/lib/modules"/*
do
    base=$(basename "$i")
    ln -s "$i" "/lib/modules/$base"
done

/usr/bin/falco-driver-loader

So I've had some progress. The nodes have now been updated to match the version on the container (not going to be the long term solution). This gets the module building correctly, but it seems to have issues unloading the falco module before building and insmoding the module when built. Any ideas what would cause this? It also appears that falco starts after this regardless, but falco exporter never reports as ready.
* Running falco-driver-loader for: falco version=0.33.0, driver version=3.0.1+driver, arch=x86_64, kernel release=4.18.0-372.32.1.el8_6.x86_64, kernel version=1
* Running falco-driver-loader with: driver=module, compile=yes, download=yes

================ Cleaning phase ================

* 1. Check if kernel module 'falco' is still loaded:
- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

- Kernel module 'falco' is still loaded.
- Trying to unload it with 'rmmod falco'...
- Nothing to do...'falco-driver-loader' will wait until you remove the kernel module to have a clean termination.
- Check that no process is using the kernel module with 'lsmod | grep falco'.
- Sleep 5 seconds...

[WARNING] 'falco' module is still loaded, you could have incompatibility issues.

* 2. Check all versions of kernel module 'falco' in dkms:
- There are some versions of 'falco' module in dkms.

* 3. Removing all the following versions from dkms:
3.0.1+driver

- Removing 3.0.1+driver...
Deleting module falco-3.0.1+driver completely from the DKMS tree.

- OK! Removing '3.0.1+driver' succeeded.

[SUCCESS] Cleaning phase correctly terminated.

================ Cleaning phase ================

* Looking for a falco module locally (kernel 4.18.0-372.32.1.el8_6.x86_64)
* Filename 'falco_rhel_4.18.0-372.32.1.el8_6.x86_64_1.ko' is composed of:
 - driver name: falco
 - target identifier: rhel
 - kernel release: 4.18.0-372.32.1.el8_6.x86_64
 - kernel version: 1
* Trying to download a prebuilt falco module from https://download.falco.org/driver/3.0.1%2Bdriver/x86_64/falco_rhel_4.18.0-372.32.1.el8_6.x86_64_1.ko
* Trying to dkms install falco module with GCC /usr/bin/gcc
Sign command: /lib/modules/4.18.0-372.32.1.el8_6.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...
DIRECTIVE: MAKE="'/tmp/falco-dkms-make'"
Creating symlink /var/lib/dkms/falco/3.0.1+driver/source -> /usr/src/falco-3.0.1+driver

Building module:
Cleaning build area...
'/tmp/falco-dkms-make'.....
Signing module /var/lib/dkms/falco/3.0.1+driver/build/falco.ko
Cleaning build area...

falco.ko.xz:
Running module version sanity check.
 - Original module
   - Found /lib/modules/4.18.0-372.32.1.el8_6.x86_64/extra/falco.ko.xz
   - Storing in /var/lib/dkms/falco/original_module/4.18.0-372.32.1.el8_6.x86_64/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /lib/modules/4.18.0-372.32.1.el8_6.x86_64/extra/
Adding any weak-modules
depmod....
* falco module installed in dkms
* falco module found: /var/lib/dkms/falco/3.0.1+driver/4.18.0-372.32.1.el8_6.x86_64/x86_64/module/falco.ko.xz
* Trying insmod
* Unable to insmod falco module
* Trying to load a system falco module, if present
* Success: falco module found and loaded with modprobe

Just managed to exec into the pod early enough and it looks like falco is running early for some reason, so I'll investigate that

Okay got it building, from our run script they changed the pretty name so "$PRETTY_NAME" == "Red Hat" was no longer evaluating for true. However, not in the all clear yet. falco_exporter doesn't seem to be able to talk to it on gRPC?
[root /]# /usr/bin/falco-exporter
2022/11/10 13:06:57 connecting to gRPC server at unix:///run/falco/falco.sock (timeout 2m0s)
2022/11/10 13:06:57 listening on http://:9376/metrics
2022/11/10 13:08:57 gRPC: error dialing server: context deadline exceeded

Hurray!!!
Are you using latest falco-exporter release?
We moved Falco socket to another location; you will need https://github.com/falcosecurity/falco-exporter/releases/tag/v0.8.0 (see https://github.com/falcosecurity/falco-exporter/commit/7aa0a13fcbcf69c4e6ee3bae21c281673e4dee9e commit)!

Oh wow, can't believe I missed that! Yep that's done the trick! Thanks so much for all your help, really appreciated 😄

You are welcome! I am sorry it took so long :(

Aha it's all good, turned out to all be user error in the end anyway!


Make datasets without secondary image

This should probably be a new library function and an option to datagen.py, but this is not entirely clear.
The purpose is to make ML with roulette parameters smoother.

This is no longer relevant as far as I can see.  Closing issue.


Referring logging config file from Config server meet 401

Describe the bug
Summary
With
  <properties>
    <java.version>11</java.version>
    <spring-cloud.version>Hoxton.SR8</spring-cloud.version>
  </properties>

when put  the application.properties in config server, it's able fetch and luanch the app.
when add logging.config=${spring.cloud.config.uri}/${spring.application.name}/default/master/logback.xml in application.properties, and also put logback.xml  file in Config Server, but when fetch the logback.xml, it would meet 401 error.

Details

Create an azure spring cloud service with the config server which need certificates and authentication.
Then put the application.properties, logback.xml file in the Config server.
add a settings in application.properties such as: logging.config=${spring.cloud.config.uri}/${spring.application.name}/default/master/logback.xml  refer to the logback.xml.

As I know, the Hoxton.SR8 can fetch the application.properties correctly, while fetch logback.xml would meet issue as below:
"message"":""Error opening logging config file https://myapp.svc.azuremicroservices.io/config/application/default/master/logback.xml"",""logger_name"":""org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration"",""thread_name"":""main"",""level"":""WARN"",""level_value"":30000,""stack_trace"":""java.io.IOException:
Server returned HTTP response code: 401 for URL:
https://myapp.svc.azuremicroservices.io/config/application/default/master/logback.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
at java.net.URL.openStream(URL.java:1068)
at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.reinitializeLoggingSystem(PropertySourceBotstrapConfiguration.java:143)
at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:126)\n\tat org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at com.ethoca.eliminatorissuerapi.EliminatorIssuerApiApplication.main(EliminatorIssuerApiApplication.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)\n"",""projName"":""[MYAPP]""}

I've checked the Hoxton.SR8's code, when it load logback.xml file, it goes through:
public void initialize(ConfigurableApplicationContext applicationContext) {

    while(true) {
        Collection source;
        do {
            do {
                if (!var5.hasNext()) {
                    if (!empty) {
                        // ....
                        this.reinitializeLoggingSystem(environment, logConfig, logFile);   <----Here
                        // ....
                    }
                    return;
                }
            } while(source == null);
        } while(source.size() == 0);
}

Then
private void reinitializeLoggingSystem(ConfigurableEnvironment environment, String oldLogConfig, LogFile oldLogFile) {
     // ....
            ResourceUtils.getURL(logConfig).openStream().close();   <--- Here!!
     // ....
    }
}

While by URL, it would try to use net.URL to access this resource without auth.
public static URL getURL(String resourceLocation) throws FileNotFoundException {
    Assert.notNull(resourceLocation, "Resource location must not be null");
    if (resourceLocation.startsWith("classpath:")) {

    } else {
        try {
            return new URL(resourceLocation);  // <-- Access here by a normal net call.
        } ...
    }
}

Here is no auth with a normal URL() call, so it would meet a 401 error.
It makes a little confused that:

application.properties
logback.xml

both are located on Config Server with authenticate required, but application.properities loaded success, while logback.xml load with failure.
When load the logback.xml, it may also need to go-through the correct path to fetch the certificates and authentication to avoid 401 error.
Sample

https://github.com/krish-gh/azure-spring-cloud-test

ResourceUtils is a framework class. I suggest writing a BootstrapConfiguration that gets the logging configuration ahead of time as we have no plans to implement that.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spencergibb thanks for your feed back. I want double check is BootStrapConfiguration. Is BootStrapConfiguration usage as below?
@Configuration
public class MyBootstrapConfiguration implements PropertySourceLocator {

    private static final Logger log = LoggerFactory.getLogger(BootstrapConfigurer .class);
    /**
     * @param environment the current Environment
     * @return a PropertySource or null if there is none
     * @throws IllegalStateException if there is a fail fast condition
     */
    @Override
    public PropertySource<?> locate(Environment environment) {
        // fetch and set the config XXXX.
    }
}

Then add line in META-INF/spring.factories:
org.springframework.cloud.bootstrap.BootstrapConfiguration=\
com.xxx.MyBootstrapConfiguration


MB-5547 Create standalone DDASIT service items

Description
This PR allows for the creation of standalone DDASIT service items in CreateMTOServiceItem, provided that a DDFSIT service item has already been added for that shipment.
Setup
The server tests have been updated to add test cases for this functionality.
go test ./pkg/services/mto_service_item --testify.m "TestCreateDestSITServiceItem" -v

You can also create a DOASIT Service Item using Postman.

You must first make the associated move APPROVED in the db.
Some fields will be null/not updated because there is still work pending to update the payload to model functions.

Code Review Verification Steps

[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change.

Messages

:book:
:link: MB-5547

  Generated by :no_entry_sign: dangerJS against db9f734d6f9c85d9bb280fcc2b9bc2f24f2e3b56


Fix GCR errors

What did you implement:

Fix make test error
Fix fetch GCR manifests error
Update go.sum

How Has This Been Tested?

run make dtest
run reg manifest to GCR repository
run reg manifest to Docker repository
run reg manifest to ECR repository

Description
Fix make test error
Currently "*.gcr.io/v2/" don't support ping even if users have auth tokens.
$ curl -H "Authorization: Bearer $(gcloud auth print-access-token)" "https://gcr.io/v2/"
{"errors":[{"code":"UNAUTHORIZED","message":"Unauthorized access."}]}%

$ curl -H "Authorization: Bearer $(gcloud auth print-access-token)" "https://gcr.io/project/repo/manifests/tag"
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
...

// valid auth token

This error has been occurring since 2 months ago on Travis-CI.
https://travis-ci.org/genuinetools/reg/jobs/496258846
https://travis-ci.org/genuinetools/reg/jobs/496787700
Fix fetch GCR manifests error
https://github.com/genuinetools/reg/issues/137
GCR only accept Qvalue=1(default value).
I deleted Q value on an Accept header because I can't find why this project using q=0.9.
// fail
$ curl GET -sL -H "Accept: application/vnd.docker.distribution.manifest.v2+json;q=0.9" -H "Authorization: Bearer $TOKEN" "https://gcr.io/v2/project/repository/manifests/tag"
{"errors":[{"code":"MANIFEST_UNKNOWN","message":"Manifest with tag 'latest' has media type 'application/vnd.docker.distribution.manifest.v2+json', but client accepts 'application/vnd.docker.distribution.manifest.v2+json;q=0.9'."}]}%

// success
$ curl GET -sL -H "Accept: application/vnd.docker.distribution.manifest.v2+json;q=1" -H "Authorization: Bearer $TOKEN" "https://gcr.io/v2/project/repository/manifests/tag"
$ curl GET -sL -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -H "Authorization: Bearer $TOKEN" "https://gcr.io/v2/project/repository/manifests/tag"

@jessfraz Hello. I’d love your feedback. Thanks

thanks!!

@tomoyamachi I have the same problems with GCR, those accept headers you commented were introduced in #130, thanks for this PR, I can now use GCR again :+1:


Preserve device portrait orientation while casting in landscape mode

I'm not entirely certain if this qualifies as a feature request, but I often searched the documentation and discovered that "scrcpy" actually maintains the device's original orientation.
The intended behavior is as stated in the title; keeping the device in portrait orientation while scrcpy should mirror the device in landscape mode; the application system's window+device screen both in landscape mode.
Why? I think it's a bit lazy to have to physically adjust the device's orientation every time I start "scrcpy", meanwhile, I prefer to interact with the phone in portrait mode as I switch to scrcpy I'd like it in landscape mode.

See --lock-video-orientation: https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#rotation

the issue is --lock-video-orientation=1 behaves the same as --rotation=1; that is, it rotates the window of scrcpy (affects the display) not the mirroring orientation. However, if I press alt+r it changes the device orientation to landscape along with the display of my computer.

Have you tried the app Orientation Control?


Meta: please create a communication channel for community discussions

I just understood that the mailing list was closed - but why? Is this project going to die?
There is now no communication channel - I would like to read about experiences people have made with this software collection and maybe ask a few things that are not issues. An issue tracker is different to a maling list.
No, please no Slack - if you like chat, then please use the much better https://zulipchat.com/

Zulip Cloud Standard is free for open source projects and affiliated institutions.

Thanks!

+1 to slack or discord


Select correct source addr in the UDP socket

Fixes issue where UDP source address is UNSPECIFIED. I saw that this method was used in the TCP socket.

Closed because we need a better fix!


feat: add attributes to input and wrapper component

Description
Resolves #2438.

Create IDs for items in dropdown
Add aria-activedescendant attribute to input to identify to assistive technologies which item in the dropdown is being focused
Add aria-live=”assertive” to wrapper component to allow screen readers to read out the number of options in the dropdown

Deploy Preview
https://deploy-preview-2570--paragon-openedx.netlify.app/components/form/form-autosuggest/
Merge Checklist

[x] Is there adequate test coverage for your changes?
[x] Consider whether this change needs to reviewed/QA'ed for accessibility (a11y). If so, please add wittjeff and adamstankiewicz as reviewers on this PR.

Post-merge Checklist

[ ] Verify your changes were released to NPM at the expected version.
[ ] If you'd like, share your contribution in #show-and-tell.
[ ] 🎉 🙌 Celebrate! Thanks for your contribution.

@adamstankiewicz just to verify/document decisions from Paragon WG today:

make name a required prop for autosuggest
ensure we generate unique ids (something like autoSuggestName-uuid) to set aria-activedescendant

@brian-smith-tcril @httpsmenahassan

make name a required prop for autosuggest

I'd like to better understand how and why name is used today. It looks like it is only passed to a feedback-for attribute, but on a quick search, I'm struggling to find any documentation on if this is a standard attribute related to a11y. I haven't seen feedback-for used on the FormControlFeedback component before...
If we truly need it, then we'll need to consider making it a required prop. Ideally, though, the solution for generating unique IDs wouldn't rely on the prop as if it did, we'd need to make a breaking change to make the name (or otherwise) prop required.

ensure we generate unique ids (something like autoSuggestName-uuid) to set aria-activedescendant

If the ID is guaranteed to be unique based on a uuid, I don't think the name bit above is relevant? FWIW, we generate a UUID for use in React key attributes in some places to ensure uniqueness:
import { v4 as uuidv4 } from 'uuid';

We also use this newId function in Paragon (source) to generate unique IDs in some places.

@adamstankiewicz if we can avoid making name a required prop and instead just do the uuid thing that works perfectly imo

:tada: This PR is included in version 21.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


cross flickers between trials

I remember we did something about this but the problem is still there... Maybe I have a false memory.


Use alternate method for getting fast subset of rows

Problem

PR #474 introduced an approach to creating a pseudo-random subset by ordering the primary query on identifier. Unfortunately, while I thought the index on identifier would help out, it appears that the query still takes an incredibly long time to return results.
Description

We don't really care about true randomness or even an exact number of records selected, so we could potentially use an approach like this involving TABLESAMPLE_SYSTEM to get a fast subset: https://stackoverflow.com/a/8675160/3277713. One thing to consider here is ensuring this is robust during integration testing and copies sufficient data in that case as well. It may be necessary to base the estimate off table count and provide a bare minimum number of rows.
Alternatives

Additional context

Implementation

[ ] 🙋 I would be interested in implementing this feature.

This relates to milestone 1.2.0 in the catalog repo: https://github.com/WordPress/openverse-catalog/milestone/2


feat: disable by filetype

This fixes #77 by allowing users to disable precognition based on the filetype of the buffer.
The values in the default table were taken directly from hardtime, but they may be redundant based on the existing functionality of is_blacklisted_buffer. If that's the case, I'm open to trimming it down.

Thanks for the PR!


Bots appear to shoot into the sky when attacking in some places?

https://github.com/T-Rizzle12/Custom-Gmod-Bot/assets/145967852/9c5f9d05-883f-48ba-8ef6-d30f0a1d8250
https://github.com/T-Rizzle12/Custom-Gmod-Bot/assets/145967852/0f1ec7c2-1a9f-4188-b1a2-4266953dd64b
https://github.com/T-Rizzle12/Custom-Gmod-Bot/assets/145967852/cece87b4-c52e-4497-90a7-81cd084fa1d0
This only happened in some places of the maps, I don't know why because there is nothing in the sky? I don't see this happen in other maps so far?
Maps I played:Another Universe (Part 4) and Another Universe (Part 8)
Addons used:Only Custom Gmod Bot

It looks like the issue is created by an entity labeled npc_enemyfinder. Thankfully, the source SDK forces the npc_enenmyfinder to have the no-draw flag. I should have made the bot ignore entities with no-draw set so I will include a fix in the next update.

@Gvbavx
Just want to check, did the recent update resolve this issue?

@Gvbavx Just want to check, did the recent update resolve this issue?

Yes, they don't attack entities with the nodraw flag set anymore


Implement a DecodeJson block

@SamuelSarle To note, this PR didn't update lib/protoflow-blocks/src/block_config.rs and lib/protoflow-blocks/src/block_tag.rs which still need to be done. Grep for all instances of "EncodeJson" (and "EncodeJSON", the external name) to make sure you have parity.


Adding over-capacity animation on the css

Adding the animated progress bar for the over-capacity CSS state in the status progress bar.

Reviewer: @pierlo-upitup

Looks great 👍

<adds 4th party tag>


Fix with_terminal() by adding args...

Such that with_terminal(dump, [1,2,3]) works
Thank you for opening a Pull Request at PlutoUI.jl!
Before contributing code
Note that your code will be Unlicensed when added to PlutoUI.jl, not MIT licensed like contributions to Pluto.jl. Take a look at our license: https://github.com/fonsp/PlutoUI.jl/blob/main/LICENSE

Looks good! Can you add a new cell to the notebook where you run this example?

Yes! I just created a new pull request #151 (don't know how to change this pull request so I think it's better for me to create a new one).
Sorry for being late, I didn't turn on phone notification :)


Add link to table of contents

Not sure this is useful as the link will be automatically generated on the website (when it will be done).

@soyuka I think it will a little to much and something solved as the new site will be launched.
@dunglas we're putting the next/previous chapters so it's more to avoid breaking the navigation.

Agree with @dunglas


Data not pre-fetched on Routes

Routes break down when the url is visited directly instead of from the nav tree. E.g Redux store not populated when http://localhost:8080/district/414 is visited directly.

District level refresh works. But block/cluster fail. Please check.

This is done.. I think we can close this.


Extensibility API command for moving cursor to line.

I'm working in a vscode extension and I would like to open a file with the cursor in a given line (just as the -g flag of the command line tool). I've been looking at the API commands and I don't see any command that does this.
The solution that I was looking at was the following:
private openFileAtLocation(filename: string, lineNumber: number): Q.Promise<any> {
    return Q(vscode.commands.executeCommand("vscode.openFolder", vscode.Uri.file(filename))).then(() => {
        vscode.commands.executeCommand("workbench.action.gotoLine", lineNumber);
    });
}

but the workbench.action.gotoLine only opens the Go to Line dialog. Is there any support for this feature in the API? or can this command be modified so that if a line number is provided as an argument it automatically jumps to the line?
Thanks!

Maybe you can try to do like this.
let editor = vscode.window.activeTextEditor;
let range = editor.document.lineAt(lineNumber-1).range;
editor.selection =  new vscode.Selection(range.start, range.end);
editor.revealRange(range);

revealRange is the way to go on this.


Add subnet validations for DoS resistance

Addresses #1595
Quick details for clarity on what was added/changed:

beacon_block

prevent multiple beacon blocks from same proposer in a slot

committee_index_beacon_attestation

prevent multiple attestations from same participant in a slot

aggregate_and_proof

aggregator signs aggregate_and_proof and broadcasts SignedAggregateAndProof. verify this signature in addition to the proof and attestation sig
prevent multiple aggregate_and_proofs from same aggregator in a slot

cc @AgeManning @mkalinin
Thanks for the input on the issue. Take a look here if you have a moment


RD2: Create one Schedule per RD during legacy to enhanced RD data migration

Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata

**lurch: attach W-037458

Tracking W-037458

@Julian88Tex , changes are read for testing.

Testing has passed and WI has been merged to master: https://foundation.lightning.force.com/lightning/_classic/%2Fa2x1E000001HoVKQA0


feat(ci): Add a shared setup workflow

Resolves #11
Create a separate setup workflow that can be reused in other workflows.
I had to remove env variables from the build and pr workflows since they don't propagate to a nested workflow. From the GitHub docs:

Any environment variables set in an env context defined at the workflow level in the caller workflow are not propagated to the called workflow

I also tried to pass them like this:
env:
  DEFAULT_TAG_VERSION: "latest"

default_tag_version: ${{ env.DEFAULT_TAG_VERSION }}

but got the following error:
The workflow is not valid. .github/workflows/build.yaml (Line: 16, Col: 28): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DEFAULT_TAG_VERSION

The best solution I found is to define the parameters in the workflow run arguments.

@sabre1041 can you please take a look as well?

/approve
/lgtm


fixed SXSSFWorkbook can not clear temp files when it called Dispose() on the IWorkbook interface.

The floowing code generates 2 temp files and is not automatically cleaned. This change fixes the problem.
IWorkbook workbook = new SXSSFWorkbook();
var sheet = workbook.CreateSheet();
var row = sheet.CreateRow(0);
row.CreateCell(0).SetCellValue("test");

var sheet2 = workbook.CreateSheet();
var row2 = sheet2.CreateRow(0);
row2.CreateCell(0).SetCellValue("test");

workbook.Dispose();

You should apply using on SXSSFWorkbook. Then dispose will call Close method. It makes sense.
using(IWorkbook workbook = new SXSSFWorkbook())
{
 ...
}

I  Know, but the close method only close the file, cleaning temp file only seen in the dispose method.
You can test it, the temp file cannot currently be cleaned using the IWorkbook dispose.


ansible teardown playbook

How about a redo teardown target ;)?

offering redo patch for redo teardown:
diff --git a/tools/build/redo b/tools/build/redo
index dc7e344..84dc9fa 100755
--- a/tools/build/redo
+++ b/tools/build/redo
@@ -231,6 +231,10 @@ Components = [
                   modes = 'clean',
                   gradle = True),

+    makeComponent('teardown',
+                  'teardown all deployed containers',
+                  yaml = 'teardown.yml'),
+

can you put your commit on top of mine?

sure i'll squash into your commit.

Merged as https://github.com/openwhisk/openwhisk/commit/115663229dfe87312ad1e56609ca6c6eeef280ed with redo teardown.


contribution file add

#13  done

Looks great. Can you add the link to the contribution.md file in a suitable location so that users can see the content of that file as well.
It's your choice. Either using hyperlink or combining both in a single readme.md file, as GitHub allows to display only readme.md file by default.

Yea, that would be fine as long as it's not too lengthy. The contents of the contribution.md file will be displayed first followed by the readme.md file. Maintain the smooth flow of reading for the users from the beginning to the end.

check it now


Add support for disabling jobserver

There is currently a bug in jobserver (https://github.com/alexcrichton/jobserver-rs/issues/4) which breaks certain windows-gnu builds when an incompatible make is on the system. For situations like this it would be great if there was a way to disable the jobserver support, at least until the jobserver crate is more stable.

Unfortunately this is how parallelism limiting works and can't be disabled. It's also why we have nightly! Bugs should be fixed now.


Does pywinauto work with Flutter?

Flutter is for cross-platform application development. It allows you to develop applications for linux, android, iOS, windows. And so I would like to know if pywinauto is capable of working with applications written in flutter? I am primarily interested in linux

I don't know, but Pywinauto Recorder only works on Windows.

Current release 0.6.8 doesn't work well on Linux. Hope next major release 0.7.0 from atspi branch could do it better, but I didn't try any Flutter app or don't remember it. I'm not very actively finishing atspi branch so there is no exact release date unfortunately since it is a hobby project.

So, what is the main enhancement from 0.6.8 to 0.7.0 ?


[Bug] Cannot send array of Items with Firebase Analytics event

Description
This issue was called out here, 4 years ago: https://github.com/firebase/quickstart-unity/issues/713
There are several ecommerce events like "purchase", "view_cart", and "view_item_list" which expect to receive an array of items.  Under the Unity SDK, sending these events does not appear to be possible.
Reproducing the issue
No response
Firebase Unity SDK Version
12.1.0
Unity editor version
2019.4.16f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics
Other Firebase Component(s) in use
No response
Additional SDKs you are using
No response
Targeted Platform(s)
Apple Platforms
Unity editor platform
Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
No response
If using CocoaPods for Apple platforms, the project's Podfile.lock
No response

Thanks for bringing this up to my attention, @Kevin-Hamilton. This looks like a long running bug, let me reach out to our engineers and see if we get some feedback.

I would say the quickstart thread was the wrong place to report this and perhaps why it did not get attention sooner, since it is an issue with the SDK. So it seems like closing that thread and keeping this one open makes more sense to me. But I will defer to your judgement, as I don't know how the developer resources are organized around these projects.  Thanks for bringing it up with the engineers.

Well said, @Kevin-Hamilton. I'll close the quickstart thread instead. We'll keep you posted, once we get updates.

finally! do it please!

Alright, it is finally in with the latest release, 12.4.0, https://github.com/firebase/firebase-unity-sdk/releases/tag/v12.4.0
For an example on how to use it, you can see https://github.com/firebase/firebase-unity-sdk/blob/446d14173a224464e6df865a2bcc86e5fa69a6b7/analytics/testapp/Assets/Firebase/Sample/Analytics/UIHandler.cs#L121


Added some guards to keep execution in a node context from throwing ReferenceErrors

My team is using react-filepond in a React UI kit, and we love it! There's one issue we ran into with server-side-rendered applications that imported our implementing component: we'd get ReferenceErrors for performance, window and document. These guards here make it so our component renders fine on the server and works in the browser.

@swansong Thanks for reporting! If I understand correctly the navigator object is available on your node instance? Maybe it's defined by another module?
I found this Stack Overflow answer that can help detect a browser environment, I like the solutation so will probably go with that:
https://stackoverflow.com/a/31090240/1774081
As the source is not in the repository yet I'll make the changes to the source files and publish a new version later this week or at the start of the next.

@swansong I've updated the code with this check
const isBrowser = new Function('try {return this===window}catch(e){return false}');

Will publish a new version later today. Unfortunately, the source files are not in the repo just jet so I'll have to close the pull request.

Just published version 2.3.0


Add support for self-signed certificates

We have HAProxy setup between the datadog agents and datadoghq which is using a self-signed certificate.
At the moment there is no provision on this line given below to pass OpenSSL::SSL::VERIFY_NONE or something similar to handle self-signed certificates in case of HAProxy or similar:
https://github.com/DataDog/dogapi-rb/blob/9ccd737200d693a5a817f04b32b3c00aec6c8697/lib/dogapi/common.rb#L99
Please note: The root CA is already installed at the global os level.
Raising this issue so we can add support in this gem once the related issue (to add support) in dogapi is resolved:
https://github.com/DataDog/dogapi-rb/issues/243
We can achieve this by either reading a chef attribute or using the datadog.yaml config (skip_ssl_validation: true) or something similar to make it work.

Ruby uses the system trust store, so it should accept your self-signed certificate if it's trusted by the system and it's valid (ie: it matches the domain name it's being used for, it's not expired, the chain of trust is correct...).
Note that you can set node['datadog']['url'] to point it to your HAProxy address, instead of trying to "intercept" traffic for datadoghq.com (since your self-signed certificate might not be valid for datadoghq.com, which might be the problem) and both the Agent and chef-handler-datadog will use that setting.
Adding an option to disable SSL verification to dogapi-rb is not out of the equation (given that such an option exists in the Agent), but note, however, that this disables most of the security you get by using TLS and it is strongly discouraged.

Hi @albertvaka ... thanks for responding.
The system trust store has the valid cert as I can run curl and wget without any issues.
We are already setting node['datadog']['url'] to HAProxy address that's why its picking up the HAProxy address and failing because of the self-signed certificate. I can confirm that it is point to the HAProxy address in the agent datadog.yaml file.
We are ok with either adding disable SSL verification or explicitly passing the trust store location which would mean that you may need to update the client initialisation with it if set.

The following code is what dogapi-rb does in ruby. Can you run this from irb and tell us if it fails with the same error?
uri = URI.parse('<yourInternalEndpoint>')
session = Net::HTTP.new(uri.host, uri.port)
session.use_ssl = (uri.scheme == 'https')
req = Net::HTTP::Get.new('/api/v1/metrics')
resp = session.request(req)

Sorry to insist on this 🙏 but I really want to understand what's going on, even if disabling SSL works for you. The code above should be really similar to doing a curl, so I'm even more confused if curl works but this doesn't.

$ /opt/chef/embedded/bin/irb
irb(main):001:0> uri = URI.parse('https://<REDACTED>:<PORT>')
irb(main):002:0> session = Net::HTTP.new(uri.host, uri.port)
Traceback (most recent call last):
        4: from /opt/chef/embedded/bin/irb:23:in `<main>'
        3: from /opt/chef/embedded/bin/irb:23:in `load'
        2: from /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/irb-1.2.3/exe/irb:11:in `<top (required)>'
        1: from (irb):2
NameError (uninitialized constant Net)
Did you mean?  Set
irb(main):003:0> require 'net/http'
=> true
irb(main):004:0> session = Net::HTTP.new(uri.host, uri.port)
irb(main):005:0> session.use_ssl = (uri.scheme == 'https')
irb(main):006:0> req = Net::HTTP::Get.new('/api/v1/metrics')
irb(main):007:0> resp = session.request(req)
Traceback (most recent call last):
       10: from /opt/chef/embedded/bin/irb:23:in `<main>'
        9: from /opt/chef/embedded/bin/irb:23:in `load'
        8: from /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/irb-1.2.3/exe/irb:11:in `<top (required)>'
        7: from (irb):7
        6: from /opt/chef/embedded/lib/ruby/2.7.0/net/http.rb:1483:in `request'
        5: from /opt/chef/embedded/lib/ruby/2.7.0/net/http.rb:932:in `start'
        4: from /opt/chef/embedded/lib/ruby/2.7.0/net/http.rb:943:in `do_start'
        3: from /opt/chef/embedded/lib/ruby/2.7.0/net/http.rb:1009:in `connect'
        2: from /opt/chef/embedded/lib/ruby/2.7.0/net/protocol.rb:44:in `ssl_socket_connect'
        1: from /opt/chef/embedded/lib/ruby/2.7.0/net/protocol.rb:44:in `connect_nonblock'
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate))
irb(main):008:0>
$ wget 'https://<REDACTED>:<PORT>/api/v1/metrics'
--2020-12-07 19:06:48--  https://<REDACTED>:<PORT>/api/v1/metrics
Resolving <REDACTED> (<REDACTED>)... <REDACTED>...
Connecting to <REDACTED> (<REDACTED>)... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-12-07 19:06:48 ERROR 404: Not Found.

$

@albertvaka - output above. I've also provided wget output that's working.
I agree that we could use http given its all suppose to be internal however there's a company-wide mandate to use https everywhere.

👍 Thanks a lot for your help, it really looks like Ruby and wget don't act the same way... 😕  I don't want to annoy you with more questions, so I will implement the fix now and add to my backlog to investigate this Ruby problem with a custom CA later. Thanks for your patience 🙇

Can you try the new version? If you are using chef to deploy the handler you should pass default['datadog']['handler_extra_config'] = { : skip_ssl_validation => true }.


Improving default verbosity

This commit aims to reduce/improve the default ('INFO') verbosity.
Most of the INFO logging was changed to DEBUG.
In additional, created a new argument 'enable_logging_info' in the
send_remote_command_batch and send_remote_command methods to
permit to select which remote commands we want to print to INFO verbority
or DEBUG verbority.

Output looks like that:
`
$ avhclient -b aws execute --specfile VHT-GetStarted/basic/avh.yml
[INFO]  avh:aws backend selected!
[INFO]
[INFO]  Preparing instance...
[INFO]  =============================================================================
[WARNING]       aws:AWS_DEFAULT_REGION environment variable not present!
[INFO]  Found credentials in environment variables.
[INFO]  aws:Selecting AMI version 1.1.2, AMI ID ami-07715f97142507478
[INFO]  aws:Backend successfully initialized!
[INFO]  aws:Creating EC2 instance...
[INFO]  aws:EC2 instance i-04c986c05863d66ba created!
[INFO]  aws:Setting up the instance...
[INFO]  aws:Setting up the workspace...
[INFO]
[INFO]  Uploading workspace...
[INFO]  =============================================================================
RTE/Device/SSE-300-MPS3/startup_fvp_sse300_mps3.c
build.py
RTE/Device/SSE-300-MPS3/system_SSE300MPS3.c
RTE/Device/SSE-300-MPS3/device_cfg.h
RTE/Device/SSE-300-MPS3/region_limits.h
main.c
RTE/Device/SSE-300-MPS3/platform_base_address.h
vht_config.txt
requirements.txt
RTE/Device/SSE-300-MPS3/region_defs.h
RTE/Device/SSE-300-MPS3/cmsis_driver_config.h
RTE/Device/SSE-300-MPS3/fvp_sse300_mps3_s.sct
RTE/Device/SSE-300-MPS3/RTE_Device.h
retarget_stdio.c
README.md
basic.debug.cprj
[INFO]
[INFO]  Executing...
[INFO]  =============================================================================
[INFO]  --------------------------------------------------------------------------------
[INFO]  aws:send_remote_command:CommandId = 79253eb8-844a-4ed2-af32-604e24e5f234
[INFO]  aws:send_remote_command:CommandIdStatus = Success
[INFO]  aws:send_remote_command:CommandList = runuser -l ubuntu -c 'source /home/ubuntu/vars && pushd /home/ubuntu/workspace && /home/ubuntu/script-tawyfjge.sh'
[INFO]  aws:send_remote_command:StdOut = ~/workspace ~
Defaulting to user installation because normal site-packages is not writeable
Collecting python-matrix-runner~=1.0
Downloading python_matrix_runner-1.0.2-py3-none-any.whl (28 kB)
Collecting junit-xml~=1.9
Downloading junit_xml-1.9-py2.py3-none-any.whl (7.1 kB)
Collecting allpairspy~=2.5
Downloading allpairspy-2.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting psutil~=5.8
Downloading psutil-5.9.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 283.8/283.8 KB 3.5 MB/s eta 0:00:00
Collecting ansicolors~=1.1
Downloading ansicolors-1.1.8-py2.py3-none-any.whl (13 kB)
Collecting junitparser~=2.2
Downloading junitparser-2.4.3-py2.py3-none-any.whl (10 kB)
Collecting parameterized~=0.8
Downloading parameterized-0.8.1-py2.py3-none-any.whl (26 kB)
Collecting colorlog~=6.6
Downloading colorlog-6.6.0-py2.py3-none-any.whl (11 kB)
Collecting filelock~=3.4
Downloading filelock-3.6.0-py3-none-any.whl (10.0 kB)
Collecting tabulate~=0.8
Downloading tabulate-0.8.9-py3-none-any.whl (25 kB)
Requirement already satisfied: lxml~=4.6 in /usr/local/lib/python3.8/dist-packages (from python-matrix-runner~=1.0->-r requirements.txt (line 5)) (4.7.1)
Requirement already satisfied: colorama~=0.4 in /usr/lib/python3/dist-packages (from python-matrix-runner~=1.0->-r requirements.txt (line 5)) (0.4.3)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from junit-xml~=1.9->-r requirements.txt (line 6)) (1.14.0)
Collecting future
Downloading future-0.18.2.tar.gz (829 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 829.2/829.2 KB 19.2 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: future
Building wheel for future (setup.py): started
Building wheel for future (setup.py): finished with status 'done'
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491070 sha256=8719d98e451ea0ebce3b3dc1a940c6bc3957ee6c820a0444ad268dc1527033d7
Stored in directory: /home/ubuntu/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
Successfully built future
Installing collected packages: tabulate, parameterized, ansicolors, psutil, junit-xml, future, filelock, colorlog, allpairspy, junitparser, python-matrix-runner
Successfully installed allpairspy-2.5.0 ansicolors-1.1.8 colorlog-6.6.0 filelock-3.6.0 future-0.18.2 junit-xml-1.9 junitparser-2.4.3 parameterized-0.8.1 psutil-5.9.0 python-matrix-runner-1.0.2 tabulate-0.8.9
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[33m/usr/bin/bash -c cbuild.sh --quiet basic.debug.cprj←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[1/12] Building C object CMakeFiles/basic.dir/home/ubuntu/workspace/main.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[2/12] Building C object CMakeFiles/basic.dir/home/ubuntu/workspace/retarget_stdio.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[3/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/ARM/V2M_MPS3_SSE_300_BSP/1.2.0/CMSIS_Driver/Driver_USART.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[4/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/Keil/ARM_Compiler/1.6.3/Source/retarget_io.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[5/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/ARM/V2M_MPS3_SSE_300_BSP/1.2.0/Board/Device_Definition/device_definition.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[6/12] Building C object CMakeFiles/basic.dir/home/ubuntu/workspace/RTE/Device/SSE-300-MPS3/system_SSE300MPS3.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[7/12] Building C object CMakeFiles/basic.dir/home/ubuntu/workspace/RTE/Device/SSE-300-MPS3/startup_fvp_sse300_mps3.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[8/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/ARM/V2M_MPS3_SSE_300_BSP/1.2.0/Native_Driver/uart_cmsdk_drv.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[9/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/Arm-Packs/Unity/1.0.0/src/unity.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[10/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/Arm-Packs/Unity/1.0.0/extras/fixture/src/unity_fixture.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[11/12] Building C object CMakeFiles/basic.dir/home/ubuntu/packs/Arm-Packs/Unity/1.0.0/extras/memory/src/unity_memory.o←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32m[12/12] Linking C executable basic.axf←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[32mProgram Size: Code=6428 RO-data=2212 RW-data=40 ZI-data=2608←[0m
←[34m[debug]←[35m(build:run_cbuild)←[0m ←[33m/usr/bin/bash succeeded with exit code 0←[0m
←[34m[debug]←[35m(build)←[0m ←[32mArchiving build output to basic-20220413112406.zip...←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[33m/opt/VHT/VHT_Corstone_SSE-300_Ethos-U55 -q --stat --simlimit 1 -f vht_config.txt Objects/basic.axf←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mFast Models [11.16.24 (Nov  4 2021)]←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mCopyright 2000-2021 ARM Limited.←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mAll Rights Reserved.←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mtelnetterminal2: Listening for serial connection on port 5000←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mtelnetterminal5: Listening for serial connection on port 5001←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mtelnetterminal1: Listening for serial connection on port 5002←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mtelnetterminal0: Listening for serial connection on port 5003←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m    Ethos-U rev afc78a99 --- Aug 31 2021 22:30:42←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m    (C) COPYRIGHT 2019-2021 Arm Limited←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m    ALL RIGHTS RESERVED←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m---[ UNITY BEGIN ]---←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m/home/ubuntu/workspace/main.c:57:test_my_sum_pos:PASS←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m/home/ubuntu/workspace/main.c:58:test_my_sum_neg:PASS←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m/home/ubuntu/workspace/main.c:48:test_my_sum_fail:FAIL: Expected 2 Was 0←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m/home/ubuntu/workspace/main.c:60:test_my_sum_zero:PASS←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m-----------------------←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m4 Tests 1 Failures 0 Ignored←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mFAIL←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m---[ UNITY END ]---←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mInfo: /OSCI/SystemC: Simulation stopped by user.←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m[warning ][main@0][01 ns] Simulation stopped by user←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m--- cpu_core statistics: ------------------------------------------------------←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mSimulated time                          : 0.029351s←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mUser time                               : 0.064752s←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mSystem time                             : 0.003302s←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mWall time                               : 0.164914s←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mPerformance index                       : 0.18←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32mcpu_core.cpu0                           :  43.13 MIPS (     2935143 Inst)←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[32m-------------------------------------------------------------------------------←[0m
←[34m[debug]←[35m(run:run_vht)←[0m ←[33m/opt/VHT/VHT_Corstone_SSE-300_Ethos-U55 succeeded with exit code 0←[0m
::set-output name=badge::Unittest-3%20of%204%20passed-yellow
←[33m←[0m
←[33mMatrix Summary←[0m
←[33m==============←[0m
←[33m←[0m
←[33m←[34mtarget←[0m    ←[35mbuild←[0m    ←[35mrun←[0m

←[1;34mdebug←[0m     ←[32msuccess←[0m  ←[33m3/4←[0m
[INFO]  aws:send_remote_command:StdErr =
[INFO]
[INFO]  Downloading workspace...
[INFO]  ============================================================================
RTE/_basic.debug/RTE_Components.h
Objects/basic.axf
Objects/basic.axf.map
basic-20220413112406.xunit
basic-20220413112406.zip
[INFO]
[INFO]  Teardown instance...
[INFO] =============================================================================
[INFO]  aws:Terminating EC2 instance...
`


Setting min/max values

Is it possible to set min/max values for charts?
Doing simple line charts for temperature measurements, I always have a min y value of 0, even if my minimum value is around 25, makes the chart look bad.

Hi @MichaelAronsen
Not currently but I can look into this.

I've gotten this implemented for the v2 release this fall. So far I've only implemented for the line chart - I don't know that it would make sense for bar charts. Let me know if you have any additional thoughts on this.


Output aws_launch_template.default.name

Describe the Feature
Add aws_launch_template_default.name to outputs.tf.
Expected Behavior
Results in the ability to obtain the launch template name created by this module.
Use Case
If an autoscaling tool like karpenter is used for eks workers, this module should return the launch template name created for the workers in the node group so that it can be passed to karpenter to ensure consistency across nodes.
https://karpenter.sh/docs/aws/provisioning/#launchtemplate

I will have a PR up for this shortly.


Instructions for cross-compiling to Pi are out of date

The instructions on this page no longer work:
https://github.com/dart-lang/sdk/wiki/Building-Dart-SDK-for-Raspberry-Pi
It now says:
The --toolchain flag is only supported by the gyp build.
When using the GN build, set the toolchain and sysroot using gn.py.

...but it doesn't say what that actually means so I'm not really sure where to go from here.

In fact most of the wiki pages about how to build Dart are out of date.

The following steps seemed to work, after downloading the toolchain mentioned on the wiki page, except that I then ran into https://github.com/dart-lang/sdk/issues/29676:
tools/gn.py --arch=arm --toolchain-prefix=arm=/home/ianh/dev/pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- --mode release
tools/build.py --arch=arm --mode release

I'll update the Raspberry Pi instructions after the fix for #29676 lands.

I've cloned the repository. But tools folder does not contain gn.py file.

tools/gn.py is in the Dart SDK tree.

Thanks, I'm new to Raspberry Pi and it looks I need to read more to understand how all it works. Do you know if there are any instructions how to install dart sdk on the latest Raspberry Pi 3 B?

On a Pi 3, one of our pre-built arm64 SDK builds may work: https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.2/sdk/dartsdk-linux-arm64-release.zip

Updated the Wiki page.

I've tested that pre-built SDK yesterday but when I'm typing ./dart --version I'm getting an error -bash: ./dart: cannot execute binary file: Exec format error.


Hex Package

Make sure the repo is rebar3-compatible and its deps are also hex.pm packages, then publish it on hex.pm using inaka's hex.pm account.

I also…

upgraded erlang.mk
added hexer.mk and inaka.mk
added meta-testing
upgraded elvis.config
upgraded the deps
bumped the version


Add CI build against custom Spring Framework versions

Spring Webflow currently builds against Spring Framework 6.0.x. To validate that the code base also works with 6.1.x and 6.2.x, we'd like to add a CI workflow that tests against those.

I've updated the version to 6.1.14.


MyLocation v0.08: Allow setting location from webinterface in the AppLoader

Allow setting location from webinterface in the AppLoader

looks great - thanks!


Update plugin-anatomy.md

Minor typo

Oh! Thank you for fixing this!
I re-organized the repository a bit so there's a conflict now (sorry for not seeing your PR earlier 🙏 ). Would you mind syncing the latest changes and updating the PR?


auto grow all columns?

is this possible? i've tried it by adding the fitcolumn plugin for each column but it ends up laying out really bad. i think this is a super common use case - i just want to render data in a table, i don't care how wide anything is because the width will vary depending on what i render. if i have one column that has super long values and one with some small values it would handle that nicely.

@tafel Luckily you can only fit so many rows on a page, and if you draw each page one at a time you could quite easily buffer a page worth of rows, compute the sizes, then render the page. Just a thought - if out of scope for this library feel free to close this issue.


Feat Multiplier bug come back in version 1.3.12 / 1.3.13

Describe the bug
Since the upgrade from version 1.3.11 to version 1.3.12 and later version 1.3.13 of Toy Box, the bugs with the feat multiplier reappeared, where every time that uses the feat multipler in any of companions, the feats apply retroactively or present the well-known strange effects in the choice of the feats.
But in version 1.3.11, the feat multiplier remains stable, aside the issue of recommendable feats that were automatically selected but didn't show up on the abilities page.
Version Info:

ToyBox Version: 1.3.12 / 1.3.13

1.3.14 I'm having this bug too, feat multiplier is applying to previous levels including background selection.

1.3.17 same.
it also happens cockblock you by fake selecting features
for example:
if Feature multi 2> Seelah always "pick" longsword weapon focus,but she does not get it,but you cant select it in feature selection,because the game already "took" it. if multi is set to 1 then longsowrd is pickable.

1.3.17 same. it also happens cockblock you by fake selecting features for example: if Feature multi 2> Seelah always "pick" longsword weapon focus,but she does not get it and you cant select it in feature selection,because the game already "took" it. if multi is set to 1 then longsowrd is pickable.

Actually I'm pretty sure they do actually get those feats it's just you have no control over them and it can take some ones that just make the character more cluttered without helping, like rapid shot on a zen archer. Try saving before leveling and then checking if she is getting the bonus +1 to attack rolls.

in my test they dont but i tested only level feats,not class feats.

Hey so I am facing the same issue. For all companions when I use the slider a bounch of feats are added during levelup but not at the end. This does not happen with the PC. An example with Sheelah in the first level ups:

She starts level 1 without Weapon Focus - longsword:

I level her up to level 2 and at the final result page Weapon Focus - longsword is magically added. I did not pick it up, there were no options for feats at that level.

After the level up the Weapon Focus - longsword is not in Sheelah's feat list:

Then I level here up to level 3. During level up I cannot select Weapon Focus - longsword because the game thinks that it was already selected.

The result screen for level up to 3 also contains Weapon Focus - longsword.

The final feat list for Sheelah does not contain Weapon Focus - longsword.

So what I think is happening is that the game sees that there should be 10 feats per level that gives feats. It also sees that the companion does not have enough feats.  But only during level up. The fake feats are not actually added to the companion when level up finishes. But since the game thinks that those feats are added it does not allow us to add them normally. So we cannot pick Weapon Focus - longsword during levelup.
I hope this will help you fix this issue. It is a bit annonying to not be able to use this feature with companions.
.


Add raw result to Kraken api call response

Hi, i'm developing a trading engine which is working with my own kraken client and i'd like to adopt this project!
First implementation i need i to have a raw response from the kraken api calls, because for example every 4 hours i save the file obtained in order to have weeks of data ready for backtesting.
For this reason if you agree i will do a PR with these implementations in bold italic
-in KrakenREsponse.cs
/// <summary>
/// Gets or sets the raw result of a request.
/// </summary>
public string Response { get; set; }
-in KrakenClient.cs
private async Task<KrakenResponse<T>> SendRequest<T>(HttpRequestMessage req, RateLimiter rateLimiter, int cost)
.....
// Deserialize response.
string jsonContent = await res.Content.ReadAsStringAsync().ConfigureAwait(false);
var result = JsonConvert.DeserializeObject<KrakenResponse<T>>(jsonContent, JsonSettings);
result.Response = jsonContent;

Hi, @romeop555
I don't see any issues with that currently. We have the raw json string in memory already, so why not. Only downside I could come up with is if we later wanted to move to a streaming deserialization, it might incur unnecessary overhead.
Anyway, I'd be happy to merge the PR. But perhaps be even more explicit and name the property RawJson or something similar. Reading the following feels unintuitive:
KrakenResponse<TradeBalanceInfo> response = await client.GetTradeBalance();
Console.WriteLine(response.Response);


[WIP] link and joint properties are editable

Though link and joint names can be modified directly on the graphical element by double-clicking, they can have additional properties. e.g. in case of joints axis and origin need to be set, which are set to defaults when a joint is created. With this PR, by clicking on the graphical element, a property view opens, which allows modifying these properties.

closing in favor of https://github.com/ipa-hsd/kinematics-glsp/pull/10


add new logo

Set text in about descriptions "SubSearch — fast and easy way to find right words in YouTube videos"
Change url https://subsearch-git-master-uwynell.vercel.app to https://subsearch-theta.vercel.app (shorter)


run-notebook command not found after install sagemaker-run-notebook

Hi all,
I successfully installed sagemaker-run-notebook using the below command
$ pip3 install https://github.com/aws-samples/sagemaker-run-notebook/releases/download/v0.19.0/sagemaker_run_notebook-0.19.0.tar.gz --user
but I failed to run the command
$ run-notebook create-infrastructure
-bash: run-notebook: command not found

Appreciate any comments. Thanks!

I am able to find the path where the package is in and the package is there. But still cannot run the command...

Close as solved!


offloading of __ecp_nistz256_mul_montq

we perform a test with s_server  (openssl v 3.1.0)  that uses engine 0.6.17 .
we connect to it using cipher ECDHE-ECDSA-AES256-GCM-SHA384 .
we observe that the operation __ecp_nistz256_mul_montq  uses a lot of CPU time, and the question is : should not it be offloaded to hardware?
below is a backtrace  of the call .
I guess that this function is called  by EC_POINT_get_affine_coordinates()  (from qat_ecdsa_do_sign) .
Can you please comment on this ?
thank you!
#0  0x00007ffff768cae0 in ecp_nistz256_mul_mont ()
   from /disk/opt/openssl31/lib64/libcrypto.so.3
#1  0x00007ffff768e9e8 in ecp_nistz256_get_affine.part ()
   from /disk/opt/openssl31/lib64/libcrypto.so.3
#2  0x00007ffff6ad9d70 in qat_ecdsa_do_sign (
    dgst=0x7fffffffe0d0 "'\376\261\254b\177\365\205H]\276\264\262\277;e\236\071\023\235\266?\361!\375O!\030\352a\004\223\260ku", dgst_len=32, in_kinv=0x0, in_r=in_r@entry=0x0,
    eckey=eckey@entry=0x7084e0) at qat_hw_ec.c:1187
#3  0x00007ffff6adaa0e in qat_ecdsa_sign (type=<optimized out>, dgst=<optimized out>,
    dlen=<optimized out>, sig=0xfffffffe <error: Cannot access memory at address 0xfffffffe>,
    siglen=0x7fffffffe0c0, kinv=<optimized out>, r=0x0, eckey=0x7084e0) at qat_hw_ec.c:1014
#4  0x00007ffff780ac8f in ecdsa_digest_sign_final ()
   from /disk/opt/openssl31/lib64/libcrypto.so.3
#5  0x00007ffff76d8e3d in EVP_DigestSignFinal () from /disk/opt/openssl31/lib64/libcrypto.so.3
#6  0x00007ffff7bad746 in tls_construct_server_key_exchange ()
   from /disk/opt/openssl31/lib64/libssl.so.3
#7  0x00007ffff7b9cc13 in state_machine () from /disk/opt/openssl31/lib64/libssl.so.3
#8  0x00007ffff7b6c8f4 in SSL_do_handshake () from /disk/opt/openssl31/lib64/libssl.so.3

@vitalyk-radware Co-ordinates conversion offload to Hardware is not supported  hence it is done using OpenSSL,


Import/Export a task functionality

For different purpose it is very convenient to be able to import/export an annotation task to/from CVAT. For example, it can be used for debugging. Also it will help to get "all images" inside one archive.

It was implemented: https://github.com/openvinotoolkit/cvat/pull/3056. I will close the request.

Sorry to post a comment here, but seems there is a limitation on this functionality. I have different tasks backups that I'd like to import to a project. They share the same annotation space, but I couldn't do it.


chore(renovate): Adjust renovate configurations

test prefix for test dependencies
enable postUpdate go related commands

Signed-off-by: grzesuav<EMAIL_ADDRESS>

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


Statics and methods are all overwritten

If the parent model has
schema.statics = {a: '1', b: '2'};
and the child has
schema.statics = {b: '1', c: '2'};
Then the resulting statics should be {a: '1', b: '1', c:'2'} (i.e. methods should be overridden on a case-by-case basis). But in fact none of the parent's values are inherited.
Same goes for schema.methods
The current way around this is for the child to have
schema.statics.c = '2';```

...which is frustrating & esoteric syntax.

Thanks!

@jamesgpearce 's suggestion is the way I'd expect it to work. Will accepting this behaviour be a problem regarding @saatchiCEO point of view?

I'd say jamesgpearce is right... I'm uploading a PR just to illustrate it

Would it be possible to have a "super" object to get access to the parent method definitions?
Then I would be able to do the following:
MySchema.methods.myMethod = function() {
    var result = this.super.myMethod();
    // ...
    // Further process or extend results here
    // ..

    return result;
}

Sounds good. Unfortunately, I do not have the time to maintain this, please feel free to send a PR!

Hi @sieira,
Because I need to start my older node.js as node --harmony_proxies --harmony to use this module, and the discriminator method is available for a while already, I created (just now) my own module that I open sourced here.
Super works a bit different in this library than proposed earlier :
MySchema.methods.myMethod = function() {
    var result = this.super('myMethod')();
    // ...
    // Further process or extend results here
    // ...

    return result;
};

Kind regards,
Freddy


Regression: global flags broken for app.Action

I've managed to bisect to 65d50017d4f34772b8d767fb7478b9416b5d30c5 (#227), which broke my usage of global flags, and caused quite a headache trying to determine what went wrong!
Consider the following program, which has one global flag, "foo". On 942282e, the commit before the regression, it correctly outputs value=blah when invoked as ./test --foo=blah. After that commit, it just says isset=false value=.
package main

import (
	"log"

	"github.com/codegangsta/cli"
)

func main() {
	a := cli.NewApp()

	a.Flags = []cli.Flag{
		cli.StringFlag{
			Name:  "foo",
			Value: "unset",
		},
	}

	a.Action = ActionMain

	a.RunAndExitOnError()
}

func ActionMain(c *cli.Context) {
	log.Printf("isset=%v value=%v", c.GlobalIsSet("foo"), c.GlobalString("foo"))
}

/cc @databus23

Outch! Good catch. I think I know what the problem is. I will look into this and try to fix it in a couple of hours.

@pwaller thanks for catching this! Apologies for the headaches.

Thanks for the quick fix!


Freecodecamp CSS style colour selection is having some problem.

Challenge Use CSS Selectors to Style Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
 You removed the h2 element from your code.
Click "Reset" to reset you code and try again :smile:

https://github.com/bobchao/code-standards/blob/master/index.html

hello

Challenge Use CSS Selectors to Style Elements has an issue.
Please describe how to reproduce this issue, and include links to screenshots if possible.

Thanks

Please use the Help chat room for getting challenge related help. Happy Coding!


Allow null values change from request

Please explain what you are trying do in this pull request.
Thanks 👍

@marktopper The problem was in saving the empty field values display_name in the role entities.
I open role:

Change display_name to empty

After Saving

I have enabled default middleware \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class
If it's disabled then there is no error

Please separate the changes into multiple pull requests.

@TimurGit. please update your branch from voyager/master.  You can do this by adding an upstream git remote (git remote add upstream [voyager repo url]).  Once it's been added, you can do git fetch upstream and git merge upstream/master
After you do this, I suspect we'll be able to see just your changes for this PR, and can reopen it for review.  Please do NOT open a new PR for this change, we'll use this one once it's cleaned up.

@fletch3555 , Thank you. I added remote repository in my branch.
Pull request is not actual. Bug was fixed in other commits.


Update LibraryLogic.java to execute jar file

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

Project coverage is 63.22%. Comparing base (795ebb7) to head (4cba9da).

Files
Patch %
Lines

...java/seedu/address/model/library/LibraryLogic.java
0.00%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #201      +/-   ##
============================================
- Coverage     63.28%   63.22%   -0.07%
  Complexity      482      482
============================================
  Files            91       91
  Lines          1915     1917       +2
  Branches        188      189       +1
============================================
  Hits           1212     1212
- Misses          643      645       +2
  Partials         60       60

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


Not Checking for Data Loading in Render

The render function of the Customers component does not check if the data is still loading, which may cause the UI to display incorrect information before the data has fully loaded. A loading indicator or proper conditional check should be added here.

I'm new to open-source and really excited to contribute to your project. Could you assign me the issue to get started?

/assign