[yaml] Add examples for Spanner IO in YAML

Added examples with explanatory comments for reading from and writing to a spanner table

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

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

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

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

R: @Polber


Load multiple TensorRT graphs. Cannot add function 'TRTEngineOp_0_native_segment' error

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 1.12
Python version: 3.6.3
Bazel version (if compiling from source): 0.21.0
GCC/Compiler version (if compiling from source): 7.2.0
CUDA/cuDNN version: 9.0
GPU model and memory: 1080Ti

Describe the current behavior
I have optimized frozen graphs with tensorrt using example code from here: https://github.com/NVIDIA-AI-IOT/tf_trt_models
Everything works fine. Inference works faster.
In my project, I have multiple models. And when I try to load both optimized graphs, following error occurs: ValueError: Cannot add function 'TRTEngineOp_0_native_segment' because a different function with the same name already exists. Separately models work fine though. Even if pipeline includes only one optimized and others are non-optimized - it also works fine.
Both models are ssd_inception_v2.
Other info / logs
2019-02-07 10:56:31.606178: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-02-07 10:56:31.607938: I tensorflow/compiler/xla/service/service.cc:162] XLA service 0x55ed1968ea70 executing computations on platform Host. Devices:
2019-02-07 10:56:31.607999: I tensorflow/compiler/xla/service/service.cc:169]   StreamExecutor device (0): <undefined>, <undefined>
2019-02-07 10:56:31.612806: I tensorflow/stream_executor/platform/default/dso_loader.cc:154] successfully opened CUDA library libcuda.so.1 locally
2019-02-07 10:56:32.144695: I tensorflow/compiler/xla/service/service.cc:162] XLA service 0x55ed1973dda0 executing computations on platform CUDA. Devices:
2019-02-07 10:56:32.144755: I tensorflow/compiler/xla/service/service.cc:169]   StreamExecutor device (0): GeForce GTX 1080 Ti, Compute Capability 6.1
2019-02-07 10:56:32.145360: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1434] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582
pciBusID: 0000:17:00.0
totalMemory: 10.92GiB freeMemory: 10.76GiB
2019-02-07 10:56:32.145396: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1513] Adding visible gpu devices: 0
2019-02-07 10:56:32.257785: I tensorflow/core/common_runtime/gpu/gpu_device.cc:985] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-02-07 10:56:32.257824: I tensorflow/core/common_runtime/gpu/gpu_device.cc:991]      0
2019-02-07 10:56:32.257833: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1004] 0:   N
2019-02-07 10:56:32.258003: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1116] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10445 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:17:00.0, compute capability: 6.1)
/root/Recognizer2/weights/ssd_inception_v2_transport_feimani/inference/frozen_inference_graph.pb
2019-02-07 10:56:32.870341: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1513] Adding visible gpu devices: 0
2019-02-07 10:56:32.870395: I tensorflow/core/common_runtime/gpu/gpu_device.cc:985] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-02-07 10:56:32.870402: I tensorflow/core/common_runtime/gpu/gpu_device.cc:991]      0
2019-02-07 10:56:32.870409: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1004] 0:   N
2019-02-07 10:56:32.870562: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1116] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10445 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:17:00.0, compute capability: 6.1)
Traceback (most recent call last):
  File "/opt/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/importer.py", line 427, in import_graph_def
    graph._c_graph, serialized, options)  # pylint: disable=protected-access
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot add function 'TRTEngineOp_0_native_segment' because a different function with the same name already exists.

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

Are you satisfied with the resolution of your issue? Yes No


Issues setting configuration

The only mention of using Avro as a serializer and de-serializer is on the following section of the documentation, but the reference link does not work.
https://cloud.spring.io/spring-cloud-static/spring-cloud-stream/current/reference/html/spring-cloud-stream.html#schema-evolution
The only way to get the configuration to work is by going to Baeldung:
https://www.baeldung.com/spring-cloud-stream-kafka-avro-confluent
It's very unclear why this would work:
spring.cloud.stream.default.producer.contentType
But, the following does not:
spring.cloud.stream.kafka.default.producer.contentType
According to the Spring Cloud Stream documentation, the setting should work:
https://cloud.spring.io/spring-cloud-static/spring-cloud-stream/current/reference/html/spring-cloud-stream.html#binding-properties
I have also been completely unable to set the client ids and group ids. I have tried all of the following, and none of these work with version 3.0.2.RELEASE.
spring.cloud.stream.default.group spring.cloud.stream.default.consumer.group spring.cloud.stream.kafka.default.consumer.group spring.cloud.stream.kafka.default.consumer.configuration.group spring.cloud.stream.bindings.<channelName>.group

@bliu13 I believe you are asking this same question on Stack Overflow. I provided an update with this answer there. Please use the sample I mentioned in that answer as a baseline to identify any specific issues you are running into. I cleaned up the configuration in the sample and may look a bit different from the blog you mentioned. Point taken regarding the Avro part of the documentation, this could be certainly improved.

@sobychacko, I noticed the configuration file was indeed cleaned up and I was working to get the service started, but I was not sure where to put the URL for the Kafka brokers. The documentation specifies spring.cloud.stream.kafka.binder.brokers, but where should the this setting fit in the cleaned up layout?
I was wondering if there is a comprehensive list of configurations that we might be able to look up since I am not entirely sure where to set certain settings such as defining the Kafka Brokers url. It would be really nice if the Spring Cloud configurations were also listed on the Common Application Properties.
Also, a bunch of links on Spring Cloud Stream Binder Kafka is currently broken. The reference and api links currently lead to 404 pages.

@bliu13 You can use spring.cloud.stream.kafka.binder.brokers as another hierarchical component in the yaml provided. Under kafaka, we will have one for bindings and another for binder.
Those comprehensive list you are talking about is at the boot level. Properties exposed by the Spring for Apache Kafka project are listed there. Spring Cloud Stream is part of the spring cloud umbrella and all the properties exposed by the binder are part of the spring cloud stream docs. We can't include them at the boot level.
Please access the ref docs from this page: https://spring.io/projects/spring-cloud-stream. Go to the Learn section and access the docs there.

Since it seems like using Spring Cloud Stream with Spring Integration is deprecated, I will refrain from using it and will use the functional programming paradigm.


Multiplication in LLVM 3.9

LLVM 3.9 supports mul instruction for arbitrary precision integers. It uses the same algorithm so we should switch to LLVM if not having anything better until then.

LLVM's mul i256 produces wrong results. We should probably fix the LLVM.


Desktop pager physics

For some reason desktop and web pagers don't align with next or prev page after end of a scroll. Compose version doesn't matter. It was from the 1st version that includes pager.
It that an intended behaviour or a bug?
https://github.com/JetBrains/compose-multiplatform/assets/63979218/16947cad-ef2e-4a5b-83d6-47e431677fb7
I expect it to work like on Android/iOS:
https://github.com/JetBrains/compose-multiplatform/assets/63979218/e7004549-ba6a-4234-886a-2932f4787e99

How did you provide the input on the desktop? I guess by using a mouse wheel?
It seems that the pager implementaion is expecting some kind of a gesture (a fling, swipe, drag). The desktop's use case was not properly thought of.
Ideally, pager should never stop between two pages (by design I guess). So it's something that we can improve.

I wrote a quick very dirty workaround to achieve this behavior by listening to the scroll offset and setting up both overscroll thresholds and a coroutine timeout that will kick it back to the original page if there is no further input.
var sJob: Job? = null LaunchedEffect(pagerState) {     snapshotFlow { pagerState.currentPageOffsetFraction }.collect { offset ->         if (!pagerState.isScrollInProgress) {             if (offset==0f) {                 sJob?.cancel()             } else if (offset > 0.2f) {                 sJob?.cancel()                 pagerState.animateScrollToPage(pagerState.currentPage+1)             } else if (offset < -0.2f) {                 sJob?.cancel()                 pagerState.animateScrollToPage(pagerState.currentPage-1)             } else {                 sJob?.cancel()                 sJob = scope.launch {                     delay(500)                     pagerState.animateScrollBy((pagerHeight*offset)*-1)                 }             }         }     } }

Any update guys ?

Maybe the reason is   https://github.com/JetBrains/compose-multiplatform/issues/653

@HuixingWong Sorry, no updates yet

Also, while scrolling via Shift + Mouse wheel, PagerState#currentPage is always behind PagerState#targetPage by one, i.e. currentPage always equals to targetPage - 1.

The workaround posted above did not work well enough for me (if the automatic fling is still in progress and you try to scroll the pager, it breaks and stops adjusting automatically), but I found my own dirty fix, maybe it will help some folks here.
The first step is to detect when the user stops scrolling. Ideally it should work like the onDragStopped of the draggable Modifier.
We can try to detect stop of the scroll like this:
// common
actual fun Modifier.onScrollCancel(action: () -> Unit): Modifier
// desktop and JS
@OptIn(ExperimentalComposeUiApi::class)
actual fun Modifier.onScrollCancel(action: () -> Unit): Modifier = composed {
    var currentEventCount by remember { mutableStateOf(0) }
    LaunchedEffect(currentEventCount) {
        if (currentEventCount != 0) {
            delay(50L)
            action()
        }
    }
    return@composed onPointerEvent(PointerEventType.Scroll) {
        currentEventCount += 1
    }
}
// iOS and Android
actual fun Modifier.onScrollCancel(action: () -> Unit): Modifier = this

Then the snapping behaviour can be reproduced like this:
private var sJob: Job? = null

