print data from API / JSON

how to print data from api / json?
which calls array data using the fetch function

I am not sure what u r asking
发自我的 iPhone

在 2019年7月15日，下午8:39，rafiafmar<EMAIL_ADDRESS>写道：
how to print data from api / json?
which calls array data using the fetch function
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

like in the example to print a recipe that the value is entered manually:
await BluetoothEscposPrinter.printText ("... \ r \ n", {});
or
await BluetoothEscposPrinter.printColumn (..., [...], [...], ["..."], {};
my question what if the value comes from an API / JSON array data, so the printed data can be automatic?
I call the data array using the fetch function ...
and i use android

Sorry， still cannot get it， but we can see a JSON as a js object, or you may need to parse it with with js JSON object.
发自我的 iPhone

在 2019年7月15日，下午9:38，rafiafmar<EMAIL_ADDRESS>写道：
like in the example to print a recipe that the value is entered manually:
await BluetoothEscposPrinter.printText ("... \ r \ n", {});
or
await BluetoothEscposPrinter.printColumn (..., [...], [...], ["..."], {};
my question what if the value comes from an API / JSON array data, so the printed data can be automatic?
I call the data array using the fetch function ...
and i use android
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

sorry, what does it mean to see JSON as a js object?
I have an API / JSON address:
https://skripsiuwp.000webhostapp.com/SFA/keranjang_penjualan.php
can it be printed or at least it can be displayed on the application screen according to the template of the recipe that you are example?

sorry are u a programmer? If not, plz ask your programmer to do that
发自我的 iPhone

在 2019年7月16日，上午6:43，rafiafmar<EMAIL_ADDRESS>写道：
sorry, what does it mean to see JSON as a js object?
I have an API / JSON address:
https://skripsiuwp.000webhostapp.com/SFA/keranjang_penjualan.php
can it be printed or at least it can be displayed on the application screen according to the template of the recipe that you are example?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Hmmmm, This is a printing plugin, cannot handle the networks.
发自我的 iPhone

在 2019年7月16日，上午6:43，rafiafmar<EMAIL_ADDRESS>写道：
sorry, what does it mean to see JSON as a js object?
I have an API / JSON address:
https://skripsiuwp.000webhostapp.com/SFA/keranjang_penjualan.php
can it be printed or at least it can be displayed on the application screen according to the template of the recipe that you are example?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

thank you for your information


Updated for Swift 3

And created a new release

@Anders123fr Thanks for this PR @Anders123fr. Can you also update the CHANGELOG.md?
Thank you!

@Anders123fr Can you rebase your branch with master?

After merging your branch locally, I am getting the following warning. Can you look into this issue?

I changed to private and fixed the warnings, except for the Single Line Etched warning... deleted every setting related to it but couldn't get rid of it.
Is that enough to merge?


Can i custom a pagination?

Hi @glittershark,
Can i custom a pagination from link of page numbers to be next/previous link only?
Thanks

It looks like you need to fork repo, create new/customize current paginator. I've just faced the same problem


Tests run with quarkus dev but not with ./mvnw test

I've finished writing a sample quickstart app using Scala 3 and Quarkus with this extension and it works fine!
I noticed while creating a Github action to run the tests, that ./mvnw test doesn't run my Scala tests but the interactive quartus dev or ./mvnw quarkus:test do.
Anything I could be doing wrong? How do I just run the tests for the app without hot reloading?
The code is at: https://github.com/carlosedp/scala3-quarkus-quickstart
Also, can you publish snapshots to some repository? As 0.0.2 is not published, I have to build and install it locally.
Thanks

Found-out my test class was named class GreetingResourceSpec. When renamed to class GreetingResourceTest the test was picked.


Support function pointer

This patch introduced indirect function call, which is required by
function pointers. New opcode "OP_indirect" appears in IR, and both Arm
and RISC-V implementations are implemented accordingly.
Later, we can even encapsulate the target-specific code generations with
function pointers, that means no duplicated "codegen.c" file.

Test procedure:
make clean config ARCH=riscv check
make clean config ARCH=arm check

Both are working to me.
Known issue: failed to bootstrap:
  SHECC	out/shecc-stage2.elf
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault (core dumped)

@eecheng87, Finally, it can self-host and pass the test suite. Ready for reviewing.


Write test samples in the documentation are 100% read instead of 100% write workload

In the documentation document (Word and pdf) in section 7 "Sample command lines" the write test have the flag '-w' instead of '-w100' resulting in a 100% read-only workload (as described in the description of the -w parameter).

The documentation has now been migrated to the Wiki and the command lines have been updated.


Remove FB + Twitter buttons from app gallery

Let's take out the "Share to Twitter" and "Share to Facebook" buttons since we're not going to do that project yet: https://skitch.com/e-merc3po/g3eie/remove-sharing

done!


Compute bounding boxes for both old and new elements

Bounds elements are now computed for both old and new versions of each OSM element in the augmented diff.
Opened follow up issue #46 to address later, as its not critical if this is exactly correct for our use case.
Demo

Closes #40

Noting that for augmented diff 4215720, this change bumped the elements equal count using ./tests/validate.py from 285/2920 elements to 1513/2920 elements 🎉


Missing Type Definition File for @types/je st

Created new angular-cli version 7 project and did a test drive using Spectator.
Received an error when running ng test:
ERROR in node_modules/@netbasal/spectator/lib/mock.d.ts(1,23): error TS2688: Cannot find type definition file for '@types/jest'.
Installing @types/jest does not help, since I have inference with jasmine types (want to stick to Jasmine)
Any help is appreciated

@LayZeeDK @dirkluijk any suggestions?

@NetanelBasal: Problem has been solved. After adding @types/jest to devDependencies and changing:
   "types": [       "jasmine",       "node"     ]
to
    "types": [       "jest",       "node"     ]
in tsconfig.spec.json

Cool, thanks!

is that the suggested solution even if not using Jest?

My initial setup with angular-cli 7.0.0 and npm install @netbasal/spectator --save-dev
gives:
ERROR in node_modules/@netbasal/spectator/lib/mock.d.ts(1,23): error TS2688: Cannot find type definition file for '@types/jest'. // what is obvious /// <reference types="@types/jest" /> import { Provider, Type } from '@angular/core'; import { SpyObject as BaseSpyObject } from '@netbasal/spectator'; export declare type SpyObject<T> = BaseSpyObject<T> & {     [P in keyof T]: T[P] & jest.Mock<T>; // <- Here is the problem }; export declare function createSpyObject<T>(type: Type<T>, template?: Partial<Record<keyof T, any>>): SpyObject<T>; export declare function mockProvider<T>(type: Type<T>, properties?: Partial<Record<keyof T, any>>): Provider;
adding @types/jest
npm install --save-dev @types/jest
running ng test
gives:
ERROR in node_modules/@types/jasmine/index.d.ts(21,1): error TS6200: Definitions of the following identifiers conflict with those in another file: describe, fdescribe, xdescribe, it, fit, xit, beforeEach, afterEach, beforeAll, afterAll, expect, clock, CustomEqualityTester, CustomMatcherFactory, DEFAULT_TIMEOUT_INTERVAL node_modules/@types/jasmine/index.d.ts(185,9): error TS2375: Duplicate number index signature. node_modules/@types/jasmine/index.d.ts(188,15): error TS2428: All declarations of 'ArrayContaining' must have identical type parameters. node_modules/@types/jasmine/index.d.ts(195,15): error TS2428: All declarations of 'ObjectContaining' must have identical type parameters. node_modules/@types/jasmine/index.d.ts(238,9): error TS2374: Duplicate string index signature. node_modules/@types/jasmine/index.d.ts(243,9): error TS2687: All declarations of 'message' must have identical modifiers. node_modules/@types/jasmine/index.d.ts(243,9): error TS2717: Subsequent property declarations must have the same type.  Property 'message' must be of type 'string | (() => string)', but here has type 'string'. node_modules/@types/jest/index.d.ts(23,1): error TS6200: Definitions of the following identifiers conflict with those in another file: describe, fdescribe, xdescribe, it, fit, xit, beforeEach, afterEach, beforeAll, afterAll, expect, clock, CustomEqualityTester, CustomMatcherFactory, DEFAULT_TIMEOUT_INTERVAL node_modules/@types/jest/index.d.ts(990,46): error TS2314: Generic type 'ArrayContaining<T>' requires 1 type argument(s). node_modules/@types/jest/index.d.ts(991,45): error TS2314: Generic type 'ObjectContaining<T>' requires 1 type argument(s). node_modules/@types/jest/index.d.ts(1017,15): error TS2428: All declarations of 'ArrayContaining' must have identical type parameters. node_modules/@types/jest/index.d.ts(1023,15): error TS2428: All declarations of 'ObjectContaining' must have identical type parameters.
after changing
   "types": [       "jasmine",       "node"     ]
to
   "types": [       "jest",       "node"     ]
in tsconfig.spec.json
does solve all the errors above.
Do I miss something?

@claboran  no, your workaround works. I verified it. However, that's a workaround. The developer should not receive the error after running npm install @netbasal/spectator --save-dev.
It should just work.
I think this issue should be re-opened untill there is a proper fix in place (@NetanelBasal ).

I created a new Angular project with cli, installed Spectator, run the tests, and I don't get any error, do I miss something, guys?

I can reproduce it as well. I will investigate this immediately, as this is breaking.

The problem is as follows:
When building the Spectator lib, it uses (and includes!) Jest typings (for the whole project) because it can't use both Jasmine and Jest typings at the same time (Definitions of the following identifiers conflict...).
But developers should be able to use Spectator without having to import Jest's typings. I am now looking for a way to solve this. It would be solved if I can use a different tsconfig.json for the secondary entry point.

Thanks, @dirkluijk, I will try to help when I have time.

No succes yet. I tried this:
tsconfig.json
{
  ...
  "types": [],
}

public_api.ts
/// <reference types="@types/jasmine" />

// ...

jest/public_api.ts
/// <reference types="@types/jest" />

// ...

But this still conflicts as ng-packagr builds them with the same typescript compiler instance. Will look for other workarounds. Would be nice when jest typings are not conflicting with jasmine.

I have a possible fix: https://github.com/dirkluijk/spectator/commit/6a3f63b2fcd1639dbf078104693740a88868e632.
However, in my test app I get this weird error when using Spectator:
Chrome 71.0.3578 (Mac OS X 10.14.0) AppComponent should have as title 'testje-spectator' FAILED
        Failed: Cannot read property 'injector' of null
        TypeError: Cannot read property 'injector' of null
            at<EMAIL_ADDRESS>(http://localhost:9876/spectator/node_modules/@angular/core/fesm5/testing.js?:1724:1)
            at<EMAIL_ADDRESS>(http://localhost:9876/spectator/node_modules/@angular/core/fesm5/testing.js?:1637:1)
            at<EMAIL_ADDRESS>(http://localhost:9876/spectator/node_modules/@angular/core/fesm5/testing.js?:1497:56)
...

I have no idea what causes this. Someone?

Need to see it live. You've only changed typings, weird 🤔.


design.css

Star this repo : https://github.com/DeepanshuGoel1122/CodeEasy
and follow him: https://github.com/DeepanshuGoel1122
let's build connection stronger


Problems with os-firewall

Hello there :)
I have found several errors when dealing with firewall resources (os-firewall installed)
Let me expose them here:
1. Firewall NAT rules seems to be created but not shown anywhere:
example of resource:
resource "opnsense_firewall_nat" "test_http_forwarding_rule" {
  interface = "wan"
  protocol  = "TCP"

  source = {
    net = "any"
    invert = false
  }

  destination = {
    net  = "wanip"
    port = 8080
  }

  target = {
    ip = "heimdal"
    port = 80
  }

  description = "[TEST] Forward HTTP traffic to Nginx Gateway"
}

Error 1: Description length should handle max 255 chars, but fails with this long. Don't fail with Forward HTTP traffic
Error 2:

2. Firewall aliases are correctly created but crashed after it:
example resource:
resource "opnsense_firewall_alias" "kubernetes_lb_wireguard" {
  name = "test_kubernetes_lb_wireguard"

  type    = "host"
  content = [
    "<IP_ADDRESS>"
  ]

  stats       = true
  description = "[TEST] Custom name for Kubernetes' LoadBalancer exposing Wireguard"
}

First apply is fine, and the resource is created fine, but in the second apply:

Hi @achetronic, thank you for flagging these! I'll get these fixed as soon as I can.

Hi @achetronic, thank you for flagging these! I'll get these fixed as soon as I can.

No problem! I will rise the things I find 🫣😄

Hey @achetronic
Thanks again for flagging this. I've finally got around to fixing them in the most recent release (v0.7.0).
For the first issue you flagged, the bug was a bit weird, the standard OPNsense firewall rules let you put special characters in the description, but the os-firewall plugin doesn't, so since you had [TEST] it was failing on the OPNsense end, but TF thought the resource was created. I've added validations now to prevent special characters in the description, so it should work correctly now.
For the second issue, it was a weird issue where the OPNsense API returned an empty array rather than an empty object, so the code failed to parse it. This should also be handled now.
Just a note, these resources use the os-firewall plugin, which puts the resources in a different place (i.e. not the regular places you find the rules in OPNsense), see below. Just thought I'd mention it since the first image you included is of the regular OPNsense firewall, rather than the os-firewall.

Firewall > Automation > Filter / Source NAT is where you can find the resources

I'll close this issue now, but feel to comment if you still run into these issues and I'll reopen it and investigate further.

oh Thank you! @browningluke I will test this ASAP and will give you feedback for both, this one and this other: https://github.com/browningluke/terraform-provider-opnsense/issues/27#issuecomment-1763256160


Write "How does its work?" section in the readme

Add info about the expected disk size for working with the file.


CSS path completion only works for one folder level

VSCode Version: 1.22.0 Insiders
OS Version: Windows 10

Steps to Reproduce:

In the vscode-docs repo and open inproduct-releasenotes.css.
Try url() and trigger suggestions. You get a list of folders. Select "docs/".

There are no further suggestions to navigate the folder structure.
Found during testing #46537

path suggestions do work if you use a relative path:


EVEREST-488 Added version command

CHANGE DESCRIPTION
Problem:
EVEREST-488
Solution:
Short explanation of the solution we are providing with this PR.
CHECKLIST
Jira

[x] Is the Jira ticket created and referenced properly?

Tests

[x] Is an Integration test/test case added for the new feature/change?
[x] Are unit tests added where appropriate?

Codecov Report

Merging #174 (3890e52) into main (18a80a6) will increase coverage by 0.18%.
The diff coverage is 46.15%.

@@           Coverage Diff            @@
##            main    #174      +/-   ##
========================================
+ Coverage   4.86%   5.05%   +0.18%
========================================
  Files         12      13       +1
  Lines       2957    2970      +13
========================================
+ Hits         144     150       +6
- Misses      2786    2793       +7
  Partials      27      27

Files
Coverage Δ

pkg/version/version.go
46.15% <46.15%> (ø)

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


docs: document bound std cheat (forge std)

issue:
https://github.com/foundry-rs/book/issues/267

@all-contributors add @shawnharmsen for docs


drivers/battery: Handle the early changed event correctly

Summary
since it may happen before battery_xxx_register sometime
Impact
Some corner case
Testing
Internal test

Actually, I prefer the driver call battery_charger_register inside the initialization function(e.g. bq2429x_initialize), so it can arrange thee code that call battery_charger_register before enable the interrupt. But, the change in this PR is a safe guard to make sure the old driver work correctly in the extreme case.

Actually, I prefer the driver call battery_charger_register inside the initialization function(e.g. bq2429x_initialize), so it can arrange the code that call battery_charger_register before enable the interrupt. But, the change in this PR is a safe guard to make sure that old driver work correctly in the extreme case.

I am okay with that. Thanks.

Adding battery_charger_initialize that will init semaphore and the list (move init part from battery_charger_register) and calling it from bq2429x_initialize is a solution that will fix the problem and keep the existing behaviour.

Adding battery_charger_initialize that will init semaphore and the list (move init part from battery_charger_register) and calling it from bq2429x_initialize is a solution that will fix the problem and keep the existing behaviour.

Both approach need change bq2429x_initialize, either is fine, but it look a little bit redundancy to has two initialize functions.

@xiaoxiang781216 @hartmannathan so what is the plan? Just go with existing change, or merging this and then introducing a "breaking change" to call battery_charger_register from bq2429x_initialize?

It's better to do the breaking change in the new PR, thanks.


Allow 404s in web-test-runner-plugin

Changes
This updates @snowpack/web-test-runner-plugin to allow 404 requests to pass through the plugin. This avoids issues where the test runner plugins serve virtual files that snowpack doesn't know about.
Currently when there is a 404 it prints a big stack trace without any clue for the user which request went wrong. The test runner has logging for 404s, so by letting them pass through we can let other plugins handle them or otherwise print a nice 404 message
Before this change:
> web-test-runner "src/**/*.test.js"

  http://localhost:8080 • http://<IP_ADDRESS>:8080
  Server started in 14ms.

  Error: NOT_FOUND
      at Object.loadUrl (/Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/snowpack/lib/index.js:131359:19)
      at async Object.serve (/Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@snowpack/web-test-runner-plugin/plugin.js:36:22)
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/pluginServeMiddleware.js:20:30
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/pluginTransformMiddleware.js:34:9
      at async etag (/Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/koa-etag/index.js:27:5)
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/etagCacheMiddleware.js:9:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/watchServedFilesMiddleware.js:15:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/test-runner-core/dist/server/middleware/cacheMiddleware.js:10:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/test-runner-core/dist/server/middleware/watchFilesMiddleware.js:148:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/server/createMiddleware.js:26:9

  Error: NOT_FOUND
      at Object.loadUrl (/Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/snowpack/lib/index.js:131359:19)
      at async Object.serve (/Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@snowpack/web-test-runner-plugin/plugin.js:36:22)
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/pluginServeMiddleware.js:20:30
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/pluginTransformMiddleware.js:34:9
      at async etag (/Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/koa-etag/index.js:27:5)
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/etagCacheMiddleware.js:9:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/middleware/watchServedFilesMiddleware.js:15:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/test-runner-core/dist/server/middleware/cacheMiddleware.js:10:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/test-runner-core/dist/server/middleware/watchFilesMiddleware.js:148:9
      at async /Users/ri04pi/Workspace/code/mine/web-example-projects/my-app/node_modules/@web/dev-server-core/dist/server/createMiddleware.js:26:9

src/App.test.js:

 🚧 Browser logs:
      TypeError: Failed to fetch dynamically imported module: http://localhost:8000/dist/App.test.js

 ❌ Could not import your test module. Check the browser logs or open the browser in debug mode for more information.

Chrome: |██████████████████████████████| 1/1 test files | 0 passed, 0 failed

Error while running tests.

After this change:
> web-test-runner "src/**/*.test.js"

  http://localhost:8080 • http://<IP_ADDRESS>:8080
  Server started in 14ms.

src/App.test.js:

 🚧 Browser logs:
      TypeError: Failed to fetch dynamically imported module: http://localhost:8000/dist/App.test.js

 🚧 404 network requests:
    - dist/non-existing-a.js
    - dist/non-existing-b.js

 ❌ Could not import your test module. Check the browser logs or open the browser in debug mode for more information.

Chrome: |██████████████████████████████| 1/1 test files | 0 passed, 0 failed

Testing
There are currently no tests for this plugin.
Docs
This is an internal change, the user does not need to take any action.

LGTM!


Reg2const arithmetic and tracking previously set ssa vars

This PR addresses the addition of two functionalities:

reg2const arithmetic: this requires to keep track of registers set with a constant value through the SetBitsOp for potential later reuse.
Keep track of ssa variables: in the same line as above, there is now functionality to keep track of previously created ssa vars for later reuse.

This work also encompasses an architectural re-design of the package in three main parts:

A QIR parser
A QIR generator
A module that extends the pyqir SimpleModule to handle custom define quantum functions.

Hi @cqc-alec , I recall Pete was also requesting for reviewing this PR. Since he is busy with IEEE this week, I will request his review next week.

PyQIR 0.6.0 is released on PyPI now.

PyQIR 0.6.0 is released on PyPI now.

Thanks @samarsha this is going to be helpful.

Since this includes changes from #6 I will review once that is merged.

Needs merge from develop please.

Yes, sure. But since this PR contains changes from #7, I'd rather merge the other first if that's possible.

Please remove the 4 wheels.
Please remove utils.py~.

Thanks, I don't know why the references to these files keep propagating through various PRs although I've removed them in several other places.

Could you please create a (low-priority) task to make SetBits and ClassicalExpBox support the trivial no-wires case? Ideally we should support this but maybe there are issues with pytket that prevent it.

Sure. But don't they already support it ? I thought from the examples above that setting them with empty registers was valid. Or, am I getting confused ?
Thanks for the review.

Could you please create a (low-priority) task to make SetBits and ClassicalExpBox support the trivial no-wires case? Ideally we should support this but maybe there are issues with pytket that prevent it.

Sure. But don't they already support it ? I thought from the examples above that setting them with empty registers was valid. Or, am I getting confused ?

E.g. https://github.com/CQCL/pytket-qir/pull/8/commits/e0c46daf5c66f8cee80f27177d1663c3bc98e8d5
I still don't get why we have to raise an exception here (I mean, I get it in terms of how the code works currently, but I don't see why it has to be that way).
Anyway this is low-priority and shouldn't block merging this!

Could you please create a (low-priority) task to make SetBits and ClassicalExpBox support the trivial no-wires case? Ideally we should support this but maybe there are issues with pytket that prevent it.

Sure. But don't they already support it ? I thought from the examples above that setting them with empty registers was valid. Or, am I getting confused ?

E.g. e0c46da
I still don't get why we have to raise an exception here (I mean, I get it in terms of how the code works currently, but I don't see why it has to be that way).
Anyway this is low-priority and shouldn't block merging this!

Tbf, I don't understand very clearly either what you are expecting. I am a little confused between the new behaviour of the ops and handling it in the context of correctness here. Maybe best to discuss that in Slack ?


Improvement of KNX climate component

Description:
After some back and forth this should be final implementation of the KNX climate component. It now uses the setpoint-shift group address to set a target temperature.
The new setpoint shift is calculated out of current setpoint shift, current target temperature and desired target temperature.
Related issue (if applicable): https://github.com/XKNX/xknx/issues/48
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#3903
Example entry for configuration.yaml (if applicable):
climate:
   - platform: knx
     name: HASS-Kitchen.Temperature
     temperature_address: '5/1/1'
     setpoint_shift_address: '5/1/2'
     setpoint_shift_state_address: '5/1/3'
     target_temperature_address: '5/1/4'
     operation_mode_address: '5/1/5'

Clean that too:

@pvizeli : i pushed the requested changes

Will this go into the next release? This is pretty much needed for correct climate support.

it was merged with commit:
commit ee265394a686fdc3921739867258aac4b570f7cc
Author: Julius Mittenzwei<EMAIL_ADDRESS>Date:   Thu Nov 9 11:49:19 2017 +0100


[Challenges] Show no results when results are not found

Title and Issue number

Title : [Challenges] Show no results when results are not found
Issue No. : https://github.com/sadanandpai/frontend-mini-challenges/issues/401

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md
[] I have updated the Index.html file for my contribution

This is how it looks now, please let me know if we need any changes :)

conflicts @sadakchap


Add subtitles support for mewatch

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Adds subtitle support for mewatch.sg by using the subtitle API at sub.toggle.sg.
Also updates the main media info API. mewatch.sg now uses https://tvpapi-as.ott.kaltura.com/v3_9 instead of http://tvpapi.as.tvinci.com/v2_9, and the older API may be removed at some point in the future. The older API is kept as a fallback.

Any updates on this?


Use stream provider for notes

:tada: This issue has been resolved in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


de-synced height hint cache

Background
Hi there,
I know this has been asked a lot of times, but I could not find a proper solution myself on the other issues.
I opened a channel to a peer in February. It confirmed and I did at least one or two transactions via this channel. Some time ago (I don't remember the exact date, must have been at least a month now) I tried closing this channel. Unfortunately RTL still shows the channel as "waiting close" and so does lncli. I can't find the closing transaction in my mempool and lnd also doesn't find any transaction when trying to rebroadcast on restart.
Running lncli pendingchannels gives the following:
{
"total_limbo_balance": "1170825",
"pending_open_channels": [
],
"pending_closing_channels": [
],
"pending_force_closing_channels": [
],
"waiting_close_channels": [
{
"channel": {
"remote_node_pub": "03634bda49c9c42afd876d8288802942c49e58fbec3844ff54b46143bfcb6cdfaf",
"channel_point": "136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1",
"capacity": "1200000",
"local_balance": "1170825",
"remote_balance": "10004",
"local_chan_reserve_sat": "12000",
"remote_chan_reserve_sat": "12000",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "STATIC_REMOTE_KEY"
},
"limbo_balance": "1170825",
"commitments": {
"local_txid": "9a6a80288cdf30f00fb0de1625a2a0f0e5d4320f655791196ced346a41ca95ec",
"remote_txid": "9e7170ce59b3c9917c0bb2fcbeab3494a5463c94fb7bb20aaf5b918276125789",
"remote_pending_txid": "",
"local_commit_fee_sat": "19170",
"remote_commit_fee_sat": "19170",
"remote_pending_commit_fee_sat": "0"
}
}
]
}
Grepping in the lnd logs for the txid doesn't give me any results, but grepping for the channel id gives this:
2020-11-16 15:50:33.945 [WRN] CNCT: Channel 136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1 is in state ChanStatusCoopBroadcasted, but no coop closing tx to re-publish...
2020-11-16 15:50:33.971 [INF] NTFN: New spend subscription: spend_id=9, outpoint=136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1, script=0 2afd1f7d7a15bb35ef9abd60241eccfa175aefae5bc5a1e84ac34d417d600d79, height_hint=657253
2020-11-16 15:50:33.971 [INF] NTFN: Dispatching historical spend rescan for outpoint=136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1, script=0 2afd1f7d7a15bb35ef9abd60241eccfa175aefae5bc5a1e84ac34d417d600d79, start=657253, end=657254
2020-11-16 15:50:35.809 [INF] CNCT: Close observer for ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1) active
2020-11-16 15:50:37.029 [INF] CNCT: ChannelArbitrator(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=657254
2020-11-16 15:50:46.520 [WRN] CHBU: Replacing disk backup for ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1) w/ newer version
2020-11-16 15:50:52.138 [INF] PEER: NodeKey(03634bda49c9c42afd876d8288802942c49e58fbec3844ff54b46143bfcb6cdfaf) loading ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1)
2020-11-16 15:50:52.138 [WRN] PEER: ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1) has status ChanStatusCoopBroadcasted|ChanStatusLocalCloseInitiator, won't start.
2020-11-16 16:39:33.306 [WRN] CNCT: Channel 136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1 is in state ChanStatusCoopBroadcasted, but no coop closing tx to re-publish...
2020-11-16 16:39:33.319 [INF] NTFN: New spend subscription: spend_id=9, outpoint=136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1, script=0 2afd1f7d7a15bb35ef9abd60241eccfa175aefae5bc5a1e84ac34d417d600d79, height_hint=657254
2020-11-16 16:39:33.319 [INF] NTFN: Dispatching historical spend rescan for outpoint=136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1, script=0 2afd1f7d7a15bb35ef9abd60241eccfa175aefae5bc5a1e84ac34d417d600d79, start=657254, end=657259
2020-11-16 16:39:40.385 [INF] CNCT: Close observer for ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1) active
2020-11-16 16:39:44.313 [INF] CNCT: ChannelArbitrator(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1): starting state=StateDefault, trigger=chainTrigger, triggerHeight=657259
2020-11-16 16:42:15.218 [WRN] CHBU: Replacing disk backup for ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1) w/ newer version
2020-11-16 16:43:39.144 [INF] PEER: NodeKey(03634bda49c9c42afd876d8288802942c49e58fbec3844ff54b46143bfcb6cdfaf) loading ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1)
2020-11-16 16:43:39.161 [WRN] PEER: ChannelPoint(136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf:1) has status ChanStatusCoopBroadcasted|ChanStatusLocalCloseInitiator, won't start.
This is everything I found so far, any help on closing this channel would be appreciated!
Your environment
lnd 0.11
Debian 4.19.67-2+deb10u2
bitcoind 0.20.1

