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

Using repeat-until to start and stop an action

I want to specify an action to be repeated. The action is called using a button called spbRewind. Upon pressing spbRewind, Rewind mode is entered. The TimeForRewind is set using a timer set to 10ms (so the action will be repeated every 10ms, in…
Willicious
  • 13
  • 2
0
votes
0 answers

native kotlin (not android): Right way to daily repetition of a task

My Goal is to be able to launch a daily task at a certain time every day and, if necessary, also be able to stop it, and if the previous day's task is still active on the following day, I delete it What am I trying to do Method that takes a task, a…
AccountForWorks
  • 91
  • 1
  • 10
0
votes
2 answers

How do I shuffle an array of videos to play until the last video is finished and then reshuffle in JS?

I have an array of mp4 videos that I need to display randomly with no repeats in a website header. After the last video plays, it should reshuffle and start over. The sequence needs to begin on page load. Each video needs to have an on hover text…
AAColema
  • 1
  • 1
0
votes
1 answer

Repeat rows with in the GROUP as per max value of that group using SQL (PostgreSQL)

Input question_id option_rank 1 1 1 2 2 1 2 2 2 3 How to get below output using SQL. Position will be new fabricated column in the output. Basically a given option rank to be repeated n times, n being max option rank of a given…
Mohammed
  • 1
  • 1
0
votes
1 answer

How to keep Math.random from repeating a return?

So I have this Math.random function and it occasionally returns the same object twice in a row or more when I call the function. Any ideas how to fix this? let currentQuote; let quoteGenerator = (response) => { let newQuote =…
preston17
  • 19
  • 5
0
votes
0 answers

Grafana repeat panel has bug when use Mongodb datasource

Grafana repeat panel has bug when use Mongodb datasource. When "All" is selected, it's expected to show two panels. But it shows 3 includes "All" itself. Grafana version V9.4.0 Beta1 enter image description here Influxdb and operserch datasource has…
Bob
  • 1
0
votes
0 answers

write a macro to repeat univariate analysis in R

I am trying to write a macro that can repeat over many independent variables. The dependent variable, outcome, is the same. I don't want to type independent variables over and over again. For example, I have variable age and gender, and I want to…
Jinny
  • 1
  • 1
0
votes
0 answers

macOS objective C generate keyboard events keystroke with repeat

How to generate keystroke with repeat in macOS application with objective-c? I already manage to generate the keystroke: CGEventRef keyup, keydown; uint64_t keyModifier=0; VK = kVK_RightArrow; keyModifier = 0; keydown = CGEventCreateKeyboardEvent…
gus2000
  • 1
  • 1
0
votes
0 answers

Copy values from a column across rows

I have a dataset like this:enter image description here I want to repeat the Norte and Nordeste values in the lines below in R. I tried the fill function, but it is informed that only for numeric. Atualizando: 04/03/2023 Estou importando os dados…
0
votes
1 answer

jquery toggle wont trigger again

I have 2 functions I want to repeat again and again: function rotation () { plrotation(); function plrotation () { alert('pl'); $('#pl').toggle(300).delay(10000).toggle(400).delay(2000, function…
Christian Romeni
  • 192
  • 1
  • 10
0
votes
2 answers

Scroll event is firing a function too many time

I have a scroll listener for hiding and showing the bottom navigation bar, It works perfectly but I discover it will fire the function almost 50 times and more when it meets the condition if I scroll too fast. Which means it will rebuild the widget…
Jack Noob
  • 47
  • 1
  • 6
0
votes
2 answers

How to melt a dataframe so repeated items become the values that correspond to the index

I have this dataframe: df = pd.DataFrame({'Status':['CO','AD','AD','AD','OT','CO','OT','AD'], 'Mutation':['H157Y','R47H','R47H','R67H','R62H','D87N','D39E','D39E']}) print(df) Status Mutation 0 CO H157Y 1 AD …
Cam
  • 111
  • 1
  • 8
0
votes
2 answers

Shortest way to double the elements of an array by copying each value to the next position

Suppose the array: $prices = array ( '7.20', '7.40', '8.00', '8.50', '9.30', '10.40', '11.00', '12.00', '12.50', '13.00', ) Is there any clever, short (as close to an one-liner as possible) solution to copy each value to the…
Faye D.
  • 833
  • 1
  • 3
  • 16
0
votes
3 answers

Repeat each value a different number of times, in Google Sheets

Given a list of values and a number n for each value, is there a way to create a 1-dimensional list with each value repeating n times? A B C 1 animal #…
0
votes
2 answers

applying colors from array to buttons without repetition?

I'm trying to apply an array of colors let wordsForTheGame=['red','blue','yellow','orange','green','black','aqua','gray','purple']; exactly to 9 button elements. I use this function to shuffle: function shuffleArray (arr) { for (let i =…