private var sJob: Job? = null

@OptIn(ExperimentalFoundationApi::class)
fun Modifier.desktopSnapFling(pagerState: PagerState, scrollScope: CoroutineScope) = onScrollCancel {
    val offset = pagerState.currentPageOffsetFraction
    if (!pagerState.isScrollInProgress) {
        sJob?.cancel()
        if (offset > 0.2f) {
            sJob = scrollScope.launch {
                pagerState.animateScrollToPage(pagerState.currentPage + 1)
            }
        } else if (offset < -0.2f) {
            sJob = scrollScope.launch {
                pagerState.animateScrollToPage(pagerState.currentPage - 1)
            }
        } else if (offset != 0f) {
            sJob = scrollScope.launch {
                pagerState.animateScrollToPage(pagerState.currentPage, 0f)
            }
        }
    }
}

Finally, we can apply the modifier to any composable that forms the content of the pager:
val scope = rememberCoroutineScope()
...
Image(
                    bitmap = image.imageBitmap,
                    contentDescription = "Gallery view image",
                    contentScale = ContentScale.Fit,
                    modifier = Modifier
                        .fillMaxSize()
                        .desktopSnapFling(pagerState, scope)
                )

The workaround posted above did not work well enough for me (if the automatic fling is still in progress and you try to scroll the pager, it breaks and stops adjusting automatically), but I found my own dirty fix, maybe it will help some folks here. The first step is to detect when the user stops scrolling. Ideally it should work like the onDragStopped of the draggable Modifier. We can try to detect stop of the scroll like this:
// common
actual fun Modifier.onScrollCancel(action: () -> Unit): Modifier
// desktop and JS
@OptIn(ExperimentalComposeUiApi::class)
actual fun Modifier.onScrollCancel(action: () -> Unit): Modifier = composed {
    var currentEventCount by remember { mutableStateOf(0) }
    LaunchedEffect(currentEventCount) {
        if (currentEventCount != 0) {
            delay(50L)
            action()
        }
    }
    return@composed onPointerEvent(PointerEventType.Scroll) {
        currentEventCount += 1
    }
}
// iOS and Android
actual fun Modifier.onScrollCancel(action: () -> Unit): Modifier = this

Then the snapping behaviour can be reproduced like this:
private var sJob: Job? = null

private var sJob: Job? = null

@OptIn(ExperimentalFoundationApi::class)
fun Modifier.desktopSnapFling(pagerState: PagerState, scrollScope: CoroutineScope) = onScrollCancel {
    val offset = pagerState.currentPageOffsetFraction
    if (!pagerState.isScrollInProgress) {
        sJob?.cancel()
        if (offset > 0.2f) {
            sJob = scrollScope.launch {
                pagerState.animateScrollToPage(pagerState.currentPage + 1)
            }
        } else if (offset < -0.2f) {
            sJob = scrollScope.launch {
                pagerState.animateScrollToPage(pagerState.currentPage - 1)
            }
        } else if (offset != 0f) {
            sJob = scrollScope.launch {
                pagerState.animateScrollToPage(pagerState.currentPage, 0f)
            }
        }
    }
}

Finally, we can apply the modifier to any composable that forms the content of the pager:
val scope = rememberCoroutineScope()
...
Image(
    bitmap = image.imageBitmap,
    contentDescription = "Gallery view image",
    contentScale = ContentScale.Fit,
    modifier = Modifier
        .fillMaxSize()
        .desktopSnapFling(pagerState, scope)
)

The main disadvantage of this is that the snap is based on the offset fraction and not scroll velocity. This is not in line with the mobile implementations, if I'm not mistaken.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


branch: key-events-in-phet-io

Identified by print-branches.sh. @jonathanolson please describe.

To support phetsims/phet-io#1198

Looks like this can be deleted. Perhaps we can do it as part of https://github.com/phetsims/special-ops/issues/198, as I don't want to delete branches too soon.

Deleted


How to hide window titlebar

Is there any way to hide titlebar of the window created by Cv2.ImShow()?

If your OS is Windows, I found a solution:
https://answers.opencv.org/question/33681/to-remove-opencv-title-bar/
I will add a getter of window handle to Window class by #1177. By using window handle you will be able to achieve it.
However, I would recommend using C#'s WinForm or WPF instead of highgui and Win32API.
static void Main()
{
    using var img = new Mat("foo.png");

    using var window1 = new Window("window01", image: img);
    using var window2 = new Window("window02", image: img);

    HideTitleBar(window1);
    Cv2.WaitKey();
}

static void HideTitleBar(Window window)
{
    const int GWL_STYLE = -16;
    const long WS_OVERLAPPEDWINDOW = 0x00CF0000;
    const long WS_POPUP = 0x80000000;

    var hwnd = window.GetHandle();
    var windowName = window.Name;

    // change style of the child HighGui window
    long style = GetWindowLong(hwnd, GWL_STYLE);
    style &= ~WS_OVERLAPPEDWINDOW;
    style |= WS_POPUP;
    SetWindowLong(hwnd, GWL_STYLE, style);

    // change style of the parent HighGui window
    IntPtr hParent = FindWindow(null, windowName);
    style = GetWindowLong(hParent, GWL_STYLE);
    style &= ~WS_OVERLAPPEDWINDOW;
    style |= WS_POPUP;
    SetWindowLong(hParent, GWL_STYLE, style);
}

[DllImport("user32", EntryPoint = "GetWindowLongA")]
public static extern long GetWindowLong(IntPtr hwnd, int nIndex);

[DllImport("user32", EntryPoint = "SetWindowLongA")]
public static extern long SetWindowLong(IntPtr hwnd, int nIndex, long dwNewLong);

[DllImport("user32")]
public static extern IntPtr FindWindow(string? lpClassName, string lpWindowName);

left: window01
right: window02

If your OS is Windows, I found a solution:
https://answers.opencv.org/question/33681/to-remove-opencv-title-bar/
I will add a getter of window handle to Window class by #1177. By using window handle you will be able to achieve it.
However, I would recommend using C#'s WinForm or WPF instead of highgui and Win32API.
static void Main()
{
    using var img = new Mat("foo.png");

    using var window1 = new Window("window01", image: img);
    using var window2 = new Window("window02", image: img);

    HideTitleBar(window1);
    Cv2.WaitKey();
}

static void HideTitleBar(Window window)
{
    const int GWL_STYLE = -16;
    const long WS_OVERLAPPEDWINDOW = 0x00CF0000;
    const long WS_POPUP = 0x80000000;

    var hwnd = window.GetHandle();
    var windowName = window.Name;

    // change style of the child HighGui window
    long style = GetWindowLong(hwnd, GWL_STYLE);
    style &= ~WS_OVERLAPPEDWINDOW;
    style |= WS_POPUP;
    SetWindowLong(hwnd, GWL_STYLE, style);

    // change style of the parent HighGui window
    IntPtr hParent = FindWindow(null, windowName);
    style = GetWindowLong(hParent, GWL_STYLE);
    style &= ~WS_OVERLAPPEDWINDOW;
    style |= WS_POPUP;
    SetWindowLong(hParent, GWL_STYLE, style);
}

[DllImport("user32", EntryPoint = "GetWindowLongA")]
public static extern long GetWindowLong(IntPtr hwnd, int nIndex);

[DllImport("user32", EntryPoint = "SetWindowLongA")]
public static extern long SetWindowLong(IntPtr hwnd, int nIndex, long dwNewLong);

[DllImport("user32")]
public static extern IntPtr FindWindow(string? lpClassName, string lpWindowName);

left: window01
right: window02


Where are messages marked read

I am trying to get an understanding of how messages are marked as "read".
I found this code here emits an event, but I am unable to find where the message is received and processed. Any suggestions and help is much appreciated! Thank you :)
    static async markRead(chatGuid: string): Promise<void> {
        await Server().privateApiHelper.markChatRead(chatGuid);
        await Server().emitMessage(CHAT_READ_STATUS_CHANGED, {
            chatGuid,
            read: true
        });
    }

https://github.com/BlueBubblesApp/bluebubbles-server/blob/67284b60ac9d5636e24d55c0d703b3102f2ef130/packages/server/src/server/api/v1/interfaces/chatInterface.ts#L351C45-L351C45

Marking a message as read happens within the private API helper. The server kinda just passed the message to it.
What are you trying to do/accomplish here?

I am trying to add a feature in this Mac app called 2FHey. It copies the 2FA code from text messages onto the clipboard. I would like to take it one step further and mark the message as read as well. Could you point me to the code in the private API helper where this is happening, please? Or perhaps my approach overall is flawed. Do you have a better recommendation?

Seems like what you're trying to do is a client-side feature, not a server-side feature. Or are you just trying to mark all 2FA code messages as ready automatically

This application only has a client side component. No server side
component. It listens to changes to the local iMessages DB and extracts the
2FA from the text body.
Yea, I’d like to mark all the 2FA messages as read after coping the code.

I am trying to add a feature in this Mac app called 2FHey. It copies the 2FA code from text messages onto the clipboard. I would like to take it one step further and mark the message as read as well. Could you point me to the code in the private API helper where this is happening, please? Or perhaps my approach overall is flawed. Do you have a better recommendation?

right, but i assume you want the client to copy it, not the server. so the code would all need to be on the client-side. There are APIs to call to mark chats as read

Yes the client is the one copying and marking the texts as read. Can you
point me to the code for the api calls for that please?
Thanks so much for your help!

