Use a different scope function in EventWorkerQueue

I would choose some other scope function for this use-case, as the apply does not seem very idiomatic here :thinking: According to the docs the apply function is mostly used for object configuration and here we're doing something different :wink:
I'd either use the let function but with a named parameter, something like this
            it.event.let { event ->
                when (event) {
                    is Request<*> -> corePublisher.request(event)
                    is AdhocEvent -> corePublisher.enqueue(event)
                }
            }

or we can use run which will still use this as the event
            it.event.run {
                when (this) {
                    is Request<*> -> corePublisher.request(this)
                    is AdhocEvent -> corePublisher.enqueue(this)
                }
            }

Originally posted by @KacperKluka in https://github.com/ably/ably-asset-tracking-android/pull/540#discussion_r765002404
┆Issue is synchronized with this Jira Task by Unito

It's no longer relevant as the event field was removed from the Worker interface.


introduce otel tracing

I was toying with https://github.com/SigNoz/signoz which uses otel tracing. This PR allows configuring tracing_exporter=otlp as a trace exporter.

LGTM (except for the commented out section).


Font Rendering?

How are we going to design font rendering and import the fonts?

I'd like to have built-in freetype support. But search around the web there doesn't seem to be any freetype rasterizer written in c#. We might need to consider using native interop.

Maybe you can process font during content pipeline and generate SDF (signed distance font) format, in this way at
runtime you can render with no scaling issues,

Distance map is extactly what I am trying to do. 👍

I read this a few days ago, might be interesting. Pathfinder, a Fast GPU-based Font Rasterizer in Rust.


unexpected keyword argument 'genetic_information'

Trying to access sample information with pyrefinebio.Sample.get() results in an error at initialization, presumably due to changes in the API return values...
Example interaction:
>>> pyrefinebio.Sample.get("GSM604809")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/josh/.conda/envs/rb-collector/lib/python3.11/site-packages/pyrefinebio/sample.py", line 165, in get
    return cls(**response)
           ^^^^^^^^^^^^^^^
TypeError: Sample.__init__() got an unexpected keyword argument 'genetic_information'

closed by #86


Feature: Portal templates

Need "portal boxes" and "portal pages", i.e. automated aggregators of articles tagged with a specific "sub-section" in their frontmatter.

Requires new Liquid template for all-in-one index.html
Requires new Liquid template for section-specific portal pages, e.g. developers.html, and users.html.

Completed by @fantasticfears .


dpg, upgrade webpubsub to 2022-11

Description
Fix https://github.com/Azure/azure-sdk-for-java/issues/31975.
azure-rest-api-spec: https://github.com/Azure/azure-rest-api-specs/pull/20762

Regen and update source code. Highlights:

Regen based on new API version.
The Impl classes under 'impl' folder are all generated.
Add removeConnectionFromAllGroupsWithResponse interface.
Support query group for /api/hubs/{hub}/:generateToken.
use empty string "" as content type to pass non-null check in impl classes, I have checked in LIVE test that the content-type passed in through RequestOptions appears in the real HTTP request.

Add related tests.
Add samples on filters.
Update CHANGELOG, readme.md and pom.xml.

All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-messaging-webpubsub

/azp run java - webpubsub - ci

Latest API view: https://apiview.dev/Assemblies/Review/a1be5ee81f284c2cb7d881f6197a4576?diffRevisionId=f68f29a472a64bf287ef8af7fac4116f&diffOnly=False&revisionId=b9595890e30e4b508b3dc84874182182&doc=False


Fixed #408: Wrong version in package.json

Fixed #408

Codecov Report

Merging #411 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #411   +/-   ##
======================================
  Coverage    18.2%   18.2%
======================================
  Files         194     194
  Lines        3015    3015
  Branches      519     519
======================================
  Hits          549     549
  Misses       2072    2072
  Partials      394     394

Continue to review full report at Codecov.

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


[BUG]: Vulkan Backend Often Falls Back to CPU Due to vulkaninfo --summary Timeout

Description
When using the Vulkan backend on my machine, it frequently falls back to using the CPU for inference. This seems to be happening because we're not giving vulkaninfo enough time to complete when trying to detect the GPU.
Currently, we're using TimeSpan.FromSeconds(1) as the timeout for the vulkaninfo --summary command in GetVulkanSummary(). However, on my machine, running this command takes about 1.92 seconds on average. This means that most of the time, the command times out before it can return the necessary information, leading to the GPU not being detected and the fallback to CPU inference.
I did a quick test using a batch script to measure the execution time of vulkaninfo --summary (see code snippets below). This confirmed that the command consistently takes longer than 1 second to complete on my system.
To address this, I simply increased the timeout to 10 seconds (TimeSpan.FromSeconds(10)). This seems to have resolved the issue, as the GPU is now consistently detected and used for inference.
I would appreciate if we got this changed in next release.
Code Snippets:
Current GetVulkanSummary() function:
private static string? GetVulkanSummary()
        {
            // Note: on Linux, this requires `vulkan-tools` to be installed. (`sudo apt install vulkan-tools`)
            try
            {
                // Start a process to read vulkan info
                Process process = new()
                {
                    StartInfo = new()
                    {
                        FileName = "vulkaninfo",
                        Arguments = "--summary",
                        RedirectStandardOutput = true,
                        RedirectStandardError = true,
                        UseShellExecute = false,
                        CreateNoWindow = true
                    }
                };
                var (exitCode, output, error, ok) = process.SafeRun(TimeSpan.FromSeconds(1)); // Timeout is 1 second which needs to be increased

                if (!ok)
                    return null;

                // Return the output
                return output;
            }
            catch
            {
                // Return null if we failed to get the Vulkan version
                return null;
            }
        }

Batch script for measuring vulkaninfo execution time:
@echo off
set start=%time%

vulkaninfo --summary

set end=%time%

echo Start Time: %start%
echo End Time: %end%

REM Calculate the difference in time
set /a diff_seconds=((1%end:~0,2%-1%start:~0,2%)*3600 + (1%end:~3,2%-1%start:~3,2%)*60 + (1%end:~6,2%-1%start:~6,2%)) %% 86400
set /a diff_milliseconds=((1%end:~9,2%-1%start:~9,2%) + (1%end:~6,2%-1%start:~6,2%) * 100 + (1%end:~3,2%-1%start:~3,2%)*6000 + (1%end:~0,2%-1%start:~0,2%)*360000) %% 8640000

echo.
echo Execution time: %diff_seconds%.%diff_milliseconds:~-3% seconds

pause

Example output from the batch script:
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.250

Instance Extensions: count = 13
-------------------------------
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_swapchain_colorspace            : extension revision 4
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_win32_surface                   : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 16
---------------------------
VK_LAYER_AMD_switchable_graphics  AMD switchable graphics layer                                                                                1.3.260  version 1
VK_LAYER_EOS_Overlay              Vulkan overlay layer for Epic Online Services                                                                     1.2.136  version 1
VK_LAYER_EOS_Overlay              Vulkan overlay layer for Epic Online Services
                            1.2.136  version 1
VK_LAYER_KHRONOS_profiles         Khronos Profiles layer
                            1.3.290  version 1
VK_LAYER_KHRONOS_shader_object    Khronos Shader object layer
                            1.3.290  version 1
VK_LAYER_KHRONOS_synchronization2 Khronos Synchronization2 layer
                            1.3.290  version 1
VK_LAYER_KHRONOS_validation       Khronos Validation Layer
                            1.3.290  version 1
VK_LAYER_LUNARG_api_dump          LunarG API dump layer
                            1.3.290  version 2
VK_LAYER_LUNARG_crash_diagnostic  Crash Diagnostic Layer is a crash/hang debugging tool that helps determines GPU progress in a Vulkan application. 1.3.290  version 1
VK_LAYER_LUNARG_gfxreconstruct    GFXReconstruct Capture Layer Version 1.0.5
                            1.3.290  version 4194309
VK_LAYER_LUNARG_monitor           Execution Monitoring Layer
                            1.3.290  version 1
VK_LAYER_LUNARG_screenshot        LunarG image capture layer
                            1.3.290  version 1
VK_LAYER_OBS_HOOK                 Open Broadcaster Software hook
                            1.3.216  version 1
VK_LAYER_RTSS                     RTSS overlay hook bootstrap
                            1.3.224  version 1
VK_LAYER_VALVE_steam_fossilize    Steam Pipeline Caching Layer
                            1.3.207  version 1
VK_LAYER_VALVE_steam_overlay      Steam Overlay Layer
                            1.3.207  version 1

Devices:
========
GPU0:
        apiVersion         = 1.3.260
        driverVersion      = 2.0.279
        vendorID           = 0x1002
        deviceID           = 0x67df
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = Radeon RX 580 Series
        driverID           = DRIVER_ID_AMD_PROPRIETARY
        driverName         = AMD proprietary driver
        driverInfo         = 24.1.1 (AMD proprietary shader compiler)
        conformanceVersion = <IP_ADDRESS>
        deviceUUID         = 00000000-0100-0000-0000-000000000000
        driverUUID         = 414d442d-5749-4e2d-4452-560000000000

Start Time: 15:34:33.59
End Time: 15:34:34.51

Execution time: 1.92 seconds
Press any key to continue . . .

Reproduction Steps

Install Vulkan backend
Enable backend

	NativeLibraryConfig.All
            .WithCuda(false)
            .WithVulkan(true)
            .WithAutoFallback();

Load any model

Environment & Configuration

Operating system: Windows 11
.NET runtime version: 8.0
LLamaSharp version: v0.16.0
CPU & GPU device: I5-11400F & Radeon RX 580 4GB

Known Workarounds
No response

Thanks for the detailed investigation! If you'd like to open a PR with this change I'll be to happy to review and merge it :)


move the site to hugo

