[Site Error] https://pulsar.apache.org/admin-rest-api/ page crashes

The page fails with

Refused to apply style from 'https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;600,900&display=swap' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
main.4cc898d0.js:2 TypeError: Cannot read properties of undefined (reading '0')
    at u (35a86300.52ee81c8.js:1:19592)
    at 35a86300.52ee81c8.js:1:17105
    at n.componentDidMount (35a86300.52ee81c8.js:1:17215)
    at gi (main.4cc898d0.js:2:457539)
    at Rc (main.4cc898d0.js:2:474345)
    at t.unstable_runWithPriority (main.4cc898d0.js:2:531823)
    at Wa (main.4cc898d0.js:2:416534)
    at Oc (main.4cc898d0.js:2:471084)
    at xc (main.4cc898d0.js:2:467195)
    at mc (main.4cc898d0.js:2:464326)
li @ main.4cc898d0.js:2
main.4cc898d0.js:2 Error: Unexpected: no Docusaurus route context found
    at i (main.4cc898d0.js:2:256415)
    at f (main.4cc898d0.js:2:257378)
    at is (main.4cc898d0.js:2:430838)
    at Gi (main.4cc898d0.js:2:482919)
    at Lc (main.4cc898d0.js:2:470192)
    at Tc (main.4cc898d0.js:2:470120)
    at Cc (main.4cc898d0.js:2:469983)
    at xc (main.4cc898d0.js:2:466970)
    at main.4cc898d0.js:2:416757
    at t.unstable_runWithPriority (main.4cc898d0.js:2:531823)
li @ main.4cc898d0.js:2
main.4cc898d0.js:2 TypeError: Cannot read properties of undefined (reading '0')
    at u (35a86300.52ee81c8.js:1:19592)
    at 35a86300.52ee81c8.js:1:17105
    at n.componentDidMount (35a86300.52ee81c8.js:1:17215)
    at gi (main.4cc898d0.js:2:457539)
    at Rc (main.4cc898d0.js:2:474345)
    at t.unstable_runWithPriority (main.4cc898d0.js:2:531823)
    at Wa (main.4cc898d0.js:2:416534)
    at Oc (main.4cc898d0.js:2:471084)
    at xc (main.4cc898d0.js:2:467195)
    at main.4cc898d0.js:2:416757
li @ main.4cc898d0.js:2
main.4cc898d0.js:2 Error: Unexpected: no Docusaurus route context found
    at i (main.4cc898d0.js:2:256415)
    at f (main.4cc898d0.js:2:257378)
    at is (main.4cc898d0.js:2:430838)
    at Gi (main.4cc898d0.js:2:482919)
    at Lc (main.4cc898d0.js:2:470192)
    at Tc (main.4cc898d0.js:2:470120)
    at Cc (main.4cc898d0.js:2:469983)
    at xc (main.4cc898d0.js:2:466970)
    at main.4cc898d0.js:2:416757
    at t.unstable_runWithPriority (main.4cc898d0.js:2:531823)
li @ main.4cc898d0.js:2
pulsar.apache.org/:1 Refused to apply style from 'https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;600,900&display=swap' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I'll close this issue since it has been transferred to pulsar.
For more context, see https://github.com/apache/pulsar-site/pull/236

Closed. It seems an issue with networking. I try the page and it works well.


Expected behavior of non-existent project in no-op mode

Hello! Had a quick question about the expected behavior of gitlabform when running in no-op (--noop) mode with the ALL_DEFINED target.
We are currently using gitlabform in GitLab to manage our GitLab SaaS intance configuration. We have a project pipeline that runs:
gitlabform ALL_DEFINED --noop --verbose
on Merge Request (MR) / Pull Request (PR) and:
gitlabform ALL_DEFINED --diff-only-changed
on mainline commit.
I know no-op mode will fail on invalid input errors (like invalid syntax in the config file) but we were hoping that it would also fail in certain situations where running gitlabform without --noop does.
One situation is the case where a project is defined in the config.yaml file that does not exist in the GitLab instance. The pipeline successfully runs on MR (--noop) but the pipeline in the mainline fails.
Here is the relevant output from both situations:
ALL_DEFINED --no-op
* ( 9/35) Processing project: company/device-infrastructure/device-infrastructure-testing
Skipping section 'project' - not in config.
Processing section 'project_settings' in dry-run mode.
project_settings changes:
...
Skipping section 'labels' - not in config.
Skipping section 'job_token_scope' - not in config.
Skipping section 'deploy_keys' - not in config.
Skipping section 'variables' - not in config.
Processing section 'branches' in dry-run mode.
Diffing for section 'branches' is not supported yet
Skipping section 'tags' - not in config.
Skipping section 'integrations' - not in config.
Skipping section 'files' - not in config.
Skipping section 'hooks' - not in config.
Processing section 'members' in dry-run mode.
Diffing for section 'members' is not supported yet
Skipping section 'schedules' - not in config.
Skipping section 'badges' - not in config.
Skipping section 'resource_groups' - not in config.
Skipping section 'protected_environments' - not in config.
Processing section 'merge_requests_approvals' in dry-run mode.
merge_requests_approvals changes:
...
Processing section 'merge_requests_approval_rules' in dry-run mode.
Diffing for section 'merge_requests_approval_rules' is not supported yet

ALL_DEFINED
* ( 5/35) Processing project: company/device-infrastructure/device-infrastructure-testing
Skipping section 'project' - not in config.
Processing section 'project_settings'
Editing project_settings in company/device-infrastructure/device-infrastructure-testing
Processing section 'project_push_rules'
Editing project_push_rules in company/device-infrastructure/device-infrastructure-testing
Skipping section 'labels' - not in config.
Skipping section 'job_token_scope' - not in config.
Skipping section 'deploy_keys' - not in config.
Skipping section 'variables' - not in config.
Processing section 'branches'
Skipping section 'tags' - not in config.
Skipping section 'integrations' - not in config.
Skipping section 'files' - not in config.
Skipping section 'hooks' - not in config.
Processing section 'members'
Processing groups as members...
Processing group company/device-infrastructure/device-infrastructure-maintainers...
Setting group '%s' as a member company/device-infrastructure/device-infrastructure-maintainers
Warning: Error occurred while processing project company/device-infrastructure/device-infrastructure-testing, exception:
Resource with url='https://gitlab.com/api/v4/groups/company%2Fdevice-infrastructure%2Fdevice-infrastructure-maintainers?per_page=100' not found (HTTP 404)!

Does -no-op mode not make HTTP requests when processing groups for certain settings?

Does -no-op mode not make HTTP requests when processing groups for certain settings?

I'm not yet familiar with the implementation of --no-op feature but I believe your observation is correct. I do think it'd be nice for this feature to work in the way you were expecting. Just not sure if the tool is setup that way... i.e. have a framework instead of repeating this logic for every config sections.
One thing to note is that, there aren't any dry-run/no-op option for gitlab's api, as far as I know. So, non-GET type requests probably can't be validated unless there's an option like that from python-gitlab library, which is what we use under the hood.
This is probably large amount of work. Might make sense to investigate current setup, propose a design, and then iteratively implement. Would you be able to help with this @dambrosio ?


Added a default bridge for UCR.

High Level Description
This adds a default BRIDGE mode networking for UCR.
Supersedes #1481
Related Issues

DCOS_OSS-954 Add default bridge network for UCR.

Checklist for all PR's

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[ ] Read the DC/OS contributing guidelines
[ ] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and Review Process
What is the review process and when will my changes land?
All PRs require 2 approvals using github's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@mesosphere-mergebot label ready for review

@jdef Who should review this?

LGTM

@mesosphere-mergebot bump-ee

@mesosphere-mergebot label  ship9t


Initial jekyll setup. Fixes #9

Issue: #9
Description: Initial Jekyll setup
Steps to run:

Install Jekyll https://jekyllrb.com/docs/quickstart/
cd into this directory
Run jekyll serve
Launch a browser and run localhost:4000/opensource

Screenshot:

You may consider CDP, Sphinx & GHE as well:

https://cloud.docs.zalando.net/howtos/publish-documentation/
Friday demo 2017W49 - Documentation with CDP & GHE

ICYMI: https://docs.google.com/presentation/d/1jx162978tcooBnaTwC2KKvVSyUA5RGKapRb2SJp77vk/edit#slide=id.ge62f758d8_0_23 (a bit outdated)

Thanks for the comment Lothar -as I’m still very new around here I need to
familiarize myself with Zalandos stack but we will definitely have a look
at your suggestions.
/per
On Fri 20. Apr 2018 at 18:37, lothar schulz<EMAIL_ADDRESS>wrote:

You may consider CDP, Sphinx & GHE as well:

https://cloud.docs.zalando.net/howtos/publish-documentation/
Friday demo 2017W49 - Documentation with CDP & GHE
https://docs.google.com/presentation/d/1ieikLUs7hNrl2pOFALwsgFODlqeXbEo25K35HRJlSqA/

ICYMI:
https://docs.google.com/presentation/d/1jx162978tcooBnaTwC2KKvVSyUA5RGKapRb2SJp77vk/edit#slide=id.ge62f758d8_0_23
(a bit outdated)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zalando/ost/pull/12#issuecomment-383153030, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABbES4Iiy-CQJe9--DlJf9hdz622-A8-ks5tqg6_gaJpZM4Tdq8j
.

@lotharschulz Thank you for your inputs. We will look into them and consider at some point later.
We decided to not use Jekyll for now, only a simple index.html file served from gh-pages branch.
Therefore, closing this PR.


arm64 cross-compilation with go broken

Describe the bug
I have been attempting to use chainguard's melange tool to cross-compile amd64 and arm64 packages but have been running into issues with the arm64 builds that look roughly like
2023-06-27T23:30:09Z] 2023/06/27 23:30:09 melange (example/aarch64): go: downloading github.com/sirupsen/logrus v1.9.0
[2023-06-27T23:30:09Z] 2023/06/27 23:30:09 melange (example/aarch64): runtime: newstack sp=0x4000a00b80 stack=[0x140001b4000, 0x140001b8000]
[2023-06-27T23:30:09Z] 2023/06/27 23:30:09 melange (example/aarch64): 	morebuf={pc:0x497cc sp:0x4000a00b80 lr:0x0}
[2023-06-27T23:30:09Z] 2023/06/27 23:30:09 melange (example/aarch64): 	sched={pc:0x5ba8c sp:0x4000a00b80 lr:0x497cc ctxt:0x0}
[2023-06-27T23:30:09Z] 2023/06/27 23:30:09 melange (example/aarch64): runtime: gp=0x140001a0d00, goid=19, gp->status=0x2
[2023-06-27T23:30:09Z] 2023/06/27 23:30:09 melange (example/aarch64):  runtime: split stack overflow: 0x4000a00b80 < 0x140001b4000

or sometimes simply:
[2023-06-27T23:40:57Z] 2023/06/27 23:40:57 melange (example2/aarch64): go: downloading github.com/sirupsen/logrus v1.9.0
[2023-06-27T23:40:57Z] 2023/06/27 23:40:57 melange (example2/aarch64): Segmentation fault (core dumped)