Yeah looks like the channel was closed a long time ago. Do you have txindex activated on your node? If not, then lnd will need to fetch potentially 37k blocks in order to see exactly when the commitment transaction confirmed. I'd check your bitcoind activity, seems like it's scanning in the background to place the spend properly.

Yes, txindex is activated.
What should I be looking for in the bitcoind logs? The txid?

If bitcoind is running on debug, you should look for either CPU/disk activity, or logs that it's trying to fetch blocks. If nothing shows up still, then you can drop height hint database (reset our on-chain rescan state) using this arg: --height-hint-cache-query-disable, after the channel is seen as being closed again, then you'll want to restart without that flag.

I set bitcoind to debug, but CPU and disk activity is very low (bitcoind CPU at around 3%-5%). I tried reading the debug logs but I don't really know what to look for. The last few entries seem like normal bitcoind operation, receiving getdata, accepting to mempool etc.
So just that I get that right, now you suggest I set height-hint-cache-query-disable=true in lnd.conf and wait until the channel is finally being closed. When I see the channel as being closed I delete this option again and can return to normal operation. Is that correct?
Thank you very much for your help so far, Roasbeef!

When I see the channel as being closed I delete this option again and can return to normal operation. Is that correct?

Yep!

Thank you!
I just edited the config, will report back when I have news in a week or so.

