7,316 questions
Advice
0
votes
4
replies
128
views
Number sequence
This sequence appears to be a complex, hybrid sequence, combining elements of:
Fibonacci sequence
Lucas sequence
Quadratic recurrence sequence
Chaotic sequence (due to the sine wave patterns)
It's ...
Advice
0
votes
0
replies
23
views
Find SEQ logs where other SEQ logs have not triggered within a timeframe
I am trying to find where SEQ logs for a shut down service do not have SEQ logs for the automatic restart of that service within 30 minutes to trigger an alert (to indicate that the service did not ...
Score of 1
2 answers
176 views
Get next n dates based on pattern from time diff
I have a vector of dates where I want to get the next n (any integer) dates.
dates <- structure(c(18946L, 18947L, 18948L, 18949L, 18950L, 18951L, 18953L,
18954L, 18955L, 18956L, 18957L, 18958L, ...
Score of 5
3 answers
188 views
Given a start and end datetime, generate a row index for each 12 hour shift spanned
I have a data frame of unique start and end datetimes:
x <- data.frame(id = c("A", "B"),
start = c("2026-02-01 15:30:00", "2026-02-05 19:00:00&...
Score of 0
1 answer
217 views
How to determine valid message orderings in this UML sequence diagram?
I’m trying to understand the execution rules for message ordering in UML sequence diagrams.
Because this question is broken down into different aspects related to each other, I would particularly like ...
Score of 2
1 answer
214 views
How to disable sequence
I need to disable a sequence on a table, insert some values and re-enable.
I'm searching for the Postgres equivalent of
set identity_insert dbo.myTable ON/OFF
as I can do it in SQL Server.
I have a ...
Score of 1
4 answers
188 views
Loop SUMPRODUCT or LAMBDA in Range
I am trying to use the same formula repeatedly in a range. Doing it with VBA is easy, but I am trying to do it without using VBA and all in one formula. I am trying to use SEQUENCE and OFFSET but am ...
Score of 1
1 answer
111 views
How to make SEQ display a colored metric badge (highlight) for elapsed time in log messages?
I’m using SEQ for structured logging in my .NET application (Serilog).
I want SEQ to display a colored badge (highlight) with the elapsed time (in ms) on the right side of the log message, just like ...
Score of 0
1 answer
96 views
Oracle multiple rows sharing the same sequence
I have a need for a native query that reutilizes a sequence value.
I have this query that does not work, but gives an idea of what I need
SELECT
s.seq2 as sequence2,
S_SEQ1.nextval AS ...
Score of 3
5 answers
225 views
Sequence of function iterations
Is there a way to abuse assignment expressions or functional tools to generate the sequence x, f(x), f(f(x)), ... in one line?
Here are some contrived examples to demonstrate:
def iter(x, f, lim=10):
...
Score of 1
0 answers
57 views
Transforming a reactive API into a lazy sequence in Kotlin
Consider I have a reactive, push-style API such as Files.walkFileTree() from NIO.2. Now, I want to transform this API to produce a lazy sequence of items (Sequence<T>) instead.
This is fully ...
Score of 1
2 answers
99 views
Incremental Value based on fixed total in a cell
I am looking to simplify my current setup, if possible with a single array formula to produce the following result.
I want to have a column with
Incremental value by 1
Base starting is 1,000
Total ...
Score of 1
1 answer
158 views
Error when running NEXTVAL on sequence inside stored procedure
I have a snowflake procedure in which I would like to capture the next value from a sequence and do something with it. Here is a simplified example of such a sequence and proc:
use schema TEST_DB....
Score of 1
1 answer
58 views
Is there any way to show subprocess output in spyder console?
I'm computing neural networks with several .py files in spyder. I could sequencely execute them in spyder. However, the console do not show any thing like single file execution.
For example, this is ...
Score of 1
4 answers
93 views
How can I find the only matching element in a Seq[A] as an Option[A], throwing an exception if there is more than one matching element?
In some test code, I have a Seq[A] that I'm filtering down to items matching a given property. There should be at most one such element in the sequence. If it has more, it means I set up something ...