Update akka-http to 10.0.15

Updates com.typesafe.akka:akka-http from 10.0.10 to 10.0.15.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.akka", artifactId = "akka-http" } ]

labels: semver-patch

Codecov Report

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

@@          Coverage Diff           @@
##           master    #310   +/-   ##
======================================
  Coverage    80.5%   80.5%
======================================
  Files         128     128
  Lines        3334    3334
  Branches      136     136
======================================
  Hits         2684    2684
  Misses        650     650

Continue to review full report at Codecov.

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


Vernemq bridge flooding

Environment

VerneMQ Version: Rpi fork
OS: Raspbian
Erlang/OTP version (if building from source):

Hi all,
I've set up two Vernemq brokers, one acting as a bridge and communication with the other.
We are experiencing flooding on both brokers when publishing to the bridge. I want to "re-publish" all messages going both ways, but I belive that the problem is that the bridge also subscribes to itself. Is there any way to fix this, ie subscribing to all topics but discard all messages sent by itself. Any help would be greatly appriciated.
vmq_bridge.tcp.br0.try_private = on
vmq_bridge.tcp.br0.topic.1 = * both 1
vmq_bridge.tcp.br0.cleansession = off
Best regards, Kenneth

Hi @rastomatti apologies for my delay in answering & thanks for opening the issue.
Currently there is no automatic loop detection in the VerneMQ bridging implementation. I'll have to look into your case to see what to do best here.


Add support for Azure Service Bus sessions for topics

Description
This PR adds support for publishing and subscribing to Azure Service Bus topics that have sessions enabled. Currently requireSessions is ONLY supported in topics and not queues. Queues can be added later.
For subscriptions, you express the requirement for sessions using the metadata field on the subscription itself. For programmatic subscriptions this looks like this:
{
    "pubsubname": "pubsub",
    "topic": "A",
    "route": "A",
    "metadata": {
        "requireSessions": "true" <--- use session receivers
        "sessionIdleTimeoutInSec": 30 < --- optional config to override defaults
        "maxConcurrentSessions": 4 < --- optional config to override defaults
    }
}