This PR creates a hugo site structure using the docsy template, and adds a action to build and deploy to gh-pages.
Its a structure from the template.  Example content will need to be removed.

@sshaaf can you check on the conflicts that are currently facing this PR?

These files are removed in the PR and a new package.json is created.


Double clicking on 'Approve'/ 'Login' button on Consent page/login page gives Invalid Request Screen.

The issue occurs in Consent page, when user double clicks on the 'Approve' button. This is not reproduced in all environments, but may be with setups which has slow network connections, this could be reproduced.
If we have enabled debug logs for OAuth2AuthzEndpoint class, the debug log printed is as below.
DEBUG {org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint} - Invalid authorization request.'SessionDataKey' not found in request as parameter or attribute, and client_id parameter cannot be found in request
The same error is occurred on "Login" page too, after double clicking on 'Login' Button.

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Remove deprecated code / torch 1.11 / torch 1.12

What does this PR do?
We've deprecated several things that will be removed in next release. This purges deprecated code.
We also no longer support torch 1.11 and torch 1.12. This removes these tests.
Since we tie python 3.8 to 1.11 and 3.9 to 1.12, this removes testing for those python versions. ~Do we want to add docker builds and CI/CD for those? or is lint sufficient?~ Per offline discussion, this is fine (and we'll leave in lint + smoketest for these versions)
What issue(s) does this change relate to?
CO-2087

Can you please also search for all mentions of validate or metrics instead of get_metrics? That was the original impetus for the JIRA about removing mentions of deprecated stuff.

Done. Don't see anything that showed up


Automate HAL link testing (from 67)

Problem Description
From @bh635:

The initial goal is to detect conflicts between a) search criteria associated with HAL links and b)
the backend's search term configuration.

It is believed the middle tier:

1. Exclusively consumes the `searchWillMatch` when constructing the HAL links.
2. Generates all HAL links when an entity page is requested (and a profile is not specified).

If true, an automated test could submit one entity page request per entity then check the
`hasOneOrMoreResult` response body properties.  When the value is `-1`, the search criteria
should be checked.

Discussion

Implementation - https://git.yale.edu/lux-its/lux-backend/issues/67#issuecomment-24771

QA does have the ability to test APIs and not go through the UI

I believe this should be propose close. Isn't this what the HAL link test cases in QA accomplished? or is there something else needed for this?
@gigamorph, @jffcamp


libc/string: replace __builtin_ffsl with inline function

Summary
In the gcc-riscv compiler, __builtin_ffs will call ffs, and calling __builtin_ffs in ffs will cause recursion
__builtin_ffs --> ffs --> ffs --> ffs
Change ffs to an inline function, and compile ffs implemented by nuttx by default. Only call the implementation of nuttx when the compiler cannot provide an ffs implementation.
Impact
Testing
arm/riscv

@yf13 please try this patch.


entropy minimization codes

Hi
I am trying to find the entropy minimization implementations, since the codes for transformers .. are included I could not find the implementations, I appreciate if you could guide me where they are located
thanks

found it here https://github.com/cindyxinyiwang/emea/blob/main/third_party/run_tag.py#L245


scan spec help

Hi,
I have an application with a very large number of jars and classes. A large amount of start-up time is due to classpath scanning, so I'd like to get exactly the best scan specs possible.
Originally it was a single entry:

com.intuit.v4

I updated it to:

"com.intuit.v4"
"jar:com.v4-sdk-*.jar"
"-dir

But I'm not sure it is any faster. Any thoughts?

Hi @alexec,
Please let me know if something like the following speeds up the scanning process:
ScanResult scanResult = new FastClasspathScanner("com.intuit.v4")
    .overrideClasspath(
        new FastClasspathScanner()
            .getUniqueClasspathElements()
            .stream()
            .filter(file -> file.getPath().contains("/com.v4-sdk-"))
            .collect(Collectors.toList()))
    .scan();

@alexec I'll close this issue, but please comment to let me know if the suggested code reduced the scan time, and by how much.


Convert TODOs into Issues

The code has a lot of TODOs as it was developed without an issue tracker.

Find TODO comment in code
For each TODO create an issue
Remove TODO comment from code

thanks @nishakm .. I am on it..

I grepped for any literal named 'todo'.. i am not able to find any in the 'tern' repo.. can you please point me to one?

https://github.com/vmware/tern/search?utf8=✓&q=TODO&type=

@rajdhandus also, when creating issues, make sure there isn't an existing issue like it. If there is an existing issue, you can refer to it in your PR.


It alway return 404 when I call api via istio gateway

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
My authorization policy config:
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: api
  namespace: prod
spec:
  action: DENY
  rules:
    - to:
        - operation:
            methods:
              - GET
  selector:
    matchLabels:
      auth-required: auth

If I call my service api inside k8s it will return 403 with RBAC: access denied, it's what expected.
But if I call outside k8s via istio gateway it return 404 with Sorry, Page Not Found.
Version
rancher-istio:102.5.0+up1.19.6

Additional Information
No response

404：
the gateway routing may not be configured correctly, and the requests might not have been actually sent to the API service

404： the gateway routing may not be configured correctly, and the requests might not have been actually sent to the API service

But if I change action: DENY to action: ALLOW the request can return correct response. What I can do to find the root cause?

404： the gateway routing may not be configured correctly, and the requests might not have been actually sent to the API service

But if I change action: DENY to action: ALLOW the request can return correct response. What I can do to find the root cause?

Can you send the config_dump file before and after the change?
You will get two configdump files that you can compare using the diff tool  to see how they different.

404： the gateway routing may not be configured correctly, and the requests might not have been actually sent to the API service

But if I change action: DENY to action: ALLOW the request can return correct response. What I can do to find the root cause?

Can you send the config_dump file before and after the change?
You will get two configdump files that you can compare using the diff tool to see how they different.

use this command to get config_dump? kubectl exec ISTIOD_POD -- curl 'localhost:8080/debug/config_dump?proxyID=POD_NAME.POD_NAMESPACE'
when I run this command in my k8s shows below error message:

please use istioctl pc all -o json/yaml <pod_name>.<pod_namespace>

@zirain @zengyuxing007 I got the config dump via command -- curl 'localhost:15000/config_dump, below is the dump files, can you help to find the cause of my problem? Thank you!
@zirain my k8s is managed by rancher and istio is installed via rancher app market, I don't have istioctl installed in my k8s.😟
configDumpAllow.json
configDumpDeny.json

Anyone can help me to fix this problem?😭


DefaultLegend has horrible performance

How to reproduce?
So I've added CartesianChart to a WPF window and rendered 20-25 graphs at the same time (constant updates). Saw the program grind to a full stop (minimum of 35% CPU usage). I attached a profiler and noticed that 60%! of the time is spent on the this.ChartLegend.UpdateLayout(). So I've added a NoLegend.xaml, which does absolutely nothing at all. What now? CPU usage is now at <1% and fast.
Interestingly, the DataTooltip (should preferably be named as DataToolTip) has similar issues. Once rendered the CPU usage immediately adds 25%.
I think both suffer the same problem, i.e., they always update, even when there's no new content. Ideally they should only redraw when a value changes (or the size changes but this is automatically done anyway).
Fix
In defaultlegend.xaml.cs, you can fix this by checking if the series is equal to the previous. If it is, ignore the property changed notification. I've done with a base setup using the code from DefaultLegend and it's working OK.
I am using

Live-Charts version
Last

.Net Version
4.0

Windows
10

Thanks for the profiler review, will take review this and try a better approach.


Meridiem doesn't read it's value on screen readers.

Bug Report
Description
The time input doesn't have aria labels on the meridiem, making it hard for screen readers to accurately interpret that screen. We need to readjust the labels so that it's clear to the user what they are inputting.
Additional Context / Screenshots
This won't be easy possibly. When a user focuses on the meridiem input, it auto focuses to the select box, which could throw off what the screen reader is interpreting.

This could be closed given that the layout has changed with https://github.com/cerner/terra-framework/pull/837.
cc / @benbcai


how can i go to another route in js?

I tried this.$router.push("/path/") but this broke my layout like this:
https://yadi.sk/i/w2tGLFoj3NTwyw
And layout goes to normal only after refresh:
https://yadi.sk/i/_SLX6yug3NTwy8

It looks like there might be something wrong with the page you're trying to access.
The this.$router.push method works just fine.

but this root is just an empty layout with some few tags without js.

Can you post the template ?

Sure
`

{{PageName}}

`

hmm....sorry that i bothered you. Its somehow used global styles from previous layout. When i made separated css classes for blocks problem disappeared

hmm....sorry that i bothered you. Its somehow used global styles from previous layout. When i made separated css classes for blocks problem disappeared


Screenshot an area of interest

It would be great if there would be an option to be able to screenshot an area of interest something like:
window.selectArea(x, y, w, h)

Then ...
page.screenshotArea({path: 'example.png'})

... and you'd end up with selected area only e.g.

So we'd scroll to the point and draw an area or interest for screenshot. Any plans for this type of behaviour?

Screenshot takes a clip rectangle. You can use page.exposeFunction to add a screenshotArea function onto the window object of your page.

Here's an example screenshoting the logo on chromestatus.com:
const PADDING = 16; //px
const SELECTOR = 'header aside'; // what element you want to screenshot

// make sure we hit the desktop breakpoint
page.setViewport({width: 1000, height: 600, deviceScaleFactor: 2});

await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'});

const rect = await page.evaluate(selector => {
  const element = document.querySelector(selector);
  const {x, y, width, height} = element.getBoundingClientRect();
  return {left: x, top: y, width, height, id: element.id};
}, SELECTOR);

await page.screenshot({
  path: 'element.png',
  clip: {
    x: rect.left - PADDING,
    y: rect.top - PADDING,
    width: rect.width + PADDING * 2,
    height: rect.height + PADDING * 2
  }
});

