Skip to main content
Advice
0 votes
7 replies
135 views

So I've been using this code for generating such statements following This Reddit post: #define LOOP(seq) END(A seq) #define BODY(x) int x; #define A(x) BODY(x) B #define B(x) BODY(x) A #define A_END #...
Doofus's user avatar
  • 3
Best practices
0 votes
2 replies
124 views

Essentially I am trying to create a dataset that is dependent on prior rows to generate values for any given row. I then would like to run this loop over many IDs for an entire dataset. Current set up ...
triangle_coder's user avatar
Best practices
1 vote
6 replies
94 views

In a user control class, I have this code to react to button clicks. The code shall match the tag of a toggle button with the identical tag of another user control, so the button could switch the ...
MaSta's user avatar
  • 19
1 vote
1 answer
88 views

Hi I'm trying to implement a stateprocessor for my custom logic., ideally we are streaming and I want the custom logic of calculating packet loss from a previous row. i implemented the stateprocessor ...
Pranav ramachandran's user avatar
1 vote
3 answers
261 views

I want to check all cells in a column for a value to send an email. I created the If check. How do I make it go through a loop to check all cells in the column? This is the VBA code I made but I can ...
Marco Bakx's user avatar
0 votes
1 answer
81 views

I am building an ADF pipeline that uses a ForEach activity to iterate over a bunch of sites. The HTTP endpoint is generated dynamically by use of a @concat expression & fed into the HTTP activity ...
Balajee Addanki's user avatar
1 vote
1 answer
206 views

I know that a simple R "for" loop like the following: n <- 20 for (i in 1:n) { print(i) } can be represented by a flowchart like: However, in any set of flowchart symbols there is the ...
JulioSergio's user avatar
1 vote
2 answers
127 views

I am writing a program, that will divide my students into groups. Lets say the groups are A, B, C and D. In each group there can be only so many students. Those numbers I have in a global variable: &...
trinarSK's user avatar
3 votes
1 answer
159 views

I have a csv file on the webserver (eg. 5GDPR6LR-1.csv) The csv file consists of data from an associative array written to file using fputcsv() within a foreach() loop. The problem occurs when I try ...
Stackman's user avatar
  • 501
1 vote
2 answers
73 views

Why the following code caused dead loop? const s = new Set([1]); s.forEach(e => { s.delete(e) s.add(e) }) I tried to change the order about delete and add operation,the dead loop ...
Turbo Zhang's user avatar
0 votes
1 answer
81 views

I’m working in Azure Data Factory. I have a Lookup activity that gets a list of authors from a SQL table. Then, in a ForEach loop, I want to run a Copy activity for each author to fetch only that ...
Neiko's user avatar
  • 1
1 vote
1 answer
63 views

I am not sure if this is possible with XSLT but I am trying to get the below XML into a format where it is name, title, date (if same date then only get date once), last value of In time (might not be ...
BryanG's user avatar
  • 29
-3 votes
1 answer
71 views

I am trying to code a leaderboard in SwiftUI. The data comes from an array of ranked users so that I should be able to get the rank from the index of the array, but I'm finding it surprisingly ...
user6631314's user avatar
  • 2,050
1 vote
1 answer
68 views

I have the following multiprocessing code using R6 class. library(R6) library(doParallel) registerDoParallel(cores = 4) # https://github.com/r-lib/R6/issues/141 a1 <- 2 C1 <- R6Class( public ...
sunheng's user avatar
  • 53
0 votes
1 answer
104 views

std::vector<std::vector<bool>> grid(4, std::vector<bool>(4, true)); std::for_each(grid.begin(), grid.end(), [](auto& row) { std::for_each(row.begin(), row.end(), [](auto& ...
YuZ's user avatar
  • 463

15 30 50 per page
1
2 3 4 5
1718