This will instruct the Dapr component to subscribe to sessions on the topic and handle a maximum of 4 at a time. If a session is idle for 30 secs the session will be released (we will no longer wait on it or renew a lock for it) and we will try to get another session.
If you use an existing subscription that has sessions enabled when you have not provided dapr with the same config we will error and fail to subscribe e.g. sessions enabled on existing subscription but not set in dapr susbcription config.
For publishing, nothing really changes as you could already attach the query metadata for the session ID.
This PR does not support subscribing to named session IDs - that can always be supported later - the current behavior is to round robin any session IDs.
This implementation has a couple of assumptions which may not hold - please call out in review if invalid.
With sessions, the subscription methods (ReceiveBlocking, Connect, RenewLocksBlocking, Close) may be called concurrently from multiple goroutines. Any subscription state that is mutated in those methods must be protected. Currently no shared state is mutated AFAIK other than the use of a channel (activeOperationsChan). We do read shared data such as requireSessions but this is assumed to be immutable (it's written once on the creation of the subscription and then MUST never change). We do also use the subscription logger but this is assumed to be safe as it's based on logrus which is considered "thread safe". If you'd rather I refactored this to not use any shared state them please let me know.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #289
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

@yaron2 it'd be good to get an initial review of this please and consider what additional testing we can do to ensure no regressions for the existing non-session based messaging.

I do intend to add another certificate test with a higher max concurrent sessions to cover the "round robin" assignment.

@ItalyPaleAle could you review this since you worked on the service bus components code more than anyone else left on the team?

@jjcollinge

Updated, thanks for the feedback @ItalyPaleAle. Given this PR changes quite a bit of the code it'd be great if a few people could test it out for regressions too. I've tested with and without sessions myself and there is a new certification test (I cannot execute that in this repo though) but some other smoke testing would be welcomed!

@jjcollinge see linter failures here: https://github.com/dapr/components-contrib/actions/runs/3847500751/jobs/6554035994.

@yaron2 @jjcollinge -- apparently this broke E2E tests in dapr/dapr.
panic: runtime error: index out of range [16] with length 2 goroutine 1827 [running]:
github.com/dapr/components-contrib/internal/component/azure/servicebus.(*Subscription).RenewLocksBlocking(0xc00135ac60, {0x60f6020, 0xc000aeaac0}, {0x60f7210, 0xc000f24b10?}, {0x0?, 0x60f60c8?})
    /home/runner/go/pkg/mod/github.com/dapr/components-contrib@v1.9.1-0.20230110173025-b2d8e6013b5f/internal/component/azure/servicebus/subscription.go:367 +0x9cd
github.com/dapr/components-contrib/pubsub/azure/servicebus/topics.(*azureServiceBus).ConnectAndReceive.func4()
    /home/runner/go/pkg/mod/github.com/dapr/components-contrib@v1.9.1-0.20230110173025-b2d8e6013b5f/pubsub/azure/servicebus/topics/servicebus.go:342 +0x156
created by github.com/dapr/components-contrib/pubsub/azure/servicebus/topics.(*azureServiceBus).ConnectAndReceive
    /home/runner/go/pkg/mod/github.com/dapr/components-contrib@v1.9.1-0.20230110173025-b2d8e6013b5f/pubsub/azure/servicebus/topics/servicebus.go:340 +0x44f

https://github.com/dapr/dapr/actions/runs/3907829608/jobs/6677655016

I think this is the fix https://github.com/dapr/components-contrib/pull/2438/files. Sorry when I implemented this feedback I didn't alter the location of the lock.


[TidyRead - Streamline Your Daily Reading] Digest generation stopped to work completely

Extension
https://www.raycast.com/jaredliu233/tidyread---streamline-your-daily-reading
Description
After https://github.com/raycast/extensions/issues/10331 was merged TinyRead stuck on Digest Generation.
Steps To Reproduce

Go to "Daily Read" command
Click "Daily Digest Generation"
See infinity fetching.

Current Behaviour
Daily Digest fetched forever.
Expected Behaviour
Daily Digest generated.

Extension
https://www.raycast.com/jaredliu233/tidyread---streamline-your-daily-reading
Description
After #10331 was merged TinyRead stuck on Digest Generation.
Steps To Reproduce

Go to "Daily Read" command
Click "Daily Digest Generation"
See infinity fetching.

### Current Behaviour
Daily Digest fetched forever.
Expected Behaviour
Daily Digest generated.

Hi Alex @alexandertsukanov ,  Can you share your sources to me? refer this doc

@alexandertsukanov
I didn't run into a problem when I tried it. What AI Provider are you using and what model? I'm guessing it's because the default settings for the retry count and retry delay are a bit too large, to ensure that the briefs are generated correctly. You can try to reduce the value a little bit. Actually you try to keep waiting and it should eventually generate the digest.
And it's recommended to auto generate dailly digest, refer this doc, then you won't be bothered anymore.

here we go
[
    {
        "schedule": "everyday",
        "tags": [],
        "rssLink": "https://in.relation.to/blog.atom",
        "timeSpan": "7",
        "url": "https://in.relation.to/",
        "title": "The Hibernate team blog on everything data - In Relation To",
        "favicon": "https://static.jboss.org/hibernate/images/favicon.ico"
    },
    {
        "url": "https://feeds.feedblitz.com/baeldung",
        "title": "Baeldung Blog",
        "rssLink": "https://feeds.feedblitz.com/baeldung&x=1",
        "tags": [],
        "timeSpan": "1",
        "schedule": "everyday",
        "favicon": ""
    }
]

here is my settings

So finally I have it, it takes around 10 min. But still have failed items:

So finally I have it, it takes around 10 min. But still have failed items:

Sorry Alex @alexandertsukanov , I didn't have a feel for what's actually going on since I've changed the default configuration locally and am using Raycast AI.
Suggest you start by tweaking these parameters to the values on the image:

I'm digging deeper now to see what the problem is, theoretically open free tier 1 supports 500 requests per minute, but in practice there are quite a few requests that keep failing

So finally I have it, it takes around 10 min. But still have failed items:

Sorry Alex @alexandertsukanov , I didn't have a feel for what's actually going on since I've changed the default configuration locally and am using Raycast AI.
Suggest you start by tweaking these parameters to the values on the image:

I'm digging deeper now to see what the problem is, theoretically open free tier 1 supports 500 requests per minute, but in practice there are quite a few requests that keep failing

@DophinL so looks like I see next error on items are failed to load:

@DophinL so looks like I see next error on items are failed to load:

oops, I've checked and there is no answer, and due to the way the plugin is currently implemented and the stability of the openai interface, some errors in the process may be unavoidable. I can't follow up on this openai The data couldn't be read because it isn't in the correct format issue for now!
May I ask what api model you are using and if you have set the preferred language?

And I changed api call from stream to normal, it seems more stable now when multi requests are concurrent

Well, I use next settings:

Well, I use next settings:

And provider is Raycast AI.

@alexandertsukanov If you are using Raycast AI, you can try the following parameters and the model can be adjusted to raycast instruct:
{
    maxApiConcurrency: 5,
    retryCount: 4,
    retryDelay: 20,
  }

@DolphinL, very nice work! It works like a charm! So basically, you need to set the model according to the AI provider. Wouldn't it be the easiest way to fetch the list of models based on the provider?

@dolphinl, very nice work! It works like a charm! So basically, you need to set the model according to the AI provider. Wouldn't it be the easiest way to fetch the list of models based on the provider?

Haha, thank you for the suggestion. I indeed have implemented the feature to configure based on the provider. However, this time I've hardcoded it and did not use a dynamic request approach.

@alexandertsukanov
Hi Alex, the issue has been fixed and released, thanks again for your feedback. If you have any questions, please feel free to raise them!
Next, these three configuration items can be removed, as default configurations for different providers have already been provided.

@raycastbot close this issue


Use /bin/bash instead of /bin/sh for execute

Fixes just 'local' provision, those using ssh (connect, virtual..) are more difficult and will be fixed later.
Filled #1474 to not forget.

Good, we got further then before and now it isn't tmt's problem  - https://github.com/mkoncek/javapackages-validator/runs/7408633433?check_suite_focus=true

Moving to 1.17 - I don't want to break ssh this close to the release

@mizdebsk I saw you are using this branch in your config. I'll leave this branch until 1.17 is released and you can revert your changes.

@psss @thrix @FrNecas Pleas keep the branch when merging.

@psss @thrix @FrNecas Pleas keep the branch when merging.

Is it possible to deactive the auto-branch-delete-upon-merge feature for a specific pull request?

Rebased & squashed.

@mizdebsk If you could update your configuration to point to either 'main'  branch or '1.17.0' tag it would be great.
Once you have done that please comment here so I can delete this branch.

@lukaszachy I've updated our configuration so that your branch is no longer needed.


Fragmented packets and conntrack

Fragmented packets also need to be properly conntracked and handled in eBPF

Sanity checks are passed and issue has been unit-tested. Closing this !!

Thanks @TrekkieCoder  for helping test it. Sanity checks have  passed and issue has been unit-tested. Closing this !!


Fix GraphClient exceptions handling

As title.
Sync codes from https://github.com/Azure/azure-sdk-for-java/pull/32983.

API change check
APIView has identified API level changes in this PR and created following API reviews.
spring-cloud-azure-autoconfigure


Unwrapping optionals crash

MerchantKit/CommitPurchaseTask.swift:37: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
2022-05-16 00:51:10.066444+0800 ColourConvert[7610:247789] MerchantKit/CommitPurchaseTask.swift:37: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

Crashed happened at line 37 (         self.onCompletion(result)).
Replicate:

Start a commitPurchaseTask on merchant.
Sandbox payment made using an Apple ID without permissions to make in app purchases. (refer to screenshot)
Press ok on step 2's popup.
Observe crash.

While I could have done something wrong on my end, it looks more like a bug to me (probably some edge case situation that happens where account cannot buy IAPs). Feels worthy to report, even if it likely won't happen in production. Please advise if you believe it's a problem on my end.
Target Platform: macOS
Version of MerchantKit: master branch via SPM

Just realised it's my fault for not reading the README properly. Sorry!


iOS 11 - NSPhotoLibraryAddUsageDescription required

Description
Just a heads up for anyone trying to use this lib on iOS11 - you need to add NSPhotoLibraryAddUsageDescription in your Info.plist (see https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html)
How to repeat issue and example
The app will crash on iOS 11 if you don't add NSPhotoLibraryAddUsageDescription with a message explaining why you need access to the photos.
Additional Information

React Native version: all
Platform: iOS 11
Development Operating System: MacOS
Dev tools: Xcode

The above didn't work for. Had to use NSPhotoLibraryUsageDescription instead on my end.

To be clear I had to use both NSPhotoLibraryUsageDescription as specified in the readme and the new NSPhotoLibraryAddUsageDescription.
There is a small bug too where it will ask for permission twice (once for read access and once for write access).

Makes sense. Currently only using it for reading, but won't hurt to add it in for writing purposes in the future.

I've added both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription but my app still isn't asking the user for permission.  Does it matter what value (i.e., what text) you add to the plist?

No, I don't think it matters.

I got the same issue that app still not asked for permission. Any one can help ?

I was having the same issue with one of my app, after upgrading to Xcode 9 ios 11. I have used both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription, this worked for me.

I added both NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription and now users must respond to two prompts and allow each one.  This annoys users.

There is a small bug too where it will ask for permission twice (once for read access and once for write access).

@cosmith You said this is a bug that asks permission twice, one for each permission?
A bug in react-native-image-picker ?
NSPhotoLibraryUsageDescription and NSPhotoLibraryUsageDescription.

Thanks for a great library!

I am getting issue with NSPhotoLibraryAddUsageDescription. The weird part is that I can't reproduce on my simulator nor iPhone. I found this issue via Sentry.
Anyway, hope that adding the proper key into the info.plist will fix it.


Should defcon be listed in requirements.txt?

defcon is used in Lib/cu2qu/cli.py
Should it be listed in requirements.txt?

good point. Technically one can pass cu2qu a compatible Font object that “quacks” like a defcon duck. But in the cu2qu script (which was added recently) we do import defcon so if you run the script, it is required.
Let me think about it.

it appears that my previous self already solved this problem
https://github.com/googlei18n/cu2qu/blob/dc44ddecbc1253ad857edd19e66b53d53437cbc5/setup.py#L186
defcon is already listed in extras_require, thus if one does pip install cu2qu[cli] that will also pull in defcon as a dependency and install the cu2qu console script entry point. Otherwise they won't, not automatically.
I think this is acceptable and good as is. I don't want to make defcon a required, runtime dependency of cu2qu. It's only required to run the console script or the test suite.
By the way, since I know you are packaging up these font development tools (is it Debian?), please note that the canonical source of install-time dependencies for any python libraries is not the requirements.txt file, but the install_requires keyword in the setup.py, plus any extras_require if present, for optional dependencies.
The way I use requirements.txt here is to create a reproducible tox environment for self-testing purposes, with pinned-down versions (==) of each install requirements.
You see, defcon is already listed in test-requirements.txt. It doesn't change anything if I move it to the other. Both requirements.txt and test-requirements.txt are installed by tox in the test environment, one after the other. Ok, I'll move it to requirements.txt, but it doesn't change the fact that it is not required to install cu2qu unless you want to use the console script.

Yeah, we need these in Debian because some fonts are built with fontmake. fontmake has a large list of dependencies!

I know! :smile:

btw, thanks for doing this!


Update: Using universal zsh configuration

Zsh is not only oh-my-zsh, so I added universal configuration for zsh that also can be used in prezto.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For 1.8 Features: set Milestone to 1.8 and Base Branch to release-1.8
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NOTE: Please check the “Allow edits from maintainers” box (see image below) to
allow reviewers to fix problems on your patch and speed up the review process.
Please delete this note before submitting the pull request.

This change is

Just signed the CLA

@ariestiyansyah A couple of comments. Otherwise, Docs LGTM.

@mengqiy Are you available to do a tech review?

LGTM
It seems it need rebase.

@mengqiy Thanks for the review.
@ariestiyansyah If you can rebase, we'll get this merged.

Ping @ariestiyansyah

I'll check it asap, thanks @steveperry-53


Inline functions

Wouldn't it be nicer to have the functions defined by inline? Otherwise, having multiple .cpp files that all include the same, say "mingw.thread.h", file, the one definition rule isn't obeyed.

Yep! I have had to modify the library.
multiple definition of std::this_thread::get_id()' multiple definition of std::this_thread::yield()
mingw.thread.h:
   thread::id get_id() {return thread::id(GetCurrentThreadId());}
   void yield() {Sleep(0);}

to
    inline thread::id get_id() {return thread::id(GetCurrentThreadId());}
    inline void yield() {Sleep(0);}

Thank you for this FANTASTIC contribution (mingw-std-threads), meganz . Thanks! Thanks!!

I entirely agree - also ran into these linking problems with multiple definitions and had to make these functions inline. This should be fixed, but otherwise, this implementation works excellently! Thanks!

Fixed. Thanks for reporting.


Special keyboard key for {BRACKETS} like {ARROWS}

Also, it would be great if pairs of brackets or parentheses can be added to keyboard layout as special keys, so that one can open and close by flipping the key.

I would like to suggest adding special keyboard layout keys for parentheses. These keys could be designed to slide left or right, similar to {ARROWS}, to type opening and closing parentheses efficiently.
It would be quite useful for editing scripts on WebSSH. I look forward to your consideration of this feature!

Originally posted by @cwlo2F in https://github.com/isontheline/pro.webssh.net/issues/1150#issuecomment-2211628936

@suuppl @cwlo2F
{BRACKETS} token now available inside the latest beta release : https://testflight.apple.com/join/QSrBK59z
Documentation updated : https://webssh.net/documentation/help/howtos/SSH/customise-keyboard-accessory-view-layout/#allowed-special-keys-tokens


Missing copy of GPL v2

https://github.com/sdg-mit/gitless/blob/master/LICENSE.md says:

Copyright (C) 2013 Santiago Perez De Rosso
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

As per https://www.gnu.org/licenses/gpl-howto.html you should include a copy of the GPL text, e.g. as the LICENSE file itself?

03c98d0ba2deefa59d5c6aded48ff06c610a59a9


Svelte-Kit erroring that the preprocessor is not enabled

Error: 500 Looks like you don't have the preprocessor enabled. Error: Looks like you don't have the preprocessor enabled.     at Module.graphql (/$houdini/runtime/index.js:12:11)     at eval (/src/lib/queries/login.ts:5:61)
and my config is
import { optimizeImports } from "carbon-preprocess-svelte";
import path from "path";
import houdini from "houdini-preprocess";
import preprocess from 'svelte-preprocess'

/** @type {import('@sveltejs/kit').Config} */
const config = {
	// Consult https://github.com/sveltejs/svelte-preprocess
	// for more information about preprocessors
	preprocess: [houdini(), preprocess(), optimizeImports()],
	kit: {
		// hydrate the <div id="svelte"> element in src/app.html
		target: "#svelte",
		vite: {
			server: {
				fs: {
				  allow: ['..']
				}
			  },
			resolve: {
                alias: {
                    $houdini: path.resolve('.', '$houdini')
                }
            }
		}
	}
};

export default config;

anyone knows why this happens?

Now I mangaged to get it to work but I am getting the error Uncaught (in promise) SyntaxError: The requested module '/$houdini/index.js' does not provide an export named 'SubscriptionHandler' async function (async) start @ start.js:1207 (anonymous) @ login:18 anyone knows what this is about?

Hey @mzztin - good to hear you got  your original issue fixed, do you mind sharing what the source of confusion was so i can clarify the documentation?
Also, the best way to address the type issue you are running into is to move the import for SubscriptionHandler to a import type statement:
import type { SubscriptionHandler } from '$houdini'

Issue occurs when user attempts query from context="module" script. This could happen if, for example the user reads FAQ and learns queries use load and assumes query should be placed in load. If user studies documented examples, they should notice this although an explicit callout might help.

Issue occurs when user attempts query from context="module" script. This is likely to occur during refactoring or if the user does not study existing documented examples carefully enough.

Issue occurs when user attempts to query from context="module" script. This is likely to occur as users are refactoring existing load functions or if they read the FAQ where it explains load functions are generated then assume their queries should be placed in the same location within their layouts/routes.

Issue occurs when user attempts to query from context="module" script. This is likely to occur as users are refactoring existing load functions or if they read the FAQ where it explains load functions are generated then assume their queries should be placed in the same location.

do you mind sharing what the source of confusion was so i can clarify the documentation?

Issue occurs when user attempts to query from context="module" script. This is likely to occur as users are refactoring existing load functions or if they read the FAQ where it explains load functions are generated then assume their queries should be placed in the same location.

do you mind sharing what the source of confusion was so i can clarify the documentation?

Issue occurs when user attempts to query from context="module" script. This is likely to occur as users are refactoring existing load functions or they do not pick up on this subtlety while reading the FAQ.


Command-line interface

Would be nice to create run directories from the command line. May use entrypoints for this. Should be able to create a run directory from a yaml file containing the configuration dictionary, at least. After that, maybe we can use click to specify options, or maybe that's more trouble than it's worth.

It think this would be great to return to. Also, it would be nice some options like --days --initial-conditions for overriding the values in the fv3config.yaml which are not related to the model physics.


Population health management for healthcare

I am looking for the "manual deployment guide for the solution." Please let me know where I would find it. I did not see a link to the guide in the original source. Thanks.

Disregard. I found it...in a place I wasn't expecting. No worries. Peace

Glad you found it.
#please-close

@ExplorerGF23
It looks like your issue is resolved since closed this thread.
If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.

@ckittel
Thank you for your response.


fix of test for CAMEL-14950

Issue: https://issues.apache.org/jira/browse/CAMEL-14950
@davsclaus , @oscerd
I've noticed small error with big impact. Test for scenario with servlet was testing scenario without servlet. This simple change it fixes, but there is a problem.
By  previous commit version of servlet-api was set to 3.1.0.Final to be consistent with camel - correct move. But undertow is not able to start servlet without 4.0 api.
So with this fix, test will show an error NoClassDefFoundError: javax/servlet/http/MappingMatch
(error will be solved in case of servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_4.0_spec)
Which seems to be blocker for this change. What do you think?
Only solution I see is to keep servlet-api required for undertow in pom.
[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] If you're unsure, you can format the pull request title like [CAMEL-XXX] Fixes bug in camel-file component, where you replace CAMEL-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean install -Psourcecheck in your module with source check enabled to make sure basic checks pass and there are no checkstyle violations. A more thorough check will be performed on your pull request automatically.
Below are the contribution guidelines:
https://github.com/apache/camel/blob/master/CONTRIBUTING.md

@davsclaus @oscerd
I can imagine a way of allowing this change by following restrictions:

document requirement for higher servlet-api for usage of property requireServletContext (default value is false)
dependency to higher-servlet-api would be only in component camel-undertow-spring-security (https://issues.apache.org/jira/browse/CAMEL-14977)
tests involving servlet context could be placed into  camel-undertow-spring-security

This solution is not correct, but I don't see any other possibility....
I can try to use some kind of mock servletContext which will allow to run security filters from spring-security without having servlet involved on undertrow server, but I have no idea whether it would be possible.


Camera Orientation/Rotation for better display

Default camera display is not same as normal camera display and It needs to be rotate probably based on camera rotation and frame size is also looks smaller than display size.

Complete : https://github.com/onuralpszr/CvCamera-Mobile/commit/5d025dcbcb64758305155626ca9dd226da9befdf


l2, udpn: Add ipv6 lla gateway field to the ovn pod annotation

📑 Description
For primary UDN layer2 the proper IPv6 gateway that should be configured
with received router advertisements is the one from the local GR IPv6
LLA, this change add field to the ovn pod annotations with that
information so it can be consumed by follow up PRs that will ensure
remove GRs are ignore as layer2 ipv6 gateways.
Additional Information for reviewers
This is related to the following PRs that remove multipath ipv6 gateway for l2 primary UDNs:

https://github.com/ovn-kubernetes/ovn-kubernetes/pull/4852
https://github.com/ovn-kubernetes/ovn-kubernetes/pull/4847

✅ Checks

[ ] My code requires changes to the documentation
[ ] if so, I have updated the documentation as required
[x] My code requires tests
[x] if so, I have added and/or updated the tests as required
[ ] All the tests have passed in the CI

How to verify it
It include unit tests

known flake:

https://github.com/ovn-kubernetes/ovn-kubernetes/issues/4387

Given this NAD
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
  namespace: poc1
  name: l2
spec:
  config: |2
    {
            "cniVersion": "0.3.0",
            "name": "l2-network",
            "type": "ovn-k8s-cni-overlay",
            "topology":"layer2",
            "subnets": "<IP_ADDRESS>/24,2014:100:200::0/60",
            "netAttachDefName": "poc1/l2",
            "allowPersistentIPs": true,
            "role": "primary"
    }

The key is namespace + / + name (poc1/l2 in our case)
it means that we would need on the CNI to know those (might be known via PodRequest.nadName, assuming it will always have the full namespaced name, even if namespace is default)
but it might be better to just use the underline network name l2-network in this case ?
Because it is per real network, not per NAD basically
    k8s.ovn.org/pod-networks: '{"default":{"ip_addresses":["<IP_ADDRESS>/24","fd00:10:244:3::b/64"],"mac_address":"0a:58:0a:f4:02:0b","routes":[{"dest":"<IP_ADDRESS>/16","nextHop":"<IP_ADDRESS>"},{"dest":"<IP_ADDRESS>/16","nextHop":"<IP_ADDRESS>"},{"dest":"fd00:10:244::/48","nextHop":"fd00:10:244:3::1"},{"dest":"fd98::/64","nextHop":"fd00:10:244:3::1"}],"role":"infrastructure-locked"},"poc1/l2":{"ip_addresses":["<IP_ADDRESS>/24","2014:100:200::3/60"],"mac_address":"0a:58:0a:64:c8:03","gateway_ips":["<IP_ADDRESS>","2014:100:200::1"],"routes":[{"dest":"<IP_ADDRESS>/16","nextHop":"<IP_ADDRESS>"},{"dest":"<IP_ADDRESS>/16","nextHop":"<IP_ADDRESS>"},{"dest":"fd00:10:96::/112","nextHop":"2014:100:200::1"},{"dest":"fd99::/64","nextHop":"2014:100:200::1"}],"ipv6_lla_gateway_ip":"fe80::858:64ff:fe41:4","tunnel_id":6,"role":"primary"}}'

Closing, @oshoval is going to continue this with

https://github.com/ovn-kubernetes/ovn-kubernetes/pull/4878


Define routers.

We need the next endpoints.
GET /clients  -> controller: user.list(query)
GET /clients/id  -> controller: user.getOneById(id)
GET /client/id/policies  -> controller: policies.listByClientId(id)
GET /policies/id -> controller: policies.getOneById(id)
GET /policies/id/client -> controller: policies.list(query)

We could create one controller and use in both entities(Client and Policies). But it would be easier to maintain the code having two separated controller, each with its functionality.


Cannot npm install without numerous errors

Is anyone else not able to npm install without running into several depreciated/missing dependencies? How do you get this to work properly?

How you used npm install?

Inside of AdminLTE's root folder (beside the package.json)?
or did you run npm install admin-lte?

I think the package.json is for the compiling that almasaeed2010 does on every release.
PS: I get no errors on npm install with node v6.9.5 and npm v3.10.10 on Win10 x64


Error: unexpected keyword

Describe the bug
Anesthetic returns an error (TypeError: init() got an unexpected keyword argument 'weights') when I run the Pypolychord test (Pypolychord runs correctly):
...
Last dead point: [-6.03521300e-03  8.31415451e-03  3.92729305e-03 -4.99459568e-03
1.45918578e-04  5.48273830e+00  5.52729031e+00]

|                                                    |
| ndead  =         3285                              |
| log(Z) =           -2.99019 +/-            0.18190 |
|____________________________________________________|
Traceback (most recent call last):
File "run_pypolychord.py", line 63, in
fig, axes = samples.plot_2d(['p0','p1','p2','p3','r'])
File "/pbs/home/i/idebono/.local/lib/python3.6/site-packages/anesthetic-1.3.2-py3.6.egg/anesthetic/samples.py", line 357, in plot_2d
File "/pbs/home/i/idebono/.local/lib/python3.6/site-packages/anesthetic-1.3.2-py3.6.egg/anesthetic/samples.py", line 166, in plot
File "/pbs/home/i/idebono/.local/lib/python3.6/site-packages/anesthetic-1.3.2-py3.6.egg/anesthetic/plot.py", line 327, in kde_plot_1d
TypeError: init() got an unexpected keyword argument 'weights'
To Reproduce
PolyChordLite]$ python run_pypolychord.py

I believe this might have to do with an outdated scipy. Which version of scipy are you running, @ivandebono?

Version 1.1.0.

Yes, anesthetic requires now minimum scipy version 1.2.0. @williamjameshandley we should add this to anesthetic's requirements.

@ivandebono which version of matplotlib are you running?

Ah, you're fast. I updated to version 3.2.2 and now it works without a hitch.

Great! :)