So now it's been 10 days since running lnd with height-hint-cache-query-disable=true, unfortunately no change. lncli pendingchannels still returns the channel as limbo balance. And now grepping for either the txid or the channelid returns nothing. Is it just taking more time for the operation to complete? Can I somehow check if there is some activity from the mentioned config? CPU usage is normal, is that a bad sign?

You can check the debug logs of your bitcoind node. If a lot of GetBlock calls are being done then it's likely still rescanning.

Unfortunately to me it looks completely normal, no GetBlock calls at all (even when grepping debug.log). Just UpdateTip, Pre-allocating and New outbound peer connected. I just found one interesting line, could this be connected to the rescanning?
2020-12-01T23:26:39Z BlockUntilSyncedToCurrentChain: txindex is catching up on block notifications
Or does it look like the command somehow did not execute?

That's because it channel is actually still unspent. Somehow your channel was marked as pending closed, but a closing transaction was never broadcast. Any ideas @halseth @Roasbeef?

I think you may need to actually force close this channel, since the co-op negotiation failed.

Does force close still work if the channel is already in the state of "pending close"?
In my case, I would go with lncli closechannel --force "channelid"?

Yes, it should work. Just use the command lncli closechannel --force --funding_txid 136192e15e312a3be662cda30be5bf754c3e8046fcd21568512a2f24806660bf --output_index 1