Yes the client is the one copying and marking the texts as read. Can you point me to the code for the api calls for that please? Thanks so much for your help!

https://github.com/BlueBubblesApp/bluebubbles-app/blob/master/lib/services/network/http_service.dart#L406

Thank you! One more question, if i may. Where is the (ss.settings.serverAddress.value).origin getting set / getting retrieved from.
https://github.com/BlueBubblesApp/bluebubbles-app/blob/c27225ce21ad20dc19238bea518950025e4e2545/lib/services/network/http_service.dart#L19

Thank you! One more question, if i may. Where is the (ss.settings.serverAddress.value).origin getting set / getting retrieved from. https://github.com/BlueBubblesApp/bluebubbles-app/blob/c27225ce21ad20dc19238bea518950025e4e2545/lib/services/network/http_service.dart#L19

Why do you need to worry about where it gets set? That shouldnt be a part of your workflow for this use-case

Oh, that’s because I’m trying to replicate this in our app.

Oh, that’s because I’m trying to replicate this in our app.

and what app is this? You're trying to create a separate app to work with BlueBubbles, that is just used for copying 2FA codes?

Yeah. We already have an app called 2FHey (https://github.com/SoFriendly/2fhey/) with many users that’s quite lightweight since it’s only the client side. Trying to add functionality to that.

Yeah. We already have an app called 2FHey (https://github.com/SoFriendly/2fhey/) with many users that’s quite lightweight since it’s only the client side. Trying to add functionality to that.

Can you elaborate a bit on the arch of the app? I see the repo is a macOS app, that I assume interacts with a Browser Extension. Is that correct? So I assume you are already pulling the 2FA codes and your last task is to just mark the chat as read? I'm wondering what the server url will be used for in that use-case?
For what it's worth, marking a chat as read, is only available for users with the Private API enabled (which requires SIP to be disabled)

There's no browser extension. 2FHey reads the local chat.db [source
https://github.com/SoFriendly/2fhey/blob/3cb2a943008e66bdb3a587a7f3a4dbf01954a7e0/TwoFHey/DataManagement/MessageManager.swift#L47]
which
is where messages are stored locally. It has access to this because the app
requests full disk access during onboarding. After that's it's a matter of
polling and parsing the messages to detect a 2FA code and copy it to the
clipboard.
Perhaps I don't fully understand what the Private API is. Can you elaborate
a bit more on this and/or link me to some documentation, please?
On Fri, Jul 28, 2023 at 9:09 AM Zach Shames @.***>
wrote:

Yeah. We already have an app called 2FHey (
https://github.com/SoFriendly/2fhey/) with many users that’s quite
lightweight since it’s only the client side. Trying to add functionality to
that.
Can you elaborate a bit on the arch of the app? I see the repo is a macOS
app, that I assume interacts with a Browser Extension. Is that correct? So
I assume you are already pulling the 2FA codes and your last task is to
just mark the chat as read? I'm wondering what the server url will be used
for in that use-case?
For what it's worth, marking a chat as read, is only available for users
with the Private API enabled (which requires SIP to be disabled)
—
Reply to this email directly, view it on GitHub
https://github.com/BlueBubblesApp/bluebubbles-server/issues/552#issuecomment-1655946648,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALB7MLAJJ37MUHD4ALTKXTXSPP33ANCNFSM6AAAAAA2TPOFAA
.
You are receiving this because you authored the thread.Message ID:
@.***>

There's no browser extension. 2FHey reads the local chat.db [source] which is where messages are stored locally. It has access to this because the app requests full disk access during onboarding. After that's it's a matter of polling and parsing the messages to detect a 2FA code and copy it to the clipboard.
Perhaps I don't fully understand what the Private API is. Can you elaborate a bit more on this and/or link me to some documentation, please?

There's no browser extension. 2FHey reads the local chat.db [source] which is where messages are stored locally. It has access to this because the app requests full disk access during onboarding. After that's it's a matter of polling and parsing the messages to detect a 2FA code and copy it to the clipboard. Perhaps I don't fully understand what the Private API is. Can you elaborate a bit more on this and/or link me to some documentation, please?

Apple does not expose APIs to allow marking chats as read. Disabling SIP allows these APIs to be accessed. So the "Private API" in BlueBubbles relies on SIP to be disabled, so we can access those Private APIs to mark a chat as read.
Can you let me know what you're trying to do with BlueBubbles? Like would 2FHey rely on BlueBubbles to function in certain ways?


Task.leftShift method has been deprecated

Using gradle 3.2.1
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at maven_support_813ex0m7ph8djmjrds6nnbvir.run(/Users/ianthomas/workspace/gradle-fury-example/gradle-fury/gradle/maven-support.gradle:1951)

reopening this, there are more instances where this needs to be fixed

-Dorg.gradle.deprecation.trace=true


Sunton 2432S028R or similar to Touch not work at all

Perform all steps below and tick them with [x]

[x] Check the related part of the Documentation
[x] Update openHASP to the latest version
[x] Reproduce the issue and describe all steps

Blow developmen build esp32-2432s028r_full_4MB_v0.7.0-rc12_cd34d89.bin in.
Similar efect with Buided  from Source code via Visual Studio Code
Describe the bug
New openHASP Nightly Development Build  Sunton 2432S028R, LCD work OK , www, all working fine, but Touch not work at all. With original Firmware LVGL demo touch work OK
To Reproduce
Reprogram Board with: esp32-2432s028r_full_4MB_v0.7.0-rc12_cd34d89.bin
Expected behavior
Workin touch
Screenshots or video

2432S028R is for resistive touchreens only.

Yes and this is resistive touchscreen, chip is xpt2046, is connected courtly to pins:
TOUCH_CS=33
TOUCH_SCLK=25
TOUCH_MOSI=32
TOUCH_MISO=39
TOUCH_IRQ=36
Because i do not how to debug firmware yet, i do not know if this module was not compiled , or selected one is incorrect

any idea whay it not work ?

Hi there, in my case with the same display ID (but with usb c) and the same firmware it works. But the touch is mirrored. Maybe more as one versions of this display exist.

Have also an ESP32-2432S028 here with an additional USBC port. Apparently there are some more differences to the "original" ESP32-2432S028R

Would it be possible to create an image for upgraded HW version? Thanks!

I'm having exactly the same issues as tremichl. Is it likely anyone will be looking at this?

Might be silly but did you initiate the Display Calibration via web UI?
I just set up 2 of these and touch works fine after doing the Calibration. Did not respond to touch before that.

Might be silly but did you initiate the Display Calibration via web UI?
I just set up 2 of these and touch works fine after doing the Calibration. Did not respond to touch before that.

This fixes the no touch issue!

Same here, logged in by phone, have plate displayed on the screen; no web interface to calibrate.


Default exports are broken?

When parrot-middleware  is being used with Typescript, the default import statement for parrot-middleware fails:
import parrot from 'parrot-middleware'

TypeError: parrot_middleware_1.default is not a function

It seems as though the problem may be with how the default package is being exported here:
<EMAIL_ADDRESS>The following line:
module.exports = exports['default'];

may be causing issues because module.exports is expecting something with the following shape for default exports:
module.exports = { default: ... }

The workaround is currently:
import * as parrot from 'parrot-middleware'

I think this is due babel-plugin-add-module-exports being used in parrot-middleware's build step.  That plugin enables parrot-middleware to be used in Node without the default property:
const parrot = require('parrot-middleware');

// intead of

const parrot = require('parrot-middleware').default;

For your TypeScript build, can you try compiling with esModuleInterop set to true?  I think this issue is part of the reason the flag was added.


Handle bad Node.js version proposal.

Update bin/solidarity w/ logic for handling bad. #42
Here is an example of the message when given a bad node version:

@GantMan done.


Possible typo in Facade

on Line 319 of  Notifynder/src/Notifynder/Notifynder.php, missing s
https://github.com/fenos/Notifynder/blob/master/src/Notifynder/Notifynder.php#L319
public function dipatchWith($customSenderName);
# becomes
public function dispatchWith($customSenderName);

Is fixed and PR is open. Thanks for reporting @tristanbailey ! :)

PR is merged to master - will be in next release.

Is released - v3.2.10 - https://github.com/fenos/Notifynder/releases/tag/3.2.10


Position center screen

Hi,
My page height is around 2000px , every time when the dialog appearing on the screen it is not in the middle of screen. I need to scroll up to see the dialog content.
I am using a columnClass:'lightbox'
.lightbox{
margin: 0 auto;
width: 40%;
}
Please help me.

columnClass has to be a bootstrap layout, i have not tested this with custom classes.
Is your page 2000px in width ?

I tried this out, it seems to be working fine.

Thanks For the help.
It was actually an issue with sharepoint.


documentation to convert advanced nuspec option to csproj format

copied from https://github.com/dotnet/cli/issues/2170#issuecomment-393724157 and simplified

File inclusion
How does one add files to the nuget package using the new csproj format? For example with older nuspec files, the tools\install.ps1 is auto-run to setup a few things. As is to copy a license, readme etc.
There is some rough documentation for the file inclusion here. Should be cleaned for better presentation and clarity though.
Dependency version
Also how does one specify the dependency versions in the csproj? For example, if we want a mylibrary.nupkg. The dependency is mylibrary.dll -> mycore.dll (version <IP_ADDRESS> and above). Both exist as separate projects in a single solution. How can this dependency, to a specific version, be expressed inside the csproj so dotnet pack picks it up?
@kraigb This appears to be a gap in the documentation ...

After reading a bit more, I've significantly re-worded the original post and deleted the corresponding post from dotnet/cli. If you got an email alert, please see this on github.com instead for the latest.

The referenced content has been published here:
https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#pack-scenarios


feat: add ValidationError

@bebraw @d3viant0ne please review

Fixes  #5 #6 #7

Anything else outstanding here ? Otherwise please merge and release I need this to move on with webpack-defaults 😛

Yeah, I would merge this and get a new version out. Still a fresh package so better move fast.

It's MVP 😛 I intentionally avoided anything  AJV 'advanced'  for now and update schema-utils if we hit any limits with the current approach, but Load Schema => Validate Schema => Validate Options ? true : throw new ValidationError() works and should be fine for 90% of usecases in Loaders/Plugins, at least we can add it to all repos with the webpack-defaults upgrade and minor improvements follow :)

webpack-defaults release with latest updates
schema-utils release with this PR

and I'm rolling again 😛
⚠ This is technically a breaking change, bc of<EMAIL_ADDRESS>(no $schema), but I'm aware of that especially for ETWP ⚠

@bebraw ping 😛

@michael-ciniawsky - Juho is still touring as far as I know so his availability is limited.
Given this is an internal tool and limited in deployment at the moment, as long as you are finished with this PR, I'll land it and publish a Major.

@d3viant0ne ohh.. sry I wasn't aware of that :)  Thx 👍 the PR is finished and tested locally with a dummy loader/plugin && webpack

Loader === ${Name} in the screenshot 😛

@d3viant0ne Maybe this error format is better
ERROR in 'bla.js'
Module build failed: Validation Error
${Name} invalid options found:

options.foo should be bar

?

:shipit: 😛


Manifest merger failed : Attribute application@supportsRtl

Hi
I use AppIntro v4.2.3 and I set  android:supportsRtl="false" in manifest.
when I want to sync gradle this error apears:
Manifest merger failed : Attribute application@supportsRtl value=(false) from AndroidManifest.xml:26:9-36
is also present at [com.github.apl-devs:appintro:v4.2.3] AndroidManifest.xml:11:18-44 value=(true).
Suggestion: add 'tools:replace="android:supportsRtl"' to  element at AndroidManifest.xml:24:5-70:19 to override.
I tried to add  tools:replace="android:supportsRt" to Manifest But encounter with new error(Manifest merger failed with multiple errors)

Hey @hoseinsttr
I had the same issue a couple of days ago.
After you set both tools:replace and android:supportsRtl on your app manifest, run a clean build and everything should work fine.

Thanks
I found another solution for issue.
just add          tools:node="replace"    to application tag
<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        tools:node="replace"
        android:supportsRtl="false"
        android:label="@string/app_name"
        android:roundIcon="@drawable/arzancell"
        android:theme="@style/AppTheme">
        <activity android:name=".BasteActivity">

Closing as looks solved


Update testing context for Rails versions

This PR updates testing context for Rails versions.
With this change testing context can be specified by minor version.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

🎉


Verify Brooklyn URL for command execution and login process.

To be used when saving url/credentials with login command.
And then to be used for all other commands before submitting API request.
This implementation applied only to login and version.

After reviewing other alternatives, agreed that we will stick with this approach.


Google sheets

Can able to convert excel into web app with EASA software , Spreadsheetconvert and Appizy ..But cannot able convert google sheets into web app .......
Pleases How to help me for Google sheets convert to web app .....

Handy to find google sheet id


Error on FMX.Menus

I have this error since I upgrade the pack. My IDE 10.3.3
[DCC Fatal Error] FMX.Menus.pas(503): F2084 Internal Error: AV090B4F45(08FF0000)-R414B5654-0
I uninstall it and reinstall it but nothing.
I have this little code on Android32. On windows32 everything is ok (about the error).
procedure TForm9.Button1Click(Sender: TObject);
begin
ALVideoPlayerSurface1.VideoPlayer.prepare('http://1589348434446d4-sd.mp4', False);
end;
procedure TForm9.Button2Click(Sender: TObject);
begin
ALVideoPlayerSurface1.VideoPlayer.prepare('http://1589348434446d4-sd.mp4', True);
end;
procedure TForm9.Button3Click(Sender: TObject);
begin
if ALVideoPlayerSurface1.VideoPlayer.State = 2 then
ALVideoPlayerSurface1.VideoPlayer.Start
else
if ALVideoPlayerSurface1.VideoPlayer.State = 4 then
ALVideoPlayerSurface1.VideoPlayer.Start;
end;
procedure TForm9.Button4Click(Sender: TObject);
begin
if ALVideoPlayerSurface1.VideoPlayer.State = 3 then
ALVideoPlayerSurface1.VideoPlayer.pause;
end;
procedure TForm9.Button5Click(Sender: TObject);
begin
ALVideoPlayerSurface1.resetVideoPlayer;
end;
procedure TForm9.Timer1Timer(Sender: TObject);
begin
Label1.Text := IntToStr(ALVideoPlayerSurface1.VideoPlayer.State);
end;

Sorry... the problem has solved when i copy your Search path to my program.

I have this screen on this program.
https://mega.nz/file/gUdBwaoQ#8eJGNx3_MeXS8-Z9mXAiIYPqgmeTIcpJsiOdsVtaWfw
this still screen (no image) with sound.
You know what it is?

Hello, everything has been fixed in the latest committed version.


Added setOriginBasedPosition to Sprite class

As per this issue/request Set origin based position on Sprite #4817

Great!


Webhooks not firing when creating or updating a card

Seems like our webhooks stopped working just over a week ago. Any changes to webhook events?

Hey @wyliethomas, is this for all of your webhooks or just one? Can you confirm that the token used is still valid and has not expired? Should be able to check via the token resource: https://developers.trello.com/advanced-reference/token?

Thanks @bentleycook. It turned out to be a single webhook that was not working. The one I spot checked was also not configured right thats why I was thinking all of my webhooks were down.
My tokens are good and I reset those 2 hooks and Im good to go. Thanks for your help!
y

Awesome! Glad you figured it out. Holler anytime in the future if you need help. Happy to help!


Check & update library to Fabric 2.5.0

If that is of any help, I verified the following directives:

callout
persona
persona card
pivot
spinner

They all seem to be good - tests pass & demos have no issues.


Suspected (left behind test?) code in loader.js/lib/loader/loader.js

The following code sits the at bottom of: loader.js/lib/loader/loader.js,
and am wondering if its supposed to be there ?
It looks like some forgotten test code ?
 // prime
  define('foo',      function() {});
  define('foo/bar',  [], function() {});
  define('foo/asdf', ['module', 'exports', 'require'], function(module, exports, require) {
    if (require.has('foo/bar')) {
      require('foo/bar');
    }
  });
  define('foo/baz',  [], define.alias('foo'));
  define('foo/quz',  define.alias('foo'));
  define('foo/bar',  ['foo', './quz', './baz', './asdf', './bar', '../foo'], function() {});
  define('foo/main', ['foo/bar'], function() {});

  require('foo/main');
  require.unsee('foo/bar');

It looks like this purposefully was added to prime V8 for good performance

We could improve the // prime comment to better specify the purpose of this code

Yep if it needs to be there then with an explanation.

// this code primes V8 for good performance

Added a more descriptive comment in #105.


Misalignment in Community/Across the Web

The header "On X (aka Twitter)" is split in two lines, which looks bad:

It'd be better this way:

The line needs to be shortened to fit on one line.
https://github.com/boostorg/website-v2/commit/c8827699c6392a140dbd145844554781e61bfcf0


[Migration] The lastPasswordUpdate claim update event handler changes

Description:
With the improvement done to the identityUserMetadataMgtHandler with PRs[1][2] in the effort of onboarding idle account identification feature [3], the following behavioural change was introduced,

The identityUserMetadataMgtHandler will not update the http://wso2.org/claims/identity/lastPasswordUpdateTime claim at password update.
Note: This event handler is not enabled by default previously and we have kept the same behavior for this with improved handler as well.
The http://wso2.org/claims/identity/lastPasswordUpdateTime claim is updated with the enforcePasswordResetEventHandler which is enabled by default.

[1]. https://github.com/wso2-extensions/identity-governance/pull/739
[2]. https://github.com/wso2/carbon-identity-framework/pull/4865
[3]. https://github.com/wso2/product-is/issues/16356

Please refer https://docs.google.com/document/d/1N7N6VoZk4N2_m-ZUWAz3Zp5YYBANSFgiLVBFH1orWuM/edit#heading=h.u0z7cmmifynb

As

ack


Fix for 37302

https://github.com/MicrosoftDocs/azure-docs/issues/37302

@dmpe : Thanks for your contribution! The author(s) have been notified to review your proposed change.

The link issue has been resolved in a separate PR.
#please-close


how to create a raw transaction and then sign it ?

Just pushed some code I had laying around to GitHub for you :)
Tx creation: https://github.com/stevenroose/rust-bitcoin-wallet/blob/dcc4fc49225a4fd7fea1181a26cf2da0e78c83a8/src/wallet.rs#L268
Signing code in another project: https://github.com/Blockstream/gdk_rpc/blob/9dec80995c170d7fcd5a2aa875609b2e118f9cbc/src/wallet.rs#L361
(only does p2wpkh, but p2pkh is also possible)

@jayphbee What is your concrete usecase?

@thomaseizinger i'd like to sign a transaction offline use Transaction object, but i found it is not convenient to accomplish.  I have to construct ScriptSig myself and set it back to Transaction.TxIn.script, then serialize it.

@thomaseizinger i'd like to sign a transaction offline use Transaction object, but i found it is not convenient to accomplish. I have to construct ScriptSig myself and set it back to Transaction.TxIn.script, then serialize it.

@jayphbee Unfortunately, that is a very generic description and I can't help much with that :(
The reason I was asking was because we currently don't have any examples (examples/ folder) that explain how to do certain things with the library. I was gonna add some but without a concrete usecase, it is hard to guess what you are looking for. There is many different aspects when it comes to constructing a Transaction:

segwit vs. non-segwit transactions
standard script vs custom script
spend a single output and send it to a single address
collect several outputs and spend to a single one with a change output

The current interface allows for all of this and hence, can't be really opinionated towards a single one (it sounds like you are asking for a specific usecase since you mentioned lack of convenience).
What you described sounds right. If you want to manually sign a transaction, you need to set the inputs + outputs, serialize it and add the correct signature (from the input you are spending).

This is my way to build a p2pkh transaction with 2 inputs and 2 outputs
let raw_tx = Transaction {
		version: 1,
		lock_time: 0,
		input: vec![TxIn {
			previous_output: OutPoint::from_str("964b06c7d65bc2966ffc089be06469cf3961fdae4253cb51fe158bf1696882a1:1").unwrap(),
			script_sig: Script::new(),
			sequence: 0,
			witness: vec![],
		}, TxIn {
			previous_output: OutPoint::from_str("6c1fd83338c12326e9160d57a95198937a228b6c4f55e882792be19fe2038da5:1").unwrap(),
			script_sig: Script::new(),
			sequence: 0,
			witness: vec![],
		}],
		output: vec![TxOut {
			value: 81243807,
			script_pubkey: Script::from(decode("76a9145477d7bfe9bdf17cea9f5b2ecacc7a2577723c7488ac").unwrap()),
		}, TxOut {
			value: 100000,
			script_pubkey: Script::from(decode("76a91402245e1265ca65f5ab6d70289f7bcfed6204810588ac").unwrap()),
		}],
	};

	let sig_hash = raw_tx.signature_hash(0, &Script::from(decode("76a9145477d7bfe9bdf17cea9f5b2ecacc7a2577723c7488ac").unwrap()), 1);

	let secp = Secp256k1::new();
	let msg = Message::from_slice(&sig_hash.into_inner()).unwrap();
	let sk = PrivateKey::from_wif("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx").unwrap();
	let pk = sk.public_key(&secp);
	let mut sig = secp.sign(&msg, &sk.key).serialize_der();
	sig.push(1); // sign hash type

	let builder1 = Builder::new()
				.push_slice(&sig)
				.push_key(&pk);

	// set the first input signature
	raw_tx.input[0].script_sig = builder1.into_script();

	let sig_hash2 = raw_tx.signature_hash(1, &Script::from(decode("76a9145477d7bfe9bdf17cea9f5b2ecacc7a2577723c7488ac").unwrap()), 1);
	let msg2 = Message::from_slice(&sig_hash2.into_inner()).unwrap();
	let mut sig2 = secp.sign(&msg2, &sk.key).serialize_der();
	sig2.push(1); // sign hash type

	println!("sig2: {:?}", encode(&sig2));

	let builder2 = Builder::new()
				.push_slice(&sig2)
				.push_key(&pk);

	// set the second input signature
	raw_tx.input[1].script_sig = builder2.into_script();

	let serialized = raw_tx.serialize();

	println!("serialized: {:?}", serialized);
	println!("txHash: {:?}", raw_tx.txid());

Is there a more high level api to do this ?

I'm thinking it might be worth it to have signing logic on the PSBT types. Like a single method try_sign or something that takes a set of private keys (or hashmap of pubkey->privkey) and goes over all the psbt inputs signing if it can sign them.

But it's certainly worth it to wait for rust-miniscript to stabilize so that we can use miniscript for that. (@apoelstra)

Yeah, miniscript is the tool for this.

rust-miniscript will also have PSBT support

good to know that. Close this issue

Yeah, miniscript is the tool for this.

I needed to sign some transactions to send to a regtest bitcoind node for testing, and found this issue. Is rust-miniscript the right approach for quick-and-dirty testing as well?


geant4: 11.0.3 -> 11.0.4

Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

I've checked the versions against tooltips on https://geant4.web.cern.ch/download/11.0.4.html
Could it be that the new data versions are for the 11.1 release?


EVP_KEYMGMT needs a redesign

The EVP_KEYMGMT libcrypto <-> provider interface currently makes a few assumptions:

provider side domain parameters and key data isn't mutable.  In other words, as soon as a key has been created in any (loaded, imported data, ...), it's set in stone.
provider side domain parameters can be strictly separated from the key data.

This does work for the most part, but there are places where that's a bit too rigid for the functionality that the EVP_PKEY API delivers.  In this API, the EVP_PKEY is commonly assumed to hold any of these combinations (other combinations are probably possible as well, just not very useful with the current functions):

domain parameters only
public key only
public key + private key
domain parameters + public key
domain parameters + public key + private key

Most of the code using EVP_PKEY objects assumes that it holds either just domain parameters or domain parameters + keypair.  Our provided implementations reflect that assumptions, so the strict separation mentioned higher has already slipped.
Then, you stumble on this:
https://github.com/openssl/openssl/blob/c98eab85b8a6c5d49353a229ac1d2f4cd0b84682/apps/ca.c#L1922-L1925
For all intents and purposes, this takes the domain parameters from one key and alters another key with them.  This is not possible to support in the current KEYMGMT design.
Enabling mutability
The simple way to do this is to introduce two new functions, a new and a free that simply constructs and destructs the provider side key data structure.  Other constructors may be added with time (the load function comes to mind).
By consequence, the import functions will no longer be constructed, but rather act on existing key data that gets passed in as an argument.
[TOPIC: mutability]
Merging domain parameters and key data
This is the simplest part on the provider side, we can simply stop pretending that they are separate, and rather see them as attributes of the same object, which reflects the way EVP_PKEY works.
However, there is still code that passes domain parameters specifically, and code that wants just the key data specifically, so we must still be able to support that, even though the provider side object combines all elements.  This could be done in two ways:

Have import and export functions for each set of data, i.e. importdomparams, exportdomparams, importkey, exportkey
Have one import and one export that takes an argument indicating what the caller wants, which could be domain parameters, the key itself, or both.

[TOPIC: importing and exporting]
Library code, while I'm at it
libcrypto has a number of small functions that are a direct mapping of the libcrypto <-> provider interface.  They all have names starting with evp_keymgmt_.
libcrypto also has a number of utility functions that take care of the more complex interactions between EVP_PKEY and the EVP_KEYMGMT libcrypto <-> provider interface.  They all have names starting with evp_keymgmt_.
Quite obviously, there is going to be a mixup between those two sets of functions, so a rename is prudent, such as prefixing the latter set with evp_keymgmt_util_.
[TOPIC: library utility functions]

Redesign done, see #11006


[dev.icinga.com #10572] Allow use of packages instead of pulling directly from Git

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10572
Created by jorhett on 2015-11-08 18:36:37 +00:00
Assignee: vkhatri
Status: Assigned
Target Version: (none)
Last Update: 2015-11-15 19:17:33 +00:00 (in Redmine)

This patch adds the ability to install from packages, while also retaining the ability to pull from Git. It also adds the ability to checkout instead of sync, such as when someone has a local patch they've submitted in a PR which shouldn't be overwritten every time Chef runs ;-)
https://github.com/Icinga/chef-icinga2/pull/41

Changes committed to recipe server_web2. Closing.


Make won't finish correctly on macOS without NO_VULKAN=1 set

glslangValidator -V examples/vk10/shaders/vert.vert -o examples/vk10/shaders/vert.h --vn vert_code
make: glslangValidator: No such file or directory

M1, Sequoia 15.1.1

Since MacOS doesn't directly support Vulkan, I'm not sure if compiling the Vulkan example will work by default.
As for this specific issue, you will need to install the glslang compiler. I found one on brew https://formulae.brew.sh/formula/glslang, although there are reasons why you may not want to use it, Apple doesn't like users using Brew. But I'm unsure if there is an alternative.
Thanks for filing this issue!

Well, from my point of view Vulkan is not an official part of the macOS. I'd recommend to explicitly disable VULKAN flags and examples for Darwin and then enable them as needed based on environment variables etc, but that's totally up to you.

@OleksiyPuzikov Isn't Vulkan already disabled by default?

@ColleagueRiley No, it's on by default for Darwin, thus the ticket :)

@OleksiyPuzikov I think this was set for MacOS, but the line got removed at some point.
It should be fixed with this commit (https://github.com/ColleagueRiley/RGFW/commit/313f3ba4023ec3f026a906e909f9ad3de946e03c)

This indeed fixes the issue.
While minor, this was somewhat inconvenient - thanks for the fast turnaround @ColleagueRiley and looking forward to other fixes at your convenience :)


[Support Request]:  how to change the TinyMCE  toolbar

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
I want to add the 'font_formats' and 'fontsize_formats' in the toolbar then i try update the resources/js/components/wysiwyg-editor.js but is not invalid.
I need to run something when change the wysiwyg-editor.js ?
ref:
https://www.tiny.cloud/docs-4x/configure/content-formatting/#font_formats
Exact BookStack Version
v21.08.6
Log Content
No response
PHP Version
No response
Hosting Environment
linuxserver docker:
https://github.com/linuxserver/docker-bookstack

Hi @kay54068,
Files stored within the resources/js folder are transpiled and bundled out to the public/dist folder. Details of this process can be found in the "Development & Testing" part of the readme here: https://github.com/BookStackApp/BookStack/blob/master/readme.md#-development--testing
I have exposed some hooks in the production code that can be used to customize the tinymce config without altering any core files. Details of this can be seen in my comment here:
https://github.com/BookStackApp/BookStack/issues/1203#issuecomment-621342313
Keep in mind, We'll be looking to move away from TinyMCE over the next few months. Any existing non-supported functionality, or any customizations, will not be kept in mind for compatibility when a new editor is implemented.


R2 setup in the paper

Hi,
I'm not sure i get from the hourglass paper what does the R2 trainer setup corresponds to. What is changed versus R1?
And since it underperform, why is it kept for R3 and R4? Wouldn't R1 work better?
Thanks!

R1 uses the original DiT model with the original trainer, as in the official implementation, with just the VAE removed and normalization adjusted. This setup has a bunch of important differences to the trainer setup used for HDiT (discrete vs. continuous time, sigma distribution, ...). To enable the most fair comparison possible, these should ideally be matched, so we implemented DiT in the same trainer as HDiT, simply putting one of Kat's discrete-time DDPM wrappers around the original implementation and training with the same settings as HDiT, yielding R2. That, however, resulted in a substantially worse model (probably due to multiple reasons compounding - the adapting to continuous time while still keeping the conditioning network that expects discrete time, mismatched hyperparameters, ...). So we also added a version that uses all the same transformer blocks and conditioning network ("mapping network") as HDiT but matches the structure (blocks, width, depth, ...) of DiT exactly, yielding R3. As this performs basically equal to the original DiT, it's reasonable to assume that R2 performed badly due to a mismatch in network vs. training setup, with R3 enabling comparisons w.r.t. model structure. Finally, having R3 enables training DiT for a fair comparison with Soft-Min-SNR (as there's complex interactions between it and the EDM preconditioner, sigma sampling schedules, ..., which having a base setup that's matched regarding them with R3 vs hour HDiT ablations makes them substantially easier to compare), yielding R4.

Ok so if i get it right the trainer used in HDiT uses EDM instead of DDPM parametrization? Is there other changes?
Is there a section in the paper that talks about what is changed in the HDiT trainer?
Thanks!

HDiT just started with the standard k-diffusion setup training; there weren't deliberate deviations from what DiT used. Right now, the paper doesn't have an exhaustive list of the differences, no. The important differences are the EDM preconditioner, continuous vs. discrete time, the way sigmas are sampled and handled during training, and the sampler during inference. You can also find all the important hyperparameters we used in table 6 in the appendix:

Thanks for the clarifications!


[stable/prometheus-operator] Added more options for AlertManager ServiceMonitoring

Signed-off-by: Philippe Bürgisser (Camptocamp<EMAIL_ADDRESS>Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

cc: @vsliouniaev @bismarck

/assign @vsliouniaev @bismarck

/ok-to-test

Hi @scottrigby,
You helped on my PR #22725 to merge the conflict to the test could run.
I see there is still an issue with testing with this current PR. Can you help please?$
Is there a way to avoid such issue in the future?
Thanks!
cc: @bismarck

/hold
Let’s hold PRs to prometheus-operator for a short time until https://github.com/prometheus-community/community/issues/28#issuecomment-672933972 is resolved. If you want to help with that effort, to test etc, that would be great!
Regarding CI failures here, it’s an ongoing issue with potentially different causes. The new Helm GitHub Actions CI will go a long way to help because each chart change is tested in complete isolation, unlike the current CI which shares a test cluster (where various conflicts can happen, depending which tests are currently running).
For this chart, let’s try to focus on getting the new repo in prometheus-community set up? It seems we are close now.

🚧 This chart is now deprecated.
Further development has moved to prometheus-community/helm-charts. The chart has been renamed kube-prometheus-stack to more clearly reflect that it installs the kube-prometheus project stack, within which Prometheus Operator is only one component.
If applicable, please re-open this PR there. Thanks!


adding SOMAXCONN to redox

@bors r+

:pushpin: Commit 65229f1d17728663ae38f30b35a770e3c38dba08 has been approved by JohnTitor
It is now in the queue for this repository.

:hourglass: Testing commit 65229f1d17728663ae38f30b35a770e3c38dba08 with merge 6424b09903dd0e5a3e25a541299da71f88bca932...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing 6424b09903dd0e5a3e25a541299da71f88bca932 to main...


Volar intellisense takeover mode does not resolve external workspaces/packages (monorepo)

Volar is not handling resolving external workspaces/packages within monorepo.
Reproduction: https://github.com/blake-newman/vue-tsc-import-resolution
takeover mode: off
When takeover mode is off it is able to auto import the modules/dependencies from external workspaces/packages

Enable the built-in TypeScript Extension

Run Extensions: Show Built-in Extensions from VSCode's command palette
Find TypeScript and JavaScript Language Features, right click and select Enable (Workspace)

Reload the VSCode window by running Developer: Reload Window from the command palette.
Within ./packages/main/src/index.ts try to use isFalse function from b package.

The exported function is found in intelisense and choosing that will auto import the dependency.

takeover mode: on
When takeover mode is on it is unable to auto import modules/dependencies from external workspaces/packages

Enable the built-in TypeScript Extension

Run Extensions: Show Built-in Extensions from VSCode's command palette
Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)

Reload the VSCode window by running Developer: Reload Window from the command palette.
Within ./packages/main/src/index.ts try to use isFalse function from b package.

The exported function is not found in intelisense

@johnsoncodehk I'm unfamiliar with where the module resolution for intellisense takes place.
This doesn't appear to be due to project references as disabling this, see no-project-references branch in reproduction, has the same behavior.

I can reproduce the same behaviour with TypeScript language server with includePackageJsonAutoImports: "off", by default it set to auto.


Allow the customer to select the zoom level, Font Family, and Font Size (and Tab Size)

Describe the enhancement you'd like to see
Setting should include control to select:

How auto save works (off, afterDelay, onFocusChange, on WindowChange) - similar to VSCode
Font Size
Font Family
Tab Size
Whitespace
Zoom level

Additional context
Zoom levels are reset when a window is reloaded, and that should not happen. For the duration of the session, the zoom level should be the same (with a reset option)

https://github.com/kubeshop/monokle/pull/2240 this solves the zoom levels reset when reloading


realtime specific entry point + Java emitter config

What's this?
A custom entry point to allow code gen for realtime specifically by having a tsp-location.yaml that looks like this:
directory: .typespec/realtime
commit: <commit-id>
repo: joseharriaga/openai-in-typespec

The steps taken:

copy @service to realtime/client.tsp
in realtime/main.tsp remove import to ./client.tsp
try generating java from location directory: .typespec/realtime/ (this should pick up the right service)

By doing this, we exclude the @service in realtime/client.tsp for a normal codegen. If we target the realtime folder directly, code gen is bootstrapped from the client.tsp and generates from the said service.
Remaining TODOs

Confirm that the other emitters using this spec behave the same
Better extraction of what was originally in .typespec/realtime/client.tsp. Now it's all dumped in its corresponding main.tsp file.

@trrwilson , it would be great to be able to merge this if we are able to move forward with the dev feed release of the Java client library (https://github.com/Azure/azure-sdk-for-java/pull/42707). Let me know if this needs updating in anyway so that it works well with the other emitters being used. Thank you!


[RFC] Instanceof for non objects

Is it okey?
refs https://github.com/phalcon/zephir/pull/821
Error
https://github.com/phalcon/zephir/blob/master/ext/kernel/object.c#L74
https://github.com/phalcon/zephir/blob/master/ext/kernel/object.c#L62
No error:
https://github.com/phalcon/zephir/blob/master/ext/kernel/object.c#L84

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9651184-rfc-instanceof-for-non-objects?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

PHP behavior is that you can call instanceof on anything except constants.
So something like
var_dump("test" instanceof STDClass);

fails, but when using a variable, any type is ok.
I do not see why we shouldn't adopt that behavior.

The more errors you get, the better you application can be

Instead of throwing error it could assume false:
if typeof this->validation == "object" && (this->validation instanceof Validation)  && this->validation->valid() {
}

if this->validation instanceof Validation  && this->validation->valid() {}

Also https://github.com/phalcon/zephir/issues/277 would be helpful:
if !validation instanceof Validation {}


Fix remove_dbg

Closes #5129
Addresses two issues:

keep the parens from dbg!() in case the call is chained or there is
semantic difference if parens are excluded
Exclude the semicolon after the dbg!(); by checking if it was
accidentally included in the macro_call

investigated, but decided against:
fix ast::MacroCall extraction to never include semicolons at the end -
this logic lives in rowan.
Defensively shorten the macro_range if there is a semicolon token.
Deleted unneccessary temp variable macro_args
Renamed macro_content to "paste_instead_of_dbg", because it isn't a
simple extraction of text inside dbg!() anymore

bors r+
Thanks!


AUI-1962 Source Formatting

Just started reviewing :) :octocat: Sent from GH.

Just started reviewing :) :octocat: Sent from GH.