I see that support for cross builds was added to the stack in https://github.com/buildkite/elastic-ci-stack-for-aws/pull/903/files
I am able to resolve the issue by running the following in a pre-command hook:
docker run --rm --privileged --userns host multiarch/qemu-user-static --reset -p yes

I haven't tried running this from a BootstrapScriptUrl yet. I suspect it would be fine.
I am wondering if an update of the qemu + binfmt hooks should go into the CFN stack, however?
Steps To Reproduce
NOTE: This is likely not a full reproduction as the steps in my actual workflow are a bit complicated. They could be run directly on the host to reproduce more quickly.
# example.yaml
package:
  name: example
  version: 0.0.1
  description: example package
  target-architecture:
    - all
  copyright:
    - license: Apache-2.0
      paths:
        - "*"

environment:
  contents:
    repositories:
      - https://packages.wolfi.dev/os
    keyring:
      - https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
    packages:
      - ca-certificates-bundle
      - busybox
      - go

pipeline:
  - uses: git-checkout
    with:
      repository: https://github.com/puerco/hello.git
      destination: build-dir

  - run: |
      git checkout ${{package.version}}

  - uses: go/build
    with:
      modroot: build-dir
      tags: enterprise
      packages: ./main.go
      output: hello

# docker-compose.yml
version: '2.1'

services:
  melange:
    build:
      context: .
      dockerfile: Dockerfile.melange
    volumes:
      - .:/work
    working_dir: /work
    # melange uses bubblewrap to create namespaces:
    privileged: true
    userns_mode: 'host'

# Dockerfile.melange
# # syntax=docker/dockerfile:1.4

FROM cgr.dev/chainguard/melange:latest AS melange

FROM alpine:3.17

RUN apk --no-cache add \
      ruby \
      bubblewrap

COPY --from=melange /usr/bin/melange /usr/bin/melange

from the host:
docker compose run melange melange build --arch aarch64 example.yaml

Stack parameters (please complete the following information):

AWS Region: us-east-1
Version: v5.21.0

Hi @joemiller, I'm not certain that the previous attempt in #903 actually worked.
It's quite possible it was working for a bit and then stopped working, but I've tried to build mulitarch docker images on stock v5 and met with similar failures to yours.
Something like
docker run --rm --privileged --userns host multiarch/qemu-user-static --reset -p yes

does seem like it's needed. I've had success with an alternative that Docker documents instead
docker run --privileged --rm --userns host tonistiigi/binfmt --install all

as well.
As for putting it in a pre-command hook, in my experience, if you have multiple agents on an instance, and such jobs run concurrently, there will be issues. So BootstrapScriptUrl should avoid this. I've tried to bake it into the AMI at build time, but that was not successful.
The good news is we have built this into v6.0.0-beta1: https://github.com/buildkite/elastic-ci-stack-for-aws/releases/tag/v6.0.0-beta1, which we just released, so if you're willing to try it out we would appreciate it greatly! Be aware that there's a known issue with the docker-compose plugin, which you're using. The long and short of it is that you should use the latest version of the plugin, and add cli-verison: 2 to the config.

@triarius Thank you, that's great news. I will probably use my workaround on v5.21.0 for now to reduce risk to other pipelines. Is there a timeframe yet on when v6.0.0 will exit beta?

Hi @joemiller, we're about to release another beta, but we can't commit to a timeline for GA at this stage.

@joemiller v6 is out: https://github.com/buildkite/elastic-ci-stack-for-aws/releases/tag/v6.0.0


Runtime unit tests failing on master

Is this expected? Are these tests not run on Travis for some reason?
Exception: foo
--- FAIL: TestNativeFuncName (0.00s)
        native_test.go:106: func1(<func(*T) github.com/google/grumpy/runtime.TestNativeFuncName at 0xc4204dd440>,) = 'runtime.TestNativeFuncName', want 'grumpy.TestNativeFuncName'
--- FAIL: TestNativeFuncStrRepr (0.00s)
        native_test.go:128: str(<func(*T) github.com/google/grumpy/runtime.TestNativeFuncStrRepr at 0xc4203f02d0>) = '<func(*T) github.com/google/grumpy/runtime.TestNativeFuncStrRepr at 0xc4203f02d0>', want <func\(\*T\) .*grumpy\.TestNativeFuncStrRepr at 0x[a-f0-9]+>
        native_test.go:135: repr(<func(*T) github.com/google/grumpy/runtime.TestNativeFuncStrRepr at 0xc4203f02d0>) = '<func(*T) github.com/google/grumpy/runtime.TestNativeFuncStrRepr at 0xc4203f02d0>', want <func\(\*T\) .*grumpy\.TestNativeFuncStrRepr at 0x[a-f0-9]+>
        native_test.go:128: str(<func() github.com/google/grumpy/runtime.TestNativeFuncStrRepr.func1 at 0xc4203f03f0>) = '<func() github.com/google/grumpy/runtime.TestNativeFuncStrRepr.func1 at 0xc4203f03f0>', want <func\(\) .*grumpy\.TestNativeFuncStrRepr\.\w+ at 0x[a-f0-9]+>
        native_test.go:135: repr(<func() github.com/google/grumpy/runtime.TestNativeFuncStrRepr.func1 at 0xc4203f03f0>) = '<func() github.com/google/grumpy/runtime.TestNativeFuncStrRepr.func1 at 0xc4203f03f0>', want <func\(\) .*grumpy\.TestNativeFuncStrRepr\.\w+ at 0x[a-f0-9]+>
        native_test.go:128: str(<func(*Frame, *Object) (*Str, *BaseException) github.com/google/grumpy/runtime.Repr at 0xc4203f0450>) = '<func(*Frame, *Object) (*Str, *BaseException) github.com/google/grumpy/runtime.Repr at 0xc4203f0450>', want <func\(\*Frame, \*Object\) .*grumpy\.Repr at 0x[a-f0-9]+>
        native_test.go:135: repr(<func(*Frame, *Object) (*Str, *BaseException) github.com/google/grumpy/runtime.Repr at 0xc4203f0450>) = '<func(*Frame, *Object) (*Str, *BaseException) github.com/google/grumpy/runtime.Repr at 0xc4203f0450>', want <func\(\*Frame, \*Object\) .*grumpy\.Repr at 0x[a-f0-9]+>
RuntimeError: foo
FAIL
FAIL    github.com/google/grumpy/runtime        1.149s

