Questions tagged [alternate]

194 questions
4
votes
4 answers

Alternative to XInclude

As far as I know there is no support for XInclude in .net. I'd like to leverage the same kind of mechanism for hierarchically organized XML configuration files. I mean I have a top-level XML config file referencing specific Xml files. My…
LB40
  • 12,041
  • 17
  • 72
  • 107
3
votes
1 answer

android listview alternate row color BUT with default cursor selection

i have been all over the web, stackoverflow included and just can't seem to get a clear complete way to I want to create a ListView that 1) has alternating colors (I am able to do that with code below) 2) retains the default orange selection…
user825402
  • 189
  • 3
  • 13
3
votes
1 answer

How can I express alternative dependencies in NPM?

When expressing the dependencies of a Debian package, you can use syntax like exim | mail-transport-agent to indicate that your package needs either exim or mail-transport-agent, but it doesn't care which. I want to express something similar in NPM.…
Mike Taylor
  • 733
  • 1
  • 5
  • 5
3
votes
2 answers

Concatenate dataframes alternating rows with Pandas

I have two dataframes df1 and df2 that are defined like so: df1 df2 Out[69]: Out[70]: A B A B 0 2 a 0 5 q 1 1 s 1 6 w 2 3 d 2 3 e 3 4 f 3 1 r My goal is to concatenate the dataframes by…
Federico Gentile
  • 5,650
  • 10
  • 47
  • 102
3
votes
1 answer

Convert CSV to HTML Table (Searchable & filterable)?

Is there is any alternative program/Project for converting CSV to Dynamic HTML Table along with search & filtration,which would be use for reporting on Client side. Currently, I'm using CSV To HTML for this purpose.
3
votes
3 answers

Silverlight ItemsControl with Alternating ItemTemplate

Silverlight does not support Alternating Item Templates in an ItemsControl. I have a few ideas in mind as to how to accomplish this, but to avoid polluting the potential answers, I'll leave them out. The idea is the same as a normal ItemTemplate in…
Ray Booysen
  • 28,894
  • 13
  • 84
  • 111
3
votes
2 answers

Alternate 2 images in Java Game with timer

I'm doing a simple game in Java. I have one Class named "Drawer" to repaint every 50 miliseconds the images that I save in BufferedImages' s array. I have a method to convert the player in a huge player in the Player Class and the code is: …
Iker Ocio Zuazo
  • 331
  • 4
  • 13
3
votes
2 answers

PHP: Need loop to alternate between returned posts

I have a an array of posts that are returned by doing three queries. 3 posts from the blog where posts are NOT in 'In the Media' or 'Insights', 3 from the blog where posts are in 'In the Media' 3 from the blog where posts are in 'Insights'. Here's…
johnnyriss
  • 43
  • 1
  • 4
3
votes
1 answer

Toggle between multiple divs jQuery

Between alternate divs with id's 1-3 how do I show the visability between each one when the user clicks the corresponding link? I only want one div to be shown at a time. Thanks. Link 1
Link 2
Link 3
Daniel Kellaway
  • 189
  • 1
  • 5
  • 14
2
votes
2 answers

Composite alternate key in tables

Assume that a table have 4 columns A, B, C and D. Only A column defines uniqueness that's why it's a primary key. B, C and D allow entries to repeat that's why we can't take them as an composite alternate key. Is it possible to use the same column…
Sergey
  • 11,548
  • 24
  • 76
  • 113
2
votes
5 answers

Merging Unequal two lists alternatively

My goal is to write down a function that calls all the even-numbered indices will have the largest numbers in the list in descending order and the odd-numbered indices will have the smallest numbers in ascending order. For example: input: arr =…
Jang
  • 53
  • 6
2
votes
3 answers

How can you sort a string backwords, by vowels and consonant?

So I have to create a program that rewrites a string backword and alternates vowels and consonants like in this example: ex_1: input -> 'abcdefi' output -> 'ifedacb' ex_2: input -> 'vblsdeloai' output ->'iladoselbv' What I did so far: word =…
LeftyRPZ
  • 31
  • 4
2
votes
1 answer

Using multiple variables over a single list in python (for loop)

I am working on a python script, which requires reading values from a list in for loop and performing some operations on it. currently it looks like this: for i in someList: # do some operation here Now, this particular operation takes hours to…
Khizar Amin
  • 198
  • 1
  • 2
  • 12
2
votes
2 answers

Alternate ways in place of zip

I have below inputs, inp = 'Sample' n = 5 I would like to generate a list of tuples of n elements packing input with index. So that my output is, [('Sample', 0), ('Sample', 1), ('Sample', 2), ('Sample', 3), ('Sample', 4)] Below snippet does the…
2
votes
4 answers

Updating alternate colors of dynamic/ajax table rows with jQuery

Been looking lot but couldn't find, apply alternate row colors via jQuery on $(document).ready event. $(document).ready(function(){ //Member Directory Table $('.MemberDetail table tr:odd ').css('background','#F0F0EC'); } colors…
user544892
  • 21
  • 1
  • 2
1
2
3
12 13