Pull request merged.


[Docs] Adding all the markdown source files for docs.delta.io

Which Delta project/connector is this regarding?

[ ] Spark
[ ] Standalone
[ ] Flink
[ ] Kernel
[x] Other (fill in here) - Docs

Description
This PR adds all the source files for generating the docs.delta.io
How was this patch tested?
Currently manually tested by python docs/generate_docs.py --livehtml

Is there any prerequisite to getting this script to work?
➜  ~/delta git:(docs) python docs/generate_docs.py --livehtml
Building content
/bin/sh: sphinx-autobuild: command not found
Traceback (most recent call last):
  File "docs/generate_docs.py", line 112, in <module>
    main()
  File "docs/generate_docs.py", line 46, in main
    run_cmd(build_docs_args, env=env, shell=True, stream_output=True)
  File "docs/generate_docs.py", line 93, in run_cmd
    raise Exception("Non-zero exitcode: %s" % exit_code)
Exception: Non-zero exitcode: 127

Instructions in docs/README.md work. Just need to setup the conda environment by following the instructions in docs/README.md and then the command python docs/generate_docs.py --livehtml generates the docs locally.


Support jekyll version 4.0.0

When I run jekyll new , I get Gemfile with jekyll version of 4.0.0. The latest release of this theme still supports only upto 3.5. Can this be updated to work with 4.0.0?