That's weird, it's passing for me:
$ git log -n 1                                                                                ─
commit 47e0e02297d6a43f8e9cb062e041802f93e4b09b
Author: Jurriaan Bremer<EMAIL_ADDRESS>Date:   Sat Jan 7 19:58:43 2017 +0100

    make strings with spaces easier to read (#64)
$ make build/runtime.pass
ok      grumpy  1.297s
runtime/grumpy PASS

And it looks like it's being run and passing on Travis: https://travis-ci.org/google/grumpy/builds/189841925#L252

I was running go test ./runtime; running make build/runtime.pass succeeds. I take it go test isn't an approved testing mechanism? I tried reading through the Makefile, but I'm not make-literate yet.

I debated the right way to set up the project and settled on using make rather than go build/test directly. The reason being that the standard libraries, tests, benchmarks, etc. require some setup to work properly. I settled on the build/ subdir being the GOPATH and runtime/*.go files are copied into build/src/grumpy.
That said it doesn't look like it'd be much work to get the runtime test suite working with go test, which would be convenient.
Either way, the README could help here by explaining the "official" way to run the test suite.


Move showdown extensions to ghost-showdown

no issue

We already maintain our own fork of showdown, this moves our custom extensions to our fork
Code duplication is removed
Tests are also moved to the other repo

Much :+1:, restarted failed build

:grin:


CSS link style problem (UX related)

Links are indistinguishable from normal text.
This should be fixed, make them stand out or be underlined, or thick underlined (border-bottom).
Making this an issue and not PR because it should be discussed first i guess?

@kvakvs I don't want to add the underlined or a bottom border because it doesn't suit very well the design of the web page. But I think I will make the link turn into another color when you hover it. I will check other websites to see how they stand out links without underlining them. If you have any idea, please let me know.
Thanks for the comment :).

On hover the links change the color :)

On dark-red background link hover color matches the background. Should give them another class, or i possibly could fix that in a PR, if noone else fixes.

@kvakvs done.


Master has a compile on my windows system

cmake ../
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Using Win32 for window creation
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test NO_STACK_PROTECTOR_FLAG
-- Performing Test NO_STACK_PROTECTOR_FLAG - Failed
-- Check target system architecture: x86_64
-- Check target fpu: FPU IS Hard
-- Check target fpu abi: FPU ABI IS Hard
-- Looking for alloca
-- Looking for alloca - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - not found
-- Looking for isnan
-- Looking for isnan - not found
-- Looking for isnanf
-- Looking for isnanf - not found
-- Looking for _isnan
-- Looking for _isnan - found
-- Looking for _isnanf
-- Looking for _isnanf - found
-- Looking for pthread_attr_setstacklazy
-- Looking for pthread_attr_setstacklazy - not found
-- Looking for include file alloca.h
-- Looking for include file alloca.h - not found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - not found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - not found
-- Found PythonInterp: C:/msys64/mingw64/bin/python3.exe (found suitable version "3.9.10", minimum required is "3")
-- Found OpenGL: opengl32
-- Enabling OpenGL support
-- Could NOT find Vulkan (missing: Vulkan_LIBRARY Vulkan_INCLUDE_DIR)
-- Could NOT find JsonCpp (missing: JsonCpp_INCLUDE_DIR JsonCpp_LIBRARY)
-- Could NOT find glslc, using precompiled .spv files
-- Looking for secure_getenv
-- Looking for secure_getenv - not found
-- Looking for __secure_getenv
-- Looking for __secure_getenv - not found
-- Looking for timespec_get
-- Looking for timespec_get - found
-- Found and will use pre-generated xr_generated_dispatch_table.h in source tree
-- Found and will use pre-generated xr_generated_dispatch_table.c in source tree
-- Found and will use pre-generated xr_generated_loader.hpp in source tree
-- Found and will use pre-generated xr_generated_loader.cpp in source tree
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/jason/lovr-source/lovr/build

building with cmake --build .
gives me this long compile error.
error.txt
Changing this line fixes the compile error, but gives me a linker error.
diff --git a/src/util.h b/src/util.h
index 3a6ce7c5..a2249195 100644
--- a/src/util.h
+++ b/src/util.h
@@ -31,7 +31,7 @@ typedef struct Color { float r, g, b, a; } Color;
 // Error handling
 typedef void errorFn(void*, const char*, va_list);
 void lovrSetErrorCallback(errorFn* callback, void* userdata);
-_Noreturn void lovrThrow(const char* format, ...);
+__declspec(noreturn) void lovrThrow(const char* format, ...);
 #define lovrAssert(c, ...) if (!(c)) { lovrThrow(__VA_ARGS__); }

 #ifdef LOVR_UNCHECKED

headset_openxr.obj : error LNK2019: unresolved external symbol _Static_assert referenced in function getHandTracker [C:\Users\jason\lovr-source\lovr\build\lovr.vcxproj]
`

git diff
diff --git a/src/modules/headset/headset_openxr.c b/src/modules/headset/headset_openxr.c
index 446fb61d..d9cc82b3 100644
--- a/src/modules/headset/headset_openxr.c
+++ b/src/modules/headset/headset_openxr.c
@@ -495,7 +495,7 @@ static bool openxr_init(float supersample, float offset, uint32_t msaa, bool ove
       { 0, NULL, "vibrate",          XR_ACTION_TYPE_VIBRATION_OUTPUT, 2, hands, "Vibrate" }
     };

-    _Static_assert(COUNTOF(actionInfo) == MAX_ACTIONS, "Unbalanced action table!");
+    //_Static_assert(COUNTOF(actionInfo) == MAX_ACTIONS, "Unbalanced action table!");

     if (!state.features.viveTrackers) {
       actionInfo[ACTION_TRACKER_POSE].countSubactionPaths = 0;
diff --git a/src/util.h b/src/util.h
index 3a6ce7c5..a2249195 100644
--- a/src/util.h
+++ b/src/util.h
@@ -31,7 +31,7 @@ typedef struct Color { float r, g, b, a; } Color;
 // Error handling
 typedef void errorFn(void*, const char*, va_list);
 void lovrSetErrorCallback(errorFn* callback, void* userdata);
-_Noreturn void lovrThrow(const char* format, ...);
+__declspec(noreturn) void lovrThrow(const char* format, ...);
 #define lovrAssert(c, ...) if (!(c)) { lovrThrow(__VA_ARGS__); }

 #ifdef LOVR_UNCHECKED

These changes allow lovr to compile successfully on my system.

Hi, LÖVR uses C11 now, which requires the next version of the Windows SDK (2104 instead of 2004).
While looking at this I learned that CMake will silently fall back to a previous C version if the requested one isn't available, which explains why there were random compile errors instead of a nicer error message about this.  There is, however, a C_STANDARD_REQUIRED option that can be used to mark the C11 as required, which would improve things.

Ah that make sense, ill update. The change I pushed fixes half the problem. But the other change is compiler specific.

Thanks!  I filed this issue to improve the docs https://github.com/bjornbytes/lovr-docs/issues/77


Does not seems to support markdown

PrismJS is said to support markdown. However, when I have the following code in my html:

    `df` to show result.
    # title
    `hello` world

The result looks the same as the code. Back ticks do not seems to be effective.

ping @Golmote

You must not use indentation inside the tag. Indented text in markdown is interpreted as code.
If you don't indent it, it should be fine, as you can see on the test page:

I see. It's not evaluating markdown, instead it highlights it. Thanks.


'Bugsnag/Bugsnag.h' file not found on iOS w/ Hermes enabled

Describe the bug
If Hermes is enabled for my iOS app (RN 0.68.2), I get the error:
AppDelegate.mm:1:9: fatal error: 'Bugsnag/Bugsnag.h' file not found
The app does not have the new architecture enabled-- I'm just trying to enable Hermes.
I upgraded to the latest Bugsnag w/ a fix for this similar issue (https://github.com/bugsnag/bugsnag-js/issues/1769), however the problem persists.
Steps to reproduce

Enable Hermes in a RN 0.68.2 application and attempt to build.

Environment

Bugsnag version: 7.17.2
Browser framework version:  React Native: 0.68.2
Device: iOS

Error messages:
AppDelegate.mm:1:9: fatal error: 'Bugsnag/Bugsnag.h' file not found
#import <Bugsnag/Bugsnag.h>

Closing this issue-- it was my fault. The Podfile had been inadvertently modified and the Pods project was not being generated for my target.  It just so happens Bugsnag.h was the first import that was affected.
Sorry for any hassle!


New version: Microsoft.VCLibs.Desktop.14 version 14.0.33728.0

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

https://github.com/microsoft/winget-cli/issues/4778

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] This PR only modifies one (1) manifest

[x] Have you validated your manifest locally with winget validate --manifest <path>?

Gives a local malware scan warning

[x] Have you tested your manifest locally with winget install --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Manifest Error: Failed to process installer. [InstallerUrl] Value: https://github.com/microsoft/***-cli/releases/download/v1.9.25180/DesktopAppInstaller_Dependencies.zip

Manually validated with WinGet 1.6 to ensure the right version worked so WinGet can use this as a dependency for installing 1.9.

Screenshot:


Incorrect github_repo_pull_request_count when more than one page of pull requests exists

Description
I've discovered an issue with how github_repo_pull_request_count is calculated in the exporter. It seems that the count only reflects the last page of pull requests when multiple pages are present due to GitHub's API pagination. As a result:

For repositories with fewer than 30 open pull requests, github_repo_pull_request_count accurately reports the correct number.
For repositories with more than 30 open pull requests, github_repo_pull_request_count incorrectly reports only the count from the last page. For example, if there are 36 open pull requests, it reports 6.

This discrepancy leads to inaccurate metrics for repositories with a high number of pull requests.
Steps to Reproduce

Use the exporter on a repository with fewer than 30 open pull requests and note the correct count.
Use the exporter on a repository with more than 30 open pull requests (e.g., 36).
Observe that github_repo_pull_request_count only reflects the number of pull requests on the last page (e.g., 6 instead of 36).

Expected Behavior
github_repo_pull_request_count should accurately report the total number of open pull requests in a repository, regardless of how many pages of pull requests there are.
Actual Behavior
github_repo_pull_request_count only reports the number of pull requests on the last page due to not accounting for GitHub's API pagination.
Possible Solution / Workaround
I've applied a temporary workaround that modifies the request to fetch pull requests with a higher per_page limit, aiming to reduce the impact of pagination. However, this is not a scalable solution, especially for repositories with pull requests exceeding the per_page limit. Here's the patch:
diff --git a/exporter/gather.go b/exporter/gather.go
index 7a72db2..de73e5c 100644
--- a/exporter/gather.go
+++ b/exporter/gather.go
@@ -111,7 +111,7 @@ func getReleases(e *Exporter, url string, data *[]Release) {
 func getPRs(e *Exporter, url string, data *[]Pull) {
  i := strings.Index(url, "?")
  baseURL := url[:i]
- pullsURL := baseURL + "/pulls"
+ pullsURL := baseURL + "/pulls?per_page=100"
  pullsResponse, err := asyncHTTPGets([]string{pullsURL}, e.APIToken())

  if err != nil {

This workaround increases the per_page parameter to 100, but a more robust solution that iterates through all pages to calculate the total count is needed.
Additional Context
Another thing is that the test for checking github_repo_pull_request_count is also not working i guess because if dont make a real http request.

@henrymcconville Can you maybe take a look on this issue?

bump 😬

Hey @steinbrueckri, I don't have much capacity for the next few weeks to implement a proper fix but if you want to raise a PR to increase the default perpage limit, i'll happily approve. Thanks!

@henrymcconville First of all, thank you for your feedback. I really appreciate the work you do on maintaining this project. For me, this issue is not urgent at the moment because I am currently using a version with the workaround I described in the PR body. Please address it whenever you have the time.
I understand that maintaining an open-source project can be very demanding, and I truly value the effort you put into it. However, I believe that spending quality time with your family and taking care of personal matters is far more important. Your well-being and family should always come first.
I tried to fix the issue myself, but my Go skills are not sufficient. Therefore, I'm glad that you have this on your radar and are willing to look into it when you can. Thanks again for all your hard work. 🤗


Not an Issue - Doubt

Using bayou in fishnet, Unity 2022.3.23 If the _port or Port in the menu when set
it added it to the url in client side.
example if its 7770, the client connects to wss://mygame.com:7770/
thats fine
But what is the internal port, of the server, which is listening to this wss connection
I wanted the client to connect to just wss://mygame.com/
and server to be listening it at localhost:7770
Please explain... 🙏

Aah, I guess you can do that by setting different port on server build and client build


lightning usage with bitsandbytes

Description & Motivation
currently lightning allows training with fp16 and bf16/bf16-mixed. can these settings be used for training with bitandbytes' NF4 precision?
Pitch
if it's not possible to use lightning for NF4 finetuning, it would be nice to extend it to be able to allow using nf4 with Trainer.
Alternatives
No response
Additional context
No response
cc @borda

Thanks for the suggestion. @JustinGoheen is looking into this

@carmocca I will open draft PR on this later today.


Not starting

Purpur 1.17.1
AFkPlusPAPI v1.0.0
https://paste.srnyx.xyz/abumurosav.properties

I'm sorry, but notifications for this repo seem to be off.
Which means I have missed years of issues posted here. I've rectified the issue so that I should be assigned to issues from now on and am currently handling the backlog.
The most recent update (about to roll out) should fix this as I didnt receive such an error in testing it. Ping me a message on discord if this is still an issue.


HY010 [unixODBC][Driver Manager]Function sequence error when updating/deleting 0 rows

Driver version or file name
About pecl.php.net/pdo_sqlsrv-4.3.0
===================================
Release Type          PECL-style PHP extension (source code)
Name                  pdo_sqlsrv
Channel               pecl.php.net
Summary               Microsoft Drivers for PHP for SQL Server
                      (PDO_SQLSRV)
Description           The Microsoft Drivers for PHP for SQL Server are
                      PHP extensions that allow for the reading and
                      writing of SQL Server data from within PHP
                      scripts. The SQLSRV extension provides a
                      procedural interface while the PDO_SQLSRV
                      extension implements PDO for accessing data in
                      all editions of SQL Server 2008 R2 and later
                      (including Azure SQL DB). These drivers rely on
                      the Microsoft ODBC Driver for SQL Server to
                      handle the low-level communication with SQL
                      Server.
                      *This package contains only the PDO_SQLSRV
                      driver.*
Maintainers           Meet Bhagdev<EMAIL_ADDRESS>(lead)
                      Jay Kint<EMAIL_ADDRESS>(lead,
                      inactive)
                      Marie Barwin<EMAIL_ADDRESS>(lead)
                      Hadis Kakanejadi Fard<EMAIL_ADDRESS>                      (lead)
Release Date          2017-07-05 14:25:43
Release Version       4.3.0 (stable)
API Version           4.3.0 (stable)
License               The MIT License (MIT)
                      (https://opensource.org/licenses/mit)
Release Notes         [Added]
                      - Added Unicode Column name support (issue
                      #138).
                      - Support for Always On Availability groups via
                      Transparent Network IP Resolution (TNIR)
                      - Added support for sql_variant data type with
                      limitation (issue #51 and issue #127)
                      - Support drivers on Debian Jessie (tested on
                      Debian 8.7)
                      - Connection Resiliency support in Windows
                      - Connection pooling support for Linux and macOS

                      - Support for Mac(El Capitan and above)
                      - Azure Active Directory Authentication with
                      ActiveDirectoryPassword and SqlPassword
                      [Fixed]
                      - Fixed PECL installation errors when PHP was
                      installed from source (issue #213).
                      - Fixed segmentation fault with
                      PDOStatement::getColumnMeta() when the supplied
                      column index is out of range (issue #224).
                      - Fixed the assertion error (Linux) when
                      fetching data from a binary column using the
                      binary encoding (issue #226).
                      - Fixed issue output parameters bound to empty
                      string (issue #182).
                      - Fixed issue with
                      SQLSRV_ATTR_FETCHES_NUMERIC_TYPE when column
                      return type is set on statement (issue #173).
                      - Fixed a memory leak in closing connection
                      resources.
                      - Fixed load ordering issue in MacOS (issue
                      #417)
                      - Added a workaround for a bug in unixODBC 2.3.4
                      when connection pooling is enabled.
                      - Fixed the issue with driver loading order in
                      macOS
                      - Fixed null returned when an empty string is
                      set to an output parameter (issue #308).
                      - Fixed incorrectly binding of unicode parameter
                      when emulate prepare is on and the encoding is
                      set at the statement level (issue #92).
                      - Fixed binary column binding when emulate
                      prepare is on (issue #140).
                      - Improved performance by implementing a cache
                      to store column SQL types and display sizes
                      (issue #189).
                      - Fixed issue with the unsupported attribute
                      PDO::ATTR_PERSISTENT in connection (issue #65).
                      - Fixed the issue with executing DELETE
                      operation on a non-existent value (issue #336).
                      - Fixed incorrectly binding of unicode parameter
                      when emulate prepare is on and the encoding is
                      set at the statement level (issue #92).
                      - Fixed wrong value returned when fetching
                      varbinary value on Linux (issue #270).
                      - Fixed binary data not returned when the column
                      is bound by name (issue #35).
                      - Fixed exception thrown on closeCursor() when
                      the statement has not been executed (issue
                      #267).
                      [Limitation]
                      - Limited support for inout / output params when
                      using sql_variant type
                      [Known Issues]
                      - When pooling is enabled in Linux or MAC
                        - unixODBC 2.3.4 or prior (Linux and MAC)
                      might not return proper diagnostics information,
                      such as error messages, warnings and informative
                      messages
                        - due to this unixODBC bug, fetch large data
                      (such as xml, binary) as streams as a
                      workaround. See the examples
                      (https://github.com/Microsoft/msphpsql/wiki/Connection-Pooling-on-Linux-and-Mac)
Required Dependencies PHP version 7.0.0
                      PEAR installer version 1.4.0b1 or newer
                      OS/Arch matching pattern '//'
package.xml version   2.0
Last Modified         2018-03-03 14:08
Previous Installed    - None -
Version

SQL Server version
SQL Server 10.50.6220 (2008r2)
Client operating system
Debian 8¨
PHP version
7.0.27-1~dotdeb+8.1
Problem description
It seems, that issue #336 has not been fixed, because I can reproduce the same behavior in the 4.3.0 version. When executing UPDATE or DELETE through PDO with WHERE condition filtering out 0 rows (thus not updating anything), HY010 [unixODBC][Driver Manager]Function sequence error is raised.
Expected behavior and actual behavior
Assume this table with only one row:
Table test1
+----+------+
| id | name |
+----+------+
|  1 | test |
+----+------+

When running UPDATE test1 SET name = 'updated' WHERE id = 5;
HY010 [unixODBC][Driver Manager]Function sequence error is raised. No error should be raised.
Same error is raised, when trying to delete non existent row.
Repro code
SQL
CREATE TABLE [dbo].[test1](
	[id] [int] NOT NULL,
	[name] [nvarchar](50) NOT NULL
);

PHP:
$pdo = new \PDO('sqlsrv:server=<server addr>;database=<db name>', '<username>', '<password>);
$result = $pdo->exec("UPDATE test1 SET name = 'updated' WHERE id = 5");
var_dump($result); // bool(false)
var_dump($pdo->errorCode()); // string(5) "HY010"
var_dump($pdo->errorInfo()); /*
array(3) {
  | [0]=>
  | string(5) "HY010"
  | [1]=>
  | int(0)
  | [2]=>
  | string(49) "[unixODBC][Driver Manager]Function sequence error"
  | }
*/

Hi @hubipe,
Unfortunately I can no reproduce this issue as shown in your repro. I tested with both v4.3.0 and our latest v5.2.0RC. Please double your client info?
$conn = new PDO( "sqlsrv:server=$server", $uid, $pwd);
print_r($conn->getAttribute( PDO::ATTR_CLIENT_VERSION ));

Hello @yitam,
the result of your code is as follows:
Array
(
    [DriverName] => libmsodbcsql-13.1.so.9.2
    [DriverODBCVer] => 03.52
    [DriverVer] => 13.01.0009
    [ExtensionVer] => <IP_ADDRESS>15
)

I guess that problem is in installation, where even though there is version 4.3.0 installed, the webserver still uses version <IP_ADDRESS>15. Thank you for pointing me the correct direction.

Glad to hear that @hubipe!
Please let us know if you still have questions.

Hi,
I'm facing the same issue with 5.2.0 under Docker.

@younessadmi please provide more details to help us investigate, like what platform, SQL Server, etc.

Docker 3.6
PHP Version : 7.2.14
Distribution : Debian 9
SQLServer PHP extension : 5.2.0
SQLServer : 10.50 (2K12 R2)
Apache 2.4
I'm facing the same issue than @hubipe. I already checked what extension is used by the Apache and it's the 5.2.0
It works like a charm on Windows 7 & PHP 5.6.
Nevertheless, if I check first the existence of the rows that I want to delete, it will work... but I do not want to add a query to check the rows to delete :/

@younessadmi please also provide details for the following questions (copied from a new issue template):
+## Microsoft ODBC Driver version
+
+## Table schema
+
+## Problem description
+
+## Expected behavior and actual behavior
+
+## Repro code or steps to reproduce

Driver version or file name
$ pecl info sqlsrv

ABOUT PECL.PHP.NET/SQLSRV-5.2.0
===============================
Release Type          PECL-style PHP extension (source code)
Name                  sqlsrv
Channel               pecl.php.net
Summary               Microsoft Drivers for PHP for SQL Server
                      (SQLSRV)
Description           The Microsoft Drivers for PHP for SQL Server are
                      PHP extensions that allow for the reading and
                      writing of SQL Server data from within PHP
                      scripts. The SQLSRV extension provides a
                      procedural interface while the PDO_SQLSRV
                      extension implements PDO for accessing data in
                      all editions of SQL Server 2008 R2 and later
                      (including Azure SQL DB). These drivers rely on
                      the Microsoft ODBC Driver for SQL Server to
                      handle the low-level communication with SQL
                      Server.
                      *This package contains only the SQLSRV driver.*
Maintainers           Meet Bhagdev<EMAIL_ADDRESS>(lead)
                      Jay Kint<EMAIL_ADDRESS>(lead,
                      inactive)
                      Marie Barwin<EMAIL_ADDRESS>(lead)
                      Hadis Kakanejadi Fard<EMAIL_ADDRESS>                      (lead)
Release Date          2018-03-23 12:55:42
Release Version       5.2.0 (stable)
API Version           5.2.0 (stable)
License               The MIT License (MIT)
                      (https://opensource.org/licenses/mit)
Release Notes         [Added]
                      - Added support for Always Encrypted with basic
                      CRUD functionalities (see here [here]
                      (https://github.com/Microsoft/msphpsql/wiki/Features#aebindparam))
                        - Support for Windows Certificate Store (use
                      connection keyword ColumnEncryption)
                        - Support for inserting into and modifying an
                      encrypted column
                        - Support for fetching from an encrypted
                      column
                      - Added support for PHP 7.2
                      - Added support for MSODBC 17
                      - Added support for Ubuntu 17 (requires MSODBC
                      17)
                      - Added support for Debian 9 (requires MSODBC
                      17)
                      - Added support for SUSE 12
                      - Added Driver option to set the ODBC driver,
                      Added "Driver" option, valid values are ODBC
                      Driver 17 for SQL Server, ODBC Driver 13 for SQL
                      Server, and ODBC Driver 11 for SQL Server
                        - The default driver is ODBC Driver 17 for SQL
                      Server
                      [Fixed]
                      - Issue #555 - Hebrew strings truncation
                      (requires MSODBC 17)
                      - Adjusted precisions for numeric/decimal inputs
                      with Always Encrypted
                      - Support for non-UTF8 locales in Linux and
                      macOS
                      - Fixed crash caused by executing an invalid
                      query in a transaction (Issue #434)
                      - Added error handling for binding TEXT, NTEXT
                      or IMAGE as output parameter (Issue #231)
                      - Decimal types with no decimals are correctly
                      handled when AE is enabled (PR #544)
                      - BIGINT as an output param no longer results in
                      value out of range exception when the returned
                      value is larger than a maximum integer (PR #567)
                      [Removed]
                      - No longer support Ubuntu 15
                      [Limitations]
                      - In Linux and macOS, setlocale() only takes
                      effect if it is invoked before the first
                      connection. The subsequent locale setting will
                      not work
                      - Always Encrypted functionalities are only
                      supported using MSODBC 17
                      - Always Encrypted limitations [Always Encrypted
                      limitations](https://github.com/Microsoft/msphpsql/wiki/Features#aelimitation)
                      - When using sqlsrv_query with Always Encrypted
                      feature, SQL type has to be specified for each
                      input (see here
                      [here](https://github.com/Microsoft/msphpsql/wiki/Features#aebindparam))
                      - No support for inout / output params when
                      using sql_variant type
                      [Known Issues]
                      - Connection pooling on Linux doesn't work
                      properly when using the MSODBC 17 preview
                      - When pooling is enabled in Linux or macOS
                        - unixODBC <= 2.3.4 (Linux and macOS) might
                      not return proper diagnostics information, such
                      as error messages, warnings and informative
                      messages
                        - due to this unixODBC bug, fetch large data
                      (such as xml, binary) as streams as a
                      workaround. See the examples here
                      [here](https://github.com/Microsoft/msphpsql/wiki/Connection-Pooling-on-Linux-and-Mac)
                      - Calling stored procedure with XML parameter
                      does not work with Column Encryption enabled
                      (Issue #674)
                      - Connection with Connection Resiliency enabled
                      so not resume properly with Connection Pooling
                      (Issue #678)
                      - Cannot connect with both Connection Resiliency
                      enabled and ColumnEncryption enabled (Issue
                      #577)
Required Dependencies PHP version 7.0.0
                      PEAR installer version 1.4.0b1 or newer
                      OS/Arch matching pattern '//'
package.xml version   2.0
Last Modified         2019-02-11 15:03
Previous Installed    - None -
Version

$ pecl info pdo_sqlsrv

ABOUT PECL.PHP.NET/PDO_SQLSRV-5.2.0
===================================
Release Type          PECL-style PHP extension (source code)
Name                  pdo_sqlsrv
Channel               pecl.php.net
Summary               Microsoft Drivers for PHP for SQL Server
                      (PDO_SQLSRV)
Description           The Microsoft Drivers for PHP for SQL Server are
                      PHP extensions that allow for the reading and
                      writing of SQL Server data from within PHP
                      scripts. The SQLSRV extension provides a
                      procedural interface while the PDO_SQLSRV
                      extension implements PDO for accessing data in
                      all editions of SQL Server 2008 R2 and later
                      (including Azure SQL DB). These drivers rely on
                      the Microsoft ODBC Driver for SQL Server to
                      handle the low-level communication with SQL
                      Server.
                      *This package contains only the PDO_SQLSRV
                      driver.*
Maintainers           Meet Bhagdev<EMAIL_ADDRESS>(lead)
                      Jay Kint<EMAIL_ADDRESS>(lead,
                      inactive)
                      Marie Barwin<EMAIL_ADDRESS>(lead)
                      Jenny Tam<EMAIL_ADDRESS>(lead)
Release Date          2018-03-23 13:00:20
Release Version       5.2.0 (stable)
API Version           5.2.0 (stable)
License               The MIT License (MIT)
                      (https://opensource.org/licenses/mit)
Release Notes         [Added]
                      - Added support for Always Encrypted with basic
                      CRUD functionalities (see here [here]
                      (https://github.com/Microsoft/msphpsql/wiki/Features#aebindparam))
                        - Support for Windows Certificate Store (use
                      connection keyword ColumnEncryption)
                        - Support for inserting into and modifying an
                      encrypted column
                        - Support for fetching from an encrypted
                      column
                      - Added support for PHP 7.2
                      - Added support for MSODBC 17
                      - Added support for Ubuntu 17 (requires MSODBC
                      17)
                      - Added support for Debian 9 (requires MSODBC
                      17)
                      - Added support for SUSE 12
                      - Added Driver option to set the ODBC driver,
                      Added "Driver" option, valid values are ODBC
                      Driver 17 for SQL Server, ODBC Driver 13 for SQL
                      Server, and ODBC Driver 11 for SQL Server
                        - The default driver is ODBC Driver 17 for SQL
                      Server
                      [Changed]
                      - Implementation of PDO::lastInsertId($name) to
                      return the last inserted sequence number if the
                      sequence name is supplied to the function
                      (lastInsertId)
                      [Fixed]
                      - Issue #555 - Hebrew strings truncation
                      (requires MSODBC 17)
                      - Adjusted precisions for numeric/decimal inputs
                      with Always Encrypted
                      - Support for non-UTF8 locales in Linux and
                      macOS
                      - Fixed crash caused by executing an invalid
                      query in a transaction (Issue #434)
                      - Added error handling for using
                      PDO::SQLSRV_ATTR_DIRECT_QUERY or
                      PDO::ATTR_EMULATE_PREPARES in a Column
                      Encryption enabled connection
                      - Added error handling for binding TEXT, NTEXT
                      or IMAGE as output parameter (Issue #231)
                      - PDO::quote with string containing ASCII NUL
                      character (Issue #538)
                      - Decimal types with no decimals are correctly
                      handled when AE is enabled (PR #544)
                      - BIGINT as an output param no longer results in
                      value out of range exception when the returned
                      value is larger than a maximum integer (PR #567)
                      [Removed]
                      - No longer support Ubuntu 15
                      - Supplying tablename into
                      PDO::lastInsertId($name) no longer return the
                      last inserted row (lastInsertId
                      [lastInsertId](https://github.com/Microsoft/msphpsql/wiki/Features#aebindparam))
                      [Limitations]
                      - In Linux and macOS, setlocale() only takes
                      effect if it is invoked before the first
                      connection. The subsequent locale setting will
                      not work
                      - Always Encrypted functionalities are only
                      supported using MSODBC 17
                      - Always Encrypted limitations [Always Encrypted
                      limitations](https://github.com/Microsoft/msphpsql/wiki/Features#aelimitation)
                      - When using sqlsrv_query with Always Encrypted
                      feature, SQL type has to be specified for each
                      input (see here
                      [here](https://github.com/Microsoft/msphpsql/wiki/Features#aebindparam))
                      - No support for inout / output params when
                      using sql_variant type
                      [Known Issues]
                      - Connection pooling on Linux doesn't work
                      properly when using the MSODBC 17 preview
                      - When pooling is enabled in Linux or macOS
                        - unixODBC <= 2.3.4 (Linux and macOS) might
                      not return proper diagnostics information, such
                      as error messages, warnings and informative
                      messages
                        - due to this unixODBC bug, fetch large data
                      (such as xml, binary) as streams as a
                      workaround. See the examples here
                      [here](https://github.com/Microsoft/msphpsql/wiki/Connection-Pooling-on-Linux-and-Mac)
                      - Calling stored procedure with XML parameter
                      does not work with Column Encryption enabled
                      (Issue #674)
                      - Connection with Connection Resiliency enabled
                      so not resume properly with Connection Pooling
                      (Issue #678)
                      - Cannot connect with both Connection Resiliency
                      enabled and ColumnEncryption enabled (Issue
                      #577)
Required Dependencies PHP version 7.0.0
                      PEAR installer version 1.4.0b1 or newer
                      OS/Arch matching pattern '//'
package.xml version   2.0
Last Modified         2019-02-11 15:03
Previous Installed    - None -
Version

SQL Server version
SQL Server 10.50 (2012r2)
Client operating system
Debian 9
PHP version
PHP 7.2.14
Problem description
When executing UPDATE or DELETE through PDO with WHERE condition filtering out 0 rows (thus not updating anything), HY010 [unixODBC][Driver Manager]Function sequence error is raised.
Expected behavior and actual behavior
Assume this table with only one row:
Table test1
+----+------+
| id | name |
+----+------+
|  1 | test |
+----+------+

When running UPDATE test1 SET name = 'updated' WHERE id = 5;
HY010 [unixODBC][Driver Manager]Function sequence error is raised. No error should be raised.
Same error is raised, when trying to delete non existent row.
Repro code
SQL
CREATE TABLE [dbo].[test1](
	[id] [int] NOT NULL,
	[name] [nvarchar](50) NOT NULL
);

PHP:
$pdo = new \PDO('sqlsrv:server=<server addr>;database=<db name>', '<username>', '<password>);
$result = $pdo->exec("UPDATE test1 SET name = 'updated' WHERE id = 5");
var_dump($result); // bool(false)
var_dump($pdo->errorCode()); // string(5) "HY010"
var_dump($pdo->errorInfo()); /*
array(3) {
  | [0]=>
  | string(5) "HY010"
  | [1]=>
  | int(0)
  | [2]=>
  | string(49) "[unixODBC][Driver Manager]Function sequence error"
  | }
*/

@younessadmi I could not seem to reproduce this using v5.2.0 and ODBC 17.2, trying both update and delete ops. This is what I did:
try{
  $result = $conn->exec("DELETE FROM test1 WHERE id = 5");
//$result = $conn->exec("UPDATE test1 SET name = 'updated' WHERE id = 5");
  echo "result: "; var_dump($result);
  echo "errorCode: "; var_dump($conn->errorCode());
  echo "errorInfo: "; var_dump($conn->errorInfo());
} catch (PDOException $e) {
  var_dump($e);
}

The output I got was
result: int(0)
errorCode: string(5) "00000"
errorInfo: array(3) {
  [0]=>
  string(5) "00000"
  [1]=>
  NULL
  [2]=>
  NULL
}

@younessadmi please double check the driver version by running
$attr = $pdo->getAttribute(constant('PDO::ATTR_CLIENT_VERSION'));
$version = substr($attr['DriverVer'], 0, 2);
print_r($pdo->getAttribute( PDO::ATTR_CLIENT_VERSION ));

Thanks for answering.
Here's the executed code :
$attr = $pdo->getAttribute(constant('PDO::ATTR_CLIENT_VERSION'));
$version = substr($attr['DriverVer'], 0, 2);
var_dump($version);
var_dump($pdo->getAttribute( \PDO::ATTR_CLIENT_VERSION ));

Result :
/app/module/xxx/src/xxx/Controller/xxxController.php:49:string '17' (length=2)
/app/module/xxx/src/xxx/Controller/xxxController.php:50:
array (size=4)
  'DriverName' => string 'libmsodbcsql-17.2.so.0.1' (length=24)
  'DriverODBCVer' => string '03.52' (length=5)
  'DriverVer' => string '17.02.0000' (length=10)
  'ExtensionVer' => string '5.2.0' (length=5)

@younessadmi I just realized you were using SQL Server 10.50 2008 R2, not SQL Server 2012. However, I still could not reproduce the issue in SQL Server 2008 R2 (SP2).
What's the output of SELECT @@Version in your SQL Server? Can you try a different SQL Server?
Also, please enable ODBC trace when running your query / queries. Then send the trace for further investigation.

@yitam , thanks for your answer.
I actually find the real issue.
Indeed, when I use the following code, it works like a charm :
$pdo = new \PDO('sqlsrv:Server=xx.xx.xx.xx;Database=xxxxx', 'xxxxx', 'xxxxx');
$attr = $pdo->getAttribute(constant('PDO::ATTR_CLIENT_VERSION'));
$version = substr($attr['DriverVer'], 0, 2);
var_dump($version);
var_dump($pdo->getAttribute( \PDO::ATTR_CLIENT_VERSION ));
 $sql = '
            DELETE FROM AddLinkLogInsert
            WHERE Key =<PHONE_NUMBER>
 ';
$pdo->query($sql);

But my problem comes when I use Zend Framework. It's actually the case when I try the following code  :
$sm = $this->getServiceLocator();
/** @var Zend\Db\Adapter\Adapter $adapter */
$adapter = $sm->get('xxxxx');
$sql = '
            DELETE FROM AddLinkLogInsert
            WHERE ContenuKey =<PHONE_NUMBER>
 ';
$adapter->query($sql);

I'ill try to resolve the issue then come back to you.

@yitam actually, the framework uses the sqlsrv_query() function. The error occurs when the framework does the following code :
$returnValue = sqlsrv_query($this->resource, $sql, array(), $options);
if ($returnValue === false) {
     var_dump($sql);
     var_dump($options);
     var_dump(sqlsrv_errors());
     var_dump(sqlsrv_client_info($this->resource));
     var_dump($this->resource);
     die;
}

And got this :
/app/module/xxxxx/src/xxxxx/Service/Connection.php:59:string '
            DELETE FROM AddLinkLogInsert
            WHERE ContenuKey = '9999999999'
        ' (length=94)

/app/module/xxxxx/src/xxxxx/Service/Connection.php:60:
array (size=2)
  'Scrollable' => string 'buffered' (length=8)
  'QueryTimeout' => int 40

/app/module/xxxxx/src/xxxxx/Service/Connection.php:61:
array (size=1)
  0 =>
    array (size=6)
      0 => string 'HY010' (length=5)
      'SQLSTATE' => string 'HY010' (length=5)
      1 => int 0
      'code' => int 0
      2 => string '[unixODBC][Driver Manager]Function sequence error' (length=49)
      'message' => string '[unixODBC][Driver Manager]Function sequence error' (length=49)

/app/module/xxxxx/src/xxxxx/Service/Connection.php:62:
array (size=4)
  'DriverName' => string 'libmsodbcsql-17.2.so.0.1' (length=24)
  'DriverODBCVer' => string '03.52' (length=5)
  'DriverVer' => string '17.02.0000' (length=10)
  'ExtensionVer' => string '5.3.0' (length=5)

/app/module/xxxxx/src/xxxxx/Service/Connection.php:63:resource(23, SQL Server Connection)

Any idea ? I'd like to avoid using PDO right now, as it's a bit risky regarding our 14M visitor monthly :/

Yes @younessadmi I could reproduce this with sqlsrv and unixODBC 2.3.4 in Debian 9, but pdo_sqlsrv has no problem. However, the issue seemingly lies with unixODBC because the problem with sqlsrv is gone with unixODBC 2.3.7.

Thanks for answering. unixODBC 2.3.7 is not available on Debian 9 :/ So I'll try to build the package by myself.
Nevertheless, is the bug solved from 2.3.7 or before ?

@younessadmi I did not spend time trying different unixODBC versions. However, fyi unixODBC 2.3.7 is available with ODBC <IP_ADDRESS>.

So great !!! Thank you, it works like a charm so far. The issue can be closed.


Doesn't work for RN 49

Issue
Getting the following error when trying to run my app with RN 49
TransformError: /Users/.../node_modules/react-native-datepicker/node_modules/moment/moment.js: require() must have a single string literal argument
RN DatePicker version 1.6.0
Expected Behavior
Should not have this error. Noted that some latest commits have upgraded RN to 49 already, but when can we expect a release?
Environment

react-native -v: 0.49.3
node -v: 7.9.0
npm -v: 4.2.0
yarn --version:
target platform: Both
operating system: Mac OS 10

I think upgrading to moment 1.19.1 should solve the issue. I got some info from there
https://github.com/facebook/metro-bundler/issues/65#issuecomment-336838866
But haven't tried it personally


Add support for pgx

Get out the trumpets and ready the 21-gun salute, lib/pq is deprecated (#470). This means it's time to support it's successor, pgx.
This will be the main tracking issue for pgx. It supersedes #28, as I have no intention of adding support for any additional PostgreSQL drivers beyond pgx.

We currently use PGX and it's batching mechanism. Would be great if you keep pgx batching in mind while this unfolds.

@ldelossa Do you have an example of the batching API? This is the first I've heard of it

@kyleconroy we wrap it a bit to handle variable sized input:
https://github.com/quay/claircore/blob/master/pkg/microbatch/microbatch.go
usage:
https://github.com/quay/claircore/blob/master/internal/indexer/postgres/indexpackage.go#L96

pgx is new to me, so I wanted to spend some time getting the driver working for the example in examples/booktest/postgresql/. Here's a quick diff of that: https://github.com/powersjcb/sqlc/pull/1
Some learnings:

Several fields in pgtype do not implement MarshalJSON. (pgtype.Timestamp pgtype.VarcharArray So at first glance, it looks like fields wont be compatible with the emitjsontags feature of sqlc.
Many fields need to be initialized and then have a value Set into them using the following signature (dst *Timestamp) Set(src interface{}) error. User application code will need to type check inputs at runtime.  For exampleerr := Timestamp{}.Set("asdf") wont fail to compile.

Awesome!
It would be cool to support decoding composite types at some point. It's pretty tedious to implement DecodeBinary since you have to pull out every value from the pgtype.Record by hand. Since we know the schema that could be automated and save a lot of time.

* Several fields in `pgtype` do not implement `MarshalJSON`. (at least `pgtype.Timestamp` and `pgtype.VarcharArray`) So at first glance, it looks like fields wont be compatible with the `emitjsontags` feature of sqlc.

In the booktest example at least, the available column uses timestamptz whose pgtype counterpart Timestamptz does support JSON. Regardless I'm not sure it's a problem that raw timestamps don't have a JSON encoding. JSON times always have a zone and Postgres timestamps are ambiguous about what zone they're in so there's no natural conversion.

Do you really need to support pgtype... There are a lot of times you don't need it.. and pointer to native type is enough. This also means that you can use the same struct through most application and there is no need to convert between db struct and "domain" struct.  The onl conversion is then for viewing purposes.

I noticed we're still using pq.Array for postgres array type (e.g. TEXT[] becomes pq.Array([]string)). Is it possible for these types to map to the pgx types instead (i.e. TEXT[] becomes pgtype.TextArray)? I tried using an override and it didn't seem to work in 1.4.0.

Does this mean that you are planning to support pgx native interface i.e. pgxpool?
Or pgx as a driver to database/sql i.e. pgx stdlib

pgx/stdlib works well already.

@georgysavva the plan is to support pgx/stdlib first, and then add support for pgxpool.

@kyleconroy Thanks for explaining.
It would be a great improvement to fully support pgx, can't wait for it!

Hey guys! @kyleconroy do we have any updates on this? I've just hit this wall unfortunately

Hey everyone,
so I ended up doing something that worked out fine for me. You can check what's different in this commit.

Usage remains equal, except that you need to inform a new parameter at the startup configuration yml file, as in
version: "1"
packages:
    sql_library: "pgx/v4"

I'm not very fond of this name I've used but couldn't think of anything better at the time. From my restricted testing everything looks fine to me. If you guys find it interesting we can try to merge it.

Hey everyone, just in time for christmas
I ended up doing something that worked out fine for me. You can check what's different in this commit.

Usage remains equal, except that you need to inform a new parameter at the startup configuration yml file, as in
version: "1"
packages:
    sql_library: "pgx/v4"

If this parameter is missing it defaults to the old behavior.
I'm not very fond of this name I've used but couldn't think of anything better at the time. From my restricted testing everything looks fine to me.

@kyleconroy and others: even though the above fits my use case (which is indeed very simple at this moment) it still is very premature in many aspects to even consider opening a pull request. Despite that, do you think the changes made here are heading in the right direction? If so, we could maybe merge this on a new development branch and continue work over there

@kyleconroy and others: even though the above fits my use case (which is indeed very simple at this moment) it still is very premature in many aspects to even consider opening a pull request. Despite that, do you think the changes made here are heading in the right direction? If so, we could maybe merge this on a new development branch and continue work over there

Just following up here - found another data race in lib/pq and it would be great to have a chance to evaluate other drivers, but at the moment we're pretty tied to using sqlc.

Just following up here - found another data race in lib/pq and it would be great to have a chance to evaluate other drivers, but at the moment we're pretty tied to using sqlc.

@kevinburkemeter pgx/stdlib works ok with sqlc.

@kevinburkemeter pgx/stdlib works ok with sqlc.

working on that. is there a currently supported way to replace pq.Array?

working on that. is there a currently supported way to replace pq.Array?

afaik you don't need it for standard types.

afaik you don't need it for standard types.

pq.Array is part of github.com/lib/pq, a competing SQL driver, not part of the standard library, so it seems unlikely pgx would support it

pq.Array is part of github.com/lib/pq, a competing SQL driver, not part of the standard library, so it seems unlikely pgx would support it

pq.Array implements the database/sql/driver.Valuer and database/sql.Scanner interfaces, so it works fine with pgx in my testing. It's a bit messy to import both, but it works.

pq.Array implements the database/sql/driver.Valuer and database/sql.Scanner interfaces, so it works fine with pgx in my testing. It's a bit messy to import both, but it works.

Did #1037 replace the use of pq.Array for postgres arrays? Otherwise I wouldn't consider this issue completely closed.

@johanbrandhorst Is it possible to generate pgtype.TextArray? I'm fighting with source codes and sqlc.yaml couldn't find a way yet.

I don't think is it, yet.

I created https://github.com/kyleconroy/sqlc/issues/1276 and https://github.com/kyleconroy/sqlc/issues/1275 to track removal of pq.Array and support of batching, respectively.


Readme ambiguity: dispatch first or last decorator

The readme doesn't match its example in the following case:

Hey @heetbeet! You're totally right that the README is ambiguous there. It should say "outermost" instead of last "last". Thank you for raising this issue. :)


allow peptide length limit for no enzyme searches

many searches of peptides (like neuropeptides and neoantigens) have short targets. We could let the user set the upper length limit, and thus limit the possibilities to score against and shorten time for comparison

An option is to quickly asses the mass of the largest ion selected for fragmentation and limit the mass of any peptide in the theoretical database to that number (subject to PTM enlargement).

I believe the first issue is already taken care of https://github.com/smith-chem-wisc/MetaMorpheus/issues/208

I'm talking about MAXIMUM length. Not MINIMUM length. But perhaps they're related.

Yup, both are there!
On Tue, Jun 20, 2017 at 9:46 AM, trishorts<EMAIL_ADDRESS>wrote:

I'm talking about MAXIMUM length. Not MINIMUM length. But perhaps they're
related.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/smith-chem-wisc/MetaMorpheus/issues/411#issuecomment-309781050,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFsjIhvMmV_oMPMk_Cen7yCbSxLTYP20ks5sF9tYgaJpZM4N_qCC
.

excellent. I wait eagerly for the feature :)

It's already available in the current release?

i see it.


Allow empty packages - fixes #381

Motivation
If prost allows for no packages then tonic generates bad endpoints for both clients and servers. See https://github.com/hyperium/tonic/issues/381.
Solution
The solution is to make the . between the package name and service name dependent on whether or not the package is empty.

Looks like you just need to run rustfmt and we can merge this thanks!

Should be good to go now.


[BUG] Database table meta_ data path_ Desc field cannot be empty exception

Is there an existing issue for this?

[ ] I have searched the existing issues

Current Behavior
No response
Expected Behavior
No response
Steps To Reproduce

The gateway accesses the Dubbo interface and uses the annotation @ShenyuDubboClient (path = "/ open / insert")

The database table field of Shenyu admin project cannot be empty

Environment
ShenYu version(s):2.4.0

Debug logs
java.sql.SQLIntegrityConstraintViolationException: Column 'path_desc' cannot be null
; Column 'path_desc' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'path_desc' cannot be null
Anything else?
In general, descriptive fields in annotations can be left blank

you can config path_ Desc  in annotation.

@mobaiLv Please try the latest code, and if there are still questions, please submit a new issue.


Step 2.5 'this.data.remove is not a function'

I get this error in step 2.5.

I keep getting this error. Can I point out that the tutorial asks to use this.data.remove(chat) and the commit uses his.data.remove(chat._id)? I'm not sure why I'm getting the error though, I've got the routes set up to use the correct controller, the Mongo initialisation is in place, and server side code is just as in the example.

I second this, this seems to be broken


Disabling password resets for specific email (e.g. public email)

What's the problem this feature will solve?
Since I can only set my public PyPI email to one of the verified emails and verified emails can be used for password resets, by adding a custom domain email as my public email I'm telling everyone "watch this domain's expiry dates very carefully so that if you're lucky, you can reset my password and publish malware in my name".
Describe the solution you'd like
I'd like to have a way to disable password resets for some of the emails verified on my PyPI account. By default, a newly added email should be available for account recovery and the user should explicitly disable account recovery for it if they want to.
Additional context
The section "Email security is your top priority" in Security for package maintainers post by Seth Michael Larson

Thanks for the issue. At this time, we're not planning to add features which would significantly increase PyPI's support burden (which is already high), as this likely would for users who have turned off password resets but legitimately need to regain access to their account.
Instead, our preference is for users to use 2FA on PyPI, ideally using security keys, which does not have the effect of disabling attempts at password resets, but does prevent account compromise in the event of domain resurrection/takeover.
I'm going to close this in favor of a broader 'meta' issue/discussion about how we can offer features like this, and what they should be: https://github.com/pypi/warehouse/issues/12255

Thanks for taking the time to respond to my issue. In case it helps with future decisions in #12255 or some other issue, I'd like to elaborate a bit more on this feature request.

as this likely would for users who have turned off password resets but legitimately need to regain access to their account.

Somehow I missed this in the description but my intention was that at least one email would have to remain available for recovery, that's pretty crucial to my request and I somehow did not mention it, sorry about that...
My reason for this is just that I want to be able to have a public email on PyPI without having that email available for password recovery. Perhaps there's a better way to solve this but this was just my idea based on how GitLab (and GitHub, sort of) does it.

Instead, our preference is for users to use 2FA on PyPI, ideally using security keys, which does not have the effect of disabling attempts at password resets, but does prevent account compromise in the event of domain resurrection/takeover.

Hmm yeah, that's fair, after password recovery one would still need 2FA to login so I would still be safe. It still sits wrong with me to introduce a potential attack vector, even if it requires 2FA but I have to agree that this definitely increases the security a lot and makes it rather unlikely to be a problem.


Dynamic cluster configuration - without membership changes

Support the correct handling of cluster configuration changes via config Tx (not node/peer membership, addressed here #40  ).

[x] CA
[x] Admins
[ ] Node endpoint, certificate
[ ] Consensus Members Peer endpoints
[ ] Consensus Raft config

Admin config addressed here: https://github.com/hyperledger-labs/orion-server/pull/149

CA config addressed here: https://github.com/hyperledger-labs/orion-server/pull/149


completion for plugin modules

I see that the readme specifies I get completion for plugins in opt and start directories, I'm not sure whether that includes auto-completions for, say, require('telescope.builtins').| so completion on the | character.
how can I get completions for plugin modules

add them to the plugins list

Should work, but it seems like there's a lot of magic happening inside telescope.builtin, which Sumneko doesnt like, so you get little results back


Model checked with gradient boosting

As asked model is checked with gradient boosting and accuracy  is compared with the Random Forest algorithm. But Random forest performed better and gives a better accuracy than Gradient Boosting techniques,ensembling methods like stacking or blending can sometimes combine the strengths of different algorithms, potentially yielding even better performance.But this case was a bit different.

@sanjay-kv  kindly look for the changes and merge my pull request. I have checked the accuracy of gradient boosting and compared it with random forest


Overlapping data

Greetings.
So far, didnt had any problems anymore until now.
Im working atm on a tool for our staff that includes a bunch of functions,
most of them using the watsonTCP for communication.
Now i noticed, sometimes, some code runs faster then the other, and both using SendAsync.
It can happen that the client then receives both streams and merge them together, which makes no sense anymore for the client and throws an exception.
Now im sure the most obvious step todo here would be re-code my stuff to make sure its one after another...
But as i already build it this way i just wanted to ask if there isnt any way to "Catch" an incomming stream and process this on another task ?   something like this pseudo code-
 static async Task CatchStream(object sender, StreamReceivedFromServerEventArgs args)
    {
       //Move the used code from Stream Received into here, and be ready for any other incomming streams
    }

    private static void StreamReceived(object sender, StreamReceivedFromServerEventArgs args)
    {
        Task.Run((() => CatchStream(sender, args)));
    }

i know this doesnt work like i wrote it,  but thats the basic idea.
Thanks . crushed

Hi @Crushedice can you use MessageReceived?  It fully reads the data out of the stream then fires the even whereas StreamReceived passes the underlying stream and blocks until finished.
Alternatively I could add another event like MessageReceived but fully read the data out into a MemoryStream and pass that to you (but that's what MessageReceived already does, except it gives you the byte array).
MessageReceived doesn't block BTW.
Let me know your thoughts.
Cheers, Joel

Best solution would be sending the length of the stream. This way you know the end of every stream.
But then it is no longer possible to send streams with an unknown length.
So best solution would be writing an extension for this problem, that would do the following:
Send

Send length of stream (8 bytes)
Send stream

Receive (receive into other stream for really big data)

Receive length of stream
Receive stream (loop with buffer)

This won't be not to hard to implement, however, there is another bug(or feature?) that makes this impossible.
The header that is meant for messages is send when sending 2 streams in a short time.
Code to reproduce: (linux)
await using var stream = new MemoryStream(Encoding.UTF8.GetBytes("Test data"));
            await using var stream2 = new MemoryStream(Encoding.UTF8.GetBytes("Test data"));

            using var watsonServer = new WatsonTcpServer("<IP_ADDRESS>", 9999);
            watsonServer.StreamReceived += (sender, stream) =>
            {
                byte[] receivedData = new byte[1024];
                stream.DataStream.Read(receivedData);
                Console.WriteLine(Encoding.UTF8.GetString(receivedData));
            };
            watsonServer.Start();
            await Task.Delay(100);

            var client = new WatsonTcpClient("<IP_ADDRESS>", 9999);
            client.StreamReceived += (sender, stream) => Console.WriteLine("Client received stream!");
            client.Start();

            await client.SendAsync(stream.Length, stream);
            // await Task.Delay(100); Fix
            await client.SendAsync(stream2.Length, stream2);
            await Task.Delay(-1);

And output:
Test data{"Status":"Normal","SyncRequest":false,"SyncResponse":false,"Compression":"None","ContentLength":9,"Metadata":{}}

Test data

And here the extension I tried to write but couldn't finish, and probably doesn't work:
static class StreamExtension
    {
        public static async Task SendStream(this WatsonTcpClient client, Stream stream, bool sendLengthPrefix = true)
        {
            if (!stream.CanRead) throw new InvalidDataException("Stream is not readable");

            if (sendLengthPrefix)
            {
                await using var lengthStream = new MemoryStream(BitConverter.GetBytes(stream.Length));
                await client.SendAsync(lengthStream.Length, lengthStream);
            }

            await client.SendAsync(stream.Length, stream);
        }

        public static void ReceiveStream(this StreamReceivedFromClientEventArgs receivedStream, Stream stream, long count = 0)
        {
            if (!stream.CanWrite) throw new InvalidDataException("Stream is not writable");

            //Get length of stream
            if (count == 0)
            {
                var length = new byte[8];
                receivedStream.DataStream.Read(length);
                count = BitConverter.ToInt64(length, 0);
            }

            var buffer = new byte[1024];
            long totalReceivedBytes = 0;
            int read;

            while (totalReceivedBytes < count &&
                   (read = receivedStream.DataStream.Read(buffer, 0, (int)Math.Min(1024, count - totalReceivedBytes))) > 0)
            {
                stream.Write(buffer, 0, read);
                totalReceivedBytes += read;
            }

            if (stream.CanSeek) stream.Seek(0, SeekOrigin.Begin);
        }

True.  this i have happen in my code as well.
Sometimes, the internal header is taken into the message that i sent ,
and , in this case.  will be displayed in the internal Chat feature of the app.
Nothing too severe that it breaks stuff.  but confusing nonetheless

Hi @Job79 in which version did you reproduce this?  I added a fix for this issue in 4.1.12.x.  It had to do with SemaphoreSlim not behaving the way I was expecting within the previous design.

Interesting. I didnt knew about the Data wrapper.
And yes. true,  sometimes the method did read into the next header and messed up.
So, using the supplied "Data" byte array this wont happen?  how would i implement this?
Currently i did stick to the example projects with the method.
I just tried to commend the so far used method out and use args.data, which im sure is the wrong approach .
->

 private static void StreamReceived(object sender, StreamReceivedFromServerEventArgs args)
    {

        string MessageCollect = string.Empty;
        try
        {
            int bytesRead = 0;
            int bufferSize = 65536;
            byte[] buffer = new byte[bufferSize];
            long bytesRemaining = args.ContentLength;

            if(args.DataStream != null && args.DataStream.CanRead)
            {
                //while(bytesRemaining > 0)
                //{
                //    bytesRead = args.DataStream.Read(buffer, 0, buffer.Length);
                //
                //
                //    if(bytesRead > 0)
                //    {
                //        byte[] consoleBuffer = new byte[bytesRead];
                //        Buffer.BlockCopy(buffer, 0, consoleBuffer, 0, bytesRead);
                //        MessageCollect += (Encoding.UTF8.GetString(consoleBuffer));
                //    }
                //
                //
                //    bytesRemaining -= bytesRead;
                //}

                    MessageCollect  = Encoding.UTF8.GetString(args.Data);
            }
            if(args.Metadata != null && args.Metadata.Count > 0)
            {
                string Header = args.Metadata.Keys.First().ToString();
                AddNewEntry($"New Header:{Header}");
                HeaderMsgReceived(Header, MessageCollect);
                return;
            } else
            {
                AddNewEntry($"MSG without Header");
                ProcessStream(MessageCollect);
            }

        } catch(Exception e)
        {
            AddNewEntry($"error in getting stream \n {e.Message}");
        }
    }

Just now as Edit to the problem i got.
I Just found, while debugging some issue i got already a bunch of times, where the connection just dropped.
After now some time searching, i found, that WatsonTCP had problems with the Json data i did send, as some of the characters were invalid ( weird symbols etc. that players used in their usernames )
After some more time i now got a small method together to filter this out, maybe it proves use full for some of you .
 static string CleanInput(string strIn)
        {
            try
            {
                return Regex.Replace(strIn, @"[^a-zA-Z0-9`!@#$%^&*()_+|\-=\\{}\[\]:"""";'<>?,.\ \/]", "",
                    RegexOptions.None, TimeSpan.FromSeconds(5.5));
            }
            catch (RegexMatchTimeoutException)
            {
                return String.Empty;
            }
        }

Sooo far.  It - atleast - solved some of my problems i had .

Hi @Crushedice using the .Data wrapper within the StreamReceivedFrom*EventArgs object is functionally equivalent to using the MessageReceived event as opposed to the StreamReceived event.
StreamReceived is primarily used when you're going to be receiving large amounts of data whereas MessageReceived should be used when receiving manageable message sizes (up to tens of megabytes).  The main differences are:

StreamReceived expects you to read up to a specific number of bytes from the underlying network stream directly
MessageReceived does this for you
If you use the Data property in StreamReceived (and not touch the DataStream property) it behaves just like MessageReceived

It appears to me that something is reading too far into the stream, which creates problems with framing.  Could you try using MessageReceived and make sure compression is set to None on both client and server?  Also if you could send a sample of the JSON you send that would be helpful.

Okay.  It seems like it likes the " MessageReceived " event more.
Or better said,  with the somewhat fast data exchange , its not that good to process the stream myself . As there is a high probablility of hikkups.
Good.
I was used to using the stream received from my other application, where i  use it atm as an update system for our players with remote delta compression.  Big files,  Sent-one after another.
Good Good.
Thank you very much for that.
Ps-( the Json was  not corrupt, i specially added the regex now for this aswell, the stream did just read into the next json...)

Hi @Crushedice
I committed v4.2.0 just now (https://github.com/jchristn/WatsonTcp/commit/89dd514ce50cbca39051413ec7f0d8aec3b8405b) and published to NuGet (https://www.nuget.org/packages/WatsonTcp/4.2.0).
There are a couple key changes:

You shouldn't be able to 'over-read' now when using streams, i.e. reading too many bytes and getting into the next message's header; this is applicable to when integrating using StreamReceived instead of MessageReceived, and
Compression is gone, for now; it was causing too many problems across multiple OS and runtimes

I plan to re-add compression back in soon, but using an over-the-top model instead of something that encapsulates the underlying data stream.
Cheers, Joel


CLI: --add stops working

VSCode Version: 1.32.0-insider a509265116babc17648c9052eeeb8ae2909fed87 x64
OS Version: macOS Mojave 10.14.3 (18D109)

Steps to Reproduce:

Open Terminal.
Navigate to a directory and type "code-insiders --add ."
The current path is not added to the opened editor.

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

Regression caused by 61fc467


[NEW ICON] Skill Name

Skill Name
Shopify
Why?
Ecommerce website development
Reference Image
https://www.svgrepo.com/svg/303503/shopify-logo

Hi @harshadsatra if you want the shopify icon, you must change to the newest version of the repository (which is here) becasue the maintainer did not show up in months. There are a tone of other icons that are interesting to use. Feel free to ask other icons that you would like like there (if they already aren't in it.


Solace Read connector: Record Coder

PR for the Solace Read connector (addresses #31440).
Adding the Record Coder

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @Abacn
Could you take a look, please?

Actually, no need to merge it, I'll take advantage of a coder generated with the @DefaultSchema


log.SetLogger(...) was never called

What happened?
During automated test execution , i noticed a stack in log:
[controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:
goroutine 45 [running]:
runtime/debug.Stack()
    runtime/debug/stack.go:24 +0x5e
sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
    sigs.k8s.io/controller-runtime@v0.15.2/pkg/log/log.go:59 +0xcd
sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc0000c0b80, {0x25d5c56, 0x7})
    sigs.k8s.io/controller-runtime@v0.15.2/pkg/log/deleg.go:147 +0x45
github.com/go-logr/logr.Logger.WithName(...)
    github.com/go-logr/logr@v1.2.4/logr.go:336
github.com/apache/camel-k/v2/pkg/util/log.Logger.WithName({{{0x2a0a558?, 0xc0000c0b80?}, 0x0?}}, {0x25d5c56?, 0xc8?})
    github.com/apache/camel-k/v2/pkg/util/log/log.go:81 +0x45
github.com/apache/camel-k/v2/pkg/util/log.WithName(...)
    github.com/apache/camel-k/v2/pkg/util/log/log.go:186
github.com/apache/camel-k/v2/pkg/util/kubernetes/log.NewPodScraper({0x7fdca52e4100?, 0xc000145300}, {0xc0009ca3b0, 0x7}, {0xc00084de80, 0x20}, {0xc0009ca3a0, 0xf}, 0x0)
    github.com/apache/camel-k/v2/pkg/util/kubernetes/log/pod_scraper.go:62 +0x85
github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*SelectorScraper).addPodScraper(0xc0004050e0, {0x2a059b8, 0xc000533ef0}, {0xc00084de80, 0x20}, 0xc0005a1600)
    github.com/apache/camel-k/v2/pkg/util/kubernetes/log/annotation_scraper.go:135 +0x89
github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*SelectorScraper).synchronize(0xc0004050e0, {0x2a059b8, 0xc000533ef0}, 0xc0005a1600?)
    github.com/apache/camel-k/v2/pkg/util/kubernetes/log/annotation_scraper.go:108 +0x1c7
github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*SelectorScraper).periodicSynchronize(0xc0004050e0, {0x2a059b8?, 0xc000533ef0}, 0xc0005a1600, 0xc000011fc8)
    github.com/apache/camel-k/v2/pkg/util/kubernetes/log/annotation_scraper.go:77 +0x4c
created by github.com/apache/camel-k/v2/pkg/util/kubernetes/log.(*SelectorScraper).periodicSynchronize in goroutine 134
    github.com/apache/camel-k/v2/pkg/util/kubernetes/log/annotation_scraper.go:94 +0x190

Steps to reproduce
do not know. My guess is that there is an attempt to access logs but the integration has just been deleted
Relevant log output
No response
Camel K version
2.1.0

Seen in #4770 and #4754


Emptying of the datepicker value not possible

Once date is selected in the datepicker, there is no possibility to clean this value. One can only delete the string via keyboard + clicking with the mouse outside the popped up datepicker, but then it won't trigger change listeners.

Right now changed only fires for successful Date changes through textual input (not clicks!). Setting to null is not successfully changing a Date, but is rather merely changing the value shown in the input box.
	inputChanged: function () {
		var inputVal = this.$input.val();
		var date;
		if (inputVal !== this.inputValue) {
			date = this.setDate(inputVal);
			if (date === null) {
				this.$element.trigger('inputParsingFailed.fu.datepicker', inputVal);
			} else if (date === false) {
				this.$element.trigger('inputRestrictedDate.fu.datepicker', date);
			} else {
				this.$element.trigger('changed.fu.datepicker', date);
			}

		}
	}

If you truly want to listen to all change events on the input box, you should instead listen like this:
$('#myDatepicker').on('change dateClicked.fu.datepicker', function(){ console.log('changed!'); });


ModuleNotFoundError: No module named 'gz'

I am trying to execute the "publisher.py" script, which is in the "python" directory. I have installed "libgz-transport10-dev" and "libgz-transport13-dev" using apt. But whenever I execute the script
$ python3 publisher.py
I get
ModuleNotFoundError: No module named 'gz'
error.
Do I have to install some additional packages?
I am using Ubuntu24.

Yeah, you'll need to install python3-gz-transport13.
It would be great to include some installation instructions in https://gazebosim.org/api/transport/13/python.html. If you can help out with that, i.e, update https://github.com/gazebosim/gz-transport/blob/gz-transport13/tutorials/06_python_support.md, I would greatly appreciate it.

@azeey
Thank you! Your answer helped me a lot!
OK. I will update the document and open a pull request.

@azeey
It seems I don’t have a permission to create a new branch. Can you please grant me the permission?

It seems I don’t have a permission to create a new branch. Can you please grant me the permission?

You can fork the repo into your own namespace and make changes there before opening a pull request.


Support poly

It would be great if we could support polynomial regression. Currently it looks like this
m <- lm(bill_length_mm ~ poly(bill_depth_mm, 3), na.omit(palmerpenguins::penguins)

)
equatiomatic::extract_eq(m)

which isn't horrible, but it would be better if it looked like this

The TeX code would just need to go from
$$
\operatorname{bill\_length\_mm} = \alpha +
\beta_{1}(\operatorname{poly(bill\_depth\_mm,\ 3)}_{\operatorname{1}}) +
\beta_{2}(\operatorname{poly(bill\_depth\_mm,\ 3)}_{\operatorname{2}}) +
\beta_{3}(\operatorname{poly(bill\_depth\_mm,\ 3)}_{\operatorname{3}}) + \epsilon
$$

to
$$
\operatorname{bill\_length\_mm} = \alpha +
\beta_{1}(\operatorname{bill\_depth\_mm}) +
 \beta_{2}(\operatorname{bill\_depth\_mm}^2) +
\beta_{3}(\operatorname{bill\_depth\_mm)}^3 + \epsilon
$$

So basically just move what is currently being parsed as a subscript into a superscript (but have it do nothing for the first one).

This could be part of some sort of general math parsing function (for #14), that'll convert standard things like

log(x) → \log x
exp(x) → \exp x
poly(x, n) → x^n (except when x = 1)
I(x) → x (no need for I(), since that's R-specific and not mathematical)


Code for 1.2.2 never pushed?

I just npm installed 1.2.2 and noticed Next and Previous buttons were added to the pager. We don't want these just yet, so I rolled it back a little, but when I look in the repo here, 1.2.2 branch doesn't have Next/Prev in the pager. And the code hasn't been pushed in a while.
Was curious if the latest code could be pushed? Thanks!!! Love this project!

This is resolved


CSS override doesn't seem to work with absolute positioning elements

Placing the following CSS in user/raidboss.css does not override the positioning of the targeted selector in the default raidboss file:
#timeline-container {
position: absolute;
bottom: 0px;
right: 0px;
}
IE - bottom/right are being overridden by the top/left elements in the default selector. Might just be a consequence of CSS ordering, but I wasn't sure if the intent was for the specified selector to replace "timeline-container" or to be additive.

The user .css file is just added to the web page as it is. As such it works the same way every CSS file does: by combining different selectors.
You'll have to override the top and left properties if you want to move it elsewhere. You can just set them to auto if you want to move the element to the bottom-right corner.

Thanks! That answers it. Appreciate the response and all the effort on the overlay.


[release/1.6] Cumulative stats can't decrease

cherry-pick of https://github.com/containerd/containerd/commit/f6677a4ec53f95f22529f7225f0de741b9201df1

xref https://github.com/containerd/containerd/pull/10652


add validation to enter valid url

right now people can add any word and the webiste will convert it to url

i want to add validation so that the user can only input valid url
please assign this issue to me @muruga21

@AyushSharma72 yeah dude.. work on it


Don't show legend for Speedometer widget

Example

Or at least make it controllable - control doesn't work

It Works! Fixed in 3.1.68


[Documentation] 'lang' in code block disappears in light mode

Describe the bug
❌ Light:

✔ Dark:

Maybe make --vp-c-text-dark-3 darker in light theme
Reproduction
ignore
System Info
ignore

Used Package Manager
pnpm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

I think it's better to open issue directly at https://github.com/vuejs/vitepress

@sheremet-va it's not an issue of vitepress, as vitest uses its own custom theme instead of default theme
https://github.com/vitest-dev/vitest/blob/e5c40cff0925c3c12d8cdfa59f5649d3562668ce/docs/.vitepress/style/vars.css#L13
Background color of code block is overriden which results into low contrast