Questions tagged [expansion]
428 questions
2
votes
2 answers
invoking sed with a shell variable
Why doesn't this work?
$ s="-e 's/^ *//' -e 's/ *$//'"
$ ls | sed $s
sed: 1: "'s/^
": invalid command code '
$ ls | gsed $s
gsed: -e expression #1, char 1: unknown command: `''
But this does:
$ ls | eval sed $s
... prints staff ...
$ ls | eval…

Noil Rion
- 33
- 5
2
votes
1 answer
Prevent macro expansion in false branch of if expression
In Clojure, the branch of an if expression that doesn't match the condition is not evaluated, so no exception is thrown in evaluating the below expression:
=> (if nil (/ 1 0))
nil
However, macros will still be expanded before evaluating the if, so…

OpenSauce
- 8,533
- 1
- 24
- 29
2
votes
3 answers
how to control cursor placement in Emacs abbrev expansion?
In Emacs, is there a way control where the cursor/point gets placed in abbrev-mode expansion?
You know, something like this?
("orgfootnote" "[fn:: %?]" nil 0)

incandescentman
- 6,168
- 3
- 46
- 86
2
votes
8 answers
parse and expand interval
In my script I need to expand an interval, e.g.:
input: 1,5-7
to get something like the following:
output: 1,5,6,7
I've found other solutions here, but they involve python and I can't use it in my script.

Tom
- 85
- 1
- 9
2
votes
0 answers
APK expansion file onFinishDownload
I have this code with wich I download APK expension file
private void performAPKExpansionCheckAndDownload(){
String APK_LOG = "APK_LOG";
String mainFileName = Helpers.getExpansionAPKFileName(this, true, 2);
…

haawa
- 3,078
- 1
- 26
- 35
2
votes
3 answers
Can python act like this, in bash?
Can python generate path with multi-sub-paths by short form syntax like this ?
vars=project/{DEBIAN,usr/{bin,usr/{applications,icons,share}},computer}

UhBaUnTaUh
- 37
- 7
2
votes
4 answers
Can the date command be macroized
I often make snapshots of files using filename.date +%Y%m%D.tar.gz where the date is inserted in the filename, but it does get fiddly some times.
Is there a way to set the date +%Y%m%D expression in a macro which will always be expanded so I can use…

vfclists
- 19,193
- 21
- 73
- 92
2
votes
2 answers
Using images from apk expansion file in android webview
I have an android app that displays maps. The maps are hi-res images sliced to 100 tiles per map to maintain resolution. I currently have each map in a separate folder in my assets folder. As this makes my apk huge, I want to move these images to my…

Javed
- 21
- 3
2
votes
1 answer
Android: unable to resolve static field 65 (state_unknown) in Lcom/android/vending/expansion/downloader/R$string;
I get the warning mentioned above (in addition to other similar warnings), followed by an error:
java.lang.NoClassDefFoundError: com.android.vending.expansion.downloader.R$string
I get this error right after running the 2nd line here: (I'm using…

Faizan Kazi
- 545
- 1
- 10
- 18
2
votes
2 answers
Crc error with Expansion files
Got success in uploading and download the Expansion files Apk external data, Android Expansion
but now I am facing CRC while unzipping my files.
Not getting exactly where the problem is, Google rename my files as .obb
Searching for workaround, if…

Mohammed Azharuddin Shaikh
- 41,633
- 14
- 96
- 115
2
votes
1 answer
Apk external data, Android Expansion
I am using concept of Android Expansion which helps us to remove obstacle of 50mb limitation of Apk.
Following all the steps http://developer.android.com/guide/market/expansion-files.html
I understood that you need to follow file format like this…

Mohammed Azharuddin Shaikh
- 41,633
- 14
- 96
- 115
1
vote
3 answers
Equivalent of abbrev-mode but for functions?
I'm a big fan of abbrev-mode and I'd like something a bit similar: you start typing and as soon as you enter some punctation (or just a space would be enough) it invokes a function (if I type space after a special abbreviation, of course, just like…

Cedric Martin
- 5,945
- 4
- 34
- 66
1
vote
2 answers
APK 50meg+ Expansion Packs and Flash
So Google Play has come out with their new Expansion Pack setup, allowing apps to shoot past the 50meg limit.
I've set up a 42 meg APK file, and tested it manually by placing my main expansion file in shared storage as outlined in this massive…

Tony Five Thumbs
- 33
- 1
- 8
1
vote
3 answers
subprocess a bash command with *
Is there a way, I can execute in python a bash command with expansion: *
I tried thousand ways with no luck.
Actually I want to have a python script which enters each directory in the current dir, and executes a given bash command there (possibly a…

Adobe
- 12,967
- 10
- 85
- 126
1
vote
1 answer
using Clipper library - Angus Johnson => cannot run the code snippet
I'm trying to use Clipper library to expand the obstacle images in my obstacle avoidance robot control assignment.
But now, I'm even stuck with the example code of the library:
(http://www.angusj.com/delphi/clipper.php#code)
include…

TSL_
- 2,049
- 3
- 34
- 55