@sai-manoj-kumar it looks like the theme itself works fine. This looks like the same issue in #44 where the repo has a relaxed set of restrictions, but the gemfile is only released to 0.1.1 which is before this. In the short term, depending on what you want to do you could update your Gemfile to directly point at this repo:
gem "jekyll-theme-hacker", git: 'https://github.com/pages-themes/hacker'

or do a local build

0.1.2 is released: https://github.com/pages-themes/hacker/releases/tag/v0.1.2


[Snyk] Security upgrade setuptools from 39.0.1 to 65.5.1

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
As this is a private repository, Snyk-bot does not have access. Therefore, this PR has been created automatically, but appears to have been created by a real user.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

api/requirements_dev.txt

⚠ Warning
Werkzeug 2.2.2 requires MarkupSafe, which is not installed.
Jinja2 3.1.2 requires MarkupSafe, which is not installed.

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

441/1000  Why? Recently disclosed, Has a fix available, CVSS 3.1
Regular Expression Denial of Service (ReDoS) SNYK-PYTHON-SETUPTOOLS-3113904
setuptools:  39.0.1 -> 65.5.1
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

Duplicate of #162


Running "npx create-react-app my-app" fails caused by found vulnerability

Is this a bug report?
Yes
Did you try recovering your dependencies?
npm 6.0.1
Which terms did you search for in User Guide?
None, see issue description.
Environment
npx: installed 67 in 13.51s
Environment:
OS:  Windows 10
Node:  8.11.2
Yarn:  Not Found
npm:  6.0.1
Watchman:  Not Found
Xcode:  N/A
Android Studio:  Version  <IP_ADDRESS> AI-171.4443003
ERROR: package.json not found!
Steps to Reproduce