Portfolio is not scale to view

The portfolio overview is not present the percentage of the balance

In new design we'll remove this chart


Docker File for ROS 1 case study

Hello,
Do we have a Dockerfile setup for the ROS 1 case study? We have a docker file for other cases but not on ROS 1.
And a minor issue on the main ReadMe file is that hyperlinks for the Robot Operating system and TurtleBot 3 are mixed up. ROS 1 routes to TurtleBot 3 page and TurtleBot 3 routes to ROS 1 page.

Do we have a Dockerfile setup for the ROS 1 case study? We have a docker file for other cases but not on ROS 1.

See https://github.com/vmayoral/robot_hacking_manual/tree/master/1_case_studies/4_ros

And a minor issue on the main ReadMe file is that hyperlinks for the Robot Operating system and TurtleBot 3 are mixed up. ROS 1 routes to TurtleBot 3 page and TurtleBot 3 routes to ROS 1 page.

Can you please send a Pull Request fixing this?

For ROS 2 case study example, the docker file is provided: https://github.com/vmayoral/robot_hacking_manual/blob/master/1_case_studies/2_ros2/Dockerfile
But docker file for ROS 1 is empty:
https://github.com/vmayoral/robot_hacking_manual/blob/master/1_case_studies/4_ros/Dockerfile

Done for sending pull request on ReadMe file

Done for sending pull request on ReadMe file

Thanks for #3.

But docker file for ROS 1 is empty:
https://github.com/vmayoral/robot_hacking_manual/blob/master/1_case_studies/4_ros/Dockerfile

Very true. I might've missed that while disclosing stuff. Official Docker images should do (nothing fancy in the setup there, unless you want to install additional tools to play around). Having a Docker image starting with
FROM ros:melodic

