Questions tagged [repeat]

"repeat" refers to the action of doing something over again.

Note that this tag can often be replaced by the more specific or tags.

3161 questions
0
votes
1 answer

each time button clicked print string html/python django

I would like to to print a string each time somebody clicks the like button. the string would get a new line each time. so it would look like tis for example: like like like like like like --> adding one row with the string every time i click the…
amber
  • 27
  • 6
0
votes
2 answers

How to look at previous row to see if it's a repeating value, but only label it as TRUE if it repeats 3 or more times in R

I would like my data to look at a month as a group, and label my new column "Repeating" as true if a value repeats 3 or more times in that month. I have an example of my output that is desired below. data2 <- data.frame("Month" = c("Jan", "Jan",…
Sarah
  • 411
  • 4
  • 14
0
votes
2 answers

For loop repeat to get larger json data with no duplicate in Python

I tried to repeat 10times of json file which add 1~10 at element called "ProcessGuid" in each iteration via the following code import json file = open("D:/Test/test.json",'r',encoding='utf-8') papers = [] for line in file.readlines(): dic =…
連振宇
  • 31
  • 4
0
votes
1 answer

Class annotation 'DisallowConcurrentExecution' in Quartz.net doesn't work

I've got a Job class with method, that get the data from the DB and save the latest data to the static field. But it gets data very often, so the problem could be with delays, that the previous job won't finish before the timer would run the next…
Arekadiusz
  • 419
  • 4
  • 11
0
votes
2 answers

How to check with regex is two alternating words are not used in turns in a sentence?

I am trying to write what I thought would be a simple regex pattern, but it turned out to be unexpectedly complicated. I am trying to detect if: Two alternating words are not used in turns in a sentence: do detect "Cat cat." do not detect "Cat…
LeFunk
  • 67
  • 6
0
votes
0 answers

Printing the same report multiple times

I am having a request and I dont know if its doable, I need to print a report multiple times based on a field. For example I have a bin number 001 inside this bin I have 7 units of the same equipment part. Is there a way to make Cognos print the…
0
votes
1 answer

How can I repeat a switch statement and keep the previous text?

I'm trying to make a random number generator of sorts with 7 different number ranges to choose from. I'm trying to make it so that the statement will repeat itself, with the previous numbers staying in place. Here's my code so far: ` var roll; var…
0
votes
1 answer

Streamlit - Cannot repeat emoji string using st.write()

Summary: Normally to repeat a string in python, you'd use (string * n) where n = number of times to repeat. In Streamlit you have the ability to print emoji using corresponding shortcodes in st.write(). I've been able to use st.write(emoji1, emoji2,…
Josh
  • 3
  • 1
0
votes
0 answers

how to limit map repeat on leaflet?

I want only one world map to be shown. I tried searching about the problem But I did not find a solution.
0
votes
2 answers

How to determine that the value in df has recurrent sequence from 7 and above numbers

I have dataframe: df1 = pd.DataFrame({'number': ['1111112357896', '45226212354444', '150000000064', '5485329999999', '4589622567431']}) Question: To find values where value has recurrent sequence from 7 and above…
0
votes
0 answers

Netlogo headless exporting world at each steps

I wrote my model in the GUI and want to run it with repetitions in the headless mode in a cluster. The model has a go command that is repeated until we reach a specified step (at each go procedure, the year variable is incremented and when we reach…
Sarahdata
  • 309
  • 3
  • 15
0
votes
0 answers

Running netlogo headless and repeat the experiment

I plan to run my model on a cluster so I can repete the run (at least 40 times) on multiple cores. I found usefull info on stack, on the netlogo website but I don't see the codes lines to speficy the number of repetitions ? Is it something like…
Sarahdata
  • 309
  • 3
  • 15
0
votes
1 answer

String out of Range, Help please

I am unsure what to do as I am quite new to Java. I want to repeat this program again but it keeps giving me the error of my string being out of range. How do I approach this? import java.util.Scanner; import java.io.*; public class LoanReport { …
0
votes
0 answers

How to restart a program upon a certain action

I'm writing a program where it asks you yes or no questions and then responds to those. Instead of manually writing all the questions I wanted to have the program randomly select some questions from a list and print them out. This part I have…
eclipz
  • 15
  • 5
0
votes
1 answer

How to make a calculator and repeat function on Trading View?

Excuse me! I'm a beginner programmer from Japan. I'm not a native English user, so I'll show you my broken English! [Pine-script on Trading View] Now, I want to create a calculator works on the Trading View's charts. By clicking 3 prices(high or low…
1 2 3
99
100