Wow, this did the trick! The force-closing transaction is already confirmed and I'm now waiting till maturity. Thank you very much guggero, Roasbeef and wpaulino! It is awesome what you guys are doing for the community!


Unhandled error during execution of scheduler flush related to NuxtPage, useAsyncData & refs

Environment

Operating System: Linux
Node Version:     v18.12.1
Nuxt Version:     3.6.1
Nitro Version:    2.5.2
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      devtools
Runtime Modules:  -
Build Modules:    -

Reproduction
Reproduction : https://stackblitz.com/edit/github-88hbfa?file=pages%2Findex.vue
Steps to reproduce:

In a page file, retrieve data using useAsyncData and display an array of elements in the template using this data.
Assign the array of elements to a ref variable as described in the Vue.js documentation: https://vuejs.org/guide/essentials/template-refs.html#accessing-the-refs.
Display this page in a browser.
Edit the JS code of this page (e.g., modify console.log).
Errors will appear.

This error does not occur if:

The page is being shown for the first time (no reloading through JS edits).
The code specified above is inside app.vue and not inside a page that is loaded with NuxtPage (if you copy/paste index.vue inside app.vue, errors do not occur).
No ref is used
useAsyncData is not used

Describe the bug
Console error is shown related to scheduler flush.
Also, TypeError: Cannot read properties of null (reading 'parentNode') error is thrown.
See Logs field for more detials about these errors
Workarounds

Reload page (meh)
Use reactive instead of ref

<template>

 updateMenuItemRefs(el)">

</template>

Additional context
No response
Logs
(initially made with test.vue page, but error is the same)
test.vue:14 edit this message 2

chunk-3Q27KRJ5.js:97 [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
  at <RouteProvider key="/test" routeProps= {Component: {…}, route: {…}} pageKey="/test"  ... >
  at <RouterView name=undefined route=undefined >
  at <NuxtPage>
  at <NuxtLayout>
  at <App key=3 >
  at <NuxtRoot>
warn @ chunk-3Q27KRJ5.js:97
logError @ chunk-3Q27KRJ5.js:271
handleError @ chunk-3Q27KRJ5.js:263
callWithErrorHandling @ chunk-3Q27KRJ5.js:215
flushJobs @ chunk-3Q27KRJ5.js:411
Promise.then (async)
queueFlush @ chunk-3Q27KRJ5.js:324
queueJob @ chunk-3Q27KRJ5.js:318
reload @ chunk-3Q27KRJ5.js:517
(anonymous) @ chunk-3Q27KRJ5.js:547
(anonymous) @ test.vue?t=1688346524889:81
(anonymous) @ client.ts:542
(anonymous) @ client.ts:459
(anonymous) @ client.ts:306
queueUpdate @ client.ts:306
await in queueUpdate (async)
(anonymous) @ client.ts:159
handleMessage @ client.ts:157
(anonymous) @ client.ts:90
Show 7 more frames

chunk-MNWBZQKJ.js:82 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')
    at parentNode (chunk-MNWBZQKJ.js:82:30)
    at ReactiveEffect.componentUpdateFn [as fn] (chunk-3Q27KRJ5.js:5823:11)
    at ReactiveEffect.run (reactivity.esm-bundler.js:178:19)
    at instance.update (chunk-3Q27KRJ5.js:5860:52)
    at callWithErrorHandling (chunk-3Q27KRJ5.js:213:32)
    at flushJobs (chunk-3Q27KRJ5.js:411:9)
parentNode @ chunk-MNWBZQKJ.js:82
componentUpdateFn @ chunk-3Q27KRJ5.js:5823
run @ reactivity.esm-bundler.js:178
instance.update @ chunk-3Q27KRJ5.js:5860
callWithErrorHandling @ chunk-3Q27KRJ5.js:213
flushJobs @ chunk-3Q27KRJ5.js:411
Promise.then (async)
queueFlush @ chunk-3Q27KRJ5.js:324
queueJob @ chunk-3Q27KRJ5.js:318
reload @ chunk-3Q27KRJ5.js:517
(anonymous) @ chunk-3Q27KRJ5.js:547
(anonymous) @ test.vue?t=1688346524889:81
(anonymous) @ client.ts:542
(anonymous) @ client.ts:459
(anonymous) @ client.ts:306
queueUpdate @ client.ts:306
await in queueUpdate (async)
(anonymous) @ client.ts:159
handleMessage @ client.ts:157
(anonymous) @ client.ts:90
Show 8 more frames

Seeing the same issue

Duplicate of #21841?

I don't think so, because the context differs in many ways compared to this issue.

Same on v3.6.5, it works if useAsyncData isn't used or on first time visit or after refreshing the page
Temporary rollback to v3.6.0 to bypass this issue.

Is there a chance you can reproduce with https://stackblitz.com/github/nuxt-contrib/vue3-ssr-starter ?

Faced the same problem in version 3.8.0

Same problem in 3.8.2

Same problem in version 3.9.1
Mine is caused by the layout change, and the layout is set in the pages via definePageMeta(). Does anyone know how to solve it?

Got the same problem in 3.9.3 also caused by definePageMeta(), but used to define a route middleware that redirects to another route.

I was having a similar issue. In my project I am using a custom layout and solved it by using <Suspense> on the page itself (wrapping my custom layout):
<Suspense><NuxtLayout name="two-columns">...</NuxtLayout></Suspense>
. So the whole page is waiting on each await in any component. Maybe this helps someone else as well.

Thank you. In my case, wrapping NuxtLayout in the Suspense component within my entry app.vue was not enough to fix the flush problems.
However, after wrapping <slot /> with the Suspense component within my layout components, the problem was resolved.

I am facing the same issue. It seems to be related with layouts. Still no fixes for this issue? is it Vue related and not Nuxt related?

I was having a similar issue. In my project I am using a custom layout and solved it by using <Suspense> on the page itself (wrapping my custom layout):
<Suspense><NuxtLayout name="two-columns">...</NuxtLayout></Suspense>
. So the whole page is waiting on each await in any component. Maybe this helps someone else as well.

Thank you. In my case, wrapping NuxtLayout in the Suspense component within my entry app.vue was not enough to fix the flush problems.
However, after wrapping <slot /> with the Suspense component within my layout components, the problem was resolved.

<Suspense>
    <slot />
</Suspense>

this solves this issue

Is there any downgrade adding the <Suspense> around <slot />?
It affects the whole site and I don't want any surprises

So the reproduction steps that I found in my app are as follows:

Go into any page which has a API call
log out from my app (this changes layouts)
log in back again (this changes layouts again)

and the pages which also have api calls throw both this errors:
Unhandled error during execution of render function
Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core .
by changing the first step (not going to a page which has an API call) the issue never triggers, so I wonder if it might be related to the way of handling async data

If it helps, I was having this error when I was switching route (and layout) too fast (in my case there are 2 slots on my layout, left column and right column, and user is able to select item from left col with keyboard cf this video), setting the shortcuts inside page onMounted was the solution.

It was fixed in Vue 3.4.20 #10098

I was having a similar issue. In my project I am using a custom layout and solved it by using <Suspense> on the page itself (wrapping my custom layout):
<Suspense><NuxtLayout name="two-columns">...</NuxtLayout></Suspense>
. So the whole page is waiting on each await in any component. Maybe this helps someone else as well.

Thank you. In my case, wrapping NuxtLayout in the Suspense component within my entry app.vue was not enough to fix the flush problems.
However, after wrapping <slot /> with the Suspense component within my layout components, the problem was resolved.

it works  for me,thanks .

It was fixed in Vue 3.4.20 #10098

I have this same issue once again, using:
Nuxt 3.12.4
Vue 3.4.33
Downgrading to Vue 3.4.31 solved the issue for now.

In that case, would you see if you can reproduce this in pure Vue SSR without Nuxt (reproduction sandbox), and if so, raise there? 🙏

and

I wasn't able to replicate this in the Vue-only environment, although I will admit I not used to that reproduction environment..
I was however able to trace the issue away from any relation to useAsyncData and into the error.vue file.
Adding a <UNotifications /> into the error.vue file in latest version of Vue causes the following error to be thrown TypeError: can't access property "parentNode", child is null.
<template>

    <UMain>
      <UContainer>
        <UPage>
          <UPageError :error="error" />
        </UPage>
      </UContainer>
    </UMain>

    <UNotifications />

</template>

By simply removing the <UNotifications /> from this file resolves this issue, so I suppose this could actually be nuxt/ui related issue. I'll try to setup a reproduction sandbox for this.


Add option to pre-download checkpoint to load

This should help with the situation @dirkgr, @2015aroras, and I discussed. You can activate this with:
--trainer.checkpointer.pre_download=true

While this works, it seems like a short-term solution. It makes a model copy per node. This is good when doing HSDP with a replica per node (which is our current need), but bad for FSDP. Ideally we would only download the files needed by the rank or node.

While this works, it seems like a short-term solution. It makes a model copy per node. This is good when doing HSDP with a replica per node (which is our current need), but bad for FSDP.

If I understood correctly, the original issue this is trying solve is loading a checkpoint that was saved with different sharding configuration (e.g. saved with FSDP, load with HSDP) because that leads to too many small requests to GCS. If that's the case then there's no point in having this toggled on when you're loading a checkpoint saved with the same sharding configuration.

Ideally we would only download the files needed by the rank or node.

This is basically what happens without this option toggled on. Except due to the way torch.distributed.checkpoint works, we're downloaded slices of files, not whole files. In any case, each rank only downloads the data it needs to fill its local shard of parameters.


Remove redundant box-sizing: border-box

On the faith that these do in fact exist elsewhere, turtle

I mean I should probably check we aren't setting content-box anywhere these are overriding, but I'm pretty sure they're just legacy from before we added the root statement


When a list is scrolling, children can't be tapped

Fixes https://github.com/flutter/flutter/issues/5023

Thank you very much for fixing!

LGTM

LGTM BUT NOT TO TRAVIS

The travis failure was because the gallery smoketest wasn't waiting for the scroll to settle before tapping the list, but that's now an ignored tap.

@HansMuller you may be interested in the flutter gallery test change in this PR.
I'm going to check this in some time after Travis goes green unless I hear otherwise.

This blocked touches on lists for much longer than expected. I'm not sure if we're missing a setState when the animation ends or if we're just letting the animation go for much longer than it should, but either way, I'm reverting this for now.


Reset DD tracker layers when muted.

@cnderrauber, I think this is okay to do, but please let me know if there are gotchas in there.
Track resume on publisher unmute has an issue when congested. The sequence is

VP9 (DD based track to be correct) starts.
Stream tracker detects available layers.
Subscriber starts forwarding.
Subscriber congested.
Publisher mutes.
Publisher unmutes.
Subscriber still congested.
Stream tracker does not provide signals to restart the forwarder. DD tracker and non-DD tracker behave differently here. When not congested, the forwarder will just speculatively allocate the most optimistic case, but not when congested.

@cnderrauber Have tested this, so feel reasonably confident. Going to merge this on @paulwe 's review. But, please review when you get a chance and let me know if there are gotchas here.


Add supporting class to replace MetastoreTunnel

This is related to https://github.com/HotelsDotCom/waggle-dance/issues/103

Pull Request Test Coverage Report for Build 54

45 of 48 (93.75%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.9%) to 89.02%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/com/hotels/hcommon/ssh/SshSettingsMapper.java
33
36
91.67%

Totals

Change from base Build 49:
0.9%

Covered Lines:
227

Relevant Lines:
255

💛  - Coveralls

Another approach to using MetastoreTunnel as a common class has been opened on hcommon-hive-metastore:  https://github.com/HotelsDotCom/hcommon-hive-metastore/pull/5


[SPARK-36010][BUILD] Upgrade sbt-antlr4 from 0.8.2 to 0.8.3

What changes were proposed in this pull request?
This PR proposes to upgrade sbt-antlr4 from 0.8.2 to 0.8.3 per the guides at https://github.com/ihji/sbt-antlr4
I can't find an official proper docs for this.
Why are the changes needed?
To stick to the guides in https://github.com/ihji/sbt-antlr4, and leverage the fixes included.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI in this PR should tests it out.

Test build #140628 has started for PR 33208 at commit d816ee0.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45141/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/45141/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/45141/

Test build #140628 has finished for PR 33208 at commit d816ee0.

This patch fails PySpark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/140628/

I believe the failure on Jenkins is not related to this change and passed on GA so merging to master.

Thanks!


Support pre-commit in Windows

The pre-commit hook update-docs-api-reference fails on Windows because it uses the grep command. This has been fixed in SINTEF/ci-cd, which should probably be put in use for the oteapi-dlite repository.

This has been fixed - now using SINTEF/ci-cd pre-commit hook.


[ci] remove vault url from defaults

We moved this default inside JJBB itself so it's not necessary to have
it in the defaults file anymore.

Pull request acceptance prerequisites:

[x] Signed the CLA (if not already signed)
[x] Rebased/up-to-date with base branch
[ ] Tests pass
[x] Updated CHANGELOG.md with patch notes (if necessary)
[x] Updated CONTRIBUTORS (if attribution is requested)

Already addressed.


feature: exclusive operator

Did you check the docs?

[X] I have read all the flash.nvim docs

Is your feature request related to a problem? Please describe.
When doing directional jumps in an operator pending mode, like this:
require("flash").jump {
  search = { forward = true, wrap = false, multi_window = false },
}

You sometimes want to exclude the target from the operation, similar to operations like dtw
Describe the solution you'd like
An option to make the jump behave like an exclusive operator.
Describe alternatives you've considered
Currently, I don't think there's an option that can simulate this behavior.
Additional context
No response

I added a new option opts.jump.inclusive
By default it is nil meaning it will be automatically set based on the mode you're in.
You can set it to true/false to force inclusive/exclusive

Thanks, but it seems that the snippet in my original post no longer works (it doesn't seem to do anything). A plain require("flash").jump() still works, though.

Damn, you're right. On it

Fixed now. Sorry about that :)

Thanks, it's working! But with backward jumps, it seems that it always jumps to the beginning of the match.
For example, using the following config:
require("flash").jump(
    search = { forward = false, wrap = false, multi_window = false },
    jump = { inclusive = false }
)

With the following text, the cursor at ^
The quick brown fox jumped over the lazy dog.
                               ^

While using the d operation, and the candidate ed, you will get:
- The quick brown fox jumped over the lazy dog.
+ The quick brown fox jump the lazy dog.

You should add jump.pos = "end"

Thank you! With this, flash.nvim has reached feature-parity (plus more) with leap.nvim :)