or similar (depending on which version you'd like to pentest) would do.

I am running this case study on my local machine. But the reception rate is not affected at all. I am running the roscore, a talker, and a listener along with the python script for fin ack attack, and set the iface to "ens33" which I am using for my ROS master.
And do you still have a copy of the docker file or image so I test it over there and see if the reception rate has changed?

Dockerfile is trivial for this particular case study. What you seem to be looking is consulting help. Closing this ticket as the original issue has been addressed.
The particular example you're referring to was life-demonstrated at https://www.youtube.com/watch?v=jo_L9Ra8UqU and various other talks. Docker networking is hard, make sure you're getting it right. If you need consulting help, reach out Alias Robotics for professional help.


Documentation does not indicate default ebook storage locations

When moving computers or doing backups, where should the user look for EPUB files? The documentation does not indicate default ebook storage locations.

Many thanks for pointing this.
Proposed change:

A book can be added to the library by opening it with Thorium
from Windows Explorer or by importing it with the
Import Book button.
When a book is imported, it is copied and prepared in a reserved folder

located in a publications subfolder of the EDRLab.ThoriumReader folder. The location of this folder may vary depending on the operating system and may be placed in a hidden folder, you will need to activate display hidden files option to find it.

Hello, as Gautier said, the full filesystem path that leads to EDRLab.ThoriumReader depends on the operating system.

Windows: %APPDATA%
Linux: $XDG_CONFIG_HOME or ~/.config
Mac: ~/Library/Application Support

Technical reference (because Thorium is an Electron app):
https://www.electronjs.org/docs/latest/api/app#appgetpathname

This is related to discussion Feature request: make storage location customisable or add support for cloud storage #1764.
Proposed amended change:
located in a publications subfolder of the EDRLab.ThoriumReader folder. The location of this folder may vary depending on the operating system and may be placed in a hidden folder, you will need to activate display hidden files option to find it. Keep in mind that this folder is sensitive because linked to Thorium bookshelf database. For backups or moving from one computer to another, use the Export button from the book menu. We hope soon to propose an option to export all titles.


when i'm run training

Traceback (most recent call last):
File "train.py", line 51, in
from object_detection.builders import model_builder
File "C:\Users\ektav\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\builders\model_builder.py", line 31, in
from object_detection.models import faster_rcnn_inception_resnet_v2_feature_extractor as frcnn_inc_res
File "C:\Users\ektav\Anaconda3\envs\tensorflow1\lib\site-packages\object_detection-0.1-py3.5.egg\object_detection\models\faster_rcnn_inception_resnet_v2_feature_extractor.py", line 28, in
from nets import inception_resnet_v2
ImportError: No module named 'nets'

it's not working

I created a virtual environment tensorflow1 according to the tutorial, and then encountered a lot of errors, just like you. Then I created it directly in the Anaconda boot environment and it succeeded.

anaconda boot environment is already set during installation..
but it's not working

Is it working properly in your boot environment? If not, checking your CPU, tensorflow 1.6.0 or later does not support old CPU.Try to install the tensorflow 1.5.0.

Successfully installed setuptools-39.1.0 tensorflow-1.10.0

its seems that the pre-trained model haven't copied in object-detection folder.
download a pre-trained model in model zoo page and extract it in object-detection folder.
cheers...

it's done and when i 'm configure my training data it's run properly but
when i am jump on next step i.e when i am run
python train.py --logtostderr --train_dir=training/
--pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
this command it show error
On Thu, Aug 16, 2018 at 2:41 PM, nima farhadi<EMAIL_ADDRESS>wrote:

its seems that the pre-trained model haven't copied in object-detection
folder.
download a pre-trained model in model zoo page and extract it in
object-detection folder.
cheers...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10/issues/119#issuecomment-413478869,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Am2AeVGWp4JpsLFP1Ulse_9ZQxLfLoP6ks5uRTdWgaJpZM4V5C_a
.


Create a task to compute prime numbers

Let's show the world that we can boot AND compute digits of Pi with our incredible multitasking system.
Originally posted by @Kfeavel in https://github.com/panix-os/Panix/issues/153#issuecomment-751810595

We're actually going to compute prime numbers since they're cooler


[v2] Switching tabs using cmd/ctrl + 1 / 2 / 3 / etc

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

Issue

In v2 it's not possible to switch tabs using cmd/ctrl + 1 / 2 / 3 / etc

Have you tried replicating this behavior with dev tools open?
For what it's worth, these commands work fine on my current system.

@h93xV2 yep I did try all cases, @chabou mentioned he knows what's causing it, so he'll have a look 👍

I have the same issue on Canary (macOS Sierra). The shortcuts were working fine before updating to Canary. Seems related to #2279

@oliverjam What is your keyboard layout?
It should be definelty fixed in v2.1.0 canary 🤔
What is your canary version?

@chabou It's indeed fixed 👌

@chabou Apologies, for some reason my Hyper was out-of-date. Just manually updated and this is fixed 👍


Refresh the list of proxies during scraping

Hello
i find the load of the list of proxies in from_crawler  (middleware.py) : the load is in a constructor of object.
i read this in a good site of scraping : " ...write some code that would automatically pick up and refresh the proxy list you use for scraping with working IP addresses. This will save you a lot of time and frustration."
i wish change dynamically the list of proxie or complete it during the scraping. i think : il is a goog feature.
Best Regards.
(sorry for my english ...)

Hello! If I understand it correctly, you want to dynamically load some proxy lists from the internet to always have the latest proxies.
Anyway, what you can do is defining a custom middleware and custom proxies class:
from rotating_proxies.middlewares import RotatingProxyMiddleware
from rotating_proxies.expire import Proxies
from twisted.internet import task

class CustomRotatingProxiesMiddleware(RotatingProxyMiddleware):

    @classmethod
    def from_crawler(cls, crawler):
        mw = super(CustomRotatingProxiesMiddleware, cls).from_crawler(crawler)
        # Substitute standart `proxies` object with a custom one
        mw.proxies = CustomProxies(mw.cleanup_proxy_list(proxy_list), backoff=mw.proxies.backoff)

        # Connect `proxies` to engine signals in order to start and stop looping task
        crawler.signals.connect(mw.proxies.engine_started, signal=signals.engine_started)
        crawler.signals.connect(mw.proxies.engine_stopped, signal=signals.engine_stopped)
        return mw

class CustomProxies(Proxies):

    def engine_started(self):
        """ Create a task for updating proxies every hour """
        self.task = task.LoopingCall(self.update_proxies)
        self.task.start(3600, now=True)

    def engine_stopped(self):
        if self.task.running:
            self.task.stop()

    def update_proxies(self):
        new_proxies = ...  # fetch proxies from wherever you want
        for proxy in new_proxy_list:
            self.add(proxy)

    def add(self, proxy):
        """ Add a proxy to the proxy list """
        if proxy in self.proxies:
            logger.warn("Proxy <%s> is already in proxies list" % proxy)
            return

        hostport = extract_proxy_hostport(proxy)
        self.proxies[proxy] = ProxyState()
        self.proxies_by_hostport[hostport] = proxy
        self.unchecked.add(proxy)

In settings.py do you simply replace 'rotating_proxies.middlewares.RotatingProxyMiddleware' with 'JungleKing.middlewares.CustomRotatingProxiesMiddleware' and how about the settings.py options?

In settings.py do you simply replace 'rotating_proxies.middlewares.RotatingProxyMiddleware' with 'YourProject.middlewares.CustomRotatingProxiesMiddleware' and how about the settings.py options?

@victor-wyk I think replacing the original middleware with the custom one should do the work.

Thanks for the quick response. I did some fiddling and found out that after replacing with the custom one, you do have to supply the ROTATING_PROXY_LIST option with a list of proxies, or else the custom one would not run. How to solve the issue?

@victor-wyk when you run the spider, do you see the CustomRotatingProxiesMiddleware in the list logged after [scrapy.middleware] INFO: Enabled downloader middlewares:?

@StasDeep I do, only if i include the ROTATING_PROXY_LIST as shown above. If i get rid of the option then it does not appear.

@victor-wyk but what goes wrong then? As in, what's expected and what's actual?

Hi, How can I to remove old proxies?, I use discard function and add function for add new proxies, all work correctly, but after requests/min are very low. For example, with 50 good proxies my requests/min are 20 per second. Before to refresh list the rate is 800 requests/min. Is normal this?

I am facing the same problem when it comes to using dynamic changing the proxy list while scraping.
can you tell me what is the proxy list in the --> cleanup_proxy_list(proxy_list).

I get an NameError: name 'proxy_list' is not defined when implementing that custom middleware. Also new_proxy_list, logger, extract_proxy_hostport, and ProxyState are all not defined... @StasDeep

I am facing the same problem when it comes to using dynamic changing the proxy list while scraping.
can you tell me what is the proxy list in the --> cleanup_proxy_list(proxy_list).
@StasDeep

@Kamranbarlas
basically you have to override the from_crawler method in your custom class and then just set proxy list to whatever you want.
from the source proxy_list :
 @classmethod
    def from_crawler(cls, crawler):
        s = crawler.settings
        proxy_path = s.get('ROTATING_PROXY_LIST_PATH', None)
        if proxy_path is not None:
            with codecs.open(proxy_path, 'r', encoding='utf8') as f:
                proxy_list = [line.strip() for line in f if line.strip()]
        else:
            proxy_list = s.getlist('ROTATING_PROXY_LIST')
        if not proxy_list:
            raise NotConfigured()
        mw = cls(
            proxy_list=proxy_list,
            logstats_interval=s.getfloat('ROTATING_PROXY_LOGSTATS_INTERVAL', 30),
            stop_if_no_proxies=s.getbool('ROTATING_PROXY_CLOSE_SPIDER', False),
            max_proxies_to_try=s.getint('ROTATING_PROXY_PAGE_RETRY_TIMES', 5),
            backoff_base=s.getfloat('ROTATING_PROXY_BACKOFF_BASE', 300),
            backoff_cap=s.getfloat('ROTATING_PROXY_BACKOFF_CAP', 3600),
            crawler=crawler,
        )
        crawler.signals.connect(mw.engine_started,
                                signal=signals.engine_started)
        crawler.signals.connect(mw.engine_stopped,
                                signal=signals.engine_stopped)
        return mw
        ```


Bitbucket.org

Hi.
Im trying to use this with bitbucket.org can you advise how to do this please?
Thanks

@jhallam3 this project was developed uniquely with BitBucket Server in mind (on-premises version of BitBucket). Even though the API might be similar, the current implementation  would have to be thoroughly tested. To begin with we need to ensure how to handle authentication. Unfortunately, I don't have time to dedicate to this project, but I will consider and review pull-requests or any documentation to can help with your case.


Support arbitrary custom event parameters and mapping

At the moment the parameters for custom events must be strings. However we wish to loosen this restriction. For now we wish to allow arbitrary parameters, with the proviso that the data must be amenable to JSON.stringify.
On the server side the mapping DSL will be extended to allow values to be extracted from the JSON representation of the parameters.
As a practical matter, for now the custom parameters will be sent as JSON to the server. The current mechanism for this encodes data as GET query parameters, which means that large amounts of data will not work. (In practice, total URL size is limited to just over 2K.)

Resolved by pull request #96.


[Bug] TouchEffect.NativeAnimation prevents tap to be passed to child elements

Description
TouchEffect.NativeAnimation prevents tap to be passed to child elements (see gifs bellow)
Stack Trace
N/A
Link to Reproduction Sample

Steps to Reproduce

Add NativeAnimation to StackLayout and add a button inside it
Press a button

Expected Behavior
ButtonPressed command is executed
Actual Behavior
Nothing happens
Basic Information

Version with issue: 1.3.1
Last known good version: -
IDE:
Platform Target Frameworks:

Android: 11

Android Support Library Version:
Nuget Packages:
Affected Devices:

Workaround
None
Reproduction imagery

@AndreiMisiukevich, found another one 😅
Trying to use CollectionView instead of ListView, and this bug really prevents me from doing that

@maxkoshevoi feel free to fix that ;)

but actually you can try to set ShouldMakeChildrenInputTransparent equal False

but actually you can try to set ShouldMakeChildrenInputTransparent equal False

Thanks Andrei, in my opinion, ShouldMakeChildrenInputTransparent would be by default at False 🙂


Compile-time errors in SDK on empty lwipopts.h

Compiling an example from pico-examples with empty lwipopts.h results in compile time errors:
In file included from .../pico-sdk/src/rp2_common/pico_cyw43_arch/include/pico/cyw43_arch.h:16,
                 from .../main.c:8:
.../pico-sdk/lib/cyw43-driver/src/cyw43.h:118:17: error: field 'dhcp_client' has incomplete type
  118 |     struct dhcp dhcp_client;

The surrounding code:
    #if CYW43_LWIP
    // lwIP data
    struct netif netif[2];
    struct dhcp dhcp_client;
    #endif

In lwIP dhcp.h we find this:
#if LWIP_DHCP /* don't build if not configured for use in lwipopts.h */

The particular error is also triggered by having option LWIP_DHCP 0.
Expected behavior: Empty lwipopts.h being a feasible default for any project using the SDK. Instead I naively copy the many opts used by the examples to get started.
Suggested fix: From the looks of it some sections of the code should simply be suppressed similarly to how lwIP does it. Unclear whether padding is needed for binary compatibility should e.g. dhcp be disabled.
Observed on commit 2e6142b15b8a75c1227dd3edbe839193b2bf9041, tag 1.4.0.

Sounds like a duplicate of this https://github.com/georgerobotics/cyw43-driver/pull/49/commits/4be372ccf234e3ff4d790d92ec96b21ae1497ea8
It was merged a few days ago and will probably make it into the next sdk release.

I don't think somewhere along the way we've fixed the pico-sdk issues. And updating the cyw43-driver will fix almost all the remaining issues.
Depending on what you're doing, you'll probably have to define NO_SYS and when NO_SYS=0 lwip will complain unless you set the following...
#define NO_SYS 1
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0
For free rtos you will get away with only defining the following. Maybe we should be defining this as we include sys/time.h in cc.h?
#define LWIP_TIMEVAL_PRIVATE 0
There's a final bug in the driver calling netif_set_hostname when LWIP_NETIF_HOSTNAME=0 which is the default.

Closing this as fixed (on develop) as I don't think it's feasible to do any more work (defining LWIP_TIMEVAL_PRIVATE would cause problems for existing code?)


Reference QuantConnect.Engine nuget instead of local Lean clone

The intention of the toolset is to extend use of a local clone of the Lean source code. In fact this project pre-dates the first publish of the QuantConnnect nuget by a few years, which is how it comes to be that way.  It's expected users will already have a familiarity with some of the config and logging options of Lean when coming to the optimization tools.
However, some would prefer to pull, build and restore and be ready to run. It's worth considering compelling reasons for/against switching to the official package or a dedicated optimization package.
For one thing I don't know if the official QC Engine nuget references every Lean library that you might like to use in your algorithms or that the Optimization depends on.
For another, I personally choose to make minor tweaks to the Lean source, such as disable some of the logging and timeouts which could not be done with the official nuget.

Thanks James.
Great work


OCPBUGS-26435,OCPBUGS-26436: CVE-2023-45142,CVE-2023-47108: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.46.1

This is manual cherry-pick of
https://github.com/openshift/azure-disk-csi-driver/pull/68
https://github.com/openshift/azure-disk-csi-driver/pull/66
@openshift/storage

/label backport-risk-assessed

/close
we've decided not to fix 4.14.z and wait for 4.15 GA instead. The amount of dependency changes is too big to be safe for a z-stream and moderate CVE.


vm list-ip-addresses: should output more field information

We are cherry-picking a few fields which become a bit limited with service end keeps on introducing more information, particularly the availability zone

Hello @yugangw-msft @williexu what other fields do you think should be added aside from availability zone?


hostaliases doesn't work

K8S: 1.21.5
Spark-Operator:  spark-operator-chart-1.1.14
config like that:
hostAliases:

ip: x.x.x.x
hostnames:
- xxx.xxx.com

I run : kubectl exec -it xx-driver  -- cat /etc/hosts
I can't find hosts that I addad.

I can confirm this

pull the latest docker image works fine
docker pull ghcr.io/googlecloudplatform/spark-operator:v1beta2-1.3.7-3.1.1
https://github.com/googlecloudplatform/spark-on-k8s-operator/pkgs/container/spark-operator/23862829?tag=v1beta2-1.3.7-3.1.1

enable the webhook and pull the latest docker image works fine https://github.com/googlecloudplatform/spark-on-k8s-operator/pkgs/container/spark-operator/23862829?tag=v1beta2-1.3.7-3.1.1

can you please tell what do you mean by enabling webhook

enable the webhook and pull the latest docker image works fine https://github.com/googlecloudplatform/spark-on-k8s-operator/pkgs/container/spark-operator/23862829?tag=v1beta2-1.3.7-3.1.1

@sawyerwu can you please tell what do you mean by enabling webhook

@mohdmsl install the spark-operator by manifest/spark-operator-with-webhook-install instead of manifest/spark-operator-install


azure-cosmos Readme and Samples Issues

Section link:

Suggestion:
Remove an extra 'your'.
2.
Section link:

Suggestion:
Remove 'PartitionKey' and 'exceptions', because this code snippet not use them.
3.
Section link:

Reason:
This code snippet is incomplete. The same problem in other code snippets, such as Create a container , Get an existing container ,and so on.
Suggestion:
from azure.cosmos import CosmosClient, exceptions
import os

url = os.environ['ACCOUNT_URI']
key = os.environ['ACCOUNT_KEY']
client = CosmosClient(url, credential=key)
database_name = 'testDatabase'
try:
    database = client.create_database(database_name)
except exceptions.CosmosResourceExistsError:
    database = client.get_database_client(database_name)

Section link:

Reason:
Variable names is inconsistent.
Suggestion:
Update 'database_client' to 'database'
Update 'container_client' to 'container'.

Section Link:

Reason:
To set productModel = "DISCONTINUED" and  partition_key='Pager', it's not easy for beginners to understand. Because there is no item of this type created above.
Suggestion:
for item in container.query_items(query='SELECT * FROM products p WHERE p.productModel = "Model 2"',enable_cross_partition_query=True):
    container.delete_item(item, partition_key='Widget')

Section link:

Suggestion:
Add ')' at the end of the sentence.
7.
Script link:

Reason:
AttributeError: 'dict' object has no attribute 'id'
Suggestion:
Update "container.id" to "container['id']".
8.
Script link:

Suggestion:
Update 'conflictCount' to 'conflict_count'.
9.
Script link:
There are the same problems in this script on the following lines: Line 209, Line 247, Line 275,
Line 315, Line 411, Line 482.

Suggestion:
Remove extra ';' at the end of the sentence.

Thanks @v-xuto, //cc: @southpolesteve and @annatisch

@jongio , notification of this issue.

Thanks @v-xuto!

I still get error from the sample:
AttributeError: 'dict' object has no attribute 'query_items'
From:
        for item in container.query_items(query=QSQL, enable_cross_partition_query=True):
            print(json.dumps(item, indent=True))

when using QSQL with:
SELECT list.id, list.name FROM c
   JOIN configuration IN c.configuration
   JOIN list IN configuration.list
WHERE c.id = "documentTypes"'

In addition I get another error:
ResourceWarning: unclosed <ssl.SSLSocket fd=324, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM

@eabase Hello, we can't repro your error. Can you provide us with more code details:

What I wonder is why your container is a dict rather than a containerproxy object?
Did the version of azure-cosmos package you used is 4.2.0?
Can you provide us with a simple data instance you insert through the container.upsert_item() method?

For the another warning error, maybe you can ignore the relevant warnings through the warnings library.
import warnings
warnings.simplefilter("ignore", ResourceWarning)

@AFengKK
Ah! Yes, I resolved it. The first error was due to a name space pollution from a previously itemized container variable. So please disregard.
For the 2nd problem, thanks for the work around idea.
(Still would be interesting why these SSL errors occur.)


New implementations on fast/slow learner problems

To do:

Still working on the fast/slow memory problems, existing some problems on data labeling.
More work on the GP_memory script needs to be done...

To reproduce the result:

Run data preprocessing: Data Preprocessing/dataCleaning.ipynb ==> Data Preprocessing/dataCollection.ipynb
Run data collection for time series data ==> GP_model/ts_dataCollection_learner.ipynb
Run data preparation for time series data ==> GP_model/ts_dataPreparation _learner.ipynb
Run the GPC model for learner problem ==> GP_model/gp _learner.ipynb

in ts_dataCollection_learner.ipynb.
The code in line 37 only seem to work only for one farm, generalising it would allow us to rerun the script on multiple farms as we accumulate longer data series and add more farms manually. I hope to do this in January and having the code ready for this would save a lot of time. Basically we will add data from September to January and two more farms.
Also, how is good or bad memory defined?
@TKlingstrom
That part of the data chunk is only a prototype for initial analysis. You can see the generalized implementation in the memory script, and I wrap this part into an executable function.

For the good/bad memory problem, the good news is I have initial results based on the method I discussed with Salman at the last meeting. But the result needs to be fine-tuned (e.g. feature selection and kernel parameters).
I will push new commits later next week. These days I have to write my thesis project specification and writing material.

This branch needs more commits before merging into the main branch.🎯

After everything is settled, I will transform these IPython files into executable python scripts.


Where is the demo file?

I cannot find a folder named demo and the script gradio_web_server_multi.py when following the instructions in README

Hi, thank you for reporting this. The file was located in the demo folder and was mistakenly added to the .gitignore. The issue should now be resolved.


[Question]: Can devbox support GNU Guix as a backend store instead of Nix?

Hi Devbox team,
I recently came across devbox and decided to give it a try. I'm curious to know if it's possible to use devbox to install packages from Guix instead of Nix. Since I'm already using Guix and I would prefer not to install Nix alongside because of lack of disk, you know it :(
This is just a question, but it would be great if devbox could eventually support multiple backend stores, allowing users to choose their preferred option.
Thanks!

Thank you very much. I will research more.
Have a nice day, @mohsenari

But we're working on allowing installation of github repositories as packages even if they're not a nix package.

@mohsenari perhaps https://github.com/aquaproj/aqua is something you could add as "registry" backend.


compiling for arm help

I am trying to compile an image for a router with identical hardware to tplink-archer-c5-v2 or linksys-ea6200 and i can't find any instructions i tried a couple of times but no luck Thanks for the help

Could you explain what exactly have you tried and what kind of issues you ran into?

it was my mistake

thanks for the reply

submitted to the wrong repo sorry


Add formatted_to_msgpack_binary? to Output plugin API. fix #1538

@mururu Could you also check this patch?

@repeatedly sure.

This test case is better to add tests for :custom and :old_custom?
https://github.com/fluent/fluentd/pull/1547/files#diff-9b239225006e1bf484998d3e72b28704R338

You are right. I just changed test case.

LGTM

Thx!


Campaigns not displayed in the dashboard

The campaigns aren't loaded in the "Your campaigns" box in the dashboard.
This is another problem coming from the sequelize upgrade.
The fix might be the exact same as the issue #149

This issue was resolved by the downgrade of sequelize. #152


Wish to enhance it

Good plugin with useful features.
And I wish to enhance it with some more feature for convenience, may I?

Of course, what do you want to enhance ?

Plan as bellow:

allow count of subdir
allow more format output, like csv (data only)
enhance the output style (may output with more types of details)

How do you think about it?

allow count of subdir
//This is supported. glob pattren configution.
"LineCount.includes": [
".cpp",     //only workspace rootpath cpp files.
"**/.cpp"  //include subdir cpp files.
],
allow more format output, like csv (data only)
//I wanted to output the CSV, markdown, HTML type,you can do it, or I'll do it later.
enhance the output style (may output with more types of details)
//You can do it, but don't increase the difficulty of configuration.

md and csv output completed.
Maybe we need to talk about the output method implement - use vscode edit or file output.
Furthermore, I send PR for you and details in it.

Output CSV file no content.
I think use file output  for csv type and  not open.
md file use vscode edit  and display in preview mode.
exec command : vscode.commands.executeCommand("markdown.showPreview");

Good, I will fix it.
This comes from the use of vscode editor but file output.
I have refactored the functions so we can change it easily.
PR maybe today or tomorrow.

Should we keep the older data in CSV and MD?
Or we just output newest only?

Keep the older data for CSV.
MD  just output newest, open in preview only.
What do you think?

@yycalm may you pls publish the new version?
So we can use the new functions.
And pls do a double check for the code if it is possible.

@nccnm Sort function has been added， can sort by file name, code, comment, blank and total lines.
update to 0.1.7 version.

@FFengIll A new version has been released.

@nccnm hi, we have supported csv as output, so plz think to use csv to do some more spec operations, like sort or filter.
How do you think about it?


Added Bulgarian

 You should sign our Contributor License Agreement in order to get your pull request merged.

Thank you for your interest in contributing to Numsense. This pull request looks promising :+1:
When I run the build script, however, I get the following test failure:
    Ploeh.Numsense.NumeralProperties.negative Bulgarian is the inverse of positive Bulgarian [FAIL]
      FsCheck.Xunit.PropertyFailedException :
      Falsifiable, after 1 test (0 shrinks) (StdGen<PHONE_NUMBER>,296111242)):
      Original:
      1

      ---- Swensen.Unquote.AssertionFailedException : Test failed:

      "minus ????" = "????? ????"
      false

      Stack Trace:

        ----- Inner Stack Trace -----
        Numsense.UnitTests\NumeralProperties.fs(19,0): at Ploeh.Numsense.NumeralProperties.negative Bulgarian is the inverse of positive Bulgarian@13.Invoke(Unit unitVar)
           at System.Lazy`1.CreateValue()
           at System.Lazy`1.LazyInitValue()
           at FsCheck.Testable.Prop.safeForce[a](Lazy`1 body)

