Questions tagged [shrink]
249 questions
3
votes
1 answer
Android - Resize image before BitmapFactory.decodeStream returns it
I need to resize/shrink the image which I am selecting from my gallery before it is returned from BitmapFactory.decodeStream(imagestream). It throws OutOfMemory Exception when I have selected to large image. How could I resize the image before it is…

ninjaxelite
- 1,139
- 2
- 20
- 43
3
votes
2 answers
SQL - shrink database log file
I am trying to shrink my database log file. I have tried to run:
USE databasename
BACKUP log databasename
WITH truncate_only
DBCC shrinkfile (databasename_log, 1)
I get the error message:
Msg 155, Level 15, State 1, Line 3
'truncate_only' is…

user258133
- 75
- 2
- 5
3
votes
2 answers
Image Enlarge Shrink Animation In JS
Ok so I'm putting in an image that onclick resizes, (goes larger and then onclick returns to origional size)
I've done this using JS but I cant seem to implicate an animation in the tween between sizes, i want it to visibly get bigger rather so it…

mrmason
- 119
- 1
- 12
3
votes
4 answers
Database size is huge
I have the following problem.
We have a database that stores binaries in the database.
We know the size of the database can be big so we removed all the binaries from the database and used the task "shrink" on it.
This way we hoped that the database…
anon
3
votes
4 answers
How to shrink external java libs?
I'm writing an applet, which uses ~10 external libraries. Together they occupy more than 2 megabytes. In some libs we use only 1-2 classes, so a lot of others can be safely deleted. So the question is how to remove unused classes from jar libraries?…

tema.gogoti
- 55
- 1
- 1
- 5
2
votes
0 answers
Proguard shrinks too much
Since ADT 17 you can find in the gen folder a BuildConfig class with a DEBUG constant. I often use this constant in my code, since ADT changes the value automatically when you export the application.
However with Proguard this doesn't work anymore.…

vRallev
- 4,982
- 3
- 31
- 34
2
votes
1 answer
Force shrinking of MigLayout-Component inside JScrollPane
I have a Component that uses MigLayout as its LayoutManager. It is set to grow inside the JScrollPane to occupy the whole available width. So if I resize the appliation's frame, the JScrollPane is as wide as the frame is and the inside component is…

hotzen
- 2,800
- 1
- 28
- 42
2
votes
0 answers
Why is 'shrink' not called in a custom Arbitrary instance Haskell's QuickCheck?
I'm trying to understand how shrink works in Haskell's QuickCheck, so I've come up with a minimal example shown below, but when I run it, the falsified examples are not shrunk.
The result object shows that no shrinks where tried, and adding a…

Ernesto Posse
- 21
- 2
2
votes
1 answer
How to Autoshrink UILabel?
I have tried following multiple instructions to get a dynamic font-size according to the size of the screen, but to no avail. In this example,
I have one UILabel that has the following constraints:
Equal Width to Superview
Align Center X to Safe…

aritroper
- 1,671
- 5
- 16
- 26
2
votes
1 answer
Is it ok to shrink an array in C by changing the pointer to a higher index?
For example, if I have:
char arr[] = "this is a test";
but I decided I wanted to shrink it by 5 so I do:
arr = &arr[5]:
I tried this out and it seemed to work fine, Im just wondering if this would lead to any undefined behavior or "memory issues".

exliontamer
- 95
- 12
2
votes
0 answers
Shrink appcompat resources in Android
I would like to know how to remove appcompat resources.
To see my problem : In Android Studio, generate a new project with an empty Activity (backwards compatibility checked).
Enable shrinkResources in release build type.
buildTypes {
release…

Mursaat
- 48
- 6
2
votes
3 answers
Shrinking log file in SQL Server has no change in file size
I work for an organization and i have come across a problem where i cannot shrink the log file.
The SQL server database is consuming 400 GB out of 600 GB hard disk drive.
The log file size is around 350 GB.
I tried shrinking the log file but the…

LOL
- 101
- 6
- 17
2
votes
1 answer
Shrinkage Estimates of the Spearman Correlation R
I'm trying to estimate the correlation matrix of 50 stock returns in R.
I'm aware that i should shrink the correlation matrix, but I'm also interested in using the Spearman’s rank correlation since it dosen't require the distribution to be normal.…

eaoestergaard
- 53
- 6
2
votes
1 answer
Strategies to preserve disk space in high input frequency application
I have a requirement to support shrinking of a database which has a data entry rate of 1 entry (approx. 300KB) per second. The database file can reach 3GB. The current database has no auto vacuum feature. Database file space going over a certain…

geejay
- 5,440
- 8
- 50
- 60
2
votes
1 answer
Export PDF from Excelsheet in Landscape format without blank space
need a solution for my misery. This following Code works, but the Problem is it Shows me the blank space as a full site. I would like to know if its possible to "shrink" that?
The shrinking should start @ Column "F"
This is the code:
Private Sub…

ManInTheMiddle
- 128
- 1
- 2
- 13