@ebidel this is getting there but one issue with this is that you have to know the SELECTOR my example assume that you don't know that but you do know the coordinates.

Sure, just modify the snippet to take the coordinates directly :)

@ebidel indeed ...
    const browser = await puppeteer.launch();
    const page = await browser.newPage();
    page.setViewport({ width: 1000, height: 600, deviceScaleFactor: 2 });
    await page.goto('https://www.chromestatus.com/samples', { waitUntil: 'networkidle' });
    await page.screenshot({
        path: 'element.png',
        clip: {x: 215, y: 0, width: 390, height: 50}
    });
    browser.close();

@ebidel Could we make screenshotDOMElement an option of screenshot api: selector?

0.12.0 has a new screenshot API for elements!
https://github.com/GoogleChrome/puppeteer/blob/v0.12.0/docs/api.md#elementhandlescreenshotoptions
On Sun, Oct 15, 2017, 1:31 AM Wang Dàpéng<EMAIL_ADDRESS>wrote:

@ebidel https://github.com/ebidel Could we make screenshotDOMElement an
option of screenshot api: selector?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleChrome/puppeteer/issues/306#issuecomment-336695086,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOigCvuOdKXSdtkHif7kRYpfxcLchZHks5sscLngaJpZM4O5eAU
.

Here's an example of taking a screenshot of a dom element, the logo on chromestatus.com:
// adjustments for this page (so we hit the desktop breakpoint)
page.setViewport({width: 1000, height: 600, deviceScaleFactor: 2});

await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'});

async function screenshotDOMElement(selector, padding = 0) {
  const rect = await page.evaluate(selector => {
    const element = document.querySelector(selector);
    const {x, y, width, height} = element.getBoundingClientRect();
    return {left: x, top: y, width, height, id: element.id};
  }, selector);

  return await page.screenshot({
    path: 'element.png',
    clip: {
      x: rect.left - padding,
      y: rect.top - padding,
      width: rect.width + padding * 2,
      height: rect.height + padding * 2
    }
  });
}

await screenshotDOMElement('header aside', 16);

How to take screenshot for Xpath?

Here's an example of taking a screenshot of a dom element, the logo on chromestatus.com:
// adjustments for this page (so we hit the desktop breakpoint)
page.setViewport({width: 1000, height: 600, deviceScaleFactor: 2});

await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'});

async function screenshotDOMElement(selector, padding = 0) {
  const rect = await page.evaluate(selector => {
    const element = document.querySelector(selector);
    const {x, y, width, height} = element.getBoundingClientRect();
    return {left: x, top: y, width, height, id: element.id};
  }, selector);

  return await page.screenshot({
    path: 'element.png',
    clip: {
      x: rect.left - padding,
      y: rect.top - padding,
      width: rect.width + padding * 2,
      height: rect.height + padding * 2
    }
  });
}

await screenshotDOMElement('header aside', 16);

How to take screenshot for Xpath?

This worked for me:
    /**
    * Selecting the element by xpath
    * page.$x() returns an array of ElementHandle.
    * We are only interested in the first element
    **/
    const elByXpath = (await page.$x(req.param('elXpath')))[0]

    const rect = await page.evaluate(element => {
        if (!element)
            return null;
        const {x, y, width, height} = element.getBoundingClientRect();
        return {left: x, top: y, width, height};
    }, elByXpath);

    const elByXpath = (await page.$x(req.param('elXpath')))[0]

    const rect = await page.evaluate(element => {
        if (!element)
            return null;
        const {x, y, width, height} = element.getBoundingClientRect();
        return {left: x, top: y, width, height};
    }, elByXpath);

Not working!

Here's an example of taking a screenshot of a dom element, the logo on chromestatus.com:
// adjustments for this page (so we hit the desktop breakpoint)
page.setViewport({width: 1000, height: 600, deviceScaleFactor: 2});

await page.goto('https://www.chromestatus.com/samples', {waitUntil: 'networkidle'});

async function screenshotDOMElement(selector, padding = 0) {
  const rect = await page.evaluate(selector => {
    const element = document.querySelector(selector);
    const {x, y, width, height} = element.getBoundingClientRect();
    return {left: x, top: y, width, height, id: element.id};
  }, selector);

  return await page.screenshot({
    path: 'element.png',
    clip: {
      x: rect.left - padding,
      y: rect.top - padding,
      width: rect.width + padding * 2,
      height: rect.height + padding * 2
    }
  });
}

await screenshotDOMElement('header aside', 16);

I'm using this it work well with selector outside frame or iframe but it can't find selector in frame or iframe.
Can you fix it for me pls.


Crashes

whenever I click to open the brush factory, paint dot net crashes.

Thanks for opening this issue. It was probably crashing because the BrushFactorySettings.xml file wasn't created and the plugin wanted to read the file to use any custom brush locations, etc. you might've had. This was causing it to crash.
Today I fixed this issue properly. Please try the most recent version, 2.0.2, and comment back here on whether it works or not. Thanks!

Closing for inactivity since it should be fixed


Added a button to rescan the repo directory

This adds a button to the repository index which re-runs the directory scan, that's normally only run at startup.  This avoids the need to restart the whole app (which tends to need access to the server) if you've just added a repo directly to the file system.

I passed a dummy Id to the action method to avoid needing to mess with the routing table.
The messing about with the form for the button is so that the action is POSTed rather than GET.

I'm not sure how i feel about every user being able to do this. Did you have a special use-case in mind when you made it public?
Else it LGTM.

The intention was admin-only - I think I misread the @if in the view and didn't add any server-side validation either.   I'll improve that.
Like you, I don't see a legitimate non-admin use.

I made a mistake and only tested with the admin account.
If you set the option 'users can create repos' then rescan also appears. Not sure if that is your intention.

It wasn't my intention - I didn't read the view code properly.  I'll fix it later.

OK, all fixed, definitely admin-only now  - I squashed/rebased this to be one commit


fix: do not borrow shell across registry query

What does this PR try to resolve?
Fixes #13646
How should we test and review this PR?
$ git clone https://github.com/taiki-e/easytime
$ cd easytime
$ cargo generate-lockfile
$ cargo update -Z minimal-versions

Additional information
A better and safer way is always calling gctx.shell() instead.

Talked with @Muscraft and agree that it's safer to use gctx.shell() if there are other refactor moving code around. It is also unlikely to be the performance bottleneck.

Do you think it would be a good idea to add a test for this?

I lean toward not. Such a test cannot systematically prevent this kind of runtime borrow checking bug.

@bors r+

I tested this change locally against https://github.com/taiki-e/easytime and it fixes the panic

:pushpin: Commit 667803c741fe1b22e58b23fa2eb749ff3eb21bf7 has been approved by Muscraft
It is now in the queue for this repository.

:hourglass: Testing commit 667803c741fe1b22e58b23fa2eb749ff3eb21bf7 with merge 499a61ce7a0fc6a72040084862a68b2603e770e8...

:sunny: Test successful - checks-actions
Approved by: Muscraft
Pushing 499a61ce7a0fc6a72040084862a68b2603e770e8 to master...

:sunny: Test successful - checks-actions
Approved by: Muscraft
Pushing 499a61ce7a0fc6a72040084862a68b2603e770e8 to master...

:eyes: Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.


Scenario: Update reader and json files

Reorganize with multiple sections that are more meaningful.

New json parser is implemented and scenario file with new format added to test data folder


Flutter 2.0

Please, update project dependencies to support Flutter 2.0.
Thank you.

Hi @miguelpruivo sorry for being late, I was publish on pub.dev to support null safety at flutter_summernote: ^1.0.0, Thank you.


Nested Input components in FileUploaderContent does not work

{field.value && field.value.length > 0 && (
  <FileUploaderContent>
    {field.value.map((file, i) => (
      <div
        key={i}
        className="flex flex-col gap-2 rounded-md border p-4"
      >
        <FileUploaderItem key={i} index={i}>
          <Paperclip className="size-4 stroke-current" />
          <span>{file.name}</span>
        </FileUploaderItem>

        <Input
          label="Description"
          error={
            formState.errors[`files.${i}.description`]
          }
          registration={register(
            `files.${i}.description`,
           )}
          showPlaceholder={true}
          showLabel={false}
        />
      </div>
    ))}
  </FileUploaderContent>
)}

I am trying to register a custom Input component as a child in FileUploaderContent but the input does not work. I am unable to type or make any changes into that input. I've also tried using a generic <input> component to double check but the results are the same. Any guidance would be highly appreciated. Thank you!

Also -- tried to join your Discord but the link does not seem to be working? @gaurangrshah

Found the issue... it was the keyDown handler function in FileUploader. Removing that fixed this issue.


[Slider]: only terminate sliding for actual user generated events

https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted
This is to fix an issue I've been experiencing where the sliding would be stopped by some third party code dispatching the mouseup event, even though the user was still holding the mouse down and trying to slide the slider.

Thanks for the work. We no longer accept bug fixes for master. Please direct the PR at the next branch.

It breaks the tests, @cvbuelow please expand on what problem these changes fix.

Here's an example of the problem that this fixes:
https://codesandbox.io/embed/elastic-lamport-yhf63?fontsize=14&hidenavigation=1&theme=dark
I'm guessing the tests are failing because the events in the tests are synthetic, not actual user events.

I don't understand why this 3rd party code is dispatching the mouseup event while expecting that no code listens to this event.

Yeah it is indeed a strange design. For reference, this is the third party code I'm talking about https://demo.techsoft3d.com/
In my app I have this 3d model viewer with the slider as a control

I don't think we can do anything here. Not listening to synthetic events does not work. They're either deliberate or for testing. But if they're wrong, then we can't patch this up without sacrificing correct usage.


has_datatype? returns false when datatype is XMLSchema#string