Sorry for being a party pooper, but it turns out that it's still not working quite right.
The following performed on operator-pending mode:
require("flash").jump {
  search = { forward = false, wrap = false, multi_window = false },
  jump = { inclusive = false, pos = "end" },
}

Doesn't exclude the last character of the match.

I added jump.offset, but when using pos="end" and the jump position is before the current position, it will default to 1.
You also probably still want to use inclusive mode.
So you should change it to:
require("flash").jump {
  search = { forward = false, wrap = false, multi_window = false },
  jump = { pos = "end" },
}

This should now work as expected.
Let me know if it does! :)

Thanks, it's working perfectly!


[DOC] The command for returning the list of plugins in Tarball installation of OpenSearch instructions has some characters that should be removed.

What do you want to do?

[x] Request a change to existing documentation
[ ] Add new documentation
[ ] Report a technical problem with the documentation
[ ] Other

Tell us about your request. Provide a summary of the request and all versions that are affected.
Test your OpenSearch settings with security enabled
When doing the step for querying the plugins endpoint, ie. curl -X GET https://localhost:9200/_cat/plugins?v -u 'admin:admin' --insecure, it came back with zsh: no matches found: https://localhost:9200/_cat/plugins?v,
I then removed the question mark and the v just after plugins, so my request was curl -X GET https://localhost:9200/_cat/plugins -u 'admin:admin' --insecure ...........It then gave the expected response, with all the plugins listed.
What other resources are available? Provide links to related issues, POCs, steps for testing, etc.

Thanks, @john-eliatra !
@peterzhuamazon - Can you please look at this and let me know if this is valid?

Hi @john-eliatra zsh at times have problem escape special chars.
If you switch to bash it wont error out.
Please try wrapping the request url with double quotes, this should work:
curl -X GET "https://localhost:9200/_cat/plugins?v" -u 'admin:admin' --insecure

And @hdhalter I think we can update this part in the document if needed.
Thanks.

Hi @peterzhuamazon , thanks for the info, that's interesting to know - let me try that and see how it goes.
Thanks a mill,
John

@peterzhuamazon I think it's OK to leave the documentation as is because all our requests are based on bash.


technical: Server: Implement getter & setter for model of entity and …

…getter for vehicle
Problem:
Since setters of model allow for number or string, providing type safety to declarations must be ensured when getting the model by specfically stating player.model as number every time.
Example:
const map = new Map<number, any>(); // Maps player model hash to something

if (map.has(p.model)) {} // Will throw "Argument of type 'string | number' is not assignable to parameter of type 'number'.
  Type 'string' is not assignable to type 'number'.ts(2345)" and must be circumvented by:

if (map.has(p.model as number)) {}

Getter and setter approach resolves this issue.

thank you


Corrected capitalization of TensorFlow

Changed instances of "Tensorflow" to "TensorFlow".

Can one of the admins verify this patch?

@tensorflow-jenkins test this please


Fix for higher version of C++ usage, Clang support, and some build policy change.

I removed the hardcoding in the CMake script that enables C++20 mode, aiming to use compiler versions that support coroutines. However, it now forcefully uses C++20 mode even in higher versions (e.g., C++23, C++26). For instance, a C++23 project utilizing this library won't be able to use std::print.
Although apps using this project as a dependency do not require test/example builds, the build defaults for these are set to true. The new commit activates the build only when the project is at the top level.
Despite the inability to use Linux kernel functions on macOS, the corresponding build flag is enabled unless the build environment is Linux and not WebAssembly. I modified it to activate the flag only in a Linux environment that is not WebAssembly.
In the libc++ environment, exception_ptr now requires inclusion of the <exception> header.

Hi Thanks for the PR, these look like great additions.
(1) I agree hardcoding to C++20 was a mistake, it was initially there a few years ago when it was the latest standard but it is definitely a problem now since C++23 and onward are coming out.
(2) If I'm understanding this correctly you can now only build tests and examples if you build libcoro directly from the root checkout directory, and not if its included in another project as a dependency? I'm struggling to think of why you'd need to build tests and examples in this scenario but the change does prevent you from doing so if I'm reading it correctly.
(3) :+1:
(4) Great, looks like it was also reported in #247 (@bruno-j-nicoletti looks like this PR fixes your build problem I think)

(2): In my case, I tried to use vcpkg for 1st tier package management, but it failed to build. So I tried second attempt with using CPMAddPackage. It directly clone the repository or release archive into project build dir, but in this case I should build libcoro's tests and examples, which is not needed for library use. Therefore, I think it is feasible to build them only if project is master (top level).

Yeah cool, it makes sense from that perspective. I wonder if it's worth adding CI runs for the package managers to download and link it to a sample project just to know it's working properly. I'll open an issue to possibly take a look at the major ones.


added to index.html two lines for responsive and IE compability

added to index.html two lines for responsive and IE compability


Rack Groups - add Custom Field, Tags and Tenant parameters

As ...
Ozzie - Operator
I want ...
I would like to add more parameters to Rack Groups.
So that ...
For example a Rack Group dedicated for some purpose could have this parameter assigned by Tag or Custom Field.
Also we have Rack Groups which belongs to different Tenant and it would be nice to see that,
I know this is done when...
When I want to create or modify Rack Group.
Optional - Feature groups this request pertains to.

[ ] Automation
[ ] Circuits
[ ] DCIM
[ ] IPAM
[ ] Misc (including Data Sources)
[X] Organization
[ ] Plugins (and other Extensibility)
[ ] Security (Secrets, etc)
[ ] Image Management
[ ] UI/UX
[ ] Documentation
[ ] Other (not directly a platform feature)

