1. Non-code files packed with an application (example, data or media files). 2. From a security point of view - any data or resource that should be (or can be) protected.
Questions tagged [assets]
3549 questions
1
vote
0 answers
How to get the number of images in xcassets in Xcode?
Is there a way to get the number of images in the xcassets?
In my example it looks like that:
What is more, I want to count the files starting with 1 and 2. So in this case it must be 4 and 6. Do you have any suggestions how to solve that?

hulapalu
- 207
- 1
- 3
- 12
1
vote
1 answer
Play framework reads assets file in unmanagedResourceDirectories
I ran into a problem of reading a file in unmanagedResourceDirectories generated by Webpack in production mode. Given the following snippet:
val manifest: Try[JsValue] = Try(Json.parse(
Source.fromFile(new…

Hung Phan
- 53
- 1
- 5
1
vote
0 answers
What are "Unassigned" slots for in "Brand Assets" in "Assets.xcassets" in Xcode 7.3.1?
After clicking the "Migrate" button on the Target > General > Deployment Info > App icons and Launch images > Launch Images Source panel, Xcode 7.3.1 created yet another item in my Assets.xcassets: Brand Assets.
This item has 6 slots:
4 of those…

Basil Bourque
- 303,325
- 100
- 852
- 1,154
1
vote
2 answers
Android java open from assets->fast
public static String openAssetFile(Context ctx) {
BufferedReader br=new BufferedReader(new InputStreamReader(ctx.getResources().openRawResource(R.raw.hung)));
String readLine;
String sout="";
try {
while ((readLine = br.readLine()) !=…

lacas
- 13,928
- 30
- 109
- 183
1
vote
1 answer
How do I serve static files using Sails.js only in development environment?
On production servers, we use nginx to serve static files for our Sails.js application, however in development environment we want Sails to serve static files for us. This will allow us to skip nginx installation and configuration on dev's…

Slava Fomin II
- 26,865
- 29
- 124
- 202
1
vote
0 answers
Angular2-Webpack: Rewrite paths for static assets referenced inside typescript code files
I am using Angular2 and Webpack and have the following piece of code within a typescript file.
private getIcon = (dataItem) => {
var src = "./images/myImage.png";
if (dataItem.url && dataItem.url != "") {
src =…

lohiarahul
- 1,432
- 3
- 22
- 35
1
vote
2 answers
Asset Management: which is the better way to organise user generated files on a web server?
We are in the process of building a system which allows users to upload multiple images and videos to our servers.
The team I'm working with have decided to save all the assets belonging to a user in a folder named using the user's unique…

purplemass
- 67
- 6
1
vote
3 answers
Get some asset file path in APK
I use some class. That's constructor needs some file path that contains some files.
ex)
Komoran komoran = new Komoran("D:\program_project\lib");
Now I'm making android app. so I can't use absolute path (Because other people who download my app…

LKB
- 457
- 6
- 16
1
vote
1 answer
PHP - set different directory for script/style files
So this issue has probably been brought up a couple of times but I can't seem to find an answer to it.
My goal is to include css, js, asset-files into my php framework. However when calling those files, the path must always be called as the folder…

BRO_THOM
- 824
- 9
- 24
1
vote
1 answer
How to set auto layout constraint on imageView for good resolution image?
I am new in auto layouts and assets of images. I am confused that image view height and width I have to set fix or according to superview, will it effect on resolution or not.
I have a image view 40x40. And I have assets of images are 1x =…

Kishor Pahalwani
- 1,010
- 1
- 23
- 53
1
vote
0 answers
How to access html form data in WebView?
I have created a WebView and using html packages as a source but I need to save data in .txt file in my device. I have tried following code, but can't access form filed. It's just making folder using android …

Kamil Ahmed
- 11
- 1
1
vote
1 answer
Material images android
Is there any generator of these images? I have seen a lot of images like that in android apps, so i think there must be a generator. I have searched for it, but found nothing. Maybe anyone know how to create such assets?

Maxgmer
- 456
- 8
- 19
1
vote
4 answers
Java.Lang.RuntimeException: Font asset not found
As the title suggest, the font file seems that can't be found.
I quote the error:
Unhandled Exception:
Java.Lang.RuntimeException: Font asset not found
fontawesome-webfont.ttf"
The code is:
public class MainActivity : Activity
{
protected…

Pablo De Luca
- 795
- 3
- 15
- 29
1
vote
1 answer
Cannot load assets in dev mode on rails app : ERR_CONNECTION_REFUSED
I just started working on a new rails app that was developed by another developper and I must take on the projet.
I am experiencing difficulty at the setup level when simply trying to run the app locally in dev mode.
The app doesnt manage to load…

David Geismar
- 3,152
- 6
- 41
- 80
1
vote
1 answer
Push rejected, failed to compile Ruby app to heroku
Failed to push to heroku not sure why please some one help me I tried many things but nothing works.. it give me error
I did bundle then git add and commit then the get push to heroku
git push heroku master
Counting objects: 132, done.
Delta…

nourza
- 2,215
- 2
- 16
- 42