Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
73 views

I'm an absolute beginner to VBA with no coding background, and trying to make a sort of inventory application. I got stucked and tried so many code snippets found on internet to no avail. I'm trying ...
hacime's user avatar
  • 17
2 votes
3 answers
83 views

I have a full width div which contains a dynamic grid of posts. The number of columns depends on the screen width, the number of rows depends on the number of posts. I would like to have an ...
Boris's user avatar
  • 41
2 votes
1 answer
47 views

all Python experts, I'm a Python newbie, stuck with a problem which may look very simple to you. Say I have a data frame of 100 rows, how can I split it into 5 sub-frames, each of which contains the ...
Jasper's user avatar
  • 85
0 votes
2 answers
52 views

I am struggling to get the following function work properly. I am trying to configure a loop inside WordPress with wrapping every first 3 items in a div. After that it should wrap the next 2 items in ...
Justus's user avatar
  • 123
0 votes
0 answers
140 views

I am looking for a google apps script that will alternate row banding color every nth rows (in my case it will be every 7), accounting for a one row header. I specifically want to use a script so that ...
Rich S's user avatar
  • 1
2 votes
1 answer
35 views

I need to change a sentence to have alternating capitalizations! Having trouble making it ignore the spacebar inputs... input: the quick brown fox jumps over the lazy dog output: tHe QuIcK bRoWn FoX ...
Baldur's user avatar
  • 21
0 votes
1 answer
916 views

I have to make a card game in which the starting player changes after each round or mini round (up to me to decide) but I have no clue how to alternate between the 2 players. After reading online, I ...
Misul's user avatar
  • 1
0 votes
1 answer
98 views

I am writing a swift application so this question would be best answered in swift or any other language if the logic is the same. I have a 2D array and I want to iterate through each even row as ...
DESWIJ's user avatar
  • 63
0 votes
1 answer
76 views

This is a Python 2.x function for handling sequences with x, y coordinates; please note that argument ints is of type map: def IntsToPoints(ints): result = [] for i in range(0, len(ints), 2): ...
Dobedani's user avatar
  • 588
-1 votes
1 answer
7k views

Given N coins in a row, I need to count the minimum changes necessary to make the series perfectly alternating. For example, [1, 1, 0, 1, 1] must become [0, 1, 0, 1, 0] which requires only 2 changes. ...
Reach4God's user avatar
0 votes
1 answer
133 views

I am having an issue with a fairly common practice problem about identifying duplicates in a binary sequence (commonly called a 'coin flip' problem) and seem to gave difficulty explaining it, so bear ...
Reach4God's user avatar
0 votes
4 answers
2k views

Suppose I have a value say Player 1 and Player 2. Can I assign them to a single variable in such a way such that print("%s choose this piece" %Player_value) Expected output Player 1 choose ...
Karyon Trotters's user avatar
1 vote
1 answer
2k views

For example if a = [1, 4, 9, 16] and b = [9, 7, 4, 9, 11], the function returns a new list, result = [1, 9, 4, 7, 9, 4, 16, 9, 11] This is the code I have so far. def merge(a,b): mergedList =[] ...
Sam's user avatar
  • 11
0 votes
1 answer
3k views

Is there a ready-made solution for creating an list by alternating elements from two list. I understand how this can be done using loops and conditions, but perhaps there is a ready-made extension ...
testovtest's user avatar
-1 votes
1 answer
26 views

The question along with the solution is posted. But i didn't understand the solution, especially inside the for loop. Can someone elaborate the code for me? [1]: https://i.sstatic.net/p1Lkp.jpg![enter ...
Razin Rahman's user avatar
0 votes
3 answers
1k views

So I have an array of N size. I want to first check if the array is of alternating sequence (We are assuming that the numbers are positive and the values are either 1 or 0) 101010 would return true ...
ScuffedCoder's user avatar
1 vote
0 answers
153 views

I have a TreeListView control where each root item is expandable, containing an arbitrary number of subnodes. The background color should alternate only at the root level so that all subnodes are of ...
hk1980's user avatar
  • 137