Description
I want to apply ldpath rules that limit returned results to objects with type xsd:string.  But I am not able to create a graph with literals that have datatype xsd:string that will return true for datatype?.
The check I want to use is...
type = RDF::URI.new('http://www.w3.org/2001/XMLSchema#string')
rdf_literal if rdf_literal.has_datatype? && rdf_literal.datatype == type

There are multiple literals that have datatype http://www.w3.org/2001/XMLSchema#string, but none match because in all cases rdf_literal.has_datatype? returns false.
Examples
Numeric is auto-assigned a datatype.
>> y = RDF::Literal.new(2)
#<RDF::Literal::Integer:0x3fc1ae1605d0("2"^^<http://www.w3.org/2001/XMLSchema#integer>)>
>> y.has_datatype?
true
>> y.datatype
#<RDF::URI:0x3fc1ab871944 URI:http://www.w3.org/2001/XMLSchema#integer>

String is not auto-assigned a datatype... sort of?
>> x = RDF::Literal.new('hello world')
#<RDF::Literal:0x3fc1ae171484("hello world")>
>> x.has_datatype?
false
>> x.datatype
#<RDF::URI:0x3fc1ae1713a8 URI:http://www.w3.org/2001/XMLSchema#string>

Cannot explicitly assign a datatype by setting a language.
>> value = RDF::Literal.new("Hello!", language: :en)
#<RDF::Literal:0x3fc1ae148d2c("Hello!"@en)>
>> value.has_datatype?
false
>>value.datatype
#<RDF::Vocabulary::Term:0x3fc1aac306bc ID:http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>

Cannot explicitly assign a datatype to a string literal.
>> value = RDF::Literal.new("hello world", datatype: RDF::XSD.string)
#<RDF::Literal:0x3fc1ae1314b0("hello world")>
>> value.has_datatype?
false
>> value.datatype
#<RDF::Vocabulary::Term:0x3fc1aad352d8 ID:http://www.w3.org/2001/XMLSchema#string>

https://github.com/ruby-rdf/rdf/blob/develop/lib/rdf/model/literal.rb#L342-L351
States that strings are excluded for historical reasons.  Can someone elaborate?

The notion that a literal with datatype xsd:string somewhat predates RDF 1.1, and there are a number of different gems that look to see if a literal has a datatype. With RDF 1.1 all literals have a datatype, so xsd:string is treated as if there is no datatype, same with rdf:langString. Otherwise, it's not useful to ask if a literal has a datatype.
As you note, "foo" and "foo"^^xsd:string are equivalent, which was decided as part of RDF 1.1. There is no way create a literal without a datatype anymore.
In RDF 1.0, and normatively, but not practically, in SPARQL 1.1, "foo" and "foo"^^xsd:string are different terms, but with RDF 1.1, pretty much all processors now treat them as being the same term. The datatype rdf:langString was created to ensure that all literals have a datatype.
Much 1.0 code that looked to distinguish between datatyped literals, and literals with no datatype with or without a language would make use of this. And, serializations of literals datatype xsd:string or rdf:langString will omit the datatype during serialization. The Changes since RDF 1.0 document may be useful in seeing these differences.

proposing to close with no changes, per @gkellogg's comment.
the main alternatives seems to be to deprecate and remove has_datatype?


GUACAMOLE-1267: Add client-side setting for disabling server input.

Client-side change to match apache/guacamole-server#501.

@mike-jumper I think these changes from main did not get pushed on to the next branch, yet?

Oops - thanks for reminding me.


version not found

This version is not found
pip install --extra-index-url https://olivewheels.azureedge.net/test onnxruntime_openvino_dnnl==1.9.0

Now OLive only supports Python version from 3.6 to 3.8 on Windows and Linux. Would you like to have a check about the Python version?

Free to reopen the issue for more question.


Move ThreeDEntities from examples_common.nim into entities.nim

I don't understand the reasoning behind putting primitives that are 3D inside primitives.nim without providing a basic ThreeDEntity out of the box. Couldn't all work that's been put into the examples_common.nim just be moved into entities.nim? :)
It seems like an awful lot of boilerplate that is very same-y to 2D (rotation, translation, scaling... ) in order to create 3D entities when the ones from the examples could just as well be part of the package. Is there any reason that they are not? And if the argument is that we should write our own entities, why are TwoDEntity and ImageEntity included?

My reasoning was that it is very likely you'll need to make a custom entity anyway if you're doing 3D stuff. It's not likely that the ThreeDEntity will be useful to you for long unless you are just trying to draw a single 3D shape with really basic coloring and no lighting. So it would probably be better to just copy that stuff into your project so you can immediately start to customize the shaders and whatnot. With the 2D entities you can go for a long time using the built-in entities because it's common to need to render an image or simple shape.

That is a fair point. There would be little use for 3D without being able to control parameters and the shader, which would involve creating your own entity...
There might be a compromise here that I'm not seeing at the moment.. It would be nice for translations, rotations, projections, scaling etc, to have the 3D versions built-in given that any entity, 2d or 3d, will have coordinates...

Yeah i think those functions will need to be implemented for each custom entity. There isn't really a way to make functions like translate that work for all 3D entities because they could change depending on how the shader is written. For example:
proc translate*[UniT, AttrT](entity: var Entity[UniT, AttrT], x: GLfloat, y: GLfloat, z: GLfloat) =
  entity.uniforms.u_matrix.translate(x, y, z)

This function assumes that the shader has a uniform called u_matrix, so it won't work if you rename it to something else. TwoDEntity and ImageEntity can share these functions because they both happen to have the same uniform in their shaders, but I can't assume that about custom entities that people create.

While I personally wouldn't mind having a name restriction on the coordinate matrix in the shader as a cost to being able to use the procs directly from the library, I can see why such a solution might not fit the goal of this package.
Thank you for quick input, and for a very nifty package nevertheless :)


Merge refs/heads/feature/find-as-cursor into alpha

Merge refs/heads/feature/find-as-cursor into alpha

This PR has been merged into alpha and tagged as 1.6.0-alpha-202304131248. Thanks for your contribution!


Add prometheus metrics for antrea controller

This CL brings metrics of antrea controller events processing, includes: syncing time, processed number, and queue length.
Signed-off-by: Weiqiang TANG<EMAIL_ADDRESS>

/test-all

/test-all

/test-e2e

/test-all


paperless-ngx: update to 1.8.0, python3Packages.django-q: add gador as maintainer, switch to GitHub

Description of changes
Update paperless-ngx Changelog. I had to switch to fetchFromGitHub for django-q, so the override in paperless-ngx works.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This should be two commits - first the django-q one, then the paperless-ngx one (for which the commit message should be paperless-ngx: 1.7.1 -> 1.8.0)

On nixos x86_64:
builder for '/nix/store/08vaqjyaqwdrhb1xc8vjngxzkdd5di4y-python3.10-HyperKitty-1.3.5.drv' failed with exit code 1; last 10 log lines:
  Requirement already satisfied: robot-detection>=0.3 in /nix/store/1zz2jpn01s2prbqnh3dxqakimradw54z-python3.10-robot-detection-0.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (0.4)
  Requirement already satisfied: django-compressor>=1.3 in /nix/store/nk954l1mqlqrsvshnj4rxbjc6hrqk85z-python3.10-django-compressor-4.1/lib/python3.10/site-packages (from HyperKitty==1.3.5) (4.1)
  Requirement already satisfied: networkx>=2.0 in /nix/store/m15pg6i8611sp68m4blsgr2bhf8yrb9s-python3.10-networkx-2.8.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (2.8.4)
  Requirement already satisfied: django-extensions>=1.3.7 in /nix/store/gck2sw46nx5ym1vy57ryi09qfcsa21fm-python3.10-django-extensions-3.2.0/lib/python3.10/site-packages (from HyperKitty==1.3.5) (3.2.0)
  Requirement already satisfied: pytz>=2012 in /nix/store/vzq0cn3r7zfcgcb8lc6gsg3sblrlnphz-python3.10-pytz-2022.1/lib/python3.10/site-packages (from HyperKitty==1.3.5) (2022.1)
  Requirement already satisfied: django-gravatar2>=1.0.6 in /nix/store/y9xg8408j2sq11a3w8mmqw5awrq655qa-python3.10-django-gravatar2-1.4.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (1.4.4)
  Requirement already satisfied: mistune>=2.0.0rc1 in /nix/store/7980wp7s2mdpddk3ns15iwsfp3c097l5-python3.10-mistune-2.0.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (2.0.4)
  ERROR: Could not find a version that satisfies the requirement django-q>=1.0.0 (from hyperkitty) (from versions: none)
  ERROR: No matching distribution found for django-q>=1.0.0

This causes mailman-web to fail to build.

This should be two commits - first the django-q one, then the paperless-ngx one (for which the commit message should be paperless-ngx: 1.7.1 -> 1.8.0)

Done