Open a new cmd.exe / powershell.exe prompt as user or as local administrator.
Run npx create-react-app my-app

Expected Behavior
A basic react environment should be created.
Actual Behavior
npm install fails. Full output:
PS > npx create-react-app my-app
npx: installed 67 in 9.444s

Creating a new React app in C:\pathto\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

The system cannot find the path specified.

><EMAIL_ADDRESS>postinstall C:\pathto\my-app\node_modules\uglifyjs-webpack-plug
in
> node lib/post_install.js

+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>added 1321 packages from 811 contributors in 224.148s
[!] 1 vulnerability found [14378 packages audited]
    Severity: 1 Critical
    Run `npm audit` for more detail

Aborting installation.
  npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Done.

Reproducible Demo
Really just any Windows PC with the env. spec. I posted. Node + all NPM / Node folders on the system have been deleted and node re-installed (tested both: node v8.11.2 LTS and node 10 latest (v10.1.0)). Node cache was verified and force cleaned multiple times as well. I still get the same error.

I believe this is the same vulnerability: https://github.com/facebook/create-react-app/issues/4479. However, Create React App isn't directly affected by that vulnerability.
If npx is automatically running npm audit and failing if any vulnerabilities are found then that's going to be a problem for us with npm >= 6.
In the meantime, you can use yarn instead of npm by running yarn create react-app my-app.