1 vote
1 answer
229 views

I'd like to have a line of text fade in fast, stay up for about 5 seconds, fade out fast, then have a different line of text fade in fast, stay for about 5 seconds, fade out fast, then have this ...
proStrategist's user avatar
1 vote
2 answers
229 views

I'm attempting to create a C program where the counter is incremented by alternating between the parent and child using the POSIX semaphore functions. So far I'm having trouble using it considering ...
LumiChimCU's user avatar
0 votes
1 answer
113 views

Is it possible to get alternating row/column colors in the grid? see image of flash chart Also, the grid lines in the old chart were exactly on the values, now the values lie exactly between the ...
Synapticon's user avatar
2 votes
1 answer
115 views

I have some unit tests for code that is doing some very minor image manipulation (combining several small images into a larger image). When I was running the tests, I noticed that three out of four of ...
asdf's user avatar
  • 109
-2 votes
3 answers
175 views

I want to order my associative rows by their column value as sequences of ascending values. Sample array1: $args = [ 'a' => ['zebra' => 1], 'b' => ['zebra' => 0], 'c' => ['...
Sometip's user avatar
  • 372
1 vote
3 answers
2k views

I feel this should be simple but I'm stuck on finding a neat solution. The code I have provided works, and gives the output I expect, but I don't feel it is Pythonic and it's getting on my nerves. I ...
Sam's user avatar
  • 57
1 vote
1 answer
120 views

Consider a sequence A = a1, a2, a3, ... an of integers. A subsequence B of A is a sequence B = b1, b2, .... ,bn which is created from A by removing some elements but by keeping the order. Given an ...
Jeahinator's user avatar
-1 votes
4 answers
1k views

I have an array of arrays: $students= array( array("name"=>"...", "gender"=>"male"), array("name"=>"...", "gender"...
Adelbak's user avatar
  • 11
1 vote
1 answer
1k views

If I type this code myTree->setAlternatingRowColors(true); myTree->setStyleSheet("QTreeWidget{alternate-background-color: red;background: green;}"); colors of rows are interleaves. But if a ...
Arseniy's user avatar
  • 304
-3 votes
2 answers
1k views

Hello in trying to figure out how to make the following pattern in java xoxox oxoxo xoxox Im recently learning and have been trying to figure it out for hours. Here is the code that i have so far....
1onic 1nferno's user avatar
3 votes
2 answers
4k views

I would like to define a class to alternating rows in angular 4, how to do this? HTML <div class="scrollbars"> <div *ngFor="let path of Xyzpaths"> <...
free's user avatar
  • 163
-2 votes
5 answers
7k views

9.Write a program that accepts 9 integers from the user and stores them in a list. Next, compute the alternating sum of all of the elements in the list. For example, if the user enters 1 4 9 16 9 7 4 ...
BobDole's user avatar
2 votes
1 answer
2k views

I have some code which returns a Stream as intended, but maybe it can be replaced with some type of lambda or stream() operation instead of exhausting the iterators in a while loop? It is just a ...
Serhii's user avatar
  • 185
1 vote
2 answers
2k views

Back again with another Racket question. New to higher order functions in general, so give me some leeway. Currently trying to find the alternating sum using the foldr/foldl functions and not ...
user2980932's user avatar
0 votes
1 answer
524 views

I am looking to copy/paste values from ws1 to ws2 Specifically, to copy a range of 2 columns of data from FROM Worksheet #1 TO Worksheet #2, pasting in alternating cells, in same column. Example: ...
Dru Dreyer's user avatar
0 votes
1 answer
864 views

First, 0's are left attached to the resulting number until the length is a multiple of the entered number ( f.x. int a = 3 -> the length of the number should be the multiple of the number 3). Then i ...
3498BoyZ's user avatar
0 votes
3 answers
1k views

I'm supposed to recreate this code public static void main(String[] args) { // TODO, add your application code Scanner keyboard = new Scanner(System.in); System.out.print("Enter an ...
Cassie Robar's user avatar
0 votes
2 answers
252 views

I have a table that looks like this: SEQ TICKER INDUSTRY 1 AAPL 10 1 FB 10 1 IBM 10 1 CSCO 10 1 FEYE 20 1 F ...
Landon Statis's user avatar
-1 votes
1 answer
609 views

I'm trying to get a button to alternate 2 functions, doing a different function on each click. This is the code I have: var count = 0; $("#pijlrechts").click(function() { count++; var isEven =...
user avatar
0 votes
3 answers
4k views

i'm currently trying to write a shiny app. I want to create a barchart with reactive coloring to radiobuttons. Before i try to get the code for the reactive coloring, i try to test it, so that i get ...
fdel's user avatar
  • 15
1 vote
0 answers
206 views

We are facing the following problem. What we have: 1) "Our" ASMX web-services, hosted both on 80 and 8080 ports 2) "Their" unsupported unknown solution which works with our web-services. That is, it ...
IRQ's user avatar
  • 23
0 votes
1 answer
113 views

Due to taking care of my ailing elderly parents, I haven't been able to do website design for a few years. Now I'm extremely rusty and just can't figure too much out anymore. Inside a div, I want to ...
studiopeg's user avatar
0 votes
1 answer
970 views

In every loop I want to alternate the layout of my blocks, so it would be like this: Loop 1: Left column image, right column text Loop 2: Left column text, right column image But so far all i'm ...
Tom's user avatar
  • 57
0 votes
2 answers
1k views

I have a GridView where I am listing values for client companies. Take for example the grid listed the company name and a value. I want to give a light gray background color to all Company 1's rows, ...
Paul Kirkason's user avatar
1 vote
3 answers
179 views

I have this code: <?php $arrayName2 = array('123', '567'); $arrayName3 = array('abc', 'def'); $arrayName[] = $arrayName2; $arrayName[] = $arrayName3; foreach ($arrayName as $key) { foreach($...
Sergey Yesin's user avatar
0 votes
2 answers
173 views

Example : 00:00 22-03-2017, John Wilson 08:00 22-03-2017, Gemma Arterton 16:00 22-03-2017, Arnold Plank 00:00 22-03-2017, Timmy Brouwer 08:00 22-03-2017, John Wilson <- names ...
Rick Standaert's user avatar
0 votes
1 answer
46 views

I have two array like this:: $doctor = Array( [0] => 4 [1] => 5 [2] => 8 [3] => 35 [4] => 41 [5] => 42 ) $clinic = Array( [0] => 1 [1] => 3 [2] => 9 [3] => 15 [4] => ...
Pankaj Yogi's user avatar
1 vote
2 answers
3k views

I have tried all the expresssions posted for alternating colors in a group but it's not working correctly. Here is what my report design looks like: I would like each group row to alternate colors ...
Leslie's user avatar
  • 3,644
0 votes
1 answer
2k views

Conditions: both arrays must be in order or error message the first array must be as long as or longer than the second or error message if the first is longer than the second it must continue to ...
B. Betts's user avatar
2 votes
2 answers
158 views

I am using the modified snippet below from another thread to create a max-width layout, but I'd like to change .flex-parent:after {yellow} to an alternating background color using pseudo selectors as ...
Wren's user avatar
  • 23
0 votes
2 answers
358 views

I am wanting to use this plugin to display blog posts, but instead of having the image as the background, the client wants different colored images. From another post on here I have figured out the ...
Tyrii's user avatar
  • 193
-1 votes
2 answers
300 views

I have a Java string that contains numbers and words interchanged throughout as follows: String str = "7 first 3 second 2 third 4 fourth 2 fifth" I need to find a concise way (if possible) to print ...
Kurt W's user avatar
  • 351
1 vote
1 answer
133 views

I have multiple <tr> in a table and some of those are followed by a <tr class="colapsed"> which has some details. Not all the <tr> tags have details. I need to create alternating ...
fborges42's user avatar