On nixos x86_64:
builder for '/nix/store/08vaqjyaqwdrhb1xc8vjngxzkdd5di4y-python3.10-HyperKitty-1.3.5.drv' failed with exit code 1; last 10 log lines:
  Requirement already satisfied: robot-detection>=0.3 in /nix/store/1zz2jpn01s2prbqnh3dxqakimradw54z-python3.10-robot-detection-0.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (0.4)
  Requirement already satisfied: django-compressor>=1.3 in /nix/store/nk954l1mqlqrsvshnj4rxbjc6hrqk85z-python3.10-django-compressor-4.1/lib/python3.10/site-packages (from HyperKitty==1.3.5) (4.1)
  Requirement already satisfied: networkx>=2.0 in /nix/store/m15pg6i8611sp68m4blsgr2bhf8yrb9s-python3.10-networkx-2.8.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (2.8.4)
  Requirement already satisfied: django-extensions>=1.3.7 in /nix/store/gck2sw46nx5ym1vy57ryi09qfcsa21fm-python3.10-django-extensions-3.2.0/lib/python3.10/site-packages (from HyperKitty==1.3.5) (3.2.0)
  Requirement already satisfied: pytz>=2012 in /nix/store/vzq0cn3r7zfcgcb8lc6gsg3sblrlnphz-python3.10-pytz-2022.1/lib/python3.10/site-packages (from HyperKitty==1.3.5) (2022.1)
  Requirement already satisfied: django-gravatar2>=1.0.6 in /nix/store/y9xg8408j2sq11a3w8mmqw5awrq655qa-python3.10-django-gravatar2-1.4.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (1.4.4)
  Requirement already satisfied: mistune>=2.0.0rc1 in /nix/store/7980wp7s2mdpddk3ns15iwsfp3c097l5-python3.10-mistune-2.0.4/lib/python3.10/site-packages (from HyperKitty==1.3.5) (2.0.4)
  ERROR: Could not find a version that satisfies the requirement django-q>=1.0.0 (from hyperkitty) (from versions: none)
  ERROR: No matching distribution found for django-q>=1.0.0

This causes mailman-web to fail to build.

Fixed. The error came from a wrongful interpretation of the pyproject.toml file.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 185669 run on x86_64-linux 1

4 packages built:

mailman-web
paperless-ngx
python310Packages.django-q
python39Packages.django-q

Think we'll have to disable the django-q tests on darwin - they fail and also have the quirk that because postCheck doesn't run, the zombie redis is left running and the build never terminates. This isn't a problem on linux.

@risicle done


Make Nethermind config options hyperlink.

This approach doesn't work as options are in expandable containers that are collapsed by default.
Addressed in https://github.com/NethermindEth/docs/commit/d0f0d35d91f41b0ba372bfe479e8bff79336a93d


Manually adding to XCode

Hi!
I am new to iOS development and am trying to add this project to Xcode manually. Whenever I add it as a library I cannot import the module CameraEngine, as it is not found?
Please explain how I can do this, Thanks!

Where do you have this error ?
Normally, if you include the source by yourself, you don't need to add :
import Camera

it will be automatically imported.

Oh I see. I'll try that then. Thanks
On Wednesday, 18 May 2016, rémi <EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Where do you have this error ?
Normally, if you include the source by yourself, you don't need to add :
import Camera
it will be automatically imported.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/remirobert/CameraEngine/issues/21#issuecomment-220217054

--
Thanks,
Rafi Khan

@z3t0 please be free to reopen the issue, if you didn't  fix your issue.

@remirobert Thanks! It got rid of the error

It gives me the same error on the example when trying to build it and install it on an iDevice


Coverage of higher order functions doesn't work when importing types

Repro:
// repro.js
type Identity<T> = (x: T) => T;

function idThunk<T>(): Identity<T> {
  return function id(x) {
    return x;
  };
}

results in:
type Identity<T> = (x: T) => T;

function idThunk<T>(): Identity<T> {
  return function id(x) {
    return x;
  };
}

Covered: 100.00% (5 of 5 expressions)

but this:
// repro.js
import type { Identity } from './definitions';

function idThunk<T>(): Identity<T> {
  return function id(x) {
    return x;
  };
}

// definitions.js
export type Identity<T> = (x: T) => T;

results in:
import type { Identity } from './definitions';

function idThunk<T>(): Identity<T> {
  return function id(x) {
    return x;
  };
}

Covered: 50.00% (2 of 4 expressions)

Both are the exact same, with the exception that the Identity type is in another file for the second case. Thoughts?

Was missing /* @flow */ on definitions.js.


client.starboardsManager.create('ID');

client.starboardsManager.create('ChannelD');
returns
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'id')     at create (c:\Users\Administrator\Documents\GitHub\aeris.bot\node_modules\discord-starboards\src\index.js:116:61)

You have to put a real channel id or get it from interaction.channel.id for example


CommonsChunkPlugin for vendor chunk in conjunction with other chunks loaded via jsonp

There seems to be a couple issues when using CommonsChunkPlugin to create a vendor chunk and via jsonp/require.ensure additional chunks are created.
var webpackConfig = {
  output: {
    chunkFilename: '[name].[chunkhash].js'
  },
  plugins: [
    new webpack.optimize.CommonsChunkPlugin( 'vendor', '[name].[chunkhash].js' )
  ]

If the above configuration is used, the hash for vendor.[chunkhash].js won't vary when the hashes of the other chunks change. This is needed because the hashes are part of the bootstrap and the vendor chunk includes the bootstrap.

The workaround is to use [name].[hash].js as a template but then the hash varies on every build which leads to the file changing more frequently than is desired.

Use the workaround. The expected result would be a error that [chunkhash] is not allowed for an entry point when chunkFilename contains [chunkhash].

Also see https://github.com/diurnalist/chunk-manifest-webpack-plugin

@sokra ,
I get the issue when generating the manifest both with and without using the chunkFilename, this is my config: https://gist.github.com/vamsiampolu/de0daaaffb4c662220a4dd32907d42e6
The [hash] would change on every build, would it not?

Can you see this with webpack 2?


Deployment Report is not reporting the first party cloud database info in recent cadences

Reported in cadence 2023.06
Refactor for changes in database names/locations that were used in previous cadences to generate the first party cloud postgres database storage information in the deployment report.

This issue is addressed in Release 2.0.0.


feature: allow widthUp value to be configurable

Describe the problem
5 is a tiny number
Describe the solution
allow widthUp to be configurable

that's a great idea, gave it a shot here https://github.com/shortcuts/no-neck-pain.nvim/pull/264, not yet sure about the naming nor where it should live but definitely doable, don't hesitate to suggest

and thanks for using the plugin :D

Niceeeee thanks for all the feature requests!


Can not enable pagination

Trying to enable pagination but after setting { pagination: true } in config, i'm getting error below.
All other settings options what i've tried works as expected. What i'm doing wrong here?
ERROR TypeError: Cannot set property 'pagination' of undefined
    at SwiperComponent.getConfig (ngx-swiper-wrapper.es5.js:675)
    at Object.View_SwiperComponent_0._co [as updateDirectives] (SwiperComponent.html:1)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:14339)
    at checkAndUpdateView (core.js:13508)
    at callViewAction (core.js:13858)
    at execComponentViewsAction (core.js:13790)
    at checkAndUpdateView (core.js:13514)
    at callViewAction (core.js:13858)
    at execEmbeddedViewsAction (core.js:13816)
    at checkAndUpdateView (core.js:13509)

Can you share a bit more of your code, like the template line and whole config. The error does not make lot sense and the pagination is working in the example app.

Sorry, that was my mistake. I was trying to create Swipe component before getting items array. It's strange what i can update item dynamically only if pagination is disabled.

Pagination should not have any effect on updating items dynamically. There must have been something else or then I don't understand you correctly.

I was creating Swiper before getting photos array so there was no slides. I have added <swiper *ngIf="photos?.length"> and pagination works fine now.

Intresting, rendering empty swiper should not be a problem. Will test to verify that there is no hidden bug. Thanks for the additional info.


Split StorageChangesTrackerImpl

StorageChangesTrackerImpl (core/storage/changes_trie/impl/storage_changes_tracker_impl.cpp).
Need to split:

Tracking trie changes in executing block (different threads can execute different blocks).
Applying trie changes to best chain (notify subscribers, etc).

Example: Core_initialize_block and Core_execute_block are called from different threads (babe and synchronizer).

https://github.com/paritytech/substrate/pull/10080: ext_storage_changes_root_version_1 is deprecated and will return null.


python3Packages.hmmlearn: fix build

Description of changes
Failing on hydra: https://hydra.nixos.org/build/174127359
I added a missing dependency (pybind11), and changes the tests to use pytestCheckHook

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 169979 run on x86_64-linux 1

2 packages built:

python310Packages.hmmlearn
python39Packages.hmmlearn


Fixes and improvements

While in search of a library to bind Python and duktape, I came across a couple, but found this one to be the one I liked the most. It hasn't been maintained for a while so I decided to fork it and start making fixes and improvements.
This PR is largely to gauge what kind of involvement you want to have. I am happy to continue making fixes, but for me to be more productive I'd really like to change the direction of styling in the code.
@abe-winter do you plan on maintaining this library or can I take ownership?

@brosner glad this library is getting some use, thanks for taking this on.
If you want the project, it's yours. Let me know if you want it transfered to your account. You can have the pypi name as well if interested.

@abe-winter I would love to take over. I think my account is ready for the transfer ownership. Go ahead and do that. Yes, please do add me on PyPI. I am brosner there too.

@brosner I'm getting 'brosner already has a repository in the abe-winter/duktape-py network' when I try to transfer -- I think you have to delete your fork.

@abe-winter ah, renaming it doesn't work. I've deleted it. Give it another go. Thanks!

Thank you @abe-winter! I will do the project proud :-)

@brosner I've added you as an owner to the pypi package. can you confirm that's working by deleting amwinter (me) from the package?

@abe-winter confirmed. I am all set. Now I am going to get coding :-)


Added remix development tools to epic stack

Added Remix Development Tools to Epic Stack
Test Plan
Run the app
Checklist

[ ] Tests updated
[ ] Docs updated

Oh whoops, there's a conflict with the package-lock. Could you rebase on main?

@kentcdodds should be good now! Sorry about the fork being main, Saw your tweet, from now on will do it from dev branches!