Database Changes
No response
External Dependencies
No response

Thanks for the request! RackGroups should already support custom fields, are we missing anything there?
Tag support probably falls under the planned work for #2899 which would entail adding tag support to basically all models.

@glennmatthews you are right abut custom fields. Sorry for that.


Latest Helmet Version Unsupported in Hide Potentially Dangerous Information

Hello!

Describe your problem and how to reproduce it:
A user on the forum reported that he couldn't finish the challenge Hide Potentially Dangerous Information Using Helmet PoweredBy. Upon further investigation, I found that the API of helmet in 4.+ has changed, which causes problems with the validation of the challenge.
Using version 4.1.0 of helmet, this is the response from the server:
{"headers":{},"appStack":["xPoweredByMiddleware"]}

Whereas on version 3.+, the response is this:
{"headers":{},"appStack":["hidePoweredBy"]}

Which is the response expected by the test (assert.include(data.appStack, 'hidePoweredBy');):
tests:
  - text: helmet.hidePoweredBy() middleware should be mounted correctly
    testString: getUserInput => $.get(getUserInput('url') + '/_api/app-info').then(data => { assert.include(data.appStack, 'hidePoweredBy'); assert.notEqual(data.headers['x-powered-by'], 'Express')}, xhr => { throw new Error(xhr.responseText); })

Add a Link to the page with the problem:
https://www.freecodecamp.org/learn/information-security/information-security-with-helmetjs/hide-potentially-dangerous-information-using-helmet-hidepoweredby
You can see it working here:
Helmet 4.1.0 (doesn't pass the challenge): https://repl.it/@skaparate/infosec-hide-poweredby-helmet410
Helmet 3.23.3 (this does pass): https://repl.it/@skaparate/infosec-hide-poweredby-helmet3233
Maybe, for compatibility, it could be fixed by modifying the boilerplate and replacing the stack name xPoweredByMiddleware with the old name?:
// Source: https://github.com/freeCodeCamp/boilerplate-infosec/blob/b6de80bce9429016ca795a928f54825b74f425fa/server.js#L35

var appMainRouteStack = main._router.stack
    .filter(s => s.path === '')
    .map(l => {
      if (l.name === 'xPoweredByMiddleware') {
        return 'hidePoweredBy'
      }
      return l.name
    })
    // filter out express default middlewares
    .filter(n => !(n === 'query' ||
      n === 'expressInit' || n === 'serveStatic'));

Duplicate of #39190


Visual Studio Code 0.7.4 appears to be unable to initialize rbenv

Description
When I attempt to load a codebase with ruby LSP and the Visual Studio Code integration (at version 0.7.4), the extension fails to load.
It works when using the extension at 0.7.2

Some initial investigation turned up this change to the rbenv (and other manager) initialization. Seems like it could be related?

Error
VS Code error popup
Automatic Ruby environment activation with rbenv failed:
Command failed: rbenv exec ruby -W0 -rjson -e 'STDERR.print({env: ENV.to_h,yjit:!!defined?(RubyVM::YJIT),version:RUBY_VERSION}.to_json)'
zsh:1: command not found: rbenv

Output error
2024-06-17 21:25:52.034 [info] (smallwins) Running command: `rbenv exec ruby -W0 -rjson -e 'STDERR.print({env: ENV.to_h,yjit:!!defined?(RubyVM::YJIT),version:RUBY_VERSION}.to_json)'` in /Users/justinburris/dev/saishori/smallwins using shell: /bin/zsh

Debugging
Here's the output from running the intialization command from the shell directly
$ /bin/zsh -ic 'rbenv exec ruby -rjson -e "puts JSON.dump(ENV.to_h)"'

{"RBENV_VERSION":"3.3.0",...}

Reproduction steps
Configuration
Processor: Apple M2 Max
ruby version: 3.3.0 & 3.0.3
rbenv version: 1.2.0 (installed via brew and configured per usual method)
shell: zsh
editor: VS Code 1.90.1
No vs code configuration
Project setup
Any ruby project with a Gemfile that has the ruby-lsp gem
If it helps, here's a snippet of my .zshrc
eval "$(/opt/homebrew/bin/brew shellenv)"

# rbenv
# To enable shims and autocompletion add to your profile:
eval "$(rbenv init - zsh)"
FPATH=~/.rbenv/completions:"$FPATH"

I appreciate y'alls work here. It's tough dealing with all of the different configurations out there.
It looks like moving it to the ~/.zshenv file did the trick!
Per these docs, that file is sourced very early in the initialization, and appears to work!
Would y'all be open to updating the troubleshooting guide to indicate this solution?

I see similar issues activating asdf if vscode was not started from the shell.

It seems @justinbburris's issue is solved, and there is a seperate issue by @xeron, so I will close this.


'undefined' is not an object (evaluating 'n.get(a).value') close

On iOS this error is randomly generated. It's caused by the modal element.

@sradu I will close the issue for now as you did not provided a working plunkr showing the problem you want to report. evaluating 'n.get(a).value' suggests you are using minified js which is difficult to debug.
Moreover, my guess is you are encountering a bug which was fixed by #1972


Data not loading in List Columns

Superset version
Python 3.7.0
Expected results
Downloaded data like World Bank dashboard is installed in Superset.

Actual results
But data is not showing

Kindly help!

I am getting the same. Tested with Python 3.6 & 3.7. Have tried the latest git checkout , pip install version and unoffical docker image. Have also tried across three browsers: Brave, Firefox & Chrome.

It's a problem in FAB 0.12.0 https://github.com/dpgaspar/Flask-AppBuilder/pull/828

It's a problem in FAB 0.12.0 dpgaspar/Flask-AppBuilder#828
Workarounds include patching FAB in your environment, using the new table editor from the explore view, or downgrading back to the previous version of Superset

downloaded flask, HTML still persists.

@lahorekid modify the flask app builder version in setup.py

    'flask-appbuilder==1.12.1',

and rebuild. It will work then.

@lahorekid modify the flask app builder version in setup.py

    'flask-appbuilder==1.12.1',

and rebuild. It will work then.

upgrading to 1.12.1 has resolved issue thanks @prio

@lahorekid modify the flask app builder version in setup.py

    'flask-appbuilder==1.12.1',

and rebuild. It will work then.

upgrading to 1.12.1 has resolved issue thanks @prio

resolved


Fix code scanning alert - written amount is not handled

Tracking issue for:

[ ] https://github.com/8xFF/decentralized-media-server/security/code-scanning/79

cleanup for new version


chain breaking

Is it possible to break a chain? For example I have created a breakIfNull mixin, and I would like to stop executing the chain if some condition is met.

Nope - at least I cant think of a way to do it - that may be a cool and useful enhancement!

Ha! Yeah, I could not see one myself. Thanks for the direction. I'll chew on it for a bit.

-> #2017


Save location of apps on the map

Use the storage feature of ionic https://ionicframework.com/docs/storage/

This is only going to be a solution local to the used browser. In order to save it to the app, we need a backend.

Localstorage is now available in the ionic skeleton.
There is also some code on the demo branch about saving the position of ngDraggables:
https://github.com/ScaleIT-Org/ionic-app-skeleton/tree/demo/src/pages/home


FeatureNames doesn't support slicing

ivec.get_feature_names()[:100] doesn't work for InvertableHashingVectorizer because FeatureName doesn't handle slice objects.
See also: http://stackoverflow.com/questions/13855288/turn-slice-into-range-in-python; there is also a nice comment

Does it help that in Python 3 you can slice a range object to get a new range object?

-- given that a feature is not super-important we could decide to support it only in Python 3 :)

Nice catch!
I tried a negative slice in python 2, and it turns it into a non-negative slice, so it should be easy to support it here too.
That slice operation should return a new FeatureNames object, right?

That slice operation should return a new FeatureNames object, right?

A good question; I think that's fine to return a list if returning FeatureUnion is harder to implement.

Hm, I didn't think about it at first (was going to make it return FeatureUnion), but in fact it will make implementation more complex - for example, we still might have missing entries that are handled by unkn_template, but now the index must be shifted.
So I agree, let's go with returning a list (or maybe a numpy slice if the underlying storage is a numpy array)


Update logo styles

@pawelduda can we check how it's going to look on production? Not sure if everything is fixed - thanks!


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 9cd552e, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 8539 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in adb0a7d after 36 minutes.


Mobile fixes

Redbox out the gate, this fixes that
@keybase/react-hackers

@MarcoPolo ah, I think the Facebook changes collide with @chromakode's open PR for the same thing.


DND - Moves overly restricted, not allowing intermediate level nodes

The screen capture below shows an attempt to move node 'R27' to be the last child of - nodes R8, R9, R13, R4, R16, R11, R21, and R24 respectively.
Current interaction is limited to current tier (R8) and deepest tier (R3).  Since each tier level is has a contextual depth, there is no reason why dragging the node into each depth zone should not allow placing the node as the last sibling of that tier.
All of the aforementioned nodes should be available.
While I am aware that the workaround (using defaults.dnd.inside_pos=last    – I also believe that 'last' should be the default), it is not UX intuitive to think of dropping a node onto the parent in order to place it correctly.
https://user-images.githubusercontent.com/1785064/116526359-6de09c80-a8d1-11eb-8455-5feeb412398f.mov

While dragging hover over R8, R9, R13, R4, R16, R11, R21 or R24 and release when the indicator is below the respective node.

Thanks for your response - but I don't see it.   I can drag a node into (make child of) R8, etc.. but I don't see what you suggest.  See below - attempting to move R7 into being the last child of R12. I can easily move it to be the first, or second child of R12, but to make it the last child, I have to either close R22 or I have to drag it onto R12 (with the default option set), neither of which are intuitive to a normal user.
https://user-images.githubusercontent.com/1785064/116536391-bfdaef80-a8dc-11eb-9110-79ef9aac7b1a.mov

Okay I found it.  It's a very small space, just in the corner of the new previous sibling.
I have to say that it's pretty hard to find the specific corner.  I will test on another browser.  It would be good to see a debugging visualisation of each of the drop areas.
https://user-images.githubusercontent.com/1785064/116540209-c1f37d00-a8e1-11eb-9299-3c416984e19f.mov


