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
4
votes
3 answers

Java - Will try-with-resources call .close() if the user closes the program unexpectedly?

I'm working on some server code for a program I'm developing and I'm using try-with-resource statements to close the sockets. try ( ServerSocket serverSocket = new ServerSocket(port); Socket clientSocket =…
Robo11
  • 45
  • 6
4
votes
2 answers

Eclipse: find resource on classpath

Is there a way in eclipse to search the classpath for arbitrary resource file names (or patterns)? I know I can use either Navigate > Open Type (which will scan the classpath for classes) or Navigate > Open Resource, which will search for any…
Sean Patrick Floyd
  • 292,901
  • 67
  • 465
  • 588
4
votes
2 answers

Visual Studio Editor, MEF in-Depth

I have been having difficulty simply writing a Visual Studio Editor Extension with MEF (Managed Extensiblity Framework). I thank those who answered my previous question, as they helped me know that I need to work with MEF. I've been trying to learn…
NewProgrammer
  • 121
  • 1
  • 4
4
votes
1 answer

Unable to receive data from HttpClient call

I'm trying to send a POST request through HttpClient to a Resource but it seems that there is no data to consume.. I've a filter before the call is passed to that resource to verify signature and validate it, but nothing happens after that.. no data…
Kainix
  • 1,186
  • 3
  • 21
  • 33
4
votes
2 answers

Prevent(manually entered) Code Removal in Resources.Designer

I've added a small function in the Resources.Designer.cs and it working great, the problem is that when I add or remove something from the Resources.resx this function always get removed, is there any indicator I could put or anyway to bypass…
Pierluc
  • 395
  • 3
  • 6
  • 13
4
votes
2 answers

How to add library's in android studio 1.1.0

i have not updated one of my apps in a while and i decided to start a all new project, i use to put all my library in a "libs" file in my app folder. but in the new android studio version i don't no where to put my library, can you help me? this is…
jason flanagan
  • 117
  • 1
  • 1
  • 9
4
votes
1 answer

How can I load scripts, styles and images from a non-URL source?

I am integrating WebKit (via Qt) into an application. Instead of having WebKit retrieve scripts, CSS files and images via URLs, I want my application to provide them (e.g. retrieved from a database). For example, a "regular" web page may contain…
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
4
votes
1 answer

Can't access resources folder in Java

I tried to access resources (marked as) folder in Java app but nothing works, returns wrong paths I've tried: ClassLoader classLoader =…
WildDev
  • 2,250
  • 5
  • 35
  • 67
4
votes
6 answers

Edit strings vars in compiled exe? C++ win32

I want to have a few strings in my c++ app and I want to be able to edit them later in the deployed applications (the compiled exe), Is there a way to make the exe edit itself or it resources so I can update the strings value? The app checks for…
extintor
  • 157
  • 1
  • 2
  • 7
4
votes
3 answers

How to get a byte array from a drawable resource ?

I would like to get a byte array from an jpeg image located in my res/drawable file ? Does anyone know how to do that please ?
Spredzy
  • 4,982
  • 13
  • 53
  • 69
4
votes
1 answer

XAML Parser cannot find resource within dynamically loaded XAP when creating form instance

I've followed Tim Heuer's video for dynamically loading other XAP's (into a 'master' Silverlight application), as well as some other links to tweak the loading of resources and am stuck on the particular issue of loading style resources from within…
Tom
  • 71
  • 1
  • 6
4
votes
1 answer

Load image from resource and apply to Image.source

I'm using BitmapImage sharerimg; sharerimg = new BitmapImage(new Uri("F:/workspace/wpf/NetworkMFServer/NetworkMFServer/imageresources/sharer.png")); Image im = new Image(); im.Source = sharerimg; But i add image to resources and code…
Lightstar
  • 183
  • 3
  • 12
4
votes
1 answer

WPF Resource is not found by ReSharper in design time but solution builds

I use ReSharper 8.2.3 Full Edition with Visual Studio Ultimate 2013 and .NET 4.5. The background is that I have a C# WPF solution with a large number of projects. To simplify the description here, I have the following projects: Project 1: Library…
4
votes
1 answer

How to fail during maven copy-resources instead skip non existing resourceDirectory when perform maven-resources-plugin:copy-resources

How to fail on maven copy-resources instead skip non existing resourceDirectory when perform maven-resources-plugin:copy-resources I have config as descibed…
qwazer
  • 7,174
  • 7
  • 44
  • 69
4
votes
1 answer

Android 144dp bitmap resource on ImageView

I want to show a large bitmap in an ImageView (144dp), but I got bad quality. The bitmap is stored in my drawable resources. Can I show the bitmap in full quality? Xml layout:
User
  • 305
  • 1
  • 3
  • 15
1 2 3
99
100