odysee.com -> HTTP Error 405: Method Not Allowed

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2<IP_ADDRESS> (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
Netherland
Description
URL https://odysee.com/@CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels fails with:
HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>
Verbose log
[lbry] @CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels: Downloading stream JSON metadataTraceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 735, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3591, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 563, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 755, in http_error_302
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 405: Method Not Allowed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 617, in extract
  File "yt_dlp\extractor\lbry.py", line 187, in _real_extract
  File "yt_dlp\extractor\lbry.py", line 47, in _resolve_url
  File "yt_dlp\extractor\lbry.py", line 32, in _call_api_proxy
  File "yt_dlp\extractor\common.py", line 997, in _download_json
  File "yt_dlp\extractor\common.py", line 976, in _download_json_handle
  File "yt_dlp\extractor\common.py", line 768, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 753, in _request_webpage
yt_dlp.utils.ExtractorError: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using  yt-dlp -U

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1389, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1459, in __extract_info
  File "yt_dlp\extractor\common.py", line 643, in extract
yt_dlp.utils.ExtractorError: [lbry] @CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>); please report this issue on  https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using  yt-dlp -U

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "yt_dlp\__main__.py", line 19, in <module>
  File "yt_dlp\__init__.py", line 864, in main
  File "yt_dlp\__init__.py", line 854, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3254, in download
  File "yt_dlp\YoutubeDL.py", line 3227, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1380, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1407, in wrapper
  File "yt_dlp\utils.py", line 1088, in format_traceback
TypeError: format_exception() missing 2 required positional arguments: 'value' and 'tb'
[19172] Failed to execute script '__main__' due to unhandled exception!

I had the same problem yesterday, but now it works again.
I think this can be closed.

@goedzo That is NOT the ENTIRE verbose log!!

@pukkandan I am having the same issue with the latest version, can verify, ran a similar command to see another video, I'll post my command and output and theirs:
checking that yt-dlp is actually on latest version
cmd: yt-dlp -U
Latest version: 2022.11.11, Current version: 2022.11.11
yt-dlp is up to date (2022.11.11)