In another environment I have I was able to run the command npx create-react-app my-app without any issues. The environment was:
Environment:
  OS:  Windows 10
  Node:  10.0.0
  Yarn:  Not Found
  npm:  5.6.0
  Watchman:  Not Found
  Xcode:  N/A
  Android Studio:  Version  <IP_ADDRESS> AI-171.4443003

I then updated npm to 6.0.1 in that environment. Details:
Environment:
  OS:  Windows 10
  Node:  10.1.0
  Yarn:  Not Found
  npm:  6.1.0-next.0
  Watchman:  Not Found
  Xcode:  N/A
  Android Studio:  Not Found

And now, on this machine, I was NOT getting the error altought using npm 6.x. The output was:
npx: installed 1 in 1.872s
command not found: prefix
npx: installed 67 in 7.108s

Creating a new React app in C:\pathto\my-app.

Installing packages. This might take a couple of minutes.
(node:11624) ExperimentalWarning: The fs.promises API is experimental
Installing react, react-dom, and react-scripts...

><EMAIL_ADDRESS>postinstall C:\pathto\my-app\node_modules\uglifyjs-webpack-plugin
> node lib/post_install.js

+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>added 1321 packages from 811 contributors and audited 14378 packages in 146.71s
found 1 critical severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Success! Created my-app at C:\pathto\my-app
Inside that directory, you can run several commands:

  npm start
    Starts the development server.

  npm run build
    Bundles the app into static files for production.

  npm test
    Starts the test runner.

  npm run eject
    Removes this tool and copies build dependencies, configuration files
    and scripts into the app directory. If you do this, you can’t go back!

We suggest that you begin by typing:

  cd my-app
  npm start

Happy hacking!

So after checking on multiple systems this issue seems to be related to some system configuration. I just have not found out which one yet.
I'd be greatful for any ideas where to get more logging information from so I can find out what's actually happening there.

The npm audit command was added in npm 6, which is why you’re not seeing the error on the other system with npm 5.6.

@iansu - as I wrote I updated to 6.1.0 on that system and do not get the error anyways. It's not dependent on the npm version. Or atleast not solely.

I missed that detail. I’m not at my computer and must not have read your reply carefully enough. I’m not sure what would be causing that. We’ll have to look into it more.

Not a problem. I'll let you know when I find out some more details.

The problem is in with a vulnerability in create-react-app's macaddress dependency. It's got command injection capabilities and could leave apps critically compromised.

That’s not the case for how it’s used by cssnano (which is why you get it in CRA). So CRA apps are definitely not affected by this.
Additionally it’s a build dependency. Even if CRA dev environment was affected by this (which is not the case), “could leave apps compromised” is extremely misleading because this dependency isn’t used at runtime. CRA just gives you a static bundle, there’s no way a build dependency vulnerability could compromise your deployed apps.

For more details see my reply in https://github.com/facebook/create-react-app/issues/4479#issuecomment-390146097

This looks resolved, postcss-filter-plugins removed uniqid dependency in their latest update and subsequently the audit check passes.

@bugzpodder thanks for the followup!


changed 'chart there are' to 'charts there are'

In the docs for "Pie and Doughnut Charts" there is a line that reads "Pie and doughnut charts are probably the most commonly used chart there are". I believe this should either be "chart there is" at the end, or "charts there are". Since Pie and Doughnut charts are two different (although very similar) charts I went with the plural "charts".
Description
Added an "s" to the end of the word "chart" in the first line of Introduction in the documentation for pie and doughnut charts.

Thanks @laviniaclare


Azure SQL connection is dropped after idle for ~2 minutes

When using an Azure MSSQL database if the connection is left idle for approximately 2 minutes will throw the error WSARecv tcp <IP_ADDRESS>:58150: i/o timeout
I have a basic workaround that involves setting SetMaxIdleConns(0), this solves the timeout issue but introduces a large level of latency into each database call as it appears to create a brand new connection every time.

I've been doing some more reading around Azure SQL and found the following document: https://msdn.microsoft.com/en-us/library/dn632678.aspx
Are there any plans to implement idle connection resiliency, if not where would be a good place look at how to implement it, and where in the code base would it live?

The driver cooperates with database/sql to reconnect by returning ErrBadConn when the connection is in a bad state. see #45
This cannot help if the connection is lost when iterating a cursor or when you have started a transaction, because the connection state cannot be restored. Unfortunately the same limitations are stated in the connection resiliency document.
From http://golang.org/pkg/database/sql/driver/
"ErrBadConn should be returned by a driver to signal to the sql package that a driver.Conn is in a bad state (such as the server having earlier closed the connection) and the sql package should retry on a new connection."

Thanks for that, I've dug a bit more it seems that CheckBadConn(err) isn't been called on this error. The error happens at sess.buf.BeginRead() in processResponse this then bubbles up and is returned on tokchan that is then returned as an error for the user to deal with. That means it never comes close to the CheckBadConn(err) - I'm going to have a play with adding CheckBadConn(err) but what would be the preferred way of handling this?

This change actually broke some tests: TestShortTimeout and TestDefaultTimeout.
Would need to come up with some other solution.

I've set default for TCP keep alive to 30 seconds as described in spec: https://msdn.microsoft.com/en-us/library/dd341108.aspx
Please try again on latest version.


fix: RND-97: Support for multiple ML backend predictions per task

