Dark UI theme

This is a pretty low-priority request, but I tend to set up all of my dev tools with dark UI themes because it's easier on my eyes over long periods.  A dark UI option (or even full user theming) would be really nice.

For the most part I'm using default colors for dialogs and controls -- there's a couple of places where I override the background in a read-only TextBox so it's not dark grey -- so a system-wide Windows theme should apply to SourceGen.
I haven't looked into themeifying a WinForms application, so I'm not sure how easy or hard that is.

In Windows 10, at least, the system "Dark Mode" only applies to the title bar, and everything else in the UI is the standard black-on-white light theme.  You might want to look into switching to WPF, WinForms is pretty limited in comparison, especially once you start getting into some of the other UI features you mention in your TODO list.  WPF is also hardware-accelerated.

I tried "dark mode" just now on Win10.  The settings window itself got very dark, but nothing else changed at all.  Kind of disappointing.
I targeted WinForms for portability to Linux and Mac OS X.  It currently crashes on startup in WinForms code, and Wine-bottling doesn't appear to work, so this idea isn't working out so well in practice.  I'm hoping that tweaks to the code and/or ongoing work on Mono will make it work someday.  Mono has stated they have no plans to support WPF.

Moved to https://github.com/fadden/6502bench/wiki/TO-DO-List
Using WPF now.  Changing the window colors is easy enough, but I've got a bunch of custom styling for things like long comments that span multiple ListView columns, so it's not trivial.  (I think.  Still not exactly a WPF expert.)
I may need to do something clever with Note highlight colors, since they're currently chosen to contrast with black text.  (Probably just need a luminance inversion.)

Added a "dark mode" for the disassembly listing.  The rest of the program is using default controls that will follow the Windows defaults.


Added a password attribute to input variable of type "promptString".

Setting the password attribute to true will cause the UI to not show the type value.
"inputs": [
  {
    "id": "authPassword",
    "type": "promptString",
    "description": "Password for authentication",
    "password": true
  }
]

This PR fixes #90481

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: jlittorin sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Looks good, thanks for the PR!

Thanks, @alexr00! Since this changes the API slightly I should also update the corresponding documentation, I guess. Can I just go do that in the wiki-repo? How is that synced with releases of the app?

If you would update the docs that would be awesome. Only this file should need to be changed: https://github.com/microsoft/vscode-docs/blob/538606e34aa67fd266cfcce79a3830c92b093e32/docs/editor/variables-reference.md#L103-L104
You can use the vnext branch as your base for the PR. We merge around the same time as releasing VS Code. If you can @ mention me in the PR description then I'll see the it faster too.


feat(rspack): add generatePackageJson plugin

Closes #226

The e2e tests pass and I've successfully ran the builds when linking this to all my other Nest projects utilizing this rspack executor.

@mandarini whenever you get time, can we please merge? thank you

I'm approving @travtarr @kodeine , but please can you rebase with latest main?

It's been rebased, thanks!

@mandarini sorry for the tag :) would really appreciate if we can merge this, thank you for all the work you do!


[Stdlib] Remove SwiftPrivate's dependency on Darwin.

Revert #20194, which seems to be more trouble than it's worth. Instead, move the functions that SwiftPrivate needs back into LibcShims.h/cpp as SPI.
rdar://problem/45817565

@swift-ci please test

@swift-ci please test

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 9266cb7229c224b85a23b9a1de3197495aad0207

@swift-ci please test Linux platform

Build failed
Swift Test Linux Platform
Git Sha - 9266cb7229c224b85a23b9a1de3197495aad0207

@swift-ci please test Linux platform


[ci] run cargo audit daily

Create a GitHub Action to run cargo audit daily, so that if there is a security vulnerability it can be reported here.

Closed by #11


When transferring ownership of a project, the new owner should no longer be listed as an editor on the project

It seems redundant to list someone separately as an owner and an editor, given that the owner in theory has all the privileges of an editor, and that the original project owner is not double listed by default.

These are different roles and responsibilities. You can manually remove the user as Project Editor if so desired.


Update Activity method from Virtual Assistant

Is your feature request related to a problem? Please describe.
I want to attach a skill which refreshes cards to Virtual Assistant. With current SDK, refreshing cards via VA is not supported.
Describe the solution you'd like
SkillHandler class does not implement OnUpdateActivityAsync . Individually skill can refresh the cards but not when consumed by a Virtual Assistant.
Describe alternatives you've considered
NA
[enhancement]

Hi - This work is planned to be completed in our next release. Please see this issue for tracking.

Thanks!


App may crash when clicking on Network or Recycle Bin in Sidebar

Description
This seems to be an issue appearing randomly when using the Sidebar.
I have been able to provoke it only on the Recycle Bin and the Network Drives so far.
Steps To Reproduce

Alternate clicking between items in the Sidebar
When clicking on the Recycle Bin or a Network Drive, the application may crash.

Steps to fix

Clicking on Network or Recycle Bin should not provoke a crash.

Files Version
Version: <IP_ADDRESS> OS Version: 10.0.19045.2251
Windows Version
W10 Home 22H2 19045.2251
Relevant Assets/Logs
debug.log

Seems to be linked to #3377646610u on AppCenter.

Can confirm...
debug.log

I'm looking into it.

Brand new install here, fresh out of the box, clicking on "Network" causes an instant crash. I am able to manually copy and paste a UNC path in and it will browse the locations ok.
debug.log


Tests suite fails on macOS

/Users/runner/.cargo/bin/cargo test --release
 Downloading crates ...
  Downloaded remove_dir_all v0.5.1
  Downloaded tempdir v0.3.7
  Downloaded rand v0.4.3
   Compiling remove_dir_all v0.5.1
   Compiling rand v0.4.3
   Compiling tempdir v0.3.7
   Compiling ruplacer v0.4.3 (/Users/runner/work/ruplacer/ruplacer)
error[E0425]: cannot find value `status` in this scope
Error:   --> tests/integration_tests.rs:27:13
   |
27 |     assert!(status.success());
   |             ^^^^^^ not found in this scope

warning: unused import: `std::process::Command`
Warning:  --> tests/integration_tests.rs:3:5
  |
3 | use std::process::Command;
  |     ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Regression introcuded where I merged 80d523b - my bad.

That's because I only config test for Windows and Linux. Never use MacOs so that sliped out of my mind. Sorry.

Well, let's hope your're right...

Yup, you wer right. Thanks.


statbuf is uninitialised in uv_fs_stat

Version: 1.45.0
Platform: Linux

If stat_cb in test-fs.c is modified to access a field of the statbuf like so:
  uv_stat_t* stat = &req->statbuf;
  ASSERT(stat->st_size);

