Questions tagged [expansion]

428 questions
3
votes
2 answers

command expansion: how to convince eshell I'm not trying to execute an elisp expression?

git grep fizzbuzz $(git rev-list --all) fatal: Invalid object name 'Symbol's function definition is void'. Of course, the same command in M-x shell works fine. How do I convince eshell I'm not trying to execute an elisp expression here so I can…
user15486
3
votes
1 answer

Reconstruct $@ and keep the correct word split in Bash

I have a bash function that passes all the parameters to another function b which works well in the past. a () { b "$@" } a -input /input -output "with blanks" Now I want modify some parameters and passes the updated parameters to b. I was…
Cheng
  • 4,816
  • 4
  • 41
  • 44
3
votes
1 answer

Prevent TI BASIC expression expansion

I'm coding a function for my TI-Nspire CAS calculator. I have two parts of an expression: (x+2)^2 and +3. When the expressions are joined the result is expanded to x^2+4x+7 while I need it to remain as (x+2)^2+3. I've tried making both parts…
Anti Earth
  • 4,671
  • 13
  • 52
  • 83
3
votes
1 answer

UML Activity diagrams: how to select between two objects in an expansion region

I'm trying to express that an action inside an expansion region should take its first parameter from outside the expansion region on the first iteration and from a partial result on successive iterations. This is the activity diagram I'm trying to…
royconejo
  • 2,213
  • 3
  • 24
  • 29
3
votes
2 answers

Changing Icon Color behind ListTile in an ExpansionPanelList.radio

In a ListTile of ExpansionPanelList, the trialing is already given as an arrow down, and when the ListTile is expanded, the arrow changes to arrow up. However, it's dark in color. I added trailing: Icon(blah blah). This merely added an icon between…
VegetaSaiyan
  • 203
  • 6
  • 18
3
votes
1 answer

why all expansion cards open on a click?

js with vuetify and vuex for getting my data from API. I have a timeline component with the expansion card in it when I click on expansion icon all my cards in timeline get open but I want to open just that specific one I have…
t.khatibi
  • 115
  • 1
  • 2
  • 13
3
votes
1 answer

Why does this combination of curly braces and double quotes not work in bash?

I'm trying to understand how to use curly braces and quotes properly in bash. I'm wondering why the third example of an ls command doesn't work. #!/bin/bash -vx # File name prefix. File_name_prefix='this_is_a_file_name_prefix' # Let's do this in…
Llewen
  • 31
  • 4
3
votes
1 answer

How do I expand integer_sequence?

I have a function which looks like this: template std::ostream& vector_insert(std::ostream& lhs, const char* delim, const T& rhs, std::index_sequence) { std::ostream_iterator it(lhs, delim); …
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
3
votes
5 answers

Flutter APK greater than 100 MB

My android release apk size built using Flutter is around 150MB. I would like to upload this apk to the google play store but play store has a apk size limit of 100MB. In Android app development we create APK expansion files for such limit in steps…
Abu Saad Papa
  • 1,908
  • 15
  • 20
3
votes
1 answer

expand wildcards in string variable

I'm reading strings from a blacklist file which contains files and folders which should get deleted. It works for simple file names, but not with wildcards. E.g. if I type on the shell rm -rf !(abc|def) it deletes all but these two files. When…
user3150128
  • 455
  • 6
  • 9
3
votes
2 answers

Fileset/patternset's refid attribute isn't expanded. How would you write a target that operates on an arbitrary set of files?

I have a set of targets that each do essentially the same thing except each contains a specific patternset on which to perform its tasks. I want to collapse these targets into a single "reusable" target that instead takes a set of files "as a…
Kit
  • 20,354
  • 4
  • 60
  • 103
3
votes
2 answers

Inline expansion of arrays in bash

I'm trying to expand an array in bash: FILES=(2009q{1..4}) echo ${FILES[@]} echo ${FILES[@]}.zip Output is: 2009q1 2009q2 2009q3 2009q4 2009q1 2009q2 2009q3 2009q4.zip But how can I expand the last line as in echo 2009q{1..4}.zip expansion, so…
Anton Tarasenko
  • 8,099
  • 11
  • 66
  • 91
3
votes
2 answers

Avoiding numerical instability when computing 1/(1+exp(x)) python

I would like to compute 1/(1+exp(x)) for (possibly large) x. This is a well behaved function between 0 and 1. I could just do import numpy as np 1.0/(1.0+np.exp(x)) but in this naive implementation np.exp(x) will likely just return 0 or infinity…
benbo
  • 1,471
  • 1
  • 16
  • 29
3
votes
2 answers

C99 Macro to build a quoted string literal after evaluation

I'm developing an embedded application in C99, and the project contains some integer constants defined like: #define LEVEL1 0x0000 #define LEVEL2 (LEVEL1 + 1) It has since become useful to keep track of these values for logging purposes, so…
Throwback1986
  • 5,887
  • 1
  • 30
  • 22
3
votes
2 answers

How to extract files from .obb file?

in my application I downloaded the expansion file at Android->obb->packagename->main.1.packagename.obb . Can someone explain to me, even with the sample code how to extract my files from it ? I tried to use the APK Expansion Zip Library as…
Lorenzo Salani
  • 73
  • 1
  • 1
  • 7