I suspect that the question marks (????) appear because my console (Git Bash) can't render the Bulgarian characters, but if I understand the failure, it's because the assertion expects "minus", but gets something like "минус".

Fixed, sorry about that.

It builds and runs all tests without warnings on my machine, so from a technical perspective I think we're good to go :+1:
As I don't read Bulgarian, I'd like someone who does to review that part of it, if at all possible. I don't expect any errors, but it's always good with a second pair of eyes :smile:

I solicited a review on Twitter: https://twitter.com/ploeh/status/693835670977118209
Please retweet and spread the word :smile:

Merged with upstream.

I suppose we can consider no objections for 21 days as a passed review :smile:
Thank you for your contribution! It's now live as Numsense 0.10.0.


Nominatim 3.7

This is very much work in progress but I thought I put this up here nevertheless so that we can take a look at it together:
Things that need testing:

[x] Updates
[x] Postcode imports
[x] Wikipedia imports

Fixes #197

I think I'm done with the first version and would appreciate a review.
3.7 has separated the the project directory from the binary directory, introduced simpler way of configuring and added a new command line tool called nominatim replacing the previous salad of PHP commands.

By the way, since I download the tarball and don't clone the git repository anymore the country_grid file doesn't need to be separately downloaded.

Awesome work @leonardehrenfried ! Thanks a lot.
One last thing for discussion before we merge. With 3.7 the Nominatim team introduced a migration tool (https://nominatim.org/release-docs/latest/admin/Migration/#database-migrations). Do we want to integrate a sudo -u nominatim nominatim admin --migrate in our start.sh or just document it in the README.md (@mtmail any thoughts on that?)

Personally, I re-import quite frequently so I probably wouldn't use such a tool but others might.
My gut feeling is that since the migration can take a while I wouldn't do it automatically.
I'm interested in hearing other people's feedback.

I'd keep the migration separate. It's currently not possible to check the Nominatim version. Some migration steps can indeed take hours.


Module file

I'm sorry, please tell me where is the "Dynamic Aggregation Module"?
Looking forward to your reply!

Hi,
The implementation of the Dynamic Aggregation module can be found in https://github.com/yumingj/C2-Matching/blob/master/mmsr/models/archs/DCNv2/dcn_v2.py, the function is DCN_sep_pre_multi_offset.
The module is then used in DynamicAggregationRestoration of https://github.com/yumingj/C2-Matching/blob/master/mmsr/models/archs/ref_restoration_arch.py.
Thanks.

Thank you!


MediaSupport.Build.registerInBoundFilter is wrong

See https://github.com/oracle/helidon/blob/fde8b42ed0b9d528b005e9453869e41b4e8476d4/media/common/src/main/java/io/helidon/media/common/MediaSupport.java#L149
        /**
         * Register a new filter on the reader context (inbound payload).
         * @param filter filter to register
         * @return this builder instance
         */
        public Builder registerInboundFilter(MessageBodyFilter filter) {
            writerContext.registerFilter(filter);
            return this;
        }

The filter should be registered on the readerContext.

This issue is not relevant anymore, we've set the filter back to the v1 style and we've removed MessageBodyWriteableContent.


RHEL9 Repos Broken

Possibly linked to #202
libnvidia-container                                                                                1.6 kB/s |  81  B     00:00
Errors during downloading metadata for repository 'libnvidia-container':

Status code: 404 for https://nvidia.github.io/libnvidia-container/stable/rhel9.0/x86_64/repodata/repomd.xml (IP: <IP_ADDRESS>)
Error: Failed to download metadata for repo 'libnvidia-container': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Hi @Sc0th. Could you provide information as to how your .repo files were generated?

Hi,
Honestly & unhelpfully I cannot remember, they have been in play for around three months , stopped working on Saturday 6th.

Can ignore this, my apologies, found a typo.


Expose icon names in core/src/icon/index.ts

Summary
What is the change?
Re-exporting icon names (e.g. infoStandardIconName) in core/src/icon/index.ts and not only @clr/core/icon/shapes/<icon>
Why should it go in Clarity?
When working in TypeScript, since the shape prop of the CdsIcon component is typed as a string, it's very easy to make a typo that goes unchecked by tsc, the test runner, etc. For example <CdsIcon shape="info-standand" />
There are 2 ways this could be addressed by the library, on the top of my head:

Change the shape prop type from string to a union type: ... | 'info-standard' | ...
Exposing icon names and recommending their usage: <CdsIcon shape={infoStandardIconName} />

Both options can be combined for maximum type safety.
The first option is how Font Awesome works (EDIT: I forgot that Font Awesome also supports the second option), for instance, and it has been helpful to us many times. But it's a bigger change in the library, and somewhat a breaking change (but if it breaks one's app, it was probably a typo). More importantly, it does not ensure that the info-standard icon was actually loaded by ClarityIcons.addIcons() so, while safer at compile time, it might still silently break at runtime.
The second option would be trivial to support here since you already expose the icon names in the shapes files, it would just be a bunch of extra exports in icon/index.ts. And it would also be completely backwards compatible, just an extra line in the doc to recommend TypeScript users to optionally use the icon name instead of the string.
I would be more than happy to open a PR if you think this is a good addition to the library.
Examples
import { ClarityIcons, infoStandardIcon, infoStandardIconName } from '@clr/core/icon';
import { CdsIcon } from '@clr/react/icon';