Then running the fs_async_dir test with valgrind will result in:
$ valgrind --track-origins=yes ./uv_run_tests_a fs_async_dir fs_async_dir
==18593== Memcheck, a memory error detector
==18593== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==18593== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==18593== Command: ./uv_run_tests_a fs_async_dir fs_async_dir
==18593==
==18593== Conditional jump or move depends on uninitialised value(s)
==18593==    at 0x1322D6: stat_cb (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1EA796: uv__poll_io_uring (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1EB281: uv__io_poll (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1CED3B: uv_run (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1357F9: run_test_fs_async_dir (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x11B6AB: run_test_part (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x119E08: main (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==  Uninitialised value was created by a heap allocation
==18593==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==18593==    by 0x1C950E: uv__malloc (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1EA330: uv__iou_fs_statx (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1D6EB3: uv_fs_stat (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x1357A9: run_test_fs_async_dir (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x11B6AB: run_test_part (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==    by 0x119E08: main (in /home/ryan/Programming/luvit/libuv/build/uv_run_tests_a)
==18593==
==18593==
==18593== HEAP SUMMARY:
==18593==     in use at exit: 0 bytes in 0 blocks
==18593==   total heap usage: 28 allocs, 28 frees, 68,794 bytes allocated
==18593==
==18593== All heap blocks were freed -- no leaks are possible
==18593==
==18593== For lists of detected and suppressed errors, rerun with: -s
==18593== ERROR SUMMARY: 4 errors from 1 contexts (suppressed: 0 from 0)

This is likely something that was introduced in https://github.com/libuv/libuv/pull/3952

Here's another reproduction as a standalone program:
#include <uv.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>

static void stat_cb(uv_fs_t* req) {
  uv_stat_t* stat = &req->statbuf;
  printf("size %" PRIu64 "\n", stat->st_size);
  uv_fs_req_cleanup(req);
}

int main() {
  uv_fs_t req;
  uv_fs_t open_req;
  int ret;

  // Make an empty file
  ret = uv_fs_open(NULL, &open_req, "file", O_WRONLY | O_CREAT, S_IWUSR | S_IRUSR, NULL);
  printf("open %d\n", ret);
  uv_fs_req_cleanup(&open_req);

  ret = uv_fs_stat(uv_default_loop(), &req, "file", stat_cb);
  printf("stat %d\n", ret);

  ret = uv_run(uv_default_loop(), UV_RUN_DEFAULT);
  printf("run %d\n", ret);

  uv_loop_close(uv_default_loop());
}

Running it with valgrind gives:
$ valgrind --track-origins=yes ./test-stat
==22373== Memcheck, a memory error detector
==22373== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==22373== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==22373== Command: ./test-stat
==22373==
open 3
stat 0
==22373== Use of uninitialised value of size 8
==22373==    at 0x48F769B: _itoa_word (_itoa.c:179)
==22373==    by 0x4913574: __vfprintf_internal (vfprintf-internal.c:1687)
==22373==    by 0x48FDD3E: printf (printf.c:33)
==22373==    by 0x110AB0: stat_cb (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12FBCC: uv__poll_io_uring (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1306B7: uv__io_poll (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1153FF: uv_run (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B8D: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==  Uninitialised value was created by a heap allocation
==22373==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==22373==    by 0x110CD5: uv__malloc (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12F766: uv__iou_fs_statx (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x11D2E9: uv_fs_stat (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B5C: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==
==22373== Conditional jump or move depends on uninitialised value(s)
==22373==    at 0x48F76AD: _itoa_word (_itoa.c:179)
==22373==    by 0x4913574: __vfprintf_internal (vfprintf-internal.c:1687)
==22373==    by 0x48FDD3E: printf (printf.c:33)
==22373==    by 0x110AB0: stat_cb (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12FBCC: uv__poll_io_uring (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1306B7: uv__io_poll (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1153FF: uv_run (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B8D: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==  Uninitialised value was created by a heap allocation
==22373==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==22373==    by 0x110CD5: uv__malloc (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12F766: uv__iou_fs_statx (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x11D2E9: uv_fs_stat (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B5C: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==
==22373== Conditional jump or move depends on uninitialised value(s)
==22373==    at 0x4914228: __vfprintf_internal (vfprintf-internal.c:1687)
==22373==    by 0x48FDD3E: printf (printf.c:33)
==22373==    by 0x110AB0: stat_cb (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12FBCC: uv__poll_io_uring (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1306B7: uv__io_poll (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1153FF: uv_run (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B8D: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==  Uninitialised value was created by a heap allocation
==22373==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==22373==    by 0x110CD5: uv__malloc (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12F766: uv__iou_fs_statx (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x11D2E9: uv_fs_stat (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B5C: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==
==22373== Conditional jump or move depends on uninitialised value(s)
==22373==    at 0x49136EE: __vfprintf_internal (vfprintf-internal.c:1687)
==22373==    by 0x48FDD3E: printf (printf.c:33)
==22373==    by 0x110AB0: stat_cb (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12FBCC: uv__poll_io_uring (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1306B7: uv__io_poll (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x1153FF: uv_run (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B8D: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==  Uninitialised value was created by a heap allocation
==22373==    at 0x483C853: malloc (vg_replace_malloc.c:393)
==22373==    by 0x110CD5: uv__malloc (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x12F766: uv__iou_fs_statx (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x11D2E9: uv_fs_stat (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==    by 0x110B5C: main (in /home/ryan/Programming/luvit/libuv-standalone-test/build/test-stat)
==22373==
size 0
run 0
==22373==
==22373== HEAP SUMMARY:
==22373==     in use at exit: 0 bytes in 0 blocks
==22373==   total heap usage: 5 allocs, 5 frees, 1,877 bytes allocated
==22373==
==22373== All heap blocks were freed -- no leaks are possible
==22373==
==22373== For lists of detected and suppressed errors, rerun with: -s
==22373== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)

The values in statbuf all seem to be right, though.
Found when running the luv tests in https://github.com/luvit/luv/pull/649

It's a false positive. Valgrind doesn't know the buffer is asynchronously filled in by the kernel.
Probably the best we can do is add a suppression file because I don't believe valgrind (unlike e.g. tsan) has a programmatic way of saying "trust me, this buffer is really initialized."

Looks like the memcheck client request VALGRIND_MAKE_MEM_DEFINED might work:
https://valgrind.org/docs/manual/mc-manual.html#mc-manual.clientreqs

Can confirm that the following (naively implemented) patch fixes these Valgrind errors:
--- a/src/unix/internal.h
+++ b/src/unix/internal.h
@@ -36,17 +36,16 @@
 #include <sys/stat.h>
 #include <sys/types.h>

-#define uv__msan_unpoison(p, n)                                               \
-  do {                                                                        \
-    (void) (p);                                                               \
-    (void) (n);                                                               \
-  } while (0)
+#include <valgrind/memcheck.h>
+#define uv__valgrind_unpoison(p, n) VALGRIND_MAKE_MEM_DEFINED(p, n)
+
+#define uv__msan_unpoison uv__valgrind_unpoison

 #if defined(__has_feature)
 # if __has_feature(memory_sanitizer)
 #  include <sanitizer/msan_interface.h>
 #  undef uv__msan_unpoison
-#  define uv__msan_unpoison __msan_unpoison
+#  define uv__msan_unpoison(p, n) uv__valgrind_unpoison(p, n); __msan_unpoison(p, n)
 # endif
 #endif

See https://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.clientreq for more info on client requests to determine how/if you'd like to implement this sort of thing for real.

Ah, it's in memcheck.h, not valgrind.h.
We'd either have to add a build option to enable building for valgrind, vendor valgrind's header files, or emit the magic instruction sequences that valgrind recognizes.
I'm not yet sufficiently annoyed enough by this issue to want to spend time on it but I'll review pull requests.


Removing import statements and rearranging imported interfaces

Brief:
While flattening contracts, yoink leaves the import and pragma statements along with directly concatenating different interfaces.
Rationale:
Contracts don't compile after downloading via Yoink because of invalid Solidity syntax.
Scope:
soldiff's execution is dependent, otherwise need to manually do this.
Deliverables:

[ ] remove every pragma except the most specific one (e.g. 0.8.12 is more specific than >0.8.0
[ ] remove all lines with import statements
[ ] order contracts based on the order in which they are referenced, e,g, construct a dependency graph then put the children in first and the parent in last

this repo is no longer in use. the yoink we now use is under chain-tools, i would recommend moving this issue to there


ESA-1364 move field in SA Case EC notes

Moved Committee Recommendation field above Conditions field in EC Committee section of SA Case object.

@MeganWeston when committing, you need to click the "+" sign next to each file that you want to include it in your commit. this is "staging" a file for commit. you got the above message from VS code because you must've committed without staging any file so VS code asked if you want to stage all file under "Changes"
Sometimes, you don't always want to commit all changed files as in the GIF below:

@MeganWeston you can close this pull request without merging if the other one you just merged wins!


Backport: Storage provider refactor including latest build scripts and docs to the release-1.7 branch

Description of your changes:
The Cassandra repo is preparing to release from its own repo instead of the main rook/rook repo. This updates everything from master for critical build changes that are required for this separate build and release process.
Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
[ ] Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
[ ] Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
[ ] Reviewed the developer guide on Submitting a Pull Request
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.
[ ] Pending release notes updated with breaking and/or notable changes, if necessary.
[ ] Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
[ ] Code generation (make codegen) has been run to update object specifications, if necessary.

We can ignore the commitlint here as well, but I we can wait until the builds pass before merging.


feat: Add support for iframe based video sampling

Now videos can be sampled for IFRAMES using 'iframe' keyword with SAMPLE clause
e.g.
==> SELECT id FROM MyVideo SAMPLE IFRAMES 7 ORDER BY id;
==> SELECT id FROM MyVideo SAMPLE IFRAMES ;     # this uses default sampling rate of 1

#616


Issue with redirect property in session component

the component gives me internal server error when the property ' redirect' is not set ( -none- ) , perhaps it could be redirected to the current page.
The error only appears when I am on a static page ' ( from you)
Thanks

You'd need to check the webserver error log for the exact failure reason.


[spi_device] Add DPSRAM Layout in Flash mode

in Flash mode, SPI_DEVICE uses DPSRAM as buffers for read commands, SFDP
table, mailbox, command/address/payload buffers.
This commit adds a description and layout figure for SW to understand
the DPSRAM content.
Issue reported by @tjaychen

thank you @eunchan !

@kosta-kojdic This could be an answer to #12059

@eunchan My understanding is Mailbox Address is configurable in dedicated register. Is this layout fixed structure not impacted by Mailbox address configuration?

I will add to the issue.

On Apr 12, 2022, at 10:10 AM, kosta-kojdic @.***> wrote:
@kosta-kojdic https://github.com/kosta-kojdic This could be an answer to #12059 https://github.com/lowRISC/opentitan/issues/12059
@eunchan https://github.com/eunchan My understanding is Mailbox Address is configurable in dedicated register. Is this layout fixed structure not impacted by Mailbox address configuration?
—
Reply to this email directly, view it on GitHub https://github.com/lowRISC/opentitan/pull/12070#issuecomment-1096982883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJDG3RT465XZA2TXGGNIKDVEWU7FANCNFSM5TH5BFXA.
You are receiving this because you were mentioned.


feature request: delete join message

Hi
Chinese spam bots use join message as spam message. Would be great if name matching ban deletes join message as well. attaching screenshot

Regards

Thanks - this does seem like a real issue.

it is implemented in the "anti spam" section of teleme.io

Ahh, looks like its "accomplished" via a super long name. They call ed "Long-name Spam Cleaner" on teleme.io.
Would be easy to implement. @andrewhyde what do you think?

Deleting join messages and long name spammers are also covered by Chainfuel's free telegram analytics, anti-spam, and CRM tool.


Some keywords in CREATE VIEW statement break syntax highlighting in the query

Description
Adding "or replace" breaks syntax highlighting with colors.

use this query:

create or replace view table_size as
SELECT
    c.relname,
    PG_RELATION_SIZE(C.oid) as size_bytes,
    PG_RELATION_SIZE(C.oid) as size_bytes2
FROM pg_class AS c

compare highlighting with and without "or replace"

https://github.com/user-attachments/assets/7b802070-afec-43cb-88ad-cba0bc6eab5f
DBeaver Version
Enterprise Edition 24.2.4-202410172322
Operating System
Windows 10
Database and driver
PostgreSQL 16
PostgreSQL JDBC Driver 42.7.4
Steps to reproduce
No response
Additional context
No response

thanks for the report


reloading remap.config with  causing a segmentation fault

While load testing a 'master' branch build using a remap with the cachkey plugin enabled, traffic server crashed due to a segmentation fault after making changes to remap.config followed by traffic_ctl config reload.
I tracked it down to the cachekey plugin.  After removing the plugin configuration and repeating the test, edit remap.config; traffic_ctl config reload, its no-longer crashes.
Here is my remap.config with the cachekey plugin:
map http://foo.com:8080 http://cache-01.foo.com:8080/ @strategy=bar.com @plugin=cachekey.so @pparam=--separator= @pparam=--remove-all-params=true @pparam=--remove-path=true @pparam=--capture-prefix-uri=/^([^?]*)/$1/
Here are the stack traces:
traffic_server: received signal 11 (Segmentation fault) traffic_server - STACK TRACE: /opt/trafficserver/bin/traffic_server(crash_logger_invoke(int, siginfo_t*, void*)+0xc3)[0x6394db] /lib64/libpthread.so.0(+0xf5d0)[0x2ac8695555d0] /lib64/libc.so.6(+0x155866)[0x2ac86a2da866] /opt/trafficserver/bin/traffic_server(std::char_traits<char>::copy(char*, char const*, unsigned long)+0x3e)[0x63179a] /opt/trafficserver/bin/traffic_server(std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_copy(char*, char const*, unsigned long)+0x47)[0x634f66] /opt/trafficserver/bin/traffic_server(std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_clone(std::allocator<char> const&, unsigned long)+0x84)[0x6354f2] /opt/trafficserver/bin/traffic_server(std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_grab(std::allocator<char> const&, std::allocator<char> const&)+0x64)[0x634552] /opt/trafficserver/bin/traffic_server(std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x72)[0x633a30] /opt/trafficserver/var/trafficserver/3a39165c-3815-405e-8621-a9b0c1111b4c/opt/trafficserver/libexec/trafficserver/cachekey.so(+0x3b909)[0x2ac9122de909] /opt/trafficserver/var/trafficserver/3a39165c-3815-405e-8621-a9b0c1111b4c/opt/trafficserver/libexec/trafficserver/cachekey.so(TSRemapDoRemap+0x3a)[0x2ac9122deec7] /opt/trafficserver/bin/traffic_server(RemapPluginInfo::doRemap(void*, tsapi_httptxn*, _tm_remap_request_info*)+0x57)[0x767d3d] /opt/trafficserver/bin/traffic_server(RemapPluginInst::doRemap(tsapi_httptxn*, _tm_remap_request_info*)+0x34)[0x74e88e] /opt/trafficserver/bin/traffic_server(RemapPlugins::run_plugin(RemapPluginInst*)+0xfd)[0x76ab13] /opt/trafficserver/bin/traffic_server(RemapPlugins::run_single_remap()+0x1fe)[0x76ad6c] /opt/trafficserver/bin/traffic_server(RemapProcessor::perform_remap(Continuation*, HttpTransact::State*)+0x318)[0x753bfc] /opt/trafficserver/bin/traffic_server(HttpSM::do_remap_request(bool)+0x499)[0x6d18c3] /opt/trafficserver/bin/traffic_server(HttpSM::set_next_state()+0xa7)[0x6dec35] /opt/trafficserver/bin/traffic_server(HttpSM::call_transact_and_set_next_state(void (*)(HttpTransact::State*))+0x1b8)[0x6deb84] /opt/trafficserver/bin/traffic_server(HttpSM::handle_api_return()+0x1ac)[0x6c7552] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callout(int, void*)+0xc95)[0x6c7261] /opt/trafficserver/bin/traffic_server(HttpSM::do_api_callout_internal()+0x218)[0x6d6a50] /opt/trafficserver/bin/traffic_server(HttpSM::do_api_callout()+0x27)[0x6e707f] /opt/trafficserver/bin/traffic_server(HttpSM::set_next_state()+0x60)[0x6debee] /opt/trafficserver/bin/traffic_server(HttpSM::call_transact_and_set_next_state(void (*)(HttpTransact::State*))+0x1b8)[0x6deb84] /opt/trafficserver/bin/traffic_server(HttpSM::handle_api_return()+0x1ac)[0x6c7552] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callout(int, void*)+0xc95)[0x6c7261] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callback(int, void*)+0x1e4)[0x6c6550] /opt/trafficserver/bin/traffic_server(TSHttpTxnReenable+0x109)[0x65489d] /opt/trafficserver/libexec/trafficserver/remap_stats.so(+0xcb5e)[0x2ac910972b5e] /opt/trafficserver/bin/traffic_server(INKContInternal::handle_event(int, void*)+0x13a)[0x6479de] /opt/trafficserver/bin/traffic_server(Continuation::handleEvent(int, void*)+0xc9)[0x63d7ed] /opt/trafficserver/bin/traffic_server(APIHook::invoke(int, void*) const+0xe9)[0x6483af] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callout(int, void*)+0x922)[0x6c6eee] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callback(int, void*)+0x1e4)[0x6c6550] /opt/trafficserver/bin/traffic_server(TSHttpTxnReenable+0x109)[0x65489d] /opt/trafficserver/libexec/trafficserver/stats_over_http.so(+0x1d07)[0x2ac910763d07] /opt/trafficserver/bin/traffic_server(INKContInternal::handle_event(int, void*)+0x13a)[0x6479de] /opt/trafficserver/bin/traffic_server(Continuation::handleEvent(int, void*)+0xc9)[0x63d7ed] /opt/trafficserver/bin/traffic_server(APIHook::invoke(int, void*) const+0xe9)[0x6483af] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callout(int, void*)+0x922)[0x6c6eee] /opt/trafficserver/bin/traffic_server(HttpSM::main_handler(int, void*)+0x35e)[0x6cc0f4] /opt/trafficserver/bin/traffic_server(Continuation::handleEvent(int, void*)+0xc9)[0x63d7ed] /opt/trafficserver/bin/traffic_server(EThread::process_event(Event*, int)+0x143)[0x927ce7] /opt/trafficserver/bin/traffic_server(EThread::execute_regular()+0x2c4)[0x9282c2] /opt/trafficserver/bin/traffic_server(EThread::execute()+0x107)[0x928601] /opt/trafficserver/bin/traffic_server[0x927125] /lib64/libpthread.so.0(+0x7dd5)[0x2ac86954ddd5] /lib64/libc.so.6(clone+0x6d)[0x2ac86a28302d] traffic_server: received signal 11 (Segmentation fault) traffic_server - STACK TRACE: /opt/trafficserver/bin/traffic_server(crash_logger_invoke(int, siginfo_t*, void*)+0xc3)[0x6394db] /lib64/libpthread.so.0(+0xf5d0)[0x2b800ee9f5d0] /opt/trafficserver/bin/traffic_server[0x631230] /opt/trafficserver/bin/traffic_server(RefCountObj::refcount_inc()+0x21)[0x631a07] /opt/trafficserver/bin/traffic_server(Ptr<ProxyMutex>::Ptr(Ptr<ProxyMutex> const&)+0x39)[0x63f0f1] /opt/trafficserver/bin/traffic_server(WeakMutexTryLock::WeakMutexTryLock(SourceLocation const&, char const*, Ptr<ProxyMutex>&, EThread*)+0x30)[0x65efd4] /opt/trafficserver/bin/traffic_server(HttpSM::state_api_callout(int, void*)+0x665)[0x6c6c31] /opt/trafficserver/bin/traffic_server(HttpSM::do_api_callout_internal()+0x218)[0x6d6a50] /opt/trafficserver/bin/traffic_server(HttpSM::do_api_callout()+0x27)[0x6e707f] /opt/trafficserver/bin/traffic_server(HttpSM::setup_cache_lookup_complete_api()+0x26)[0x6e7204] /opt/trafficserver/bin/traffic_server(HttpSM::state_cache_open_read(int, void*)+0x654)[0x6cbd72] /opt/trafficserver/bin/traffic_server(HttpSM::main_handler(int, void*)+0x35e)[0x6cc0f4] /opt/trafficserver/bin/traffic_server(Continuation::handleEvent(int, void*)+0xc9)[0x63d7ed] /opt/trafficserver/bin/traffic_server(HttpCacheSM::state_cache_open_read(int, void*)+0x2a7)[0x7309c5] /opt/trafficserver/bin/traffic_server(Continuation::handleEvent(int, void*)+0xc9)[0x63d7ed] /opt/trafficserver/bin/traffic_server(CacheVC::openReadStartHead(int, Event*)+0x10b8)[0x859bce] /opt/trafficserver/bin/traffic_server(CacheVC::openReadFromWriter(int, Event*)+0x2ef)[0x853a07] /opt/trafficserver/bin/traffic_server(Continuation::handleEvent(int, void*)+0xc9)[0x63d7ed] /opt/trafficserver/bin/traffic_server(EThread::process_event(Event*, int)+0x143)[0x927ce7] /opt/trafficserver/bin/traffic_server(EThread::execute_regular()+0x2c4)[0x9282c2] /opt/trafficserver/bin/traffic_server(EThread::execute()+0x107)[0x928601] /opt/trafficserver/bin/traffic_server[0x927125] /lib64/libpthread.so.0(+0x7dd5)[0x2b800ee97dd5] /lib64/libc.so.6(clone+0x6d)[0x2b800fbcd02d] [TrafficManager] ==> Cleaning up and reissuing signal #15 traffic_server: using root directory '/opt/trafficserver' [TrafficManager] ==> signal #15

Initially, I thought this was only an issue when using the cachekey plugin in remap.config but this is not the case.  It crashes with just a reload.  Here are two stack traces I was able to cabture.
#0  0x0000000000632f44 in ink_atomic_increment<int, int> (mem=0xefbeaddeefbeade6, count=1)
    at ../include/tscore/ink_atomic.h:78
#1  0x0000000000633615 in RefCountObj::refcount_inc (this=0xefbeaddeefbeadde) at ../include/tscore/Ptr.h:66
#2  0x0000000000640e7f in Ptr<ProxyMutex>::Ptr (this=0x2b9b81705a60, src=...) at ../include/tscore/Ptr.h:200
#3  0x0000000000661038 in WeakMutexTryLock::WeakMutexTryLock (this=0x2b9b81705a60, location=..., ahandler=0x0,
    am=..., t=0x2b9b7a380010) at /home/jrushf1239k/trafficserver-apache/iocore/eventsystem/I_Lock.h:472
#4  0x00000000006ca60e in HttpSM::state_api_callout (this=0x2b9c6a923c00, event=2, data=0x2b9c6c0242c0)
    at HttpSM.cc:1456
#5  0x00000000006cfae6 in HttpSM::main_handler (this=0x2b9c6a923c00, event=2, data=0x2b9c6c0242c0)
    at HttpSM.cc:2620
#6  0x000000000063f57b in Continuation::handleEvent (this=0x2b9c6a923c00, event=2, data=0x2b9c6c0242c0)
    at /home/jrushf1239k/trafficserver-apache/iocore/eventsystem/I_Continuation.h:190
#7  0x0000000000934ad5 in EThread::process_event (this=0x2b9b7a380010, e=0x2b9c6c0242c0, calling_code=2)
    at UnixEThread.cc:126
#8  0x00000000009350b0 in EThread::execute_regular (this=0x2b9b7a380010) at UnixEThread.cc:239
#9  0x00000000009353ef in EThread::execute (this=0x2b9b7a380010) at UnixEThread.cc:330
#10 0x0000000000933e81 in spawn_thread_internal (a=0x121a570) at Thread.cc:92
#11 0x00002b9b7766fe25 in start_thread () from /lib64/libpthread.so.0
#12 0x00002b9b783a034d in clone () from /lib64/libc.so.6```

Related to reverting the Ptr to ProxyMutex* for plugins.  the WEAK_MUTEX_TRY_LOCK expects to be passed a Ptr& when it should be taking a ProxyMutex*.
At the very least the Mutex RAII classes in I_Lock.h should have their constructors as explicit as it seems the WEAK_MUTEX_TRY_LOCK is promoting the ProxyMutex* into a Ptr which then will blow it out on destruct.

This might be related to https://github.com/apache/trafficserver/pull/6231 and the new WEAK_MUTEX_TRY_LOCK

@traeak, @jrushford is this happening with 9.x branch? (basically trying to get a sense of when it started happening)

@gtenev yes it crashes on both ATS 9.0 and on master.  I'm testing on a machine under load with http requests.  If I touch the remap.config and then use traffic_ctl config reload, it crashes with the above stack trace where it's trying to increment the reference count on a plugin continuation mutex than no-longer exists.  I walked back through all the commits over the past few days and found that it started crashing with this commit:
`commit 1eca389c5d8f908743d92b742d286b48b396a3a9
Author: Gancho Tenev<EMAIL_ADDRESS>Date:   Fri Mar 1 14:33:09 2019 -0800
Plugin reload

Reloading plugin allows new versions of a plugin code to be loaded
and executed and old versions to be unloaded without restarting
the traffic server process.

  ATS no-longer crashes with the traffic_ctl reload on 9 and on master.

Thank you, John for reporting and narrowing the problem down to the particular commit that causes it. I was able to reproduce it with the test case you provided under load and got the exact same crash.
In some plugins TSRemapDeleteInstance callbacks perform cleanup by deleting continuations created by the plugin. In certain conditions like in the test case provided state machines were still alive after the continuation cleanup and attempted to use them. PR #6280 provides a fix for the problem, basically delaying the callbacks calls until all state machines are finished and gone.

Fixed by #6280 and #6299

Fixed by #6280 and #6299


[OPENJDK-1335] microdnf update weak deps

Part 1 of a 2-commit PR: I want to see CI red lights for this commit before pushing the fix.
This commit adds a test for some RPMs that are installed as transitive weak dependencies via microdnf when it is not configured with install_weak_deps=0.
https://issues.redhat.com/browse/OPENJDK-1335?filter=12398815

The new test passed for ubi8/openjdk-8 but shouldn't have. I think it's a race condition, due to using "available container log". I'm going to try just "container log".


hassio addon

Would be great to have this is an hassio addon.

HomeAssistant already comes with the miflora component. Why would you need plantgateway?
https://www.home-assistant.io/components/miflora/

You're totally right. Plantgateway is about getting the bridge near to the plants if your ha instance is not near enough.
Was a bit to fast with this idea, when I saw the new autodiscovery feature.


fix: drop deprecated context_processors

Closes: #55

I think this needs merging because the newest release of apis-core-rdf breaks things for anyone using apis-acdhch-default-settings.

Thanks!


removed hardcoded log level setting on mockserver

Hello,
This pr is only a housekeeping, because by default logLevel of mockserver is set to INFO https://github.com/mock-server/mockserver/blob/master/mockserver-core/src/main/java/org/mockserver/configuration/ConfigurationProperties.java#L39
and by setting this log level this way (through command line arg), we cannot change it later on the client side code of MockserverContainer by env variable "MOCKSERVER_LOG_LEVEL" so this change also allows to change log level of mockserver

Hey @szymonprz, thanks for the PR. This is indeed a very useful housekeeping chage.


Section 2.2.12 error "Could not find the requested service nfs: host" for NFS service

The NFS service definition in Section 2.2.12 lists the NFS service as just 'nfs' instead of 'nfs-server' when the 'nfs-utils' package is installed. Playbook errors out with "msg: Could not find the requested service nfs: host" when running full playbook or just 'nfs' tag. Changing the service from 'nfs' to 'nfs-server' satisfies the service check for section 2.2.12.
The issue is with the CIS benchmark for RHEL 8 version 1.0.0 document specifying the remediation step as running systemctl --now disable nfs instead of systemctl --now disable nfs-server which is necessary to satisfy the requirement of reducing the attack surface of the host if the host is not exporting shares. Understanding that the issue is with misrepresented information in the Benchmark document, the best approach for ensuring correct operation of this playbook would be to correct the service name from "nfs" to "nfs-server".
This issue was encountered on both RHEL 8.3 and CentOS 8.3. The NFS server service previously was named 'nfs' in RHEL/CentOS 6 but changed to 'nfs-server' sometime around RHEL 7.1 or 7.2.

Hi @danderemer
Thank you for your feedback and great explanation.
I have issued a new pull request to cover this off and hope to get this pushed in the next few days.
Please feel free to create a PR for any issues that you may find like this (there is a Contrib guide that should help).
Regards
uk-bolly

Confirmed fixed on the april_2021_fixes branch :-)


feat(cluster): add NAT support

Closes #693, #365

@luin I'll be testing to make sure this PR does not break end-to-end TLS connection over NAT.


Expose root module loader so that all apps can share some modules.

This would include

ensuring that single-spa knows which apps depend on which 'global' modules (for hot reloading)
exposing the single-spa loader to user apps (probably through a global SPA.loader)

I didn't do the hot reloading part, yet, though


Fix the fixits for dispatch_async and dispatch_group_async

They erroneously suggested DispatchQueue.asynchronously, but it's actually DispatchQueue.async. This is #6958 cherry-picked for Swift 3.1.
Resolves SR-3856.

Since this is a release branch, the PR should include this additional info: https://swift.org/blog/swift-3-1-release-process/#pull-requests-for-release-branch

Sorry but I don't have time for that, I just did what I was asked for in that SR. If somebody wants to fill in those details that'd be great.

Explanation: The Fix-Its for dispatch_async and dispatch_group_async use pre-final-Swift-3 names (asychronously) rather than the final Swift 3 names (async).

Scope: Affects Swift 2 code using Dispatch that is compiled as Swift 3.

SR Issue: SR-3856
Risk: Zero. This only affects the "renamed" message in the Dispatch overlay.
Testing: Normal compiler regression tests.

@swift-ci please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - f107ce7b7fa5edaa5f7b2c1a6bb421ba929cd907
Test requested by - @DougGregor

@swift-ci clean test macOS


'cur' attr is undefined in removeFragment function

Version
3.2.28
Reproduction link
duplo.pilot.teqfw.com/
Steps to reproduce
I have an error message when clean storage ("DevTools / Application / Storage" tab in Chrome browser) while my Progressive Web App is running. Goto link https://duplo.pilot.teqfw.com/#/hollow/occupy and wait for application will be fully loaded (about 10-15 sec), you should see the message "This hollow is occupied by some squirrel.". Then goto DevTools and clear the site data. The following error should be thrown:
TypeError: Cannot read properties of null (reading 'nextSibling')
    at nextSibling (vue.global.js:9156:33)
    at removeFragment (vue.global.js:7018:22)
    at remove (vue.global.js:6984:15)
    at unmount (vue.global.js:6968:19)
    at unmountComponent (vue.global.js:7040:15)
    at unmount (vue.global.js:6941:15)
    at patch (vue.global.js:5916:15)
    at render (vue.global.js:7088:15)
    at mount (vue.global.js:5371:27)
    at Object.app.mount (vue.global.js:10660:25)

This is a screenshot:

What is expected?
I expect that removeFragment function will correctly handle case where cur attribute will stay undefined or null.
What is actually happening?
I have an error: "Cannot read properties of null (reading 'nextSibling')"

I suppose additional validation can help in this case (https://github.com/flancer64/core/commit/431271c2a3be05080c226a42ccf8b0127b500027):
const removeFragment = (cur: RendererNode, end: RendererNode) => {
    ...
    while ((cur !== end) && cur) {
        ...
    }
    ...
}

I cannot create PR cause it's too complex for me to fix the error by right way. So it is just a  bur report.
Thanks for the great framework, guys!

Your reproduction is not minimal, please read and follow https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro when reporting a bug. Most bugs should be reproducible with the SFC Playground.


Relationship between wg-net and async disk I/O?

This WG is an important effort in the Rust community related to the development of networking libraries and applications. However, by the nature of high speed networking, this is has resulted in a lot of discussion and work related to futures, async / await, and executors for them such as Tokio. I wanted to pose the question of whether it makes sense for this group to also include disk I/O as well?
I know that, obviously by the groups current name, the answer is no. However, with so much interest in high performance async code, it seems like a logical fit. As someone who has worked on high performance I/O systems, async disk I/O has not received nearly as much attention as async network I/O. While there are reasons for this phenomenon (file system support, OS support of file system features, creating a scheduler, etc) the fact remains that applications which are engineered for high speed, async network I/O can benefit from having a shared abstraction model which also encompasses disk I/O. The SeaStar framework, used and ScyllaDB and referenced in some other issues of this group, is one such example of this.

I think that async filesystem IO is pretty niche and limited in domain to things like databases compared to async networking. Aside from async file IO with aio, Tokio's blocking call to make sync filesystem operations in worker threads is close to state of the art (which is pretty sad). Without a lot more effort on the kernel side, I don't see this improving.
I gather the story on the Windows side is a lot better, but I don't have any direct knowledge/experience. Maybe there's more of a conversation to be had there.

I am working on an issue for this that summarises my thinking, but it's not finished yet (hard to find time with a newborn :))
Here it is @code-ape if you're interested: https://www.evernote.com/shard/s142/sh/f9457cfa-b52a-4f77-a01c-09a84bbb2244/0623cf4432cea382819ef049eee39b9a

I don't think the WG name should limit doing work on this, if you're interested. There's also value in sharing traits between network-based async operations and file-based, in my opinion.

it would be helpful to have some practical uses of futures+ to make sure tokio-specific assumptions don't get baked in (...)

I believe the fine folks working on Fuschia OS are doing a great job at this! From what I've seen they make heavy use of Futures + async/await throughout their kernel, and have been one of the driving forces for dropping Error from the Task trait in<EMAIL_ADDRESS>because it didn't make sense for every part of the kernel (if I got that right).
More non-Tokio stakeholders would ofcourse be great, but I think we're probably in a reasonable spot already!

Yeah, they're doing some cool stuff and after talking to them I'm convinced the non-Tokio use-cases are well represented.

@yoshuawuyts there are currently 0 Tokio stakeholders on the futures team, fwiw.

I strongly disagree that async filesystem I/O is niche; blocking on disk is not a good use of CPU time for any application, and can severely impair responsiveness. The unfortunate reality is that OS support is poor and tends to silently and unpredictably degrade to blocking, but even hacky solutions like tokio-fs are useful.

You don't always have a responsive IO – a slow thumb drive that is overloaded, an external HDD that needs to spin up, a (FUSE) network filesystem like SSHFS... and each program that uses blocking-IO blocks until the call is completed.
For some applications it might be acceptable to block until the call is completed, but for most applications it's quite annoying – IMHO non-blocking IO should be default and if there's a way to use this easily... ❤


SyntaxError: Unexpected token '?'

Hi!  I'm attempting to use this on my Sapper project.  I'm new to Svelte, so let me know if this is a dumb mistake.
I can't seem to get this package to run without getthig the following error in my terminal:
[0] /www/public/sapper/osprey-sapper/site/__sapper__/dev/server/server.js:5694
[0]   const json = typeof(localStorage) != 'undefined' ?? localStorage.getItem(key);
[0]                                                     ^
[0]
[0] SyntaxError: Unexpected token '?'
[0]     at wrapSafe (internal/modules/cjs/loader.js:1071:16)
[0]     at Module._compile (internal/modules/cjs/loader.js:1121:27)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
[0]     at Module.load (internal/modules/cjs/loader.js:1001:32)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:900:14)
[0]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
[0]     at internal/main/run_main_module.js:18:47
[0] > Server crashed

My stores.js looks like this
import { writable } from 'svelte-local-storage-store'

export const theme = writable('theme','dark')

And then, once I drop this code in my component, is when I get the error
<script>
  import { theme } from '../../stores'

  ...

<div>{$theme}</div>

Hi @kenjonespizza
Oh I see the issue. ?? is a new JS operator.
Svelte started allowing it only recently, see: https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md#3240
So the svelte package version should be >= 3.24.0.
Can you try bumping your version and see if it fixes it?

Hi @joshnuss !  Thanks for learnin me about nullish coalecing & optional chaining making its way into Svelte!  I love using those in my previous setup with Babel.
Unfortunately updating Svelte did not solve this... which seems weird because that is the exact error I'm getting 🤔.  Maybe this is a Sapper thing... or server thing?
I ran a fresh Sapper install and:

Bumped Svelte to ^3.24.1
Installed svelte-local-storage-store
Added a store and imported in the Nav component
Still get the same error.

Here is that fresh install repo: https://github.com/kenjonespizza/test-svelte-local-storage-store.  In case you want to try it out, but no pressure 😅
The error again:
$ sapper dev
✔ server (1.3s)
✔ client (1.3s)
/Users/ken_docs/www/public/sapper/test-svelte-local-storage-store/__sapper__/dev/server/server.js:447
  const json = typeof(localStorage) != 'undefined' ?? localStorage.getItem(key);
                                                    ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:1071:16)
    at Module._compile (internal/modules/cjs/loader.js:1121:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
    at Module.load (internal/modules/cjs/loader.js:1001:32)
    at Function.Module._load (internal/modules/cjs/loader.js:900:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47
> Server crashed
✔ service worker (19ms)

I reverted to using a regular conditional, and confirmed it's working with the sveltejs/template.
Update svelte-local-storage-store version to 0.1.3 and let me know if it's still an issue.

And thanks for reporting this!

Youre the 💣!  Thanks!


replace blue markers with an actual bus facing in the appropriate direction

It has been suggested that using centerline node networks would be a good way to separate directions of travel for vehicles, such as http://test.agrokarta.biz/upwork/streetside/.  Do we need a designer to create a bus icon to replace the blue markers?

I'm testing my implementation which tilts a bus icon based on heading. And I can flip the icon direction if I separate the vehicle markers layer in two -- a layer for east bound and one for west bound.
I'm new to this project, how do I go about working on this?

Hey @akeimach, that sounds great - we have an onboarding guide that covers the contributing process (tldr you can just assign this issue to yourself, start your branch name with this issue's number, and link this issue to your PR).


Add Jenkins Python 3.6 slave definitions

Adds configs to deploy Python 3.6 slaves to labs-ci-cd. References redhat-cop/container-quickstarts, and will only function correctly when https://github.com/redhat-cop/containers-quickstarts/pull/126 is merged.

Failed docker build  log attached. I think you are inheriting from the wrong image - it should be the slave base, not the maven slave. The slave base will have a root user
jenkins-slave-python-1.log

closed in favor of #211. normally would work to get this PR merged @jacobsee , but we are way behind with the CI having been busted, so I'm hitting the accelerator. you will still get contrib credit.


fix: incorrect currency used for market data in various parts of the app

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

High Risk PRs Require 2 approvals

What protocols, transaction types or contract interactions might be affected by this PR?

Testing

Engineering

Operations

Screenshots (if applicable)

#6361  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @woodenfurniture and the rest of your teammates on  Graphite


Change the way neuron values are cached in NeuralNetwork.

By moving the cache to a separate HashMap or something, neurons would not need to be stored in a RwLock, greatly reducing the amount of data being cloned while transferring between topology and mutable. Additionally, flush_state could be merged into predict without fear of performance issues because the map can simply be replaced by a new one in memory, which is way faster than the current iterative approach.

Probably also helps #63 because the neuron types could become one.

The main difficulty I see with this approach is accidentally wasting CPU cycles due to situations where a neuron is in the process of being solved but other threads also try to solve it because there is no RwLock telling it that the neuron is currently inaccessible. Perhaps this could be solved by first creating a temporary locking entry that forces the other ones to wait until it has finished


Crash on startup with Supplementaries Squared

MC 1.19.2
QFAPI 4.0.0-beta.30
Supplementaries Squared 1.0.7+
To reproduce simply install the mod and its dependencies, then run the game.
Initially reported to SQ here, reporting to you, as well, because the issue doesn't happen if you replace QFAPI with FAPI.
Logs: https://gist.github.com/SplendidAlakey/eb38d7dd4b0185cf1148c9b80873b5a2 (might be a bit outdated, but the crashlog hasn't changed since then, let me know if you need me to resend the logs with everything up-to-date)

Never mind, it's been fixed on SQ side.


FeatureRequest: Package external dependencies

In the html file, there are external stylesheets:

might it be possible to package them inside cty and don't download them from cdn? cty could place them next to the html.

There was a request in the early days NOT to package these. :D So now I'm not sure what to do :P

I would say definitiv not use cdn :-)
On the pro side, there is convenience and clean code, but there are several reasons for not using cdns:
Privacy and Security Concerns:

User Tracking: Utilizing a CDN could potentially expose user data to third parties who own the CDN infrastructure, leading to privacy issues.
Attacks: If a CDN is compromised, stylesheets could be altered to include malicious code. (

Dependency on Third Party:

Reliability: Your website's styling is dependent on the availability of the external CDN. If the CDN goes down or the stylesheet is deleted, your site might not load properly.
Accesess: You need to have access to the cdn - might be restricted by Proxy-Servers.

Compliance and Legal Issues:

GDPR and Other Regulations: Depending on the data protection regulations in your region (like GDPR), sending user requests to third-party servers might complicate compliance.

Alrighty then :)

I'll do this next. :D

The way we can do this is that I inline the CSS into the page, otherwise, you'd have to have some kind of webserver which would defeat the purpose of having a single static website.

Generated a 275Kb index page. It's not THAT bad... :D


Inconsistent screenshot with description of .CER Format

In the V1 SKU export instructions, all locations but in the Step #6 screenshot, it specifies that a Base-64 encoded X.509(.CER) format should be used. In my experience, the DER encoded binary X.509 (.CER) has worked too so maybe either one is actually fine. At the very least, it might make sense to clean up and provide a valid Base-64 encoded X.509(.CER) screenshot that matches the rest of the documentation.

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

ID: 5813d794-d0f4-24dd-077f-e640282329d2
Version Independent ID: fbbc4e6b-6565-4531-f8a7-4e21011e4636
Content: Certificates required for whitelisting backends in Azure Application Gateway
Content Source: articles/application-gateway/certificates-for-backend-authentication.md
Service: application-gateway
GitHub Login: @abshamsft
Microsoft Alias: absha

@davidschlum Thank you for your feedback! We will review and provide an update as appropriate.

@abshamsft , In the screen shot of the 6th step, it is mentioned as "DER Encoded Binary X.509" but in the documentation it is mentioned to use Base-64. Can you change the screenshot ?

#reassign:surajmb

screenshot updated
#please-close


[WIP] Include New "Stale" Workflow for Support Issues

Depends-on https://github.com/conda/infra/pull/508
We need a new GitHub Actions workflow for closing out stale issues which have the type::support label on them.

@beeankha I just realized that this does not do what we thought it would do.
Think of the actions/stale action we use on line 22 as being the function and all of the with values being the input parameters. We compute the values for days-before-issue-stale and days-before-issue-close before running our function (before we even look at a given issue/PR) and within our function, we iterate over all of the issues/PRs and do the stale/close logic.
I actually don't think there's an easy way to do what we want to do here at all without using a different GHA or providing a pretty significant feature request/change to the upstream GHA.

I actually don't think there's an easy way to do what we want to do here at all without using a different GHA or providing a pretty significant feature request/change to the upstream GHA.

I think this should be doable with a job before the stale job, to set a value conditionally and refer to the jobs output later in the section where we call the stale action.
An example: https://github.com/conda/actions/blob/8942836bd4d8487274180065552b140f7e0ed60e/canary-release/action.yml#L34-L37 which is later referred as ${{ steps.vars.outputs.run-url }}).

@jezdez I'm not sure I follow you, what value are we setting prior to the stale action?
AFAIK what we need is something like:
      - uses: actions/stale@v4
        with:
          days-before-issue-stale: 21
          days-before-issue-close: 7
          ...
          issue-filter: label == type::support

and it would appear that we are missing the issue-filter part, some way to specify only processing issues with a specific label.

Closing this for now, might re-open if it looks like we can move forward with this work without it getting too complex!


feat(aria-live): Add skeleton files

Summary

Checklist

[ ] branch has been rebased on the latest master commit
[ ] tests are changed or added
[ ] yarn test passes
[ ] all (dev)dependencies that the module needs is added to its package.json
[ ] code has been documented and, if applicable, usage described in README.md
[ ] module has been added to canvas-kit-react and/or canvas-kit-css universal modules, if
applicable
[ ] design approved final implementation
[ ] a11y approved final implementation
[ ] code adheres to the API & Pattern guidelines

Additional References

This looks great Connie!


Telemetry Correlation

Hi -
I see from this issue #352 that there was a suggestion to use launch dashboard api for first stage telemetry which is a great API - so completely agree data should live with them.
My concern is that there's no easy way for developers to actually reconcile between the two API's. This basic query gives an example of the problem we face
curl http://api.launchdashboard.space/v2/launches/spacex/ | jq

I am observing miss matching flight numbers which is not ideal because we can't use that as a key. Furthermore, i also observe a missmatch between mission identifiers which means we can't use that as key either.
Some examples
NROL-108 flight number 112 vs 117
starlink-11 flight_number 102 vs 105
Saocom-1b flight_number 101 vs 104
Suggestion that they should match
Can i suggest that we look to support their 'launch_library_2_id' key as a new property to the launch schema. Or alternatively, we could utilize the links array and provide a URL to the telemetry data? Ideally, a new field would be best to allow greatest control over what what developers can do with the key. I see this as the best way to ensure consistency across the API's without both repos having to reconcile and fix miss-matches as a going concern.
Also happy to raise this ticket against them, but i fear it will keep happening.
Thanks for your great work.

Hi - just wondering if you had any thoughts on this? I have done a bit more research and it seems there's a wealth of API's supporting launchlibrary2id. For example, flightclub.io, launch dashboard IO and spaceflightnewsapi. I was chatting with the maintianers on discord (they have a 'The Space Devs' server where they colloborate across APIs) and they didn't take issue with another API supporting their identifier.

Hi - just wondering if you had any thoughts on this? I have done a bit more research and it seems there's a wealth of API's supporting launchlibrary2id. For example, flightclub.io, launch dashboard IO and spaceflightnewsapi. I was chatting with the maintianers on discord (they have a 'The Space Devs' server where they colloborate across APIs) and they didn't take issue with another API supporting their identifier.

All for adding a launch library v2 id 👍

All for adding a launch library v2 id 👍

Awesome - let me know if i can assist in anyway.

Awesome - let me know if i can assist in anyway.

Got this knocked out over the weekend, going forward the next launch up should be automatically matched with the corresponding launch library v2 launch, and the field launch_library_id was added to launches.
Only think I haven't done is backfilling the existing launches, but that might take a bit, since a good amount need to be manually matched.

Got this knocked out over the weekend, going forward the next launch up should be automatically matched with the corresponding launch library v2 launch, and the field launch_library_id was added to launches.
Only think I haven't done is backfilling the existing launches, but that might take a bit, since a good amount need to be manually matched.

That's awesome! Yep understand backfilling will take some time. Thank you very much.

That's awesome! Yep understand backfilling will take some time. Thank you very much.

Hey there! I'm a dev with TheSpaceDevs here's a gist of a POC I had for syncing SpaceX API and LL2 IDs - could be helpful.
https://gist.github.com/ItsCalebJones/1c38922507808b52dc744bc7593568df

Hey there! I'm a dev with TheSpaceDevs here's a gist of a POC I had for syncing SpaceX API and LL2 IDs - could be helpful.
https://gist.github.com/ItsCalebJones/1c38922507808b52dc744bc7593568df

@ItsCalebJones  I'll probably switch to your approach, time deltas are much easier to match with vs. my current implementation matching the mission names 👍

@ItsCalebJones  I'll probably switch to your approach, time deltas are much easier to match with vs. my current implementation matching the mission names 👍

time deltas are much easier to match with 👍

Absolutely - it worked really well for past missions and even found a date that ya'll had entered incorrectly awhile ago. Anyways we're adding a r_spacex_api_id field to Launch Library - is there an issue tracking this feature request?


Fix typos and grammar mistakes in all files

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: hanhmchau sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

LGTM - thanks for your contribution!


Create openwindow

Student email domain: virtualwindow.co.za

the path should be za/co/openwindow.txt

also, that's a commercial company domain, i'm closing the request.


"Real time"

Will it auto refresh the value if there is changes on the price of crypto? Or do we have to manual refresh to get latest value?

It automatically get refreshed whenever there is a change in the price of
the cryptocurrency.
On Mon, 19 Aug 2024, 19:24 fjr619, @.***> wrote:

Will it auto refresh the value if there is changes on the price of crypto?
Or do we have to manual refresh to get latest value?
—
Reply to this email directly, view it on GitHub
https://github.com/Tinu-thampi13/CryptoList-App/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATAVGBIFOL6SRSCHW7QVIHDZSH2JBAVCNFSM6AAAAABMX4KE2CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TGNBSHEYDSOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

May i know how the app know if there is a changes in the api, so it will refresh? Cause on your fetching it is just http and you are not using like socket to observe the server changes. Thank you

I have created a function which refresh the page every few seconds. This
ensures real time changes in the crypto List. ( I am using coingecko api to
fetch the crypto info )
On Fri, 23 Aug 2024, 19:22 fjr619, @.***> wrote:

May i know how the app know if there is a changes in the api, so it will
refresh? Cause on your fetching it is just http and you are not using like
socket to observe the server changes. Thank you
—
Reply to this email directly, view it on GitHub
https://github.com/Tinu-thampi13/CryptoList-App/issues/1#issuecomment-2307145756,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATAVGBIA5OUGXOCFBF2LLMLZS45CNAVCNFSM6AAAAABMX4KE2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXGE2DKNZVGY
.
You are receiving this because you commented.Message ID:
@.***>

Thank you, but may i know where is the code for refreshing the page? I can't find that


Libconfig build on macos

Describe the pull request

What does your PR fix?

Fixes compilation errors on macOS by making the compilation flags better match what the upstream libconfig CMakeLists.txt is doing. In particular, the line find_path(STDINT_H stdint.h) was picking up the kernel header version of stdint.h on macOS, altering the header search paths and preventing libconfig from compiling against the C standard library.
Also updates the library to the latest patch release (1.7.2 -> 1.7.3).

Which triplets are supported/not supported? Have you updated the CI baseline?

This PR addresses the build failure on macOS, so this PR also removes the "fail" line from ci.baseline.txt.

Does your PR follow the maintainer guide?

Yes.

Yes.

I think it's good. Please click ready for review.

If #5518 were still open and not closed wont-fix, this PR would fix it.


support haxe final keyword

Support haxe final keyword for variable completion and coloring.
Resolves #2775 and partially resolves #1925 (does not support final as method modifier.)

@romamik i'll check and merge today.


ContainerCredentialsProvider Support

Could add  ContainerCredentialsProvider to default credentials provider chain,  please?
I'd like to build the spring cloud app as a docker image and deploy to ECS task/service, the ECS task was granted role that can access a stack and the stack defined resources.
Thanks a lot.

I am looking forward to an reply on this as well


Update README with hardhat test example

fix #135
@andrewxhill I took a stab at adding "Use with Hardhat" to the README.  Definitely feel free to modify and cleanup the language I used.

I have a wip full example that is testing the example voter app.
Once I'm done with that I'll include a link to it as well.

lovely!

oope, sorry, didn't mean to hit "ready for review" :)


IBM tutorial optimization, 5_admm_optimizer solve simple objective report infeasible

Informations
When I solve a simple obj using admm_optimizer,
obj: v+w
subject to constrain1:  v-2w+u=3
constrain2: u>=3.5
where v,w are binary, u is continuous. The result should be v=0,w=1,u=5, obj =1. but admm is infeasible. May I know how to solve this problem and get correct result? Thanks.
I only change the obj and constrain in demo. The demo link is https://qiskit.org/documentation/tutorials/optimization/5_admm_optimizer.html

Qiskit version:
Python version:
Operating system:

What is the current behavior?

Steps to reproduce the problem
import time
from typing import List, Optional, Any
import numpy as np
import matplotlib.pyplot as plt
from docplex.mp.model import Model
from qiskit import BasicAer
from qiskit.aqua.algorithms import QAOA, NumPyMinimumEigensolver
from qiskit.optimization.algorithms import CobylaOptimizer, MinimumEigenOptimizer
from qiskit.optimization.problems import QuadraticProgram
from qiskit.optimization.algorithms.admm_optimizer import ADMMParameters, ADMMOptimizer
cobyla = CobylaOptimizer()

qaoa = MinimumEigenOptimizer(QAOA(quantum_instance=BasicAer.get_backend('statevector_simulator')))

exact = MinimumEigenOptimizer(NumPyMinimumEigensolver()) # to solve QUBOs

mdl = Model('ex6')
v = mdl.binary_var(name='v')
w = mdl.binary_var(name='w')
u = mdl.continuous_var(name='u')
mdl.minimize(v + w )
mdl.add_constraint(v - 2 * w  + u == 3, "cons1")
mdl.add_constraint(u  >= 3.5, "cons2")

qp = QuadraticProgram()
qp.from_docplex(mdl)
print(qp.export_as_lp_string())
admm_params = ADMMParameters(
                            rho_initial=1001,
                            beta=1000,
                            factor_c=900,
                            maxiter=100,
                            three_block=True, tol=1.e-6
                        )

qubo_optimizer = exact

convex_optimizer = cobyla

admm = ADMMOptimizer(params=admm_params,
                     qubo_optimizer=qubo_optimizer,
                     continuous_optimizer=convex_optimizer)

result = admm.solve(qp)
print("x={}".format(result.x))
print("fval={:.2f}".format(result.fval))
print("x={}".format(result))

What is the expected behavior?
When I solve a simple obj using admm_optimizer,
obj: v+w
subject to constrain1:  v-2w+u=3
constrain2: u>=3.5
where v,w are binary, u is continuous. The result should be v=0,w=1,u=5, obj =1. but admm is infeasible. May I know how to solve this problem and get correct result? Thanks.
Suggested solutions

ADMM does not guarantee to converge to solutions that are satisfying equality constraints.
However, for your example, the 2-block implementation of ADMM (three_block=False) converges to the desired solution.

@feifeng1993 Please check out the reply above.

I would like to ask a follow up on this:
The paper shows the following example:
# construct model using docplex
mdl = Model('ex6')

v = mdl.binary_var(name='v')
w = mdl.binary_var(name='w')
t = mdl.binary_var(name='t')
u = mdl.continuous_var(name='u')

mdl.minimize(v + w + t + 5 * (u-2)**2)
mdl.add_constraint(v + 2 * w + t + u <= 3, "cons1")
mdl.add_constraint(v + w + t >= 1, "cons2")
mdl.add_constraint(v + w == 1, "cons3")

# load quadratic program from docplex model
qp = QuadraticProgram()
qp.from_docplex(mdl)
print(qp.export_as_lp_string())

I modified the example to remove the equality constraint:
# construct model using docplex
mdl = Model('ex6')

v = mdl.binary_var(name='v')
w = mdl.binary_var(name='w')
t = mdl.binary_var(name='t')
u = mdl.continuous_var(name='u')

mdl.minimize(v + w + t + 5 * (u-2)**2)
mdl.add_constraint(v + 2 * w + t + u <= 3, "cons1")
mdl.add_constraint(v + w + t >= 1, "cons2")
# mdl.add_constraint(v + w == 1, "cons3")

# load quadratic program from docplex model
qp = QuadraticProgram()
qp.from_docplex(mdl)
print(qp.export_as_lp_string())

I try the following parameters:
admm_params = ADMMParameters(
                            rho_initial=1001,
                            beta=1000,
                            factor_c=900,
                            maxiter=100,
                            three_block=False, tol=1.e-6
                    )

and
admm_params = ADMMParameters(
                            rho_initial=1001,
                            beta=1000,
                            factor_c=900,
                            maxiter=100,
                            three_block=True, tol=1.e-6
                        )

The code used to solve the optimization problem classically is:
def solve_classical(qp):
    result = admm.solve(qp)

    print("x={}".format(result.x))
    print("fval={:.2f}".format(result.fval))
    plt.plot(result.state.residuals)
    plt.xlabel("Iterations")
    plt.ylabel("Residuals")
    plt.show()

    return result

In both of the cases, I get the status as infeasible:
optimal function value: 0.19920579694859342
optimal value: [0.        0.        0.        1.8003975]
status: INFEASIBLE

I would like to know if there are any steps or parameters I am incorrectly setting or missing?
Also, what type of problems can be best solved using the ADMM optimizer? Are there any assumptions or general guidelines we should keep in mind while using the optimizer?
Thanks a lot.

@prabh27 ADMM is suitable for solving MIP problems and does not guarantee convergence, it is a heuristic algorithm. A choice of the initial parameters plays a vital role. I'd suggest to take a look at the original paper: https://arxiv.org/pdf/2001.02069.pdf


receiving zero length packets

Just with a simple go program main.go.txt that loops receiving packets, I am getting zero length packets (even at a low rate of 100pps, with all > 124bytes).
This is on an interface with just 1 channel configured, running on ubuntu (setup with ansible scripts).
If I up the bufcnt to 8 I don't see these anymore.

I found the problem, took me a while :-(
"umems": {
     "umem0": {
         "bufcnt": 2,
         "bufsz": 2,
         "mtype": "1GB",
         "regions": [ 2 ],
         "rxdesc": 2,
         "txdesc": 2,
    },
},

It turns out the code looks correct, except AF_XDP rings have some restrictions. Here is the code from xskdev.c and comments.
    /*
     * We recommend that you set the fill ring size >= HW RX ring size +
     * AF_XDP RX ring size. Make sure you fill up the fill ring
     * with buffers at regular intervals, and you will with this setting
     * avoid allocation failures in the driver. These are usually quite
     * expensive since drivers have not been written to assume that
     * allocation failures are common. For regular sockets, kernel
     * allocated memory is used that only runs out in OOM situations
     * that should be rare.
     */
    umem_cfg.fill_size      = (cfg->rx_nb_desc * 2);
    umem_cfg.comp_size      = cfg->tx_nb_desc;
    umem_cfg.frame_size     = cfg->bufsz;
    umem_cfg.frame_headroom = cfg->buf_mgmt.buf_headroom;

    if (cfg->flags & LPORT_UMEM_UNALIGNED_BUFFERS)
        umem_cfg.flags = XDP_UMEM_UNALIGNED_CHUNK_FLAG;

    xu->fq_size = umem_cfg.fill_size;

    ret = netdev_get_ring_params(cfg->ifname, &hw_rx_nb_desc, NULL);
    if (ret)
        CNE_ERR("netdev_get_ring_params failure: %d\n", ret);
    else if (umem_cfg.fill_size < hw_rx_nb_desc + cfg->rx_nb_desc)
        CNE_INFO(
            "For %s recommend setting fill size (currently %d) to be >= HW RX ring size (%d) + "
            "AF_XDP Rx ring size (%d)\n",
            cfg->ifname, umem_cfg.fill_size, hw_rx_nb_desc, cfg->rx_nb_desc);

Note the FQ size must be >= (hw_rx_nb_desc + rx_nb_desc), but setting these values to does not work.
Please try the following values:
"umems": {
     "umem0": {
         "bufcnt": 8,
         "bufsz": 2,
         "mtype": "1GB",
         "regions": [ 8 ],
         "rxdesc": 2,
         "txdesc": 2,
    },
},

The minimum values appear to be this:
"umems": {
     "umem0": {
         "bufcnt": 4,
         "bufsz": 2,
         "mtype": "1GB",
         "regions": [ 4 ],
         "rxdesc": 1,
         "txdesc": 1,
    },
},

Will need to figure out the reason, but it appears the kernel AF_XDP code is failing and adding duplicate entries or pointing to freed buffers.

Thanks.
What Ive found that works for the supplied example and the larger program we have is that I always  need to have enough free mbuf entries to fill up the rx ring, fill ring and hw rx ring (which currently would be hw_rx_nb_desc + 3 * rx_nb_desc) to avoid any errors.
I had no errors as long as
bufcnt  > hw_rx_nb_desc + 3 * rx_nb_desc + program caches/buffers
program caches/buffers = any program caches/buffers, such as the per thread mbuf cache (including the 1.5 cache multiplier),
the RxBurst receive slice in the example, lockess rings, etc.
Twiddling any of the above sizes I could get the errors, (even just not freeing the first N mbufs).
I can allocate the bufcnt with enough overhead. But I need to give it some margin just on the unlikely case the cache multiplier of fill ring size are changed in the future.
But because of this error I will also have to allocate a large enough bufcnt for the case where one lport could fill all the buffers in a multi threaded program (ddos etc).

Resolved with a work around.


iPadOS editor invisiable when "floating keyboard" lose focus in PWA mode

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: v1.60.0
Code-server Version: v3.12.0
OS Version: iPadOS 15.1

Steps to Reproduce:

Open VsCode in PWA mode (safari)
Tap editable area to pop up the keyboard
Shrink the virtual keyboard to floating keyboard mode
Tap anywhere that is uneditable, e.g. "tap on explorer, or long press on editor to show pop up menu"

@bpasero I am not super familiar with this iPad mode. I find it very weird that the entire workbench becomes black and only the status bar remains visible.

I don't know either, Rebornix and Isidor own iPadOS.

I have the same issue on the latest vscode.dev. When using vscode.dev under PWA mode on iPad, the interface always shows like this. It's hard to work with it. I'm using iPad Pro 2021 with iPad OS 15.4.1

This seems to be working now.


Make default dashboard

Changelog:

Fixed warning by replacing Select property:

index.js:1 Warning: Invalid ARIA attribute `ariaLabelTypeAhead`. ARIA attributes follow the pattern aria-* and must be lowercase.

Remove double negotiation !! for easier code read
Make default dashboard work and show widgets. I found out that in Ibutsu we can set default dashboard for a project but it is not working. After PR merged, if you select project that has default dashboard - widgets will be shown. In case you select another dashboard than default and clear selection - default dashboard will be shown again.

Before:
After:

Looks good to me.
My only caveat is that in JS you use the !! to convert a value to a boolean. So while this probably still works, you may run into funny issues in the future. JS's truthiness can be a little quirky.

aha, didn't know about it. Will return it back in next commit.
I need to fix other small thing as default widgets work now, I wish Select also has value set instead of being empty. I will put gif when finish with it "before" & "after".
Thanks for the review btw :+1:


Update typo in solidParticleSystem.ts

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/13747/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13747/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13747/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/13747/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/13747/merge
https://gui.babylonjs.com/?snapshot=refs/pull/13747/merge
https://nme.babylonjs.com/?snapshot=refs/pull/13747/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/13747/merge#BCU1XR#0


Problem, when using Copy & Move operations for files with whilespaces

It seems that the GetAbsolutePath & CreateUri methods do not encode the urls, such as using "%20" for whitespace and so on...
To reproduce the issue, just use Copy or Move method with file(s) that contain whitespaces in filename.
exp :
Move([AbsolutePath] + File 1.txt, [AbsolutePath2] + File 1.txt)

Please consider using for example :
private string GetAbsoluteUriAsString(Uri uri)
{
return Uri.EscapeUriString(GetAbsoluteUri(uri).ToString());
}
in order to encode the URI.

@maharrabi thank you for bringing this up, it's a bug.
I will release a fix soon.

@maharrabi I have decided not to encode a destination URI inside COPY / MOVE methods. Instead I am now passing the AbsoluteUri property of System.Uri. It will correctly encode spaces and if you need to support other characters that require encoding you can always encode a URI before passing it to COPY / MOVE methods.
A new version on WebDav.Client has been published to NuGet.


Update python 3.9 to 3.11

As a developer
I need to upgrade the development environment to Python 3.11 and update requirements.txt, Makefile, and setup.cfg
So that we use the updated version of Python for the project
Details and Assumptions

Update requirements.txt, Makefile, and setup.cfg to replace nose (which is not compatible with Python 3.11) with green instead.

Acceptance Criteria

requirements.txt, Makefile, and setup.cfg match with the versions from https://github.com/nyu-devops/project-template
Details changes in pr: https://github.com/nyu-devops/project-template/pull/11

Upgraded. Pls pull the latest version https://github.com/CSCI-GA-2820-SU23-001/orders/commit/d31575c2b550deb7d4272c4d714c122a2d9f2a67


Add support for using Anthropic models

Summary

This PR adds support for using Anthropic models.

@elisalimli for some reason streaming doesn't work here. Although the model returns the streaming output token. Is there anything I'm missing here?


When will the Instant Motion2Video Model be released?

Hi there will you be releasing the instant Motion2Video model this year in this Repo?

Hi, in GeneFace++, we have updated many fundamental improvements in the codebase (such as 3DMM extraction). Ideally, we can upload it in a new repo by the end of Feb, 2024. Sincerely feel sorry for the delay!


use bugify without custom jekyll plugin

use bugify without custom jekyll plugin

:link: https://github.com/twbs/bootstrap/pull/25319

@m5o: please add a comment in the new file with usage instructions.
Also, it would be nice to see if all the changes from plugins to this affect build time.


Where do I find the  Azure AD B2C directory registration information on azure portal?

I'm in my azure AD B2C application. I see the application ID that I have to replace, but what about the other information?
Do I also have to change b2cScope? and webapi?
<--- tutorial code --->
var applicationConfig = {
clientID: '<Application ID for your SPA obtained from portal app registration>',
authority: "https://fabrikamb2c.b2clogin.com/tfp/fabrikamb2c.onmicrosoft.com/B2C_1_<Sign-up or sign-in policy name>",
b2cScopes: ["https://fabrikamb2c.onmicrosoft.com/demoapi/demo.read"],
webApi: 'https://fabrikamb2chello.azurewebsites.net/hello',
};

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

ID: 370e4c33-91b6-eafb-1ced-0a079449d982
Version Independent ID: cefd38c9-5c1e-c381-0549-ded07f752f97
Content: Tutorial - Enable single-page app authentication with accounts using Azure Active Directory B2C
Content Source: articles/active-directory-b2c/active-directory-b2c-tutorials-spa.md
Service: active-directory
GitHub Login: @davidmu1
Microsoft Alias: davidmu

@cvasquez123
Thanks for your feedback! We will investigate and update as appropriate.

The b2cscopes should be the Published scopes in your Application that is registered in Azure B2C.
Here is a sample application published scopes :

So, the b2cScopes value should be like this:
b2cScopes: ["/"]
Example:
b2cScopes: ["https://mydomian.onmicrosoft.com/api/demo.read"]
The webApi value would be your Application URL value that you previously recorded (as noted in the document).

We will now proceed to close this thrad. If you have further questions feel free to tag me in the comments and I will gladly continue the discussion.


Order by descending returns error "Third element in a Term is not optional arguments."

To reproduce, simply adding this test under query_test.exs
test "order by descending attr" do
  data = [%{rank: 1}, %{rank: 2}, %{rank: 3}]

  table(@table_name)
  |> insert(data)
  |> run

  %{data: result} = table(@table_name)
                |> order_by(desc("rank"))
                |> run

  assert result == Enum.reverse(data)
end

This is a bit rough.
order_by can be called in the following ways:
order_by(selection, key)
order_by(selection, %{index: key})
order_by(selection, desc(key))
order_by(selection, [key1, key2])
The problem here is that desc(key) builds a %RethinkDB.Q{} struct. Structs are maps. So there isn't an easy way to differentiate between %{index: key} and %RethinkDB.Q{} at a high level.
Most of the query implementation is built on top of macros that are shared, so you just specify the arity and the macro creates the function for you.
I suspect you might find similar behavior if you passed a subquery that returns a key. You would see this also happening with min and max.
I have a fix though. I'm not thrilled with it, but will work.
Fix is in master, 5d0548b

Hi hamiltop,
you help me, order_by can be called:
order_by(selection, [desc(key1), key2])


[feat] FusedLinearCrossEntropy support for phi-3

🚀 The feature, motivation and pitch
follow up for https://github.com/linkedin/Liger-Kernel/pull/76
Alternatives
No response
Additional context
No response

On it

#take

Can be closed


Optimising score calculations

These changes include two optimisations for calculating the score.
Firstly when creating the initial scores we are only matching one of three distinct value (0, 1, 2). It is therefore possible to think of the match matrix as a block-diagonal matrix with three blocks (we ignore the invalid values of -1), e.g.
0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1
1 1 0 0 0 1 1 1
1 1 0 0 0 1 1 1
1 1 0 0 0 1 1 1
1 1 1 1 1 0 0 0
1 1 1 1 1 0 0 0
1 1 1 1 1 0 0 0
Because of this we can avoid actually counting all of the matches and instead calculate the score as the area made up by the blocks of ones in either the upper or lower diagonal.
The second optimisation is possible when calculating the subsequent best matching scores. At each iteration we have a matrix indicating row/column pairs that have been matched by previous patterns, e.g.
0
1 1
0 0 1
0 1 0 1
1 1 1 1 1
0 0 0 1 0 0
1 0 1 1 1 1 0
1 1 1 0 0 0 1 1
At each iteration we calculate a new score for each pattern based on the number of "1" values in its matrix where there is a "0" in the matrix above. As the number of zeros in the above matrix is likely to be low, and decreases with each iteration we can avoid having to check each element if we use a sparse matrix representation to store only the co-ordinates of the elements that need to be checked.

Note that after this change the matrix remaining_indices will contain the same information as you would get by running the _get_unresolved function. Using this directly in the validation phase would avoid this extra calculation and speed up the overall program runtime, however I have not made this change as you may wish to keep the independence of this phase from the main calculation.

Thanks - this is great :-)


Create a Docker image

This PR is a part of https://github.com/jamiebegin/metrics2mqtt/issues/2 and adds a docker folder that contains everything needed to build a Docker image of metrics2mqtt. It uses environment variables to define configuration parameters:

COMMAND_OPTIONS_STRING: a string of options to send to the metrics2mqtt command (e.g., --cpu=60)
MQTT_BROKER: the hostname/IP of the MQTT broker
MQTT_PASSWORD: the MQTT password
MQTT_USERNAME: the MQTT username

Raw usage:
$ docker run -it -v /proc:/proc -e MQTT_BROKER=localhost -e MQTT_USERNAME=username -e MQTT_PASSWORD=password123 -e COMMAND_OPTIONS_STRING='--cpu=60 --interval=10 --vm --du="/" -vvvvv' jamiebegin/metrics2mqtt:0.1.14

docker-compose usage:
---
version: "3"

services:

  metrics2mqtt:
    container_name: metrics2mqtt
    environment:
      COMMAND_OPTIONS_STRING: '--cpu=60 --interval=10 --vm --du="/" -vvvvv'
      MQTT_BROKER: localhost
      MQTT_PASSWORD: password123
      MQTT_USERNAME: username
    image: jamiebegin/metrics2mqtt:0.1.14
    restart: unless-stopped
    volumes:
      - /proc:/proc

Notes:

For MVP, this is a single-architecture image – nothing fancy going on to determine AMD64 vs. ARM, etc. That can be a future PR.
This assumes the image has been pushed to Docker Hub at jamiebegin/metrics2mqtt and tagged with a version consistent with the PyPI package. Obviously, it can be built off of this repo instead.
We mount /proc inside the container so that metrics2mqtt looks at the host's metrics, not the container's.
This PR doesn't modify the README at all; in my experience, we shouldn't give users instructions that point them toward building the image themselves. Rather, after the image is published to Docker Hub, we should create a GitHub action that kicks off Docker Hub builds appropriately (on every push to master, every tagged version, etc.). Just a recommendation; open to whatever you want to do here.
The Dockerfile pins the current PyPI version number of metrics2mqtt when building. So, each time a new version is released, that version number should be updated there, as well.

Woops: didn't base this off of the correct branch (which I'm assuming should be develop). Will correct.

Very cool. Thank you!


added now mandatory description to experiment create for client-demo app setup.sh

Looks good! :shipit:

Coverage remained the same at 63.687% when pulling b5c1842b36284dfa7f7b3c40b05d7c968ed8d764 on feature/client-demo-mandatory-desc into fd7edefa21458e2d9249b01fe6bfb3c3b30dc263 on develop.


How to invoke plugin on dynamic content multiple times

Hi there,
Invoking the plugin on dynamic content multiple times produces multiple <label> tags which is not the desired behavior knowing that labelauty-fied inputs are all having different ids.
So is there any flag to force override of target elements instead of appending to them?

Override/Update the existing labels' target when content changes, is what you're asking for ?
It's not possible, yet.

"Invoking the plugin on dynamic content multiple times produces multiple  tags..."

In case it helps, I have been able to get around this by removing those label elements before recalling labelauty.
Example: $yourParentElement.find('label:not(.label_check)').remove();


XMLHttpRequest.onerror is called erroneously if status code >= 400

The onerror callback should only be called on network-level errors; If there is a response then, by definition, there was no network level error. The value of the status code is irrelevant. More discussion is at https://stackoverflow.com/questions/10584318/when-should-xmlhttprequests-onerror-handler-fire
if (payload.response.statusCode === 0 || payload.response.statusCode >= 400)
  reqContext.dispatchProgressEvent("error", respSize);

For the record, angularjs registers an onerror handler that correctly discards any results. So all $http calls that return a statusCode >= 400 now look like network errors.

It's simulating the same behavior for a native JS XMLHttpRequest.  If you went after a resource that was not found or a 500 server except, the XMLHttpRequest fires a "error" event.

Well a 404 doesn't, for example open the console on this page and run:
var xmlhttp = new XMLHttpRequest(),
  method = 'GET',
  url = 'https://github.com/foo/bar';

xmlhttp.open(method, url, true);
xmlhttp.onerror = function () {
  console.log("** An error occurred during the transaction");
};
xmlhttp.send();

does NOT call onerror.
A CORS error will trigger onerror though, i.e. if you run the same snippet from the console on a different website then it will be called.

I  just pushed in a fix. Please uninstall and re-install the plugin from the master to verify the fix:
cordova plugin remove cordova-plugin-wkwebview-file-xhr
cordova plugin add https://github.com/oracle/cordova-plugin-wkwebview-file-xhr.git


Mute crono unhandled pull events. Closes #1263

Crono triggers a pull event for each repo and tag every time it runs.
Displaying the full event here generates more output in the log file
than anything else.
Signed-off-by: Hart Simha<EMAIL_ADDRESS>

I'm not entirely convinced about this. I don't think it's that noisy, and I actually find it useful to get the logs of all pull actions. Moreover, there might be false positives.

Every time Crono runs, potentially thousands of lines are added to the web logs, which makes it hard to find logs generated by user-initiated events. The change in this PR makes it so that these event take the form:
Started POST "/v2/webhooks/events" for <IP_ADDRESS> at 2017-03-27 18:44:27 +0000
Processing by Api::V2::EventsController#create as JSON
[crono] [catalog_pull] http://<IP_ADDRESS>:5000/v2/ns1/busybox/manifests/sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f
Unsupported 'pull' event (supported: ["push", "delete"])
Completed 202 Accepted in 0ms (ActiveRecord: 0.0ms)

rather than:
Started POST "/v2/webhooks/events" for <IP_ADDRESS> at 2017-03-27 18:46:27 +0000
Processing by Api::V2::EventsController#create as JSON
Incoming event:
{
  "id": "6192d67d-e59d-44df-a146-5fe7ff7c23d7",
  "timestamp": "2017-03-27T18:46:22.542729577Z",
  "action": "pull",
  "target": {
    "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
    "size": 527,
    "digest": "sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f",
    "length": 527,
    "repository": "ns1/busybox",
    "url": "http://<IP_ADDRESS>:5000/v2/ns1/busybox/manifests/sha256:32f093055929dbc23dec4d03e09dfe971f5973a9ca5cf059cbfb644c206aa83f"
  },
  "request": {
    "id": "825e8a20-5056-4f24-bcb6-89b5cb183aa1",
    "addr": "<IP_ADDRESS>:41684",
    "host": "<IP_ADDRESS>:5000",
    "method": "GET",
    "useragent": "Ruby"
  },
  "actor": {
    "name": "portus"
  },
  "source": {
    "addr": "0a3867778ee1:5000",
    "instanceID": "5da93d0d-3073-40b7-a58b-fa64c0b52e63"
  }
}
Unsupported 'pull' event (supported: ["push", "delete"])
Completed 202 Accepted in 0ms (ActiveRecord: 0.0ms)

This is still noisy, but I believe it preserves most of the information we care about from the event. False positives are a possibility if someone is using a tool which sends Ruby as the useragent header, and is using the portus user. To avoid these, Crono could set a header that identifies it to the registry, which in turn will inform the event sent from the registry.
If the potential for false positives is eliminated, what additional information from the pull event would be useful in the condensed form?


Add a template for colab notebook examples

Includes an action that automatically updates the "Open in Colab" badges to point to the right place.

Can you change the first cell to use the try/except block?
try:
  import ord_schema
except:
  !git clone https://github.com/Open-Reaction-Database/ord-schema.git
  %cd ord-schema
  !git pull
  !python setup.py build_py
  !python setup.py install

Oh cool, I didn't realize you could mix like that!

PTAL


Fixed accessing a null MeshInstance object in BakedLightmap instead of the GeometryInstance

As title. Fixes #57109.

Cherry-picked for 3.4.3.


Azure Databricks - "A reservation covers only the DBU usage"

This seems wrong.
It should be the other way around -
The reservation covers the VM but not the DBU.
p.s.
In addition to the VM reservation which is reflected in the Azure pricing calculator, there is an option for DBU reservation which AFAIK requires a contract with Databricks.

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

ID: b15d245b-92f1-785d-2776-ebec6a4fad42
Version Independent ID: 2ac3df93-eed6-76f6-e356-2401c57403fa
Content: What are Azure Reservations?
Content Source: articles/cost-management-billing/reservations/save-compute-costs-reservations.md
Service: cost-management-billing
GitHub Login: @yashesvi
Microsoft Alias: banders

@dudu-markovitz, Thanks for the question! We are taking a look into this and will get back to you soon.

@bandersmsft and @yashesvi FYI.

Sorry, my bad :-)
It is fine.
This is indeed the DBU reservation and in addition with have the VM reservation.
David (דודו) Markovitz
Sr. Cloud Solution Architect, Data & AI      Mobile: +972-525-834-304
Microsoft Israel                                              Office: +972-747-119-274
<EMAIL_ADDRESS>From: SadiqhAhmed-MSFT<EMAIL_ADDRESS>Sent: Thursday, May 28, 2020 08:08
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: David Markovitz<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Azure Databricks - "A reservation covers only the DBU usage" (#55568)
@bandersmsfthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbandersmsft&data=02|01|Dudu.Markovitz%40microsoft.com|a9ef7d5c0e8543e6aa2308d802c51bd7|72f988bf86f141af91ab2d7cd011db47|1|0|637262392892150102&sdata=yJb5y2t%2B0RIE8qvRe8rdAv9%2Bqj3oXDPpEX%2FiFMVxTQc%3D&reserved=0 and @yashesvihttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fyashesvi&data=02|01|Dudu.Markovitz%40microsoft.com|a9ef7d5c0e8543e6aa2308d802c51bd7|72f988bf86f141af91ab2d7cd011db47|1|0|637262392892160098&sdata=4ZgqaWYXbVcuUXwFN0v2mOoEdeW6pYLsY0N4CeIZQbk%3D&reserved=0 FYI.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F55568%23issuecomment-635104135&data=02|01|Dudu.Markovitz%40microsoft.com|a9ef7d5c0e8543e6aa2308d802c51bd7|72f988bf86f141af91ab2d7cd011db47|1|0|637262392892160098&sdata=ECmRWKGqnyqqw%2BV7hLk0cj6LGH%2BquUjkwM0DlV0ZFos%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGLSYSCFWSSX74VMYUWJAF3RTXWTNANCNFSM4NJIKZLQ&data=02|01|Dudu.Markovitz%40microsoft.com|a9ef7d5c0e8543e6aa2308d802c51bd7|72f988bf86f141af91ab2d7cd011db47|1|0|637262392892170093&sdata=0lsLEOygKcoGX7j4F0rPp493SUbTkQ2VBa6TBIKBilk%3D&reserved=0.

@dudu-markovitz let us know if there is any action pending from us that needs attention or we are good to close this thread?

#please-close

Hello, does someone have more info on this? I'm wondering if VM reservations are needed in addition to DBCU reservation?


Guide to integrating the Core SDK

Background:
For hackers and devs wanting to build their own interfaces, there is no better tool than the Gnosis Core SDK. We know from the co-operation with Scaffold-ETH that these kinds of integrations can take a ton of developer time. So the solution to reduce overhead for the next time someone wants to integrate is writing a guide.
Task:
Please write a guide that describes how one would integrate the core SDK into scaffold-eth. Please use the recent refactoring of the Gnosis kit starter kit as the base.

I coudn't link the PR in this issue. Here it is: https://github.com/gnosis/safe-core-sdk/pull/103