Skip to main content
Filter by
Sorted by
Tagged with
Advice
2 votes
11 replies
238 views

In Python, we know that while loops can run infinitely, but is there any way to make a for loop run infinitely? From my prior checking, I found a way to do so by importing the 'itertools' module, but ...
Ibrahim Sheriff's user avatar
0 votes
0 answers
52 views

Strangely, the following code returns an error stating that the array key 11 or 12 does not exist for the playersPool[$x]['gender']. When dumping the $playersPool array it usually returns a count of 9:...
stomperDev's user avatar
Advice
1 vote
8 replies
163 views

If I have two arrays of integers and wanted to do a specific function on them (for the sake of this example, add them together), I could stack two for loops like so: int[] x = new int[]{1,2,3}; int[] ...
Peter Reeves CplRabbit's user avatar
0 votes
1 answer
53 views

import time import os const spinner := [ '. ', ' . ', ' . ', ' . ', ' . ', ' .', ' . ', ' . ', ' . ', ' . ' ] mut counter := 0 for { os.flush() if ...
Redefa's user avatar
  • 1
-4 votes
2 answers
105 views

I am using a for loop to recursively search through a directory for files of a specific file type, and then extract them to a different location. Right now I extract all of the files to the same ...
David K's user avatar
  • 1,350
1 vote
1 answer
118 views

Sub DELETE_Db_ROWS_THAT_CONTAIN_ITEMS_IN_AN_ARRAY() Dim MyArray As Variant MyArray = Array("Reinvest", "DBS", "WDL") 'Delete all rows containing these items ...
user540's user avatar
  • 11
1 vote
1 answer
177 views

I'm working on a tool to segment features from a grey scale image and as part of this I want to perform a gaussian blur. This is basically a way of learning more about C# and the underling image ...
jasonisme84's user avatar
4 votes
3 answers
258 views

Matrices can be triangulated using less than ten lines of code in C, I have heard being said. But LU decomposition method needs to be used, instead of Cramer's rule. So, I was trying to do that. My ...
uran42's user avatar
  • 685
0 votes
1 answer
41 views

I can't recall (and can't work out) if there is a way to have a cmd FOR loop nested within another FOR loop where for each outer FOR loop iteration, the inner FOR loop is iterated. For example: FOR /F ...
skeetastax's user avatar
  • 1,814
2 votes
1 answer
77 views

I am performing a DIF analysis using the difR package. library(difR) verbal <- verbal[colnames(verbal) != "Anger"] abc <- difLord(verbal[, 1:24], group = verbal[, 25], focal.name = 1, ...
MetehanGungor's user avatar
Advice
0 votes
8 replies
187 views

Let's say I have a dictionary such as: dict = { "Mars": [4, 3, 4, 7, 10], "Jupiter": [6, 6, 7, 9, 11], "Saturn": [4, 5, 12, 22, 1]} I would like to iterate through each ...
triedandtested's user avatar
-1 votes
1 answer
99 views

I am having a problem to put an entire row from data in a list import pandas as pd import numpy as np import csv df= pd.read_csv ("data.csv") my_list = [] # list for n in range(1, ...
Kan's user avatar
  • 35
-1 votes
1 answer
85 views

I am trying to find a combination where it will go through the data to find matched variables for any value from the list First_row is found, any value from the list Second_row and any value from the ...
Kan's user avatar
  • 35
4 votes
3 answers
185 views

The practice question I am working on reads as: Read two strings, both of them do not contain white spaces (but may contain non-alphanumeric, such as ‘,’, ‘.’, ‘/’ ...). Display the first string ...
Andrew Attfield's user avatar
-2 votes
1 answer
85 views

I obtained a batch script from Google AI for performing string replacement on the content of a list of text files in Windows. This is what I got--with a little tweaking, first. (Just testing at this ...
Dave Clark's user avatar

15 30 50 per page
1
2 3 4 5
…
4803