96,655 questions
0
votes
1
answer
34
views
Creating triangles and squares with for loop
I used this method to draw squares and triangles on the PaintBoxe.
procedure squarClick(Sender: TObject);
begin
canvas.Pen.Color := clgreen;
canvas.Pen.Style := psSolid;
canvas.Pen....
0
votes
0
answers
73
views
Plotting xts object in loop fails [duplicate]
I want to plot several time series (xts) in R in a loop. However, that does not work, I only get "empty" devices. So I wrote a little test:
library('xts')
testdata <- c(1:100)
testdata....
-5
votes
0
answers
76
views
Outlook password loop won't even allow me to set up Exchange account [closed]
With no apparent reason, Outlook (on Windows 10) started asking for password. When the password dialog was open, Outlook was online and working. So for a while I would just drag that dialog down below ...
1
vote
1
answer
54
views
Scheme: calling `define-syntax-rule` in a loop
I wonder whether it is possible to call define-syntax-rule in a loop-like construction like for-each. I explicitly say 'loop-like' because I know that normal Scheme evaluation comes after macro ...
-3
votes
1
answer
124
views
Console.ReadLine in a Task causing side effects [duplicate]
I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway.
while (true)
{
Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
-1
votes
1
answer
44
views
How to loop an Apps Script / Cheerio web scraper over multiple urls? [closed]
I have this Apps Script / Cheerio function that successfully scrapes the data I want from the url. The site only displays 25 entries at this url. I can find additional entries on subsequent pages (by ...
0
votes
0
answers
32
views
With apache hop, retreive all row of a rest api
I'm new to apache HOP. I try to make a workflow to retreive all rows returned by a Rest Client component. I try to figure out how to implement the hasmore, offset and limit together using a repeat ...
0
votes
1
answer
160
views
Why do my loops not start? Indexing loops problems?
I'm trying to convert a SAS program into a R one and I have stumbled at the for() loop and array part. It keeps saying in the log:
"Error in for (. in i) seq_len(NBR_LIGNES_MAX) : 4 arguments ...
1
vote
1
answer
123
views
Excel hanging on my first Do Loop attempt
I’ve spent hours getting some Excel UserForm code honed down to:
Dim DateLoop As String
DateLoop = "RUN"
Do ' Outer loop.
Do While DateLoop = "RUN" ' Inner Loop
...
0
votes
2
answers
77
views
How can I break a loop condition into multiple lines in a shell script?
Right now, this is working:
while read attribute_one attribute_two; do
read -r -d '' json_payload << EOF
{
"attribute_one": "${attribute_one}",
...
0
votes
1
answer
23
views
Re-use variable for the following year GAMS
I have a script in Gtree with GAMS on the carry-over effect on groundwater. I initialised the groundwater depth in the year 2000, and then I need to use the end-of-the-year groundwater depth as a ...
-2
votes
1
answer
177
views
The algorithm to create the target array from an array of randomly inputted characters [closed]
I've been working on a function that takes a string of random characters as parameter (char *scrap) and forms a meaningful sentence or a name out of it by matching it with letters from another string (...
0
votes
3
answers
103
views
How to slice first char from all iterable records in a string (converted from list)
I'm trying to remove the first/last two characters of each iterable record in a string (which I converted from a list and split into separate lines).
newString = "\n".join([str(item) for ...
2
votes
1
answer
98
views
OpenMP in C | How to keep private iterable after loop
So i'm working on some homework related to fixing som buggy code when i ran into an interesting problem. I don't think it was one of the indended bugs because the lecturer was confused by it as well. ...
0
votes
0
answers
28
views
Memory leakage when solving JuMP model in for loop
I have a fairly complex JuMP (HiGHS) model that I have developed for running over "batches" of input data. It runs fine on a single batch, but once I start looping over several instances, ...