Questions tagged [resources]

Assets (like memory, disk space, CPU power or alike) necessary for effective operation or physical files (like images, configuration files or other) to provide some externalized enrichment to an application.

Typically resources are materials or other assets that are transformed to produce benefit and in the process may be consumed or made unavailable

9303 questions
50
votes
3 answers

How to reference javafx fxml files in resource folder?

I am creating a javafx GUI application and my project is a maven configured project. I want to be able to reference my fxml files like this in my controllers: FXMLLoader.load(getClass().getResource("main.fxml")); Where my main.fxml file is located…
j will
  • 3,747
  • 11
  • 41
  • 64
49
votes
1 answer

In Terraform 0.12, how to skip creation of resource, if resource name already exists?

I am using Terraform version 0.12. I have a requirement to skip resource creation if resource with the same name already exists. I did the following for this : Read the list of custom images, data "ibm_is_images" "custom_images" { } Check if…
Malar Kandasamy
  • 839
  • 2
  • 10
  • 17
47
votes
4 answers

App.xaml file does not get parsed if my app does not set a StartupUri?

Background: I'm creating a WPF app using MVVM, and using a DI container to build my ViewModels My App.xaml looks like this:
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
47
votes
19 answers

Coding magazines

So, we have coding books, coding RSS feeds, and music to code by. Are there any coding magazines that anyone would recommend?
Jason Z
  • 13,122
  • 15
  • 50
  • 62
46
votes
28 answers

resources.ap_ does not exist when compile my android project

Compile Error: Error generating final archive: java.io.FileNotFoundException: ..\bin\resources.ap_ does not exist. Compile other simple sample works. Same source file and project works on my college's machine. Any tips ? Why resources.ap_ doesn't…
jim.huang
  • 1,052
  • 2
  • 9
  • 14
46
votes
8 answers

Java try/catch/finally best practices while acquiring/closing resources

While working on a school project, I wrote the following code: FileOutputStream fos; ObjectOutputStream oos; try { fos = new FileOutputStream(file); oos = new ObjectOutputStream(fos); oos.writeObject(shapes); } catch…
Austin Hyde
  • 26,347
  • 28
  • 96
  • 129
46
votes
5 answers

Getting started with autotools

Anyone recommend how a person could get started with autotools in building a C project?
joemoe
  • 5,734
  • 10
  • 43
  • 60
46
votes
3 answers

Python: ulimit and nice for subprocess.call / subprocess.Popen?

I need to limit the amount of time and cpu taken by external command line apps I spawn from a python process using subprocess.call , mainly because sometimes the spawned process gets stuck and pins the cpu at 99%. nice and ulimit seem like…
Parand
  • 102,950
  • 48
  • 151
  • 186
45
votes
2 answers

Android - retrieve string array from resources

Below is the code that i made to retrieve the string array item: String[] menuArray; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ScrollView sv =…
Yuen Tong
  • 789
  • 3
  • 9
  • 11
44
votes
4 answers

Localization and drawables

I want to localize an image by adding the folder res/drawable-hdpi-no, but I get an error stating "invalid resource directory name". What's up with this?
Espen
  • 3,607
  • 11
  • 48
  • 75
44
votes
2 answers

Setting application info in a Qt executable file on Windows

Anyone have an tips on setting the application info (ie. right click on .exe->properties) from Qt? I can add arbitrary version strings to Qt resource file (qrc) and display them. But most Windows installers check the version number and I can't find…
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
43
votes
5 answers

Is there a tool to find unused resources in an Android project?

I'd like to find any unused resources in my Android project - this includes strings, ids, drawables, integers etc. Does a tool to do this currently exist (preferably for Eclipse)?
Joseph Earl
  • 23,351
  • 11
  • 76
  • 89
43
votes
2 answers

Rails, get resource path in model

How do I get the path to a resource in the model? I need to store it in the database and would like the same url as you get from resourcename_path(resource)
jonepatr
  • 7,769
  • 7
  • 30
  • 53
43
votes
2 answers

Different values folders in android

I am creating different values folders in my app (values, values-ldpi, values-mdpi, values-hdpi, values-xhdpi, values-nodpi, values-w360dp-mdpi). But some devices that belong same category. But having different screen sizes. But I see give font size…
John R
  • 2,078
  • 8
  • 35
  • 58
42
votes
12 answers

More CSS toolkits like Twitter Bootstrap?

I was looking for a place where I can find CSS toolkits and resources, ready to be used like the popular Twitter Bootstrap. Any tips?
Mark
  • 67,098
  • 47
  • 117
  • 162