ClarityIcons.addIcons(infoStandardIcon);

<CdsIcon shape={infoStandardIconName} />

Workarounds
At the moment, it can be done by loading the shapes files, but it's extra (and undocumented) boilerplate that does not make it very discoverable:
import { ClarityIcons, infoStandardIcon } from '@clr/core/icon';
import { infoStandardIconName } from '@clr/core/icon/shapes/info-standard';
import { CdsIcon } from '@clr/react/icon';

ClarityIcons.addIcons(infoStandardIcon);

<CdsIcon shape={infoStandardIconName} />

Hi @astorije,
Thank you for the awesome proposal. I believe it is doable and it will definitely help with future development.
@mathisscott Can you please take a look at this one?

Thanks for your feedback, @bbogdanov!
I have opened a PR at https://github.com/vmware/clarity/pull/5337. I am currently looking at adding a blob to the documentation but figured I would open a PR as early as possible.

@astorije Thank you once again for the great contribution!

My pleasure! Do you have any sense of when it will be available in a release?

@astorije
It's merged into next so it will be released with the next 5.0 release

Perfect, thank you!


Default inputValueDeprecation to true

Is your feature request related to a problem? Please describe.
By default the URL Loader does not render deprecated inputs. This is due to the graphql plugin defaulting to not display this. However if you were to read the schema from files locally it will always load the deprecated comment. So I want to align these two.

Describe the solution you'd like
Set inputValueDeprecation to true in the load.ts file defaultSchemaLoadOptions.

Describe alternatives you've considered
Changing graphql plugin to default inputValueDeprecation to true.

Additional context

Actually this might cause issues if a client's graphql plugin version is not up to date


Wizard header area and footer border enhancement

Select one ...  (check one with "x")
[ ] bug
[ ] feature request
[x] enhancement

Description
Enhancements to the wizard structure and hierarchy.

Header area
Footer border

