Questions tagged [expansion]
428 questions
2
votes
1 answer
Creating a list of possibilities from splitting strings at a certain character - Karnaugh Map
I am trying to create "truth tables" for use in a Karnaugh map solver. The Karnaugh Map solver takes in the settings of the variables ABCD as a string of 4 numbers representing what they are set to. For example, ABCD could be anything from "0000" to…

Alenna Spiro
- 95
- 5
2
votes
2 answers
Expand expression in Spark Scala aggregation
I'm trying to convert a simple aggregation code from PySpark to Scala.
The dataframes:
# PySpark
from pyspark.sql import functions as F
df = spark.createDataFrame(
[([10, 100],),
([20, 200],)],
['vals'])
// Scala
val df = Seq(
…

ZygD
- 22,092
- 39
- 79
- 102
2
votes
2 answers
Prepare a string in a block of parenthesis variable expansion is disabled to return it to a calling scope that enables expansion (no call allowed)
i have a request for theorical knowledge purpose only in Windows Batch scripting.
Today my question is about preparing the value of a local string loc_str INSIDE A BLOCK OF PARENTHESIS and WITHOUT ENABLING DELAYED EXPANSION, in order to return it to…

Lionel Blanc-guilhon
- 63
- 7
2
votes
1 answer
Angular Expansion panel not opening
hey guys can anyone help me i tried a lot but don't know why it is not working....
what is happening is, when i am opening expansion panel Programmatically then it is open sometime and sometime not.
when i do a ctrl+shift+R then its work fine. but…

Manu
- 23
- 5
2
votes
1 answer
How to draw expandable and collapsible sidebar menu in Flutter?
Though I am new to Flutter but now on my way of cloning an expandable and collapsible sidebar menu of a website i saw on the internet.
My attempt
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends…

CCC
- 111
- 5
- 16
2
votes
0 answers
How to create a Expansion Tile from List> in Flutter?
I have List> array and I need to create a Expansion Tiles.
My Expansion Tile must look like below format.
final List data = [
new Entry('Varlıklar',
[
new Entry('Vadeli Hesaplar',
[
new…

Nick
- 4,163
- 13
- 38
- 63
2
votes
2 answers
Compile time code expansion using template parameters
I fully expect this to not be a feature, but figured I may as well ask; is it possible to expand code at compile time using template parameters?
For example:
template
void foo()
{
...double... vec;
}
Where the ... Is replaced by…

user7119460
- 1,451
- 10
- 20
2
votes
2 answers
Windows 7 PATH environment variable expansion
In Windows 7 I set the PATH environment variable thus:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;%M2_HOME%\bin;%ANT_HOME%\bin;R:\bin;P:\bin;C:\Program Files…

Garret Wilson
- 18,219
- 30
- 144
- 272
2
votes
2 answers
Bash parameter expansion
I have a script which uses the following logic:
if [ ! -z "$1" ]; then # if any parameter is supplied
ACTION= # clear $ACTION
else
ACTION=echo # otherwise, set it to 'echo'
fi
This works fine,…

Sdaz MacSkibbons
- 27,668
- 7
- 32
- 34
2
votes
1 answer
How to surround find's -name parameter with wildcards before and after a variable?
I have a list of newline-separated strings. I need to iterate through each line, and use the argument surrounded with wildcards. The end result will append the found files to another text file. Here's some of what I've tried so far:
cat < ${INPUT} |…

John Halbert
- 23
- 1
- 2
2
votes
2 answers
SSIS Package for loop to expand list of AD group membership
I am a fairly new user of SSIS tool and I love it! But I have a project that I don't know how to configure the tool. I have a list of about 300 domain groups in a MySQL table that I need to read each one via a loop and for each group query…

JBermudez
- 71
- 4
2
votes
2 answers
Do function like macros need a mandatory parentheses? I am confused after referring the GCC cpp manual
Here is what confuses me:
To define a function-like macro, you use the same '#define' directive, but you put a pair of parentheses immediately after the macro name.
I believe this is to make the code stand out for people other than the author of…

Mendicant Bias
- 23
- 4
2
votes
2 answers
Check for concatenated define in C preprocessor
I access registers by concatenated defines unsing the function GETREG
#define NUMBER 1 //changes
#define REG1 register.N1
#define REG2 register.N2
#define REG8 register.N8
#define GETREG_(N) REG ## N
#define GETREG(N) GETREG_(N)
Sometimes the…

Jul3k
- 1,046
- 1
- 10
- 19
2
votes
1 answer
Zsh does not expand path in `--flag=path` style arguments
In bash:
$ foo --bar=/tmp/ba
expands to foo --bar/tmp/baz. In my zsh install, no expansion is performed here (but is performed as expected when the path is separated by whitespace, i.e. foo --bar /tmp/ba). What zsh setting do I need to…

Sasgorilla
- 2,403
- 2
- 29
- 56
2
votes
0 answers
Cordova expansion file error: net::ERR_UNKNOWN_URL_SCHEME
I am using Cordova 5.3.1 and this plugin to work with expansion files.
Here are other plugins i use in this project:
com.google.play.services 25.0.0 "Google Play Services for Android"
cordova-plugin-crosswalk-webview 1.5.0 "Crosswalk WebView…

DanDance
- 147
- 8