Questions tagged [expansion]
428 questions
8
votes
1 answer
Doxygen inconsistently expands C macros
Context
I am using doxygen for documentation in a project written in C.
In that project there is a lot of repeated code.
Since I am limited to the use of pure C (no C++ allowed), I am using macros to reduce
repetitions in the source files.
In the…

ChromaticIsobar
- 83
- 3
8
votes
4 answers
How to add background color for ExpansionPanel in Flutter
I am trying to style ExpansionPanel in Flutter but the color is not applying to the whole panel. I have tried both Container and Card widget, the color is not updating. Any Ideas? I want to add background color to cover the entire ExpansionPanel.…

Shashi Kiran
- 999
- 5
- 13
- 27
7
votes
4 answers
WebView infinitely expands - how can this be prevented?
I am using a webview in my android app, however after it finishes loading - which I can detect via onPageFinished(WebView webview, String url) - the page continues to infinitely grow in height.
How can I prevent this from happening?
Here's what I…

Nar Gar
- 2,591
- 2
- 25
- 28
7
votes
1 answer
Why bash4 expands curly braces differently?
One of legacy system got upgraded to bash4 and most of its scripts stopped working. I've narrowed it down to how a curly brackets are expanded within a <(cmdA ...|cmdB ... file{1,2}|cmdZ ...).
To illustrate the difference better:
BEFORE (bash…

Vlad
- 1,157
- 8
- 15
7
votes
0 answers
Disable Matlab R2016b implicit expansion
Matlab R2016b comes with a̶ ̶n̶e̶w̶ ̶f̶e̶a̶t̶u̶r̶e̶ a monster that will kill us all: Operator implicit expansion.
Basically if you have a matrix A and a vector B, you can now just do A+B (without bsxfun or repmat). Sounds great right?
However if you…
user2261062
7
votes
1 answer
Filename expansion in "a=b"-like arguments of Bash built-in commands
I've learned that filename expansions are done prior to command executions when running commands in Bash. But when trying the commands below (with -x option):
touch foo=3 # Create a file with name "foo=3"
+ touch foo=3
declare foo=?
+ declare…

ebk
- 586
- 5
- 11
7
votes
2 answers
Replace " " with "\ " in a file path string with variable expansion
I know there is a better way to do this.
What is the better way?
How do you do a string replace on a string variable in bash?
For Example: (using php because that's what I know)
$path = "path/to/directory/foo bar";
$path = str_replace(" ", "\ ",…

Alex Cory
- 10,635
- 10
- 52
- 62
7
votes
1 answer
What is a "Maximal Sub-expression" in Scala 2.8 specification §6.26.5 Eta Expansion?
In Scala 2.8 language specification, §6.26.5 Eta Expansion, it states that we need a maximal sub-expression, however, no definition of this can be found. Can someone clarify this?

Felix
- 8,385
- 10
- 40
- 59
6
votes
2 answers
Algorithm for bit expansion/duplication?
Is there an efficient (fast) algorithm that will perform bit expansion/duplication?
For example, expand each bit in an 8bit value by 3 (creating a 24bit value):
1101 0101 => 11111100 01110001 11000111
The brute force method that has been proposed…

jivany
- 71
- 6
6
votes
2 answers
reduce expansionTile height in flutter
is there a way to reduce the height of the ExpansionTile header because it doesn't have a height property,
after searching i found this on github for a custom color but i cannot modify it to add a height property
besides it gives me errors say "…

Ahmed El Sayed
- 499
- 1
- 8
- 17
6
votes
12 answers
jQuery Accordion expand all div
Is it possible to expand all components when page is load or when an event occurs?
Thanks!!

user305912
- 91
- 1
- 1
- 3
6
votes
2 answers
CMake variable expansion using "@" vs. "${}"
Consider the following:
SET(TEST_DIR, "test")
INSTALL(PROGRAMS scripts/foo.py DESTINATION ${TEST_DIR})
INSTALL(PROGRAMS scripts/foo.py DESTINATION @TEST_DIR@)
The first INSTALL command does not work. The second does. Why is that? What is the…

Jeet
- 38,594
- 7
- 49
- 56
6
votes
2 answers
Loop over array, preventing wildcard expansion (*)
I'm trying to figure out what I thought would be a trivial issue in BASH, but I'm having difficulty finding the correct syntax. I want to loop over an array of values, one of them being an asterisk (*), I do not wish to have any wildcard expansion…

Tal
- 617
- 1
- 6
- 16
6
votes
3 answers
Reading mp3 from expansion file
Reading mp3 file from expansion file
I have create and expansion file with name
"main.1.com.example.app.obb"
which contains and audio file name "about_eng.mp3"
Now the issue i have written the following code to read and play the mp3 file
…

Pramod J George
- 1,723
- 12
- 24
5
votes
2 answers
Macro stepper in DrRacket
On the link http://www.ccs.neu.edu/home/ryanc/macro-stepper/tutorial.html there are instructions for working with the macro stepper.
However, when I'm going to try it, I can't get the second expansion of myor in the definition of nonzero? function,…

Racket Noob
- 1,056
- 1
- 8
- 16