Documentation
Enhancement to the wizard structure to allow for a top level header area that is separated by a horizontal rule. Header spacing maintains standard 24px padding with the added horizontal rule at the bottom of the header area. Add a horizontal rule to separate the wizard controls in the footer area from the rest of the wizard content.  Footer spacing maintains 24px padding and placement within wizard content area with horizontal rule at the top of the footer area. See specs below:

@jeremydejiacomo
Weren't we looking at 18px instead of 24px? To get the spacing tighter in the wizard and modal?

@mathisscott  Addressing 18px spacing in this issue: https://github.com/vmware/clarity/issues/2194

@gnomeontherun @colinreedmiller @hippee-lee : Are these Wizard enhancements something we are considering in the near future? If so, is this something we want to drive from @clr/core and push out from that vector into @clr/angular? Or is this something we would consider implementing in the angular components first? I also want to acknowledge that UX/Design is a blocker here so our answers to those questions will be impacted by that timeline.

This request has merit but we are not currently planning to address it due to it likely requiring a design change and possible visual breaking change to implement. Our strategy with Clarity Angular is to support by addressing bugs and focus on stability, but enhancements that require changes are not going to be prioritized.
In an effort to clean up our backlog and focus our attention, I’m going to close this as likely to be resolved by upcoming implementations in Clarity Core. Please follow our development and releases to see when we release relevant components to make this possible.

This request has merit but we are not currently planning to address it due to it likely requiring a design change and possible visual breaking change to implement. Our strategy with Clarity Angular is to support by addressing bugs and focus on stability, but enhancements that require changes are not going to be prioritized.
In an effort to clean up our backlog and focus our attention, I’m going to close this as likely to be resolved by upcoming implementations in Clarity Core. Please follow our development and releases to see when we release relevant components to make this possible.


feat: add toggle ability

Added the ability to toggle the WebSocket connection so that users can "hack" the text hooker page to pause/play the timer whenever mpv's pause status is toggled.

Thanks for the PR!
I wonder if we should actually generalize this problem. People might want to listen to other events provided by mpv and also potentially control mpv through the websocket. I kind of envision mpv_websocket to be a simple websocket proxy for mpv's JSON-IPC and let the client actually handle any application logic
We currently open a websocket on the default port 6677 and stream the subtitle text to all connected clients. We can open a 2nd websocket on port 6678 and simply proxy any JSON message coming in and out of the websocket.
CC: @Renji-XD What do you think?
Regardless, I think toggling the websocket connection is useful, so we can still merge this

CC: @Renji-XD What do you think?

it is a valid use case but for me out of scope for my project. If you'll extend it to all messages on a 2nd port i'll may look into it again in the context of a new one in case i want to create a mpv browser control

CC: @Renji-XD What do you think?

it is a valid use case but for me out of scope for my project. If you'll extend it to all messages on a 2nd port i'll may look into it again in the context of a new one in case i want to create a mpv browser control page or similar in the future

Yep sounds good. Thanks for the response!


Update link to NuGet doc site.

Update links to fit to the new NuGet doc site.

@bryanmacfarlane Any interest in this? If so I can rebase otherwise I will close the PR

Take it or close it

@bryanmacfarlane Rebased and updated links to docs.microsoft.com

@keithrob and @alexmullans - can you review please?


Will this work on linux?

I plan to use this program to create a virtual camera source and outputting that to Zoom since zoom for Linux doesn't have a green-screen less-virtual background.

Also I dont have an nvidia gpu.

It should work fine on linux, but I haven't specifically tested for that. The program also only utilizes the CPU at the moment, so it shouldn't matter what GPU you have, or even if you have one.

Reopen this, it does not work, doesn't show up as an output.

"Does not work" is not an issue I can troubleshoot. A full error message, and steps to replicate, is the least amount of information that is workable.
In addition, I have been able to launch the application in the below linux environment; the issue is certainly something in your environment.
Ubuntu 20.04.1 LTS openjdk 11.0.8 2020-07-14 OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04) OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode)


[Diags QoI] Avoid premature return in checkOwnershipAttr()

This also removes some dead code, where an early assert() ensures that
'strong' is never passed into the function, but then the function later
tries to handle 'strong'.
Finally, use a switch statement for future proofing.

Testing to see if CI ignores me:
@swift-ci please smoke test

Testing to see if CI ignores me:

You should request your commit bit.
@swift-ci please smoke test


Page order not updated after sorting

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
The order of pages within a chapter is not saved when using the sort function.   The priority field in the database is not updated.   This is true of existing books and chapters as well as newly created ones.   No errors are displayed or logged.
Pages that aren't contained in a chapter sort as expected.
This seems to be the same issue as #3544 .   To follow up on unanswered questions from that issue:  Yes, I am using a user with administrative privileges.  The JSON extension is enabled.  I also added the debug line to BookSortController.php and confirmed that it is receiving the new order from the browser.
This system was upgraded from v0.29.0 to v22.03.1 in April and sorting hasn't worked since.  It was upgraded again today to v22.07.3.
Exact BookStack Version
v22.07.3
Log Content
No response
PHP Version
7.4.30
Hosting Environment
Shared hosting environment:
cPanel Version: 104.0 (build 7)
Apache Version:  2.4.54
PHP Version:  7.2.34
MySQL Version: 10.3.35-MariaDB-cll-lve
Architecture: x86_64
Operating System: linux

Hi @mrcompsci,
Where is the 7.2.34 php version coming from, is that the version of PHP being used for bookstack itself?

@ssddanbrown
I apologize for the contradiction.   The CLI reports 7.2.34 as does cPanel's "server information" page, but if I use phpinfo() on the site itself, it reports 7.4.30.

@mrcompsci Thanks for confirming. This is gonna be a bit tricky to solve other than attempting to replicate your environment directly, so you may need to bear with me to run through debugging steps.
Could you find the line highlighted here:
https://github.com/BookStackApp/BookStack/blob/1fdf854ea735bf69e1c2666d8d23f66b243d7afe/app/Http/Controllers/BookSortController.php#L61
and below it, add the following line:
dd($sortMap);

This should stop the sort action and spit out the sort data on save. On the output view, if existing, it would be helpful to expand some of the items by clicking the little arrows that should show.