Support for multiple predictions response from ML backend. Current version only supports ML backend /predict response with the following payload: "results": [{}, {}, ...] where it expects the list of the predictions of the same length as the number of submitted tasks. Now it can optionally handle the case when ML backend responds with "results": [ [{}, {}], ...] with each item represents the list of Predictions per task (e.g. with different model versions)
refactor multiple calls to ML backend to simplify the code (most of the changes)
added tests for single and multiple predictions, on task opening as using "actions" with sdk

Hi @niklub,
I would want to ask your help on something. I tried to launch a Github codespace instance using the Dev container configuration inside Label Studio project. However, it does not allow me to run the tests in the local machine (it does not even contain pip so I can do pip install .[test]). Am I missing something? Could you please tell me how you do to get an environment to dev and launch locally tests with a Github codespace instance?
Thanks,

Hi @niklub,
I would want to ask your help on something. I tried to launch a Github codespace instance using the Dev container configuration inside Label Studio project. However, it does not allow me to run the tests in the local machine (it does not even contain pip so I can do pip install .[test]). Am I missing something? Could you please tell me how you do to get an environment to dev and launch locally tests with a Github codespace instance?
Thanks,

Hi @CrisRodriguez !
Are you referring to the particular issue related to this PR? If your question is more general, I'd recommend asking in our Slack

Hi @niklub,
I would want to ask your help on something. I tried to launch a Github codespace instance using the Dev container configuration inside Label Studio project. However, it does not allow me to run the tests in the local machine (it does not even contain pip so I can do pip install .[test]). Am I missing something? Could you please tell me how you do to get an environment to dev and launch locally tests with a Github codespace instance?
Thanks,

Hi @CrisRodriguez !
Are you referring to the particular issue related to this PR? If your question is more general, I'd recommend asking in our Slack

Thanks for the link.
Best,

LGTM


Improved documentation

The significance and the generation of the yubikey-identity.txt file was unclear, this change aims to clarify the decryption process.

Replaced by #140.

Thanks for implementing this! I was stuck halfway in rephrasing my original commit but never got to the end of it...


Fixes Map.contains(Tuple2)

Fixes #838

Current coverage is 90.21%

Merging #839 into master will increase coverage by +0.05% as of 109c62c

@@            master    #839   diff @@
======================================
  Files           79      79
  Stmts         8481    8480     -1
  Branches      1691    1691
  Methods          0       0
======================================
+ Hit           7647    7650     +3
  Partial        211     211
+ Missed         623     619     -4

Review entire Coverage Diff as of 109c62c

Powered by Codecov. Updated on successful CI builds.


[ENHANCEMENT] Refactoring Kubernetes labels

Description

Support for all Kubernetes recommended labels
Support additional labels for all resources

Checklist

[x] Pull request has a descriptive title and context useful to a reviewer.
[x] Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, IGNORE.
[ ] All commits have DCO signoffs.

Hi, thanks for the improvement !
@nicolastakashi the error looks weird, are you aware of this one ? I don't get if it's related to the PR or if we need to fix something in the CI ( I re-ran the CI just in case)

@nlamirault could you rebase?

We can close this PR. Changes has been merged with https://github.com/perses/helm-charts/pull/19.
Thank you for the changes you proposed !


clicking through search results fails

Clone and install EFES following instructions at http://kiln.readthedocs.org/en/latest/quickstart.html
Mac OSX 10.11.1

Visit /search
Select any faceted search result
Pick any result link on the right hand side and click on it

Result:

An error occurred
The resource you requested was not found.

Stacktrace:
org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: 5.2.html
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:149)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:698)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:505)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:564)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1094)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:432)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1028)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:258)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:445)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:267)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:224)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532)
	at java.lang.Thread.run(Thread.java:745)

Hi did you see any facets here?
When I tested it I got none:
zone "Selected searches" displays message: "no filters"

I did see facets, but it may be because I had run the indexing first.
--
Tom Elliott, Ph.D.
Associate Director for Digital Programs and Senior Research Scholar
Institute for the Study of the Ancient World (NYU)
http://isaw.nyu.edu/people/staff/tom-elliott
On Wed, Nov 18, 2015 at 10:05 AM, emmamorlock<EMAIL_ADDRESS>wrote:

Hi did you see any facets here?
When I tested it I got none:
zone "Selected searches" displays message: "no filters"
—
Reply to this email directly or view it on GitHub
https://github.com/EpiDoc/EFES/issues/6#issuecomment-157760809.

Sounds coherent. How do you do that?

After following steps 1-4 here I clicked on "admin" and then clicked the "index all (search)" button.

Thanks! hadn't seen the admin entry.
After indexation, faceted searches works fine for me: no errors

Just to clarify: you are able to click through the search results list to a single file without errors?

The issue is that the indexing (specifically in stylesheets/solr/tei-to-solr-common.xsl) uses publicatonStmt/idno[@type="filename"] as the tei-id, which doesn't work well when that is not, in fact, the filename. Either the markup is wrong, or the filenames need to be changed to match the data, or another ID is added to the XML that does match the filename.

it seems to me that its another pb: the fool path to the resource is not served.
for exemple for the result 'A00800'  the url served is 'http://localhost:9999/A00800.html' if you add in "samples/iospe/ircyr" to the url, it seem to give you the ressource http://localhost:9999/samples/iospe/ircyr.A00800.html
But the result list should show the title of the inscription and not the file name without extension. In that case "Imperial honours for plural emperors"

Il meant full path

The URL for a search result is generated using the information stored in the search index for the filename. This information needs to be the path and filename (relative to the content/xml/tei directory) of the file that was the source of the indexed data, as you say.
The indexing needs to be changed, either to take the path and filename from the filesystem, or to get that information from somewhere else in the XML. If the XML as it stands is deemed correct, then the former solution should be implemented.
The display of the title is a separate issue.

Yes, it's a combination of both things. When putting the example files in place, I changed the filenames to make them more reliably unique (i.e. containing collection name as well as internal id), but forgot to change the idno[type=filename]. However, the search index also needs the path to the correct folder, which may be (a) examples, (b) inscriptions, or (c) a sub-directory of inscriptions for projects with nested file structure.

I fixed the first issue (incorrect idno[type=filename]) and pushed them to the repo. The other part is search code that I haven't delved into, however.

I'm about to commit a fix for this.  The latter can be done later.
After updating the code, delete the data in webapps/solr/data/index, start Kiln, and perform a reindex.


Add Action<>less overload for StackTrace

When omitted, the default logging level will be Trace.

Completed.


HomeNet crashes if a wrong request is made

The HomeNet server crashes if a unexpected request comes up.

Fixed with commit https://github.com/maxkofler/HomeNet/commit/68351d42cfd98bb3c07a6bf5c0f722a28bcc496b


Prepare for 1.0.1 development.

Description
Prepares for dbt-databricks 1.0.1 development.
Also cleans up files that are not used so far.

I'd just merge this one. Thanks.


Add an example for sharing the memory buffer of the xarray between C++ and Python (numpy)

#113 added the ability to take the memory buffer of an xarray and share it with ndarray in Python, but there wasn't an example for how to do it.  This PR adds an example in the pytest directory.
I also fixed some formatting and compatibilty issue with pybind11 2.3.

Would someone be willing to take a look at this?  If the fixes for pybind11 2.3 should be in a separate PR, I can close this and file two new ones.

@yungyuc sorry for the late reply! I am looking at it now.


pull request for e2e test at 12/12/2016 00:56:04

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


Training code

Hello, I'm very impressed to see the results of your maxim model and want to train with my dataset. But I do not see any training code in this repository. Would you like to commit the training code? Thanks!

Hi we don't have any plans to release the training code on Jax, unfortunately.
But we plan to reimplement it in PyTorch and provide training code. Please keep an eye on maxim-pytorch


ERR_REQUIRED_ESM error with multiple plugin packages

It has been documented in a few places like #136 that certain semantic-release plugins need to be downgraded when using semantic-release-monorepo, due to it not support ESM yet. ESM support should be added in #137.
I'm creating this ticket to consolidate knowledge about this problem for other people.
So far I have to add perform the following downgrades:

@semantic-release/commit-analyzer to v9
@semantic-release/gitlab to v9
@semantic-release/npm to v9

Same problem. Thanks for making this issue.

Confirming that I also only get this error when using semantic-release-monorepo. When I remove the extends: line from my .releaserc.json my workflow runs as expected.

I published a new package semantic-release-monorepo-esm that supports esm. v1.0.10 should work without issues.

@bryanjtc That's awesome. I was thinking it might make sense to fork this. I'll play around with it.

@jcapogna
We've released a monorepo package that's compatible with ESM, and since you have access to the source code, you're free to customize it as you wish. Cheers! 🍻
NPM package: https://www.npmjs.com/package/@rimac-technology/semantic-release-monorepo
Source code: https://github.com/RimacTechnology/semantic-release-monorepo

@mario-jerkovic That's great! I'll check it out.
@pmowrer If one of these forked packages works well, maybe we should deprecate this package and point it to the fork since this package is no longer maintained.

@mario-jerkovic That's great! I'll check it out.
@pmowrer If one of these forked packages works well, maybe we should deprecate this package and point it to the fork since this package is no longer maintained.
Are there any major differences between semantic-release-monorepo-esm from @bryanjtc and https://github.com/RimacTechnology/semantic-release-monorepo from @mario-jerkovic ??

This package is a rewrite and should be drop-in replacement, only difference is that the default tag format is pacakge-name@version but you can override it by defining tagFormatkey in .releaserc everything else should work the same  🙂