storage: Next/NextPage should call the RPC even if there was a previous non-Done error

If you call Next or NextPage on an iterator and get an error other than Done, you should be able to call Next or NextPage again to retry. (Maybe the error was transient.) The current storage implementation (and maybe others) doesn't allow this.

I think this gets it wrong: the retry should be built into Next/NextPage, so that by the time they return an error, it should no longer be considered transient.
In fact, we do this for the storage object and bucket iterators.


CI upload builds shouldn't throw error when no files were created

https://github.com/biosimulations/biosimulations/runs/4141385138?check_suite_focus=true
      - name: Upload builds
        uses: actions/upload-artifact@v2
        if: ${{inputs.upload}}
        with:
          name: ${{inputs.name}}
          path: dist/
          retention-days: 5
          if-no-files-found: error

Ah, this was set for cases when we need to deploy the produced outputs. I've made the failure conditional on whether we are building all the apps or just the affected

:tada: This issue has been resolved in version 6.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Autocomplete] Added suppressTextareaWarning to remove the textarea warning

[x] I have followed (at least) the PR section of the contributing guide.

IMPORTANT: I still have to update the docs, tests and labs to showcase this particular prop. I haven't and I don't think I will anytime soon because that would take more work than I would willing to go through. If you are a maintainer and don't mind, please do it.
Feature request: https://github.com/mui/material-ui/issues/41669

To transfer to Base UI

@michaldudak @DiegoAndai @aarongarciah What do you think about this PR? It was added in #30680 to fix #29961.
Seeing the discussion in #29961, I think we can add this prop to suppress the warning if it's causing unnecessary noise, especially if rendering the textarea works fine for users and they read the warning initially. However, maybe we shouldn't remove the warning entirely (https://github.com/mui/material-ui/pull/41671#issuecomment-2021411205) because I checked the reproduction in this comment, and the Enter key after focus puts the cursor to a new line and "No options" is showed (maybe that's fine?). Removing the warning might lead to more issues being raised regarding textarea support.

I'm not keen on having this as a part of the public API of the component. Since using a textarea isn't the way we intended the Autocomplete to be used, I'd be OK with having a more "hidden" way of suppressing this warning, for example reading an env var (for SSR) or a config value specified in window.

I agree with @michaldudak's comment above.

Okay. I think it's better to close this PR and link the comment to the issue if anyone wants to work on it.


Add .precomp to .gitignore

A .precomp directory is created when a test is run. Git doesn't need to worry about it.

Added comment for .precomp


What should I make the outer icon shape of the destination marker?

I think a glyphicon-flag would be good


Document translation to Portuguese

Description
Translated documentation to Portuguese for the people of brazil,portugal and others
Issue #738

please add the issue number to the description without the issue number I can't merge this PR.

please check the docs & translate according the docs


Docstring support for defnc (and defcomponent)

It would be nice to have first-class support for an optional docstring in the defnc and defcomponent macros.
Presently, I'm working around this via the ^{:doc " ... "} metadata.

This is resolved by https://github.com/lilactown/hx/pull/74


Sendgrid with template

My code works (email is sent) without the line with setTemplateId() method, whenever I try to use a template, email is not sent.
I follow example from https://github.com/sendgrid/sendgrid-php/blob/master/USE_CASES.md#transactional_templates with both cases: "With Mail Helper Class", "Without Mail Helper Class".
$from = new SendGrid\Email(null, "test@example.com");
$subject = "I'm replacing the subject tag";
$to = new SendGrid\Email(null, "test@example.com");
$content = new SendGrid\Content("text/html", "I'm replacing the body tag");
$mail = new SendGrid\Mail($from, $subject, $to, $content);
$mail->personalization[0]->addSubstitution("-name-", "Example User");
$mail->personalization[0]->addSubstitution("-city-", "Denver");
$mail->setTemplateId("myTemplateId...");
    $apiKey = 'myApiKey';
    $sg = new \SendGrid($apiKey);

    try {
        $response = $sg->client->mail()->send()->post($mail);
    } catch (Exception $e) {
        echo 'Caught exception: ',  $e->getMessage(), "\n";
    }

Hello @moontrv,
Are you getting any exception message? If so, what is it?
With Best Regards,
Elmer

Hi, thanks.
It turns out that we setup an account which expire the trial period, so that email with template will not be sent. I tried with another newly-created sendgrid account and email with template can be sent.

Thanks for following up @moontrv!


Explore Swarm integration

Swarm is a "replicated model" library.
I wonder if there is a potential to explore "eventually consistent" Flux action retranslation, and whether approaches similar to https://github.com/gaearon/redux/issues/113#issuecomment-114049804 can help here.
Sorry if I'm totally being nuts here.
(To clarify: this is meant to be done outside the core. #113 explains how to do something like that outside the core.)

You might want to have a look at Jet as well: http://jetbus.io/
Or if you want something more low level: https://github.com/dominictarr/scuttlebutt

Also look at http://pouchdb.com/, npm synchronization is based on it (couchdb actually). Works with no struggle in browser too.

Nothing happening here, so closing. If somebody's up for it, let us know!

I'd like to come up with a swarm redux TodoMVC example
Would it be of any interest?

Sure (although probably in a separate repo).


Add RPCService

closes #4
At the moment the rpcService is not used yet

Not all of the callbacks are implemented. And I am not 100% that the ones that are, are called at the right place. The structure of the kotlin and the java adapter is different, so I could not always track it down.

WTF happened with the rebase O_o


Updated validations.py python script

updated validations.py python script
Fixed thea behavior of validate_user functions in validations.py in the if condition of checking username
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[x] Appropriate changes to README are included in PR

I have updated the check conditions for usernames to allow only username that starts with alphabets

I have updated the validations.py to allow only usernames that start with an Alphabet.


Path should be regex escaped

The help states that arguments will be used to filter test files, and "each argument is treated as a regular expression". At the moment the path is passed as argument, which (on Windows at least) is not a valid regular expression. This results in
=================
 no tests found.
=================

I think the path passed on the lines below (line 109 specific) should be escaped to be regular expression safe. In my case, if I replace all backslashes with double backslashes, the test is executed correctly.
https://github.com/microsoft/playwright-vscode/blob/959031d8e6ae5764ec8cdb088bf671800ab5e8b6/src/playwrightTest.ts#L106-L110
I think the same goes for https://github.com/microsoft/playwright-vscode/blob/959031d8e6ae5764ec8cdb088bf671800ab5e8b6/src/playwrightTest.ts#L62
Finally, on line 47 a shortcut is used replaceAll('\\', '\\\\'), but I think this should be a method which escapes all regex characters instead.
https://github.com/microsoft/playwright-vscode/blob/959031d8e6ae5764ec8cdb088bf671800ab5e8b6/src/playwrightTest.ts#L47

Hi, thanks for trying out the extension. :) Could you send me the output of the debug logs? You can get them as shown in the screenshot:

The path does not get passed over to the test-runner as a regular expression, it should be more like an exact string match of the file path. Once I have the output, I will take a more detailed look.

At the moment it's like this (obfuscated, but you get the idea):
<EMAIL_ADDRESS>test --reporter=list c:\Development\Project\Tests.Playwright\tests\01-login-credentials.spec.ts:20

If I change this to the string below, it actually works.
<EMAIL_ADDRESS>test --reporter=list c:\\Development\\Project\\Tests.Playwright\\tests\\01-login-credentials\.spec\.ts:20

Fixed in #22, thanks for your contribution!


TypeError: Cannot read property 'replace' of null

Hi,
I found that when I import VueMarkdown and use the <vue-markdown> tag, vue-markdown will report an error if the json data returned by the api interface is null.
detail.vue

json data

error

I am not sure if this is a BUG, so I submitted this issue.

just use v-if to check the property of the data first before rendering the component


Update PayFast integration.

@andrewpaliga sorry, but I don't really understand the problem. You, as a shop owner, have to put item_name field to the form since it's a mandatory field. Why do you say it will never be sent?

Hi @nashby sorry for the delay on this. Can you try mapping only the parameters here ?
The :item_name will not be available there.
Alternatively you can use the universal implementation (which is working and merged) for you integration. You can find and example app and documentation here
This is the fastest/easiest way to integrate with Shopify.

Hey @andrewdunbar, don't worry, it's ok!
If I remove item_name from the mapping is it possible for users to use it somehow? I mean it's a mandatory field for PayFast.

@nashby you can leave item_name in just understand that Shopify will never pass this field. Your code must not break in this case. Currently your code breaks if :item_name is nil.

@andrewpaliga hey, it's been awhile. :)
Can you please take a look again? I believe I fixed it now. Thanks!

I'll close this since it has been more than a year without activity


Expose route for context

Have tried to design a universal exposed route type system which is complicated and unnecessary, so I turned to the minimum way to implement the current requirement.
Will try to update Gateway API to v1.0.0(GA), there's tons of broken dependencies to fix...

Codecov Report
Attention: 39 lines in your changes are missing coverage. Please review.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files
Coverage Δ

pkg/object/httpserver/mux.go
80.79% <100.00%> (+0.11%)
:arrow_up:

pkg/object/httpserver/routers/routers.go
100.00% <ø> (ø)

pkg/object/httpserver/routers/spec.go
96.55% <0.00%> (-3.45%)
:arrow_down:

pkg/filters/redirectorv2/redirectorv2.go
67.00% <67.00%> (ø)

... and 4 files with indirect coverage changes
:loudspeaker: Thoughts on this report? Let us know!.


Revert "[KYUUBI #5918] Kyuubi BeeLine should check the relocated TTransportException"

This reverts commit 2e817d5be820cba83b78c2333abbb73e74a7f5e7.
:mag: Description
This original issue has gone since we already forked the beeline module and tune the code on the parent class Beeline
Types of changes :bookmark:

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪
Manually test.

Checklist 📝

[x] This patch was not authored or co-authored using Generative Tooling

Be nice. Be informative.

Thanks, merged to master


MLlib’s tooling for tuning the hyperparameters from Keras model and tensors (no images)

Hi Team,
Is there any plan to extend functionality so that we are able to use MLlib's tooling for tunning the hyperparameters of a keras model in e.g. numeric data (i.e. no images)?
I believe I would need the equivalent to the KerasImageFileEstimator but for tensors.
Is there an easy workaround in the meantime?
Best,
Ana