@ssddanbrown  Here is the output.   I have three test pages within a chapter - Page 1A (item 1322), Page 2A (item 1323) and Page 3A (item 1324) which are currently in order 1-3.   I just tried to sort them in reverse order.
^ BookStack\Entities\Tools\BookSortMap {#1278 ▼   #mapData: array:4 [▼     0 => BookStack\Entities\Tools\BookSortMapItem {#1547 ▶}     1 => BookStack\Entities\Tools\BookSortMapItem {#1545 ▼       +id: 1324       +sort: 0       +parentChapterId: 196       +type: "page"       +parentBookId: 45     }     2 => BookStack\Entities\Tools\BookSortMapItem {#1543 ▼       +id: 1323       +sort: 1       +parentChapterId: 196       +type: "page"       +parentBookId: 45     }     3 => BookStack\Entities\Tools\BookSortMapItem {#1548 ▼       +id: 1322       +sort: 2       +parentChapterId: 196       +type: "page"       +parentBookId: 45     }   ] }

Thanks for the info @mrcompsci,
That all looks fine. I'm getting the impression that permissions may be at play here.
When you say the following:

Yes, I am using a user with administrative privileges.

Does the user have all possible role permissions assigned? And are there any permission overrides set on the content being sorted?

@ssddanbrown
This user has the Admin role and one other assigned.  The admin role has all permissions assigned.

The book I'm testing with did have custom permissions to hide it from the public, but I just tried disabling that and was still unable to sort pages.  I even tried removing it from the custom role (leaving just Admin) but that had no effect on sorting.

Okay, as a next step, could you find the following file & lines:
https://github.com/BookStackApp/BookStack/blob/1fdf854ea735bf69e1c2666d8d23f66b243d7afe/app/Entities/Tools/BookContents.php#L182-L184
Then,  before the return; line add dd('lacking permission');
This will help us determine if this is something permission related, since you're expected to have all permissions with your user setup.

Yes, it does seem to be permission related.   I received the "lacking permission" message when I tried to sort.
I confirmed again that the Admin role has all of the permissions assigned in the web interface, but perhaps something is wrong in the database?

but perhaps something is wrong in the database?

Quite possible at this stage.
As the next debug step, could you find this section:
https://github.com/BookStackApp/BookStack/blob/1fdf854ea735bf69e1c2666d8d23f66b243d7afe/app/Entities/Tools/BookContents.php#L252-L257
and, above it, add the following:
dd($hasCurrentParentPermission, $newParentInRightLocation, $hasNewParentPermission, $hasPageEditPermission, $hasDeletePermissionIfMoving, $hasCreatePermissionIfMoving);

Then report output, if existing. Should allow us to find the exact failing permission check.

$newParentInRightLocation is false:
^ true
^ false
^ true
^ true
^ true
^ true

@ssddanbrown Do you have any suggestions for troubleshooting this further?

@mrcompsci Sorry for lack of response.
Seems to be some misalignment in understanding the parent location.
Would be good to know what's going on there.
Where you placed the previous debug line, could you instead add the following:
if (!$newParentInRightLocation) {
	dd($sortMapItem, $newParent->book_id ?? false, $newBook->id ?? false);
}

@ssddanbrown
^ BookStack\Entities\Tools\BookSortMapItem {#1540 ▼
  +id: 1323
  +sort: 0
  +parentChapterId: 196
  +type: "page"
  +parentBookId: 45
}

^ "45"

^ 45

Thanks for the info @mrcompsci, interesting result.
I get the impression your environment may be using an older PHP/MySQL driver that's rarely used.
Within CPanel, do you have options for the PHP MySQL driver, or do you have mulitple options for mysql-related PHP extensions?

@ssddanbrown There are a few MySQL options in cPanel:
mysqli
mysqlnd  (enabled)
nd_mysqli  (enabled)
nd_pdo_mysql
pdo_mysql  (enabled)

nd_pdo_mysql
pdo_mysql (enabled)

Could you try swapping those around? So disable pdo_mysql and enable nd_pdo_mysql.
Then restart apache/php (if possible) and see if that fixes things.

Disabling pdo_mysql and enabling nd_pro_mysql worked.   Sorting is working properly now and it doesn't look like the change created any new issues.   I never would have guessed that the MySQL driver needed to be changed.   Thanks for your help!

Great news! Will therefore close this off.
Must admit, I didn't think the non-native driver was in use any more.
I'll keep an ear out though and, if this pops up again, maybe update the docs to specific driver version.

Finally! I was having the same issue and it took awhile to find this post as the correct solution.


feat: CI: add an option to perform ocp upgrade

Link to a successful "konflux openshift-upgrade" CI run
Description

new make target ci/test/openshift-upgrade for performing openshift upgrade to a next minor version (e.g. 4.13 -> 4.14) using a fast channel (as configured in related openshift-ci job)
also added an option to skip bootstrapping when running ci/e2e job - this will be later updated after separating bootstrap step from e2e make target

Issue ticket number and link
KONFLUX-2063
Type of change

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

How Has This Been Tested?
https://github.com/openshift/release/pull/48693
Checklist:

[X] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/lgtm

/approve


Bookmarks lost and overridden

When I create a new bookmark I sometimes have the old bookmarks clobbered and lost.
Lucky I have my squarl.bookmarks file in source control, so I can repair things manually.
For example running Squarl: Bookmark file command and answering:
No (workspace settings)
entering a description
choose a group with arrows
yes to highlight

resulted in losing all my bookmarks when the latest one was added.

This has happened multiple times on multiple machines running vscode on Mac. It is intermittent.

Thanks @abulka, I found the issue and fixed it in version v1.1.1. Let me know if this fixed the issue on your end as well.


Tests for Session Manager

Multiple Sessions

Repeat the tests for streaming receiver (other than the auto lock renewal and the reconnecting ones) in #46 when using the session manager
Reduce the maxConcurrentAcceptSessionRequests to much less than the number of messages in Queue/Subscription and ensure messages from all sessions are received

Issue moved to Azure/azure-sdk-for-js #1474 via ZenHub


[SPARK-21517][CORE] Avoid copying memory when transfer chunks remotely

What changes were proposed in this pull request?
In our production cluster,oom happens when NettyBlockRpcServer receive OpenBlocks message.The reason we observed is below:
When BlockManagerManagedBuffer call ChunkedByteBuffer#toNetty, it will use Unpooled.wrappedBuffer(ByteBuffer... buffers) which use default maxNumComponents=16 in low-level CompositeByteBuf.When our component's number is bigger than 16, it will execute consolidateIfNeeded
    int numComponents = this.components.size();
    if(numComponents > this.maxNumComponents) {
        int capacity = ((CompositeByteBuf.Component)this.components.get(numComponents - 1)).endOffset;
        ByteBuf consolidated = this.allocBuffer(capacity);

        for(int c = 0; c < numComponents; ++c) {
            CompositeByteBuf.Component c1 = (CompositeByteBuf.Component)this.components.get(c);
            ByteBuf b = c1.buf;
            consolidated.writeBytes(b);
            c1.freeIfNecessary();
        }

        CompositeByteBuf.Component var7 = new CompositeByteBuf.Component(consolidated);
        var7.endOffset = var7.length;
        this.components.clear();
        this.components.add(var7);
    }

in CompositeByteBuf which will consume some memory during buffer copy.
We can use another api Unpooled. wrappedBuffer(int maxNumComponents, ByteBuffer... buffers) to avoid this comsuming.
How was this patch tested?
Test in production cluster.

Can one of the admins verify this patch?

Can anyone help verify this?Thank too much.

IIUC, this PR avoid data copy for consolidation in netty.buffer.CompositeByteBuf.consolidateIfNeeded. I think that it is reasonable.
I have two questions to understand this change.

Where OOM happens at consoolidateIfNeeded in the original code?
Is there any downside (e.g. performance degradation) to keep many components in CompositeByteBuf?

@kiszk Thanks for your time.
Yes,you are right.
1.OOM happens at io.netty.buffer.CompositeByteBuf.allocBuffer when one executor(client) fetch blocks from an other(server) , oom happens at server side before response to client.
2.Components number depends on chunks' length.Low-level is a list,since we do not need to remove or update component in the list, i can not think of any downside in our usage.However, if we do not consolidate we can avoid copy,which will improve the performance.

Thank you. 1. makes sense since memory is allocated by 2x at that point.
While I looked at a PR for netty, I cannot understand why 16 was used.
I have another question to understand why it happens. Does this OOM occurs when any OpenBlocks message are received. Or, any specific scenario (e.g. receive a large message, a lot of multiple messages, or so on.)

@kiszk Actually, i am confused with default value 16 too.
Yes, it occurs in specific scenario.In our case, it was large size block data which caused this issue.

cc @JoshRosen

ok to test

Test build #79943 has started for PR 18723 at commit 4c576a4.

LGTM

Test build #79943 has finished for PR 18723 at commit 4c576a4.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

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

Thanks! Merging to master.

Thanks @kiszk @zsxwing


Fix: Event page responsiveness

Issue  📐

**I  have worked for #276 **

Guidelines 🔐
I accept the fact that i have followed the guidelines and have not copied the codes from around the internet

[x] Contribution Guidelines
[x] Code of Conduct

Issue to be closed 🛅

**My pull request closes #276 **

Screenshots 📷
Here are the pictures of changes that i have made 🔽
Mobile view:

Tablet view:

Hey @IAmTamal, I've made the changes.
Mobile image


Added UWP support

I added UWP support.
For this I had to move the xzing.unity.dll to the Plugins folder as UWP requires it's own dll.
UWP also does not have support for System.Threading, but does for System.Threading.Tasks so I updated Scanner to use Tasks for UWP.
I tested this on UWP, Standalone windows and WebGL.

I guess something went wrong with the dll's, let me know if I can do anything.

Thanks for your contribution, I will take a look at it later


First cut of mysql layer

This adds a mysql layer to the base image installing a zipkin database.

cc @jfeltesse-mdsol @abesto

For those curious, this doesn't use the default MySQL image as it would add a lot of time to those working on this project. None of our storage layers are intended for production, rather only to test zipkin. By putting this on top of our base, we only add tens of megs, as opposed to hundreds each time we have to pull images (like locally, in Travis release etc)

PS this works, including dependency view etc. Just waiting for feedback and will merge tomorrow.

going to adjust this once 1.17.1 is out: I accidentally worked around a problem upstream wrt table case sensitivity cc @jfeltesse-mdsol

Looks great, thanks!

ok merging and will re-cut 1.17.1


How to retrieve scalar integer result of stored procedure?

I very much like the object-oriented way of invoking a stored procedure with an object that represents the SP's arguments.
Now, I would like to invoke a stored procedure that returns an integer value using the SQL RETURN statement.
Is there any way to get that value on the C# side? The available ExecuteStoredProcedure overloads appear to be either void or return an enumeration of some entity type ... that I don't quite know how to map, given that the result is a single scalar value and would thus at best be an anonymous table with a single nameless column.

Hello @fhaag ,
My company took ownership of this library a few weeks ago to make sure it keeps being supported.
It's now possible to do something like this:
context.Database.ExecuteStoredProcedure<int>(proc_Get_EntitySimple)

As you asked, we might add eventually support to return a dynamic by default. But we are still exploring the library at this moment.
Let me know if that answers to this issue.
Best Regards,
Jon

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

Hello @fhaag ,
My company took ownership of this library a few weeks ago to make sure it keeps being supported.
It's now possible to do something like this:
context.Database.ExecuteStoredProcedure<int>(proc_Get_EntitySimple)

As you asked, we might add eventually support to return a dynamic by default. But we are still exploring the library at this moment.
Let me know if that answers to this issue.
Best Regards,
Jon
Performance Libraries context.BulkInsert(list, options => options.BatchSize = 1000);  Entity Framework Extensions • Entity Framework Classic • Bulk Operations • Dapper Plus
Runtime Evaluation Eval.Execute("x + y", new {x = 1, y = 2}); // return 3 C# Eval Function • SQL Eval Function

Does this approach really work?
public static IEnumerable<T> ExecuteStoredProcedure<T>(this DatabaseFacade database, object storedProcedure) where T : class

T should be "class".


Since Companion 3.3.1 pjlink goes into Error state after a while

Since Companion 3.3.1 the pjlink module goes into error state within few days.
Haven't had time to diagnose.
Suspecting that the module not recover from error state. Can be related to the last 2 version updates.
Epson EB-L615U

We've also had problems since the last update. Restarting the module seems to fix it but that's not a long term solution.
Our projector is a Digital Projection E-Vision lazer 10k.

I can't reproduce the problem.
If someone could start the debug log for the module (click on the '>_') and upload the log when that happens, I may be able to determine what is happening.

This may be related to the projector periodically resetting the password token.
The module has been updated to recognize this.
Re-open if still an issue.


How to disable underline for sudo and doas?

I need to disable underline for sudo and doas, how i can do that?

See ZSH_HIGHLIGHT_STYLES in the documentation of the main highlighter. That'll be precommand, I think.


[BUG]

Describe the issue:
The code runs fine for some sessions this season(Bahrain, Abu Dhabi) but shows this error for others. Any solutions would be appreciated
Reproduce the code example:
race= ff1.get_session(2022,'Imola','Qualifying')
race.load(telemetry=True)
laps_data = race.load_laps()

# Take the unique list of drivers
drivers = laps_data['Driver'].unique()

top_speed=pd.DataFrame(dtype=float)
top_speed["Driver"]=drivers

#sets driver as an index name
top_speed.set_index('Driver',inplace=True)

#loop to find topspeed of each driver
for driver in drivers:
    filter_df=laps_data[laps_data["Driver"]==driver]
    laps_drv=laps_data.pick_driver((driver))
    laps_driver=laps_drv.pick_fastest().get_telemetry().add_distance()

Error message:
Traceback (most recent call last):
  File "C:\Users\marcs\PycharmProjects\f1progs\main.py", line 33, in <module>
    laps_driver=laps_drv.pick_fastest().get_telemetry().add_distance()
  File "C:\Users\marcs\PycharmProjects\f1progs\venv\lib\site-packages\fastf1\core.py", line 2369, in get_telemetry
    pos_data = self.get_pos_data(pad=1, pad_side='both')
  File "C:\Users\marcs\PycharmProjects\f1progs\venv\lib\site-packages\fastf1\core.py", line 2411, in get_pos_data
    pos_data = self.session.pos_data[self['DriverNumber']].slice_by_lap(self, **kwargs).reset_index(drop=True)
  File "C:\Users\marcs\PycharmProjects\f1progs\venv\lib\site-packages\pandas\core\generic.py", line 5575, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'Lap' object has no attribute 'session'

Hi, thank you for reporting this. Yes, this is a bug, but you will still get an error once I fix this.
The underlying problem is, that Albon (in this specifc case) did not set a fast lap. Therefore, .pick_fastest returns an empty Lap object. This object is missing the session attribute. I'll fix that.
But you're code will still fail then, because you cannot get telemetry data for an empty lap object.
It's worth considering, whether .pick_fastest should return None here. But this still won't fix the problem really. In the end, you won't be able to chain these function calls and expect them to never throw an error.


I runed python3.8 nt.py run --scenario saw-ntn suaw-ntn
Don't really know what happened. It seems get stuck..

I rebuild the container after installing UERANSIM and free5GC. And the problem is solved.

git clone -b v0.6.8 https://github.com/free5gc/gtp5g.git
cd gtp5g
make
sudo make install