Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
111 views

I am newer at coding and can't wrap my mind around what I'm doing wrong. This function takes in text from pdf's and starts collecting text only after a certain "search phrase" is found. Then ...
Sophia's user avatar
  • 19
2 votes
1 answer
116 views

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 ...
Massimiliano STRETTI's user avatar
1 vote
1 answer
71 views

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 ...
amg63's user avatar
  • 25
0 votes
0 answers
127 views

i have created a Task sequence to uninstall a Application via Powershell. i am not able to Find where the issue is. when i Deploy it in Test Device Collection. in Software Center Status shows ...
Nicky's user avatar
  • 9
1 vote
0 answers
38 views

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 ...
Андрей Щеглов's user avatar
1 vote
1 answer
104 views

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....
Xedni's user avatar
  • 4,791
1 vote
4 answers
86 views

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 ...
M. Justin's user avatar
  • 23.1k
1 vote
2 answers
86 views

I am stuck in a unique situation. I have a range: ABCD0001 to ZZZZ9999 The above range can hold any combination of numbers in between. The individual values reset at Z (next becomes A) or 9 (next ...
Dingo's user avatar
  • 133
1 vote
2 answers
63 views

Suppose I define this variant type type Sequence = | Seq of type-1 * Sequence And let's suppose in Repl I want to some how encode the sequence using this, then how can I do it? For ...
Clemens Bartholdy's user avatar
1 vote
1 answer
107 views

I am using Greenplum Database (GPDB) for OLAP workloads, and I have several tables where the primary key is defined as SERIAL8. Since SERIAL8 automatically creates a unique SEQUENCE for each table, I ...
Nika's user avatar
  • 73
0 votes
1 answer
53 views

In Mathematica I implemented this simple code: n = 8; a0 = Range[0, n - 1]; a1 = Subsets[a0, {2}]; a2 = Subsets[a1, {2}]; a3 = Select[a2, Length[Union[Flatten[#]]] == 4 &]; a4 = Subsets[a3, {n/4}];...
user avatar
1 vote
3 answers
147 views

I use an Oracle sequence of the form: CREATE SEQUENCE MY_SEQUENCE INCREMENT BY 1 START WITH 1000000000 MAXVALUE 9999999999 MINVALUE 1000000001 NOCYCLE CACHE 20 NOORDER; This sequence is used in an ...
Till Glöckner's user avatar
2 votes
3 answers
79 views

I'm currently working on a scenario where I need to find the next available ID within a list of unique IDs that contain both letters and numbers. While I have a working solution, I'm interested in ...
Maki's user avatar
  • 647
1 vote
1 answer
49 views

I am in need of a formula for google sheets which can list out a range of years vertically based on the data in a specific cell. If the input is not a range then the output should just be the single ...
Marty's user avatar
  • 41
1 vote
1 answer
263 views

First, I'm aware of this answer and it does not do what I want I need to reset IDENTITY so that next insert generates a 1, but it inserts a 2 instead: create table test( id BIGINT NOT NULL GENERATED ...
user14381362's user avatar
0 votes
1 answer
88 views

How to generate a sequence of numbers from a combination of multiple ranges? generator<const size_t &> GenerateSequence(size_t start1, size_t end1, size_t start2, size_t end2) { co_yield ...
khteh's user avatar
  • 4,280
0 votes
0 answers
63 views

I am trying to verify the following lemma in dafny: ghost predicate noD(s: seq<nat>) { forall i :: 0<=i <|s| ==> !(exists j :: 0<=j< |s| && i!=j && s[i]==s[j]) ...
Markel Barrena's user avatar
-4 votes
1 answer
75 views

[Doing an assignment where I have to have to run the formula a(n) = 2*n - 5 (n>=1)] 100 times and have those in a list so that I can grab terms and compare and bunch of other stuff. This is what my ...
Jide Fadairo's user avatar
0 votes
0 answers
26 views

I have a cyclic 1-D sequence of tuples of numeric values, and I'm trying to figure out the best way to find the length of the cycle. This is complicated by 2 factors: The sequence of values in one ...
Justin Olbrantz's user avatar
0 votes
1 answer
104 views

I need to create an exception/audit report for our accounting section. The business case is an employee is deployed to remote location and can claim lodging cost if they are away from their family. If ...
Jean-Marc's user avatar
  • 119
0 votes
1 answer
133 views

I am attempting to create a stored procedure that inserts a new record into a table but the procedure to create the stored procedure yields an error. Here are the steps to demonstrate the problem: ...
SezMe's user avatar
  • 537
1 vote
2 answers
120 views

Say I have a sequence like myseq below. It is a DNA sequence, so each group of 3 letters make for one letter (aminoacid) in the accompanying myaa sequence. It has a length of 13aa. I want to create a ...
DaniCee's user avatar
  • 3,247
1 vote
1 answer
79 views

If I write this: f <- function(lambda, a_0, n) { a <- numeric(n) a[1] <- a_0 for (i in 2:n) { a[i] <- lambda * a[i-1] * (1 - a[i-1]) } return(a) } f(4, 0.75, 100) then a ...
Kώστας Κούδας's user avatar
1 vote
3 answers
102 views

I have a sequence myseq associated to some data that I want to plot. Besides, I have another sequence checkseq that I want to compare myseq to. The objective is to make a plot like the one below (with ...
DaniCee's user avatar
  • 3,247
-1 votes
1 answer
93 views

if i have a sequence let my_seq = @[("a", "hello"), ("c", "world"), ("b", "to")] how can i sort this so that it returns: let my_seq = @[(&...
Houdiee's user avatar

1
2 3 4 5
147