I was able to get a model being trained by creating this  class which overrides the KerasImageFileEstimator class
I see the model being trained in the worker and all its fine. But for some reason the returned model has a very bad accuracy eventough in the logs of the worker , the validation accuracy was very good.
Give it a try , maybe you are lucky
from sparkdl.param import (
keyword_only, CanLoadImage, HasKerasModel, HasKerasOptimizer, HasKerasLoss, HasOutputMode,

HasInputCol, HasLabelCol, HasOutputCol)

from sparkdl.transformers.keras_tensor import KerasTransformer
from sparkdl.estimators.keras_image_file_estimator import KerasImageFileEstimator
import sparkdl.utils.keras_model as kmutil
class generalKerasEstimator(KerasImageFileEstimator):
def _getNumpyFeaturesAndLabels(self, dataset):

    image_uri_col = self.getInputCol()

    input_col = self.getInputCol()

    label_col = None

    if self.isDefined(self.labelCol) and self.getLabelCol() != "":

        label_col = self.getLabelCol()

    tmp_image_col = self._loadedImageCol()

    image_df = dataset.select(input_col,label_col)

    # Extract features

    localFeatures = []

    rows = image_df.collect()

    for row in rows:

        feat = row[input_col]

        features = array(feat)

        localFeatures.append(features)

    if not localFeatures:  # NOTE(phi-dbq): pep-8 recommended against testing 0 == len(array)

        raise ValueError("Cannot extract any feature from dataset!")

    X = np.stack(localFeatures, axis=0)

    # Extract labels

    y = None

    if label_col is not None:

        label_schema = image_df.schema[label_col]

        label_dtype = label_schema.dataType

        #assert isinstance(label_dtype, spla.VectorUDT), \

        #            "must encode labels in one-hot vector format, but got {}".format(label_dtype)

    localLabels = []

    for row in rows:

        try:

            _keras_label = row[label_col]

        except ValueError:

            raise ValueError("Cannot extract encoded label array")

        localLabels.append(_keras_label)

    if not localLabels:

        raise ValueError("Failed to load any labels from dataset, but labels are required")

    y = np.stack(localLabels, axis=0)

    assert y.shape[0] == X.shape[0], "number of features {} != number of labels {}".format(X.shape[0], y.shape[0])

    return X, y

def _collectModels(self, kerasModelBytesRDD):

    """

    Collect Keras models on workers to MLlib Models on the driver.

    :param kerasModelBytesRDD: RDD of (param_map, model_bytes) tuples

    :return: generator of (index, MLlib model) tuples

    """

    for (i, param_map, model_bytes) in kerasModelBytesRDD.collect():

        model_filename = kmutil.bytes_to_h5file(model_bytes)

        print(i,model_filename,param_map)

        yield i, self._copyValues(KerasTransformer(modelFile=model_filename),

                                  extra=param_map)


xvideos falling back on generic extractor

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
the Netherlands
Provide a description that is worded well enough to be understood
Title.
Video downloads fine however.
But why is it falling back on the Generic extractor?
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
yt-dlp -vU --ignore-config https://www.xvideos.com/video.hifflud37bd/hot_young_blonde_on_the_beach
[debug] Command-line config: ['-vU', '--ignore-config', 'https://www.xvideos.com/video.hifflud37bd/hot_young_blonde_on_the_beach']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-master-builds [22e4dfacb] (linux_exe)
[debug] Python 3.10.13 (CPython x86_64 64bit) - Linux-5.4.0-173-generic-x86_64-with-glibc2.31 (OpenSSL 3.2.1 30 Jan 2024, glibc 2.31)
[debug] exe versions: ffmpeg N-113699-g0c8e64e268-20240219 (setts), ffprobe N-113699-g0c8e64e268-20240219, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, secretstorage-3.3.3, sqlite3-3.45.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1803 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-master-builds/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp-master-builds)
[generic] Extracting URL: https://www.xvideos.com/video.hifflud37bd/hot_young_blonde_on_the_beach
[generic] hot_young_blonde_on_the_beach: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] hot_young_blonde_on_the_beach: Extracting information
[debug] Looking for embeds
[debug] Identified a JSON LD
[generic] Extracting URL: https://gcore-vid.xvideos-cdn.com/lcLDmnEHNuCIRitUT4xckQ==,1710875683/videos/mp4/e/2/c/xvideos.com_e2c633a0a567ee9276e670bcdc0e3db9-2.mp4#__youtubedl_smuggle=%7B%22force_videoid%22%3A+%22hot_young_blonde_on_the_beach%22%2C+%22to_generic%22%3A+true%2C+%22referer%22%3A+%22https%3A%2F%2Fwww.xvideos.com%2Fvideo.hifflud37bd%2Fhot_young_blonde_on_the_beach%22%7D
[generic] hot_young_blonde_on_the_beach: Downloading webpage
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] hot_young_blonde_on_the_beach: Downloading 1 format(s): mp4
[debug] Invoking http downloader on "https://gcore-vid.xvideos-cdn.com/lcLDmnEHNuCIRitUT4xckQ==,1710875683/videos/mp4/e/2/c/xvideos.com_e2c633a0a567ee9276e670bcdc0e3db9-2.mp4"
[download] Destination: Hot Young Blonde On The Beach [hot_young_blonde_on_the_beach].mp4
[download] 100% of    9.80MiB in 00:00:00 at 18.75MiB/s

yt-dlp --ignore-config -F https://www.xvideos.com/video.hifflud37bd/hot_young_blonde_on_the_beach
[generic] Extracting URL: https://www.xvideos.com/video.hifflud37bd/hot_young_blonde_on_the_beach
[generic] hot_young_blonde_on_the_beach: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] hot_young_blonde_on_the_beach: Extracting information
[generic] Extracting URL: https://gcore-vid.xvideos-cdn.com/-SsUBPfiJ2DFo6GwQIy_og==,1710875271/videos/mp4/e/2/c/xvideos.co...e_on_the_beach%22%7D
[generic] hot_young_blonde_on_the_beach: Downloading webpage
[info] Available formats for hot_young_blonde_on_the_beach:
ID  EXT RESOLUTION │ PROTO │ VCODEC  ACODEC
────────────────────────────────────────────
mp4 mp4 unknown    │ https │ unknown unknown

Offtopic side note:
MPV media player gives:
mpv https://www.xvideos.com/video.hifflud37bd/hot_young_blonde_on_the_beach
Failed to recognize file format.
Exiting... (Errors when loading file)

why is it falling back on the Generic extractor?

url format changed and is no longer matched by the dedicated extractor
Closing as duplicate of #9493


Expose Elf/Reader classes from package:native_stack_traces

It would be nice If I could instantiate a Dwarf object without relying on the physical file system. For example, to support taking the stack trace over stdin.
To that end, it would be nice if package:native_stack_traces either exposed the Elf/Reader classes via the public API, or supported a similar Dwarf.fromBuffer API that accept bytes directly.
cc @sstrickl

Forgot to mention the bug in the CL that adds Dwarf.fromBytes, commit 2b27386. Released package version 0.2.2 on Friday, which includes this fix and another cleanup.

Awesome, thank you!


Question: rate limit on api server?

Environmental Info:
K3s Version:  1.25.6

Node(s) CPU architecture, OS, and Version:

Ubuntu 22/x86_64
Cluster Configuration:

3 server 1 node
Describe the bug:

I deploy rancher on my k3s cluster, after running rancher for a while, I found rancher is not able access anymore.
the symptom is reported as https://github.com/rancher/rancher/issues/41056
I doubt that k3s api server have rate limit in someway, throttle rancher from serving more requests. But I could not find any configuration information regarding on rate limit in k3s, anyone could kindly help?
Steps To Reproduce:

Installed K3s:
install rancher
restarting rancher for a couple of times to see the problem early.

Expected behavior:

rancher should continue to work
Actual behavior:

rancher fail to start and being block from access for a very long time
Additional context / logs:

Rancher doesn't support Kubernetes 1.25 at the moment. You should use Rancher with a compatible version of Kubernetes.
https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/rancher-v2-7-1/

@brandond you are right. Not supported in official release, but I'm running v2.7.2-rc8, which is supposed to support k8s 1.25


LinearSearch_Python

Linear Search and Binary Search in Python
I have addressed the issue related to Linear,Binary and Jump Search . In this Program an array is created and element is search through the linear search technique and Binary Search Technique.
Fixes #222
Type of change
Please delete options that are not relevant.

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

Checklist:

[ x] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[x ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generates no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@Blackwidow2981 Great, Thanks for making the changes as suggested :-)


Setting stuff onto "this"

I have a 3rd party script that I'm browserifying and it appears to be assuming "this" is window. Something like this:
var Arrive = (function (window) {
   if (!window.MutationObserver) return;
   // other stuff...
})(this);

return Arrive;

The problem seems to be that when rolled up with browserify, "this" isn't window when its run. Is there an easy way for me to fix this?

+1

Put (function () { ... })() around the script. This isn't something that browserify should or can handle, since browserify copies the node semantics that this === module.exports.

@substack - understood, and thanks for the clarification. Odd though, that this is working with browserify @10.2.1, vs. taking the update @12.0.1 after which these third parties cease to function...


In "Branch Configuration" "Branch pattern examples" with negation are not well documented.

The doc: https://buildkite.com/docs/pipelines/branch-configuration#branch-pattern-examples
There is one example pattern with negation "!".
It is unclear what happens if there are several positive and negative patterns.
For example, does "A !B C !D" internally mean
"A or !B or C or !D" or
"!B and !D and (A or C)" or something else?

Hey @andreitchaltsev, thanks for letting us know! I'll leave this issue open until the section on negation is clarified 😊

Hey @andreitchaltsev! A super delayed response to your original question, but here's some further info about how the negation works with multiple values (if you still need it!):
As soon as there's a value in the branch attribute, the builds that include that step will be restricted to the specified branches. Adding more values will expand the set of branches that can include that step. So, with your example, "branches: A !B C !D", only builds on branches A and C will include the step that has this attribute. The addition of !B and !D doesn't have any effect here, as the pattern is already restricting builds to A and C.
I'll add this extra info to the branch pattern section. Let me know if there are any further questions you've got about how this works or if there are any other examples you'd like clarified!