me
cmd: yt-dlp -vU 'https://odysee.com/local-zoomer-touches-grass:576bddcbf5cf1805aca70f4a60eb67a95450b327' 2>&1
[debug] Command-line config: ['-vU', 'https://odysee.com/local-zoomer-touches-grass:576bddcbf5cf1805aca70f4a60eb67a95450b327']
[debug] User config "/home/julian/.config/yt-dlp.conf": ['-o', '~/dox/private/Videos/ytv/%(uploaders|Unkown)s/%(title)s.%(ext)s']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.11.11 [8b64402]
[debug] Python 3.10.8 (CPython x86_64 64bit) - Linux-6.0.7-artix1-1-x86_64-with-glibc2.36 (OpenSSL 3.0.7 1 Nov 2022, glibc 2.36)
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.12.0, brotlicffi-<IP_ADDRESS>, certifi-2022.09.24, secretstorage-3.3.3, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.11.11, Current version: 2022.11.11
yt-dlp is up to date (2022.11.11)
[debug] [lbry] Extracting URL: https://odysee.com/local-zoomer-touches-grass:576bddcbf5cf1805aca70f4a60eb67a95450b327
[lbry] local-zoomer-touches-grass#576bddcbf5cf1805aca70f4a60eb67a95450b327: Downloading stream JSON metadata
ERROR: [lbry] local-zoomer-touches-grass:576bddcbf5cf1805aca70f4a60eb67a95450b327: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 674, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/lbry.py", line 226, in _real_extract
    result = self._resolve_url(uri, display_id, 'stream')
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/lbry.py", line 46, in _resolve_url
    return self._call_api_proxy(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/lbry.py", line 31, in _call_api_proxy
    response = self._download_json(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1034, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 998, in download_handle
    res = self._download_webpage_handle(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 868, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 825, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 807, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
  File "/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3692, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 405: Method Not Allowed

Theirs
cmd: yt-dlp -vU 'https://odysee.com/@CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels' 2>&1
[debug] Command-line config: ['-vU', 'https://odysee.com/@CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels']
[debug] User config "/home/julian/.config/yt-dlp.conf": ['-o', '~/dox/private/Videos/ytv/%(uploaders|Unkown)s/%(title)s.%(ext)s']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2022.11.11 [8b64402]
[debug] Python 3.10.8 (CPython x86_64 64bit) - Linux-6.0.7-artix1-1-x86_64-with-glibc2.36 (OpenSSL 3.0.7 1 Nov 2022, glibc 2.36)
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.12.0, brotlicffi-<IP_ADDRESS>, certifi-2022.09.24, secretstorage-3.3.3, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1723 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.11.11, Current version: 2022.11.11
yt-dlp is up to date (2022.11.11)
[debug] [lbry] Extracting URL: https://odysee.com/@CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels
[lbry] @CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels: Downloading stream JSON metadata
ERROR: [lbry] @CafeWeltschmerz/lockdown-als-afleiding----patricia-mensink-en-anthony-migchels: Unable to download JSON metadata: HTTP Error 405: Method Not Allowed (caused by <HTTPError 405: 'Method Not Allowed'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 674, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/lbry.py", line 226, in _real_extract
    result = self._resolve_url(uri, display_id, 'stream')
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/lbry.py", line 46, in _resolve_url
    return self._call_api_proxy(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/lbry.py", line 31, in _call_api_proxy
    response = self._download_json(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1034, in download_content
    res = getattr(self, download_handle.__name__)(url_or_request, video_id, **kwargs)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 998, in download_handle
    res = self._download_webpage_handle(
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 868, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 825, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "/usr/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 807, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
  File "/usr/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3692, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 405: Method Not Allowed

https://github.com/yt-dlp/yt-dlp/pull/5585

#5585

Sorry, thought the issue wasn't solved as no reference was made, and the duplicate issue thing


Make the speed of Lines Slower Relative to ball

I would like to work on this issue.

bira91 Cool!!!!

https://github.com/igameproject/line-ball/pull/4

The issue has been fixed


Fix "split with" on virtual links

fixes #3765
Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes

Ensure only wire links are split with junctions/links
fix context menu insert junc/links enabled state
Ensure added junc(s) are selected

Feature parity with "Add Node" "Split wires with links" etc

Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage remained the same at 68.298% when pulling 75d3444391306155aaa3655e39f92a184bf77c53 on Steve-Mcl:fix-split-with into b28595c8143c2be903f58b8c4aa705acbd3c06e5 on node-red:master.


don't get error when "a variable is not a function"

Hi
The code:
var a; a();
Does not raise an error "a is not a function"

JSHint operates through static analysis. That means it does not execute the
input program. Instead, it issues warnings based on what it is able to infer
from inspecting the source code. In simple cases like your example, tracking
the type of a variable may seem like a tractable problem. However, because
JavaScript does not have a type system, this problem is not possible to solve
generally.

Ok Thanks!


Frontend email validation preventing password reset

Describe the bug
On the frontend email validation fails for valid emails resulting in the inability to reset a password.
To Reproduce
Steps to reproduce the behaviour:

Go to Sign-In
Click on Forgot Password
Enter<EMAIL_ADDRESS>See error

Expected behaviour
Send button should be active
Screenshots
Send button is inactive
How are you running Flagsmith?

[x] Self Hosted with Docker
[x] Self Hosted with Kubernetes
[ ] SaaS at flagsmith.com
[ ] Some other way

Additional context
I want to propose changing the regex to this which is RFC 5322 complaint.
I'll be happy to make the PR.
gz#504

Yep PR would be great thanks1


remove file extension from redirect URLs

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/cloud-adoption-guide/adoption-intro/resource-group-explainer.md
:white_check_mark:Succeeded
View

docs/cloud-adoption-guide/adoption-intro/resource-group.md
:white_check_mark:Succeeded
View

docs/cloud-adoption-guide/adoption-intro/resource-manager-explainer.md
:white_check_mark:Succeeded
View

docs/cloud-adoption-guide/adoption-intro/subscription-explainer.md
:white_check_mark:Succeeded
View

docs/cloud-adoption-guide/adoption-intro/subscription.md
:white_check_mark:Succeeded
View

docs/cloud-adoption-guide/adoption-intro/tenant-explainer.md
:white_check_mark:Succeeded
View

docs/cloud-adoption-guide/adoption-intro/tenant.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@bennage @MikeWasson - redirects from the old topics weren't working because they had file extensions. I removed them, they are working now.


rMATS

Hi Brad, Hi Roryl, Hi Lpantano,
I Brad I hope now is better.
@lpantano I have set rMATS to run using replicate for both sample and
control.
in the phenotype you have to set control or a sample name and I have
add replicate that as to be set as an integer.
I definitely agree with your and @roryk comment on False positive issues

nice, always is good to run with all replicates. Can you change docs as well so people know how to set it up. Maybe some example yaml file is a good idea. :)

Hi @apastore,
Sorry, I will get to this soon, I've been working on some of the RNA-seq stuff in bcbio-nextgen and need to figure out how this will fit in.

Sure
Sent from my iPhone

On Mar 8, 2016, at 9:33 PM, Rory Kirchner<EMAIL_ADDRESS>wrote:
Hi @apastore,
Sorry, I will get to this soon, I've been working on some of the RNA-seq stuff in bcbio-nextgen and need to figure out how this will fit in.
—
Reply to this email directly or view it on GitHub.

Heya-- I think we've mostly going in a different direction than rMATS, so sorry for not getting to this. Feel free to reopen if rMATS is something you all are using.


onboard to cloud

This PR does the following:

Add a cloud section to admin.json that specifies the repo name and name of the AWS S3 bucket that will hold the data.
Add a GitHub action that will push the hub's data to the above S3 bucket.

We are happy to answer questions here about how the cloud setup works!

Thanks @elray1 and @bsweger


Adds 'rq>0.7' version support

Changes:

Removed 'rq<0.7' part from deps
Added new options in cli and script
Added new function to check rq version in helpers
Added new logic to worker command in cli and script
Changed tox targets to test both latest and lowest rq versions
Fixed some test, which were failing due to isort

Refs #12, refs #13

Local tests:

py27-lowest: commands succeeded
py27-latest: commands succeeded
py27-devel: commands succeeded
ERROR:   py34-lowest: InterpreterNotFound: python3.4
ERROR:   py34-latest: InterpreterNotFound: python3.4
ERROR:   py34-devel: InterpreterNotFound: python3.4
ERROR:   py35-lowest: InterpreterNotFound: python3.5
ERROR:   py35-latest: InterpreterNotFound: python3.5
ERROR:   py35-devel: InterpreterNotFound: python3.5
py36-lowest: commands succeeded
py36-latest: commands succeeded
py36-devel: commands succeeded
docs: commands succeeded
readme: commands succeeded
manifest: commands succeeded

That's quite strange. Because when I try to fix these isort issues, it starts to fail locally.
What should I do? @jezdez

Except for the build failures (for isort...) this has been running well for me in production. Any chance to get a release with this fix?

Any progress on this? Would be much appreciated, as I need to use Flask-RQ2 with rq 0.7.1...

@asteinlein waiting for the @jezdez review.


Proxying does not work

Proxying does not seem to have any effect in my project.
The following files make a fully reproducible example.
I have an API running on localhost:8443 and want to send request over there by specifying only the path part of the URL.
elm.json
{
    "type": "application",
    "source-directories": [
        "src"
    ],
    "elm-version": "0.19.1",
    "dependencies": {
        "direct": {
            "elm/browser": "1.0.2",
            "elm/core": "1.0.5",
            "elm/html": "1.0.0",
            "elm/http": "2.0.0",
            "elm/json": "1.1.3"
        },
        "indirect": {
            "elm/bytes": "1.0.8",
            "elm/file": "1.0.5",
            "elm/time": "1.0.0",
            "elm/url": "1.0.0",
            "elm/virtual-dom": "1.0.2"
        }
    },
    "test-dependencies": {
        "direct": {},
        "indirect": {}
    }
}

index.html:

  <meta charset="UTF-8">
  <title>Main</title>

Main.elm:
module Main exposing (..)

import Browser
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)
import Http exposing (Error)
import Json.Decode as Decode exposing (Decoder, at, bool, float, int, map2, maybe, string)
import Task exposing (Task)

-- MAIN

main =
    Browser.element
        { init = init
        , update = update
        , subscriptions = subscriptions
        , view = view
        }

init : () -> ( (), Cmd Msg )
init _ =
    ( ()
    , Task.attempt
        (\result -> ())
        (getTask "measurements" string)
    )

update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
    ( model, Cmd.none )

view : Model -> Html Msg
view model =
    Html.div [] [ Html.text "Hey" ]

subscriptions : Model -> Sub Msg
subscriptions model =
    Sub.none

type alias Msg =
    ()

type alias Model =
    ()

-- Utils

api =
    "/api/v1/"

getTask : String -> Decoder a -> Task Error a
getTask service decoder =
    Http.task
        { method = "get"
        , headers = []
        , url = api ++ service
        , body = Http.emptyBody
        , resolver = Http.stringResolver <| handleJsonResponse decoder
        , timeout = Nothing
        }

handleJsonResponse : Decoder a -> Http.Response String -> Result Error a
handleJsonResponse decoder response =
    case response of
        Http.BadUrl_ url ->
            Err (Http.BadUrl url)

        Http.Timeout_ ->
            Err Http.Timeout

        Http.BadStatus_ { statusCode } _ ->
            Err (Http.BadStatus statusCode)

        Http.NetworkError_ ->
            Err Http.NetworkError

        Http.GoodStatus_ _ body ->
            case Decode.decodeString decoder body of
                Err _ ->
                    Err (Http.BadBody body)

                Ok result ->
                    Ok result

Then I run:
$ elm-live src/Main.elm --proxy-prefix '/api' --proxy-host 'http://localhost:8443' --  --output elm.js

Problem is that in Firefox debugging window under Network tab I can see that it actually sends a request to http://localhost:8000/api/v1/measurements.

This is correct. The browser makes a request to http://localhost:8000/api/v1/measurements, served by elm-live. Then under the hood the elm-live server will proxy the request to http://localhost:8443/api/v1/measurements.

Ah, I understand.
But I still have a problem: The requests it sends return 404.
For example I see in the Network tab GET http://localhost:8000/api/v1/measurements that resulted in 404.
But if I run curl http://localhost:8443/api/v1/measurements, it is successful.

It looks like proxy prefix is deleted from URL: https://github.com/wking-io/elm-live/blob/master/lib/src/start.js#L187
i.e. http://localhost:8000/api/v1/measurements would be proxied to http://localhost:8443/v1/measurements with --proxy-prefix '/api'

Huh, that makes little sense. Thanks for figuring that out.
Now I'm unsure how I can achieve what I want:
I want to locally run the app with elm-live and proxy all requests to an API running on a different port.
In production, I want the same Elm code to send a request to the path part of URL: /api/v1/, so if it's running on example.com and sends a request to /api/v1/something, it gets sent to example.com/api/v1/something

@Ploppz Add /api to the proxy-host as well, like so:
elm-live src/Main.elm --proxy-prefix '/api' --proxy-host 'http://localhost:8443/api' --  --output elm.js

See https://www.elm-live.com/#getting-started and scroll down to documentation for --proxy-prefix:

NOTE: The string passed to --proxy-prefix will be removed from the --proxy-host url. If you would like the url to include the prefix just add it there as well like: http://localhost:5000/api

Ahh missed that, sorry

No problem! Glad to hear you're up & running. 👋


Docs and/or out-of-the-box solution for node/python dependencies

Since you have to npm install or pip whatever in the dirs you can't really use Apex out of the box without adding a build/deploy hook command. NPM is really slow so it's not ideal to run each time unless the deps have actually changed, perhaps we could have built-in mtime change detection:
{
  "hooks": {
    "build": {
      "modified": "package.json",
      "command": "npm install"
    }
  }
}

It wouldn't be hard to consider that out of scope, but at least it could provide a nicer OOTB experience. Alternatively we just hunt down some mtime command and suggest:
{
  "hooks": {
    "build":  "changed package.json && npm install"
  }
}

I think this solution is cleaner, maybe we can ship one with apex so it works without installing some weird random non-portable tool.

This is a tough one, especially since you're going for runtime agnosticism. You could set up an implicit check based on the runtime type (nodejs -> package.json, python -> requirements.txt, java -> pom.xml) with the ability to modify the file watch with a imports or dependencies config option.

I personally don't like changed as it's another binary that has to be shipped and the name is conflictual. Maybe something level higher like:
{
  "hooks": {
    "npm": true
}

For every language there is one major dependency manager that we could support so maybe it's something to consider.

Could you depend on diffing via an SCM tool (git, hg, et al.)?

If we use properties that define the targets we could just inject those for the runtime in their "plugin" by default, and "build" just remains "npm install" by default so they can override and add --production etc. Then we just need to specify something like "changed": "package.json > node_modules" (in whatever kind of props/dsl/whatever)

Quick and dirty solution I have adopted is to use make to detect file changes etc ...


fix(#minor); Uniswap V3; Removed unused fields from the liquidity pool entity

Context
There are some fields related to rewards emissions, and the price of the output token which are not applicable to Uniswap V3. There are no rewards emission for Uniswap V3, and because the protocol mints NFTs that represent positions, we do not price the OutputTokens (NFTs).

Maybe this is a good opportunity to git-ignore the subgraph.yaml


Feature/discogs

Hello @LMByrne! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file bot/disco/api.py:

Line 141:80: E501 line too long (86 > 79 characters)
Line 240:80: E501 line too long (106 > 79 characters)

In the file bot/disco/core.py:

Line 235:80: E501 line too long (83 > 79 characters)
Line 362:80: E501 line too long (84 > 79 characters)
Line 451:80: E501 line too long (90 > 79 characters)
Line 471:80: E501 line too long (93 > 79 characters)

In the file bot/disco/discogs.py:

Line 51:80: E501 line too long (99 > 79 characters)
Line 96:80: E501 line too long (117 > 79 characters)
Line 145:80: E501 line too long (120 > 79 characters)
Line 148:80: E501 line too long (104 > 79 characters)
Line 151:80: E501 line too long (88 > 79 characters)
Line 152:80: E501 line too long (93 > 79 characters)
Line 154:80: E501 line too long (116 > 79 characters)
Line 156:80: E501 line too long (89 > 79 characters)
Line 163:80: E501 line too long (82 > 79 characters)
Line 165:80: E501 line too long (100 > 79 characters)
Line 170:80: E501 line too long (124 > 79 characters)
Line 173:13: E265 block comment should start with '# '
Line 174:13: E265 block comment should start with '# '
Line 179:80: E501 line too long (80 > 79 characters)
Line 191:80: E501 line too long (100 > 79 characters)
Line 196:80: E501 line too long (124 > 79 characters)
Line 211:80: E501 line too long (98 > 79 characters)
Line 216:80: E501 line too long (122 > 79 characters)
Line 231:80: E501 line too long (98 > 79 characters)
Line 236:80: E501 line too long (91 > 79 characters)

In the file bot/disco/fm.py:

Line 75:80: E501 line too long (80 > 79 characters)
Line 139:80: E501 line too long (82 > 79 characters)
Line 192:80: E501 line too long (83 > 79 characters)
Line 334:80: E501 line too long (83 > 79 characters)
Line 374:80: E501 line too long (86 > 79 characters)
Line 428:80: E501 line too long (84 > 79 characters)
Line 483:80: E501 line too long (84 > 79 characters)
Line 538:80: E501 line too long (84 > 79 characters)
Line 582:80: E501 line too long (85 > 79 characters)
Line 625:80: E501 line too long (82 > 79 characters)
Line 669:80: E501 line too long (84 > 79 characters)
Line 756:80: E501 line too long (101 > 79 characters)
Line 796:80: E501 line too long (80 > 79 characters)

In the file bot/disco/superuser.py:

Line 40:80: E501 line too long (85 > 79 characters)
Line 62:80: E501 line too long (86 > 79 characters)
Line 88:80: E501 line too long (105 > 79 characters)
Line 102:80: E501 line too long (105 > 79 characters)
Line 114:80: E501 line too long (98 > 79 characters)
Line 126:80: E501 line too long (85 > 79 characters)
Line 136:80: E501 line too long (102 > 79 characters)

In the file bot/disco/voice.py:

Line 220:80: E501 line too long (86 > 79 characters)
Line 331:80: E501 line too long (92 > 79 characters)
Line 519:80: E501 line too long (94 > 79 characters)


Improve the docs of kubegems

Before v1.21.0 release, we should improve the docs of kubegems, include:

CHANGELOG.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
README.md
Pull request template
Other docs on kubegems.io

Finished.


Works on localhost but not on my website [Bug]

Describe the bug
The phantom wallet connection popup works on localhost but once I uploaded it to my website it no longer triggers the popup. Example here -
https://eggysgames.com/game/gametester
To Reproduce
Steps to reproduce the behavior:
add the web3 component and then login with wallet adapter
Expected behavior
just need the phantom popup to come up
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Unfortunately, the WalletAdapter on iOS is not yet supported with the WebGL build target, but it will work if you compile natively. This is because the official specification/implementation does not yet support iOS.


AC-149 Unable to specify source and desination IPs in VPC while creating ACL Rules

Description
This PR...

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

closing this and will open this PR in private branch.


Use copy_from_slice instead of manual loop where possible

There is no need to reinvent the wheel.

Pull Request Test Coverage Report for Build 1148

0 of 0   changed or added relevant lines in 0 files are covered.
27 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.005%) to 94.895%

Files with Coverage Reduction
New Missed Lines
%

newtype_macros.rs
27
40.23%

Totals

Change from base Build 1133:
-0.005%

Covered Lines:
2993

Relevant Lines:
3154

💛  - Coveralls

bors: r+

bors: retry


hello ~

I think that sdf of waffle model is missing imu joint,
When I running cartographer at gazebo simulation by waffle model , I see odom unstable and the map is badly twisted.
I think one of the causes is imu joint missing . :)
Thank you for your review.

I miss title


addRequestHandler override the default CefRequestHandler

As we discussed in this issue. addRequestHandler will override the default CefRequestHandler and block the future request.

8ebc5fee0281b52051474cb9ccbb645b71605852

@DatL4g It appears that you just provided a default CefResourceRequestHandler, but the default CefRequestHandler is still missing. So should the same problem still exist if we just call addRequestHandler which will override the default implementation?
I have tested it with the latest KECF version and confirmed that the problem still exists. You can find the test code here.

@DatL4g It appears that you just provided a default CefResourceRequestHandler, but the default CefRequestHandler is still missing. So should the same problem still exist if we just call addRequestHandler which will override the default implementation?
I have tested it with the latest KECF version and confirmed that the problem still exists. You can find the test code here.

@DatL4g Are there any updates on this issue? We need to override onBeforeBrowse to intercept the Url request.


Changes to the Home content

📄 Context
The home page is the list of the latest inputs. That was a good starting point, but as the application is growing, we can present a more homely space with summaries and pathways to go to places of interest.
✔ Solution
We move the current Inputs title/table to its page, similar to the applications page regarding the presentation. Also, adding the new content in the home to replace the Input-oriented content.

Move the Input icon + title and table content to its page under /inputs
Home content;

Current summary of applications and inputs stays as it is.
Add two cards to list the latest 6 inputs and 6 applications.
The cards should be presented in a single column for small screens; otherwise, two-column arrangements.

New Cards details:

The cards should include header + content + footer.
The copy for the card's header is Latest inputs and Latest applications, respectively.
For input, the content should be a table with two columns Address, Age

Address is the application ID.
The address is in a short format, and the age is in a human-readable date/time (Using the same format displayed in the full input table).
Address should be clickable and go to the applications/app-address.

For applications: the content should be a table with Two columns, Address and Age.

Address is the application ID.
The address is in a short format, and the age is in a human-readable date/time (Using the same format displayed in the full input table).

 Clicking goes to the respective pages.

📈 Subtasks

[ ] Move the input icon + title and Input table to a new page under /inputs.
[ ] Add the new Card with information about inputs. Details above
[ ] Add the new Card with information about applications. Details above
[ ] Presentation respects the distinction between small and big screens. Details above
[ ] Add test cases.

🎯 Definition of Done

[ ] Users can see the home with a summary of total applications/inputs.
[ ] Users can see the list of the latest 6 applications and inputs in separate cards.
[ ] When clicking an application Address, it goes to the page of such application.
[ ] When the user clicks the VIEW ALL INPUTS it goes to the /inputs page.
[ ] When the user clicks the VIEW ALL APPLICATIONS link, it goes to the /applications page.

It depends on a small change in the API: https://github.com/cartesi/rollups-explorer-api/pull/17

API changes status.
Merged: https://github.com/cartesi/rollups-explorer-api/pull/17
Release:  v0.3.0
Deployed on: [Sepolia, Mainnet] environments


Enable "Deploy to Function App" via PyStein function_app.py

The existing Python model allows users to deploy to a Function App via the context menu of the primary Python file (i.e. __init__.py).  The new PyStein model should have similar functionality via its new primary function_app.py Python file.

Hi @philliphoff
I was looking into this enhancement, and I'm not sure I see how users can deploy to a Function App via the context menu from the primary Python file. I couldn't find anything in our code that indicates that this is enabled either.
We do allow users to right-click the file explorer view to deploy Function Apps. Could that be what you were thinking of?


https://dropwizard.io has invalid certificate

https://dropwizard.io has invalid certificate (looks like it is a certificate from github.com)
https://www.dropwizard.io works fine.

Thanks for reporting this.
GitHub currently doesn't support multiple CNAMEs and thus also doesn't support multiple (or wildcard) SSL certificates via GitHub Pages:
https://help.github.com/articles/troubleshooting-custom-domains/#multiple-domains-in-cname-file
FWIW, http://dropwizard.io/ already redirects to https://www.dropwizard.io:
$ curl -I http://dropwizard.io/
HTTP/1.1 301 Moved Permanently
Server: GitHub.com
Date: Sun, 02 Sep 2018 16:32:00 GMT
Content-Type: text/html
Content-Length: 178
Location: https://www.dropwizard.io/
X-GitHub-Request-Id: C0EB:4A13:3CD02B2:4EE8200:5B8C1080


refactor(linux): remove zbus and use unity launcher APIs directly

I have wasted so much time today trying to see if this implementation works but I can't confirm that it works at all, I couldn't also get the zbus implementation to work as well.

I have wasted so much time today trying to see if this implementation works but I can't confirm that it works at all,

This also adds more code and hence complexity but if maintainers are happy, why not? :)

I couldn't also get the zbus implementation to work as well.

In the future, if you have problems using zbus, do consider asking for help, either in our issues, discussions or our Matrix channel.

@zeenix thank you, it wasn't an issue with zbus itself at all. I simply wasn't able to observe the effects of the implementation on the window manager.
As for the decision to remove zbus, was because it added a bit of size (around 500kb) to the minimalist tauri app. We still use zbus in other places like single-instance and notifications (through notify-rust) plugins but that's optional additions.

@zeenix thank you, it wasn't an issue with zbus itself at all. I simply wasn't able to observe the effects of the implementation on the window manager.

Ah ok.

As for the decision to remove zbus, was because it added a bit of size (around 500kb) to the minimalist tauri app.

Fair enough. I'm working on some changes slowly that should help with the size issue.

We still use zbus in other places like single-instance and notifications (through notify-rust) plugins but that's optional additions.

:+1:


add Line Notify support

LINE is the most popular messenger in Southeast Asian countries like Japan, Korea, Taiwan, etc.
documentation
https://notify-bot.line.me/doc/en/
example
https://engineering.linecorp.com/en/blog/using-line-notify-to-send-messages-to-line-from-the-command-line/

Will do this on next release

Seems like I cannot register a new service to try their API. If you have an existing account I could use for development, that would be great


Added a more robust monit check that looks for response from riak-cs ping endpoint

Currently, it is possible under several circumstances (e.g. disk capacity is maxed out) for the Riak-CS pid file to exist even when the process has stopped or stopped responding.  As such, monit will not attempt a restart if the pid file exists.  We have added a secondary monit failure check to verify that the riak-cs heartbeat endpoint at "/riak-cs/ping" is also responding.  If not, monit with detect the failure condition and restart the riak-cs process.

Hi Rick!
Thank you, this looks like a really interesting PR! Unfortunately, it's not filed against the 'develop' branch per our (just written, as-yet-unpublished) contributor instructions: https://github.com/cloudfoundry/cf-riak-cs-release/blob/develop/CONTRIBUTING.md
If you wouldn't mind, please close this PR and re-open it against the develop branch? Much appreciated!

Hi Marco,
I just refiled the pull request against the develop branch as requested.  Thanks for the guidance on changing contributor instructions.
Thanks,
Rick
On April 1, 2015 at 10:11:59 AM, Marco Nicosia<EMAIL_ADDRESS>wrote:
Hi Rick!
Thank you, this looks like a really interesting PR! Unfortunately, it's not filed against the 'develop' branch per our (just written, as-yet-unpublished) contributor instructions: https://github.com/cloudfoundry/cf-riak-cs-release/blob/develop/CONTRIBUTING.md
If you wouldn't mind, please close this PR and re-open it against the develop branch? Much appreciated!
—
Reply to this email directly or view it on GitHub.

Thanks much, Rick. Will schedule for the Eng team to review. I'll close this PR in favor of the new one.
--
Marco Nicosia
Product Manager, Core Services
Pivotal Software, Inc.