FAQ Database Discussion Community


Tomcat not using all cores in high load period

tomcat,resources,cpu-usage
We have a strange behaviour with our tomcat server. Initial situation: tomcat-server with 50 webapps (spring applications delivering websites using thymeleaf template engine) server with 16 cores and 96GB ram jmeter for load-testing against one webapp, others idling 120 threads 10 repeats http requests against a bunch of urls When...

some more help for naming conventions plural vs singular

node.js,rest,resources,uri,naming-conventions
There are answers out there but my question is different as I'm trying to find out a uri when I've detail on a product or when I've to return detail on a product plus it's customers. I need a standard solution for following 4 api calls. I need a standard...

RAII for resources that can be invalidated

c++,resources,directx,raii
I'm a hobbyist C++ and DirectX programmer, so most of the knowledge I have is from old game development books in which the code designs are just to get something up and running as a demonstration, leaving me with a lot of design considerations for even the simplest of programs....

How to load resources in a FMX-component

delphi,resources,components,firemonkey
I try to use resources in a FMX-Component and get the EResNotFound-Error when I try to read the resource. following scenario: a FMX-bpl (FmxComponents.bpl) where i added some png-files in my IDE (XE7) over 'resources and images'. the resources are into the 'FmxComponents.dres' but not in 'FmxComponents.res'. when I try...

C++ getting real path of resource file

c++,visual-studio,path,resources,bmp
I have an external dll, who require a path as string to search the image. Now I am able to save&load bitmap files from my resources, but I don't know how to get a path like "C:\test.bmp" from a resource file. I already tried "test.bmp" (<- is the execute folder),...

resources to make java card application similiar like RB 5.0

java,resources,javacard,jcop
I am making java app which main function is to write data on java card 36k, so I need resources ,tutorials about java cards,stuff like that.? I have no experience making java card apps, so please give me any helpful resources.. I am making application like RB 5.0 , if...

@ResourceDependency with string query

jsf,resources,java-ee-6,jsf-2.2,mojarra
I want to implement cache busting via string query with the file version, but I also want to use @ResourceDependency. So this is what I have: @ResourceDependency(name = "scrypt.js?v=version", library = "mylib", target = "head") I know mojarra had trouble with string queries before for the <f:outputScript>, but this has...

How do I set the URI to an object in a ResourceDictionary from another assembly?

c#,wpf,xaml,resources
What works I'm using a plugin called "WPF Animated GIF" which allows me to set a animated gif as an image source to an image. My problem is that I'm using images from another project. These images are keys in a ResourceDictionary, like so: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> ... <ImageSource x:Key="ImgSyncFailed">Images/Sync...

Test if application is running in a jar file in Java

java,resources
So i've been doing some research and have found a hackish solution to my problem, which is this: How do I determine if the resource that I am loading within the source folder is being extracted from a jar file, or is in the build directories that Netbeans autoconfigs? Here's...

Resources in custom iOS frameworks

ios,cocoa-touch,ios8,frameworks,resources
I have made an empty single-view application in Xcode 6 (FWTest) and added a Cocoa Touch Framework (FWTestKit) as a target and asked it to embed in FWTest. Then I add an image (photo.png) to the framework, that I expect to be in Frameworks/FWTestKit.framework/Versions/A/Resources/photo.png when I build & archive my...

C# MVC Resourcefile get string from variable

c#,asp.net-mvc,resources
This is how I get a resource string in one of my views: @MyProject.Resources.ResourceEN.MyResourceStringName //Gives back mystring in desired language What if I had a string variable that I wanted to send in? @string HelloWorld; @MyProject.Resources.ResourceEN.HelloWorld This won't work obviously because it looks for the resource name "HelloWorld" and not...

Using Resource files for things other than language

c#,asp.net,model-view-controller,resources,globalization
I am working on an MVC application that is effectively a piece of middleware to provide admin and reporting on an external BPM solution. The users of the system aren't all for the same business function and may refer to fields as different things (e.g. division A calls a client...

Where to store a binary file to be used for unit testing

java,unit-testing,resources,mocking,directory-structure
Where should I store a resource (binary file in my case) that I need to use for unit testing? Specifically, my directory structure is a standard: src -> main -> java -> com.company.project -> classes... -> test -> java -> com.company.project -> classes... I want to mock a file being...

angularjs get data from Json using $resourse

json,angularjs,get,resources
Good afternoon! Learning Angularjs. Below is the structure of the project. I have a service that reads data from json var WebKrServices = angular.module('WebKrServices', ['ngResource']); WebKrServices.factory('DataPlant', ['$resource', function($resource){ return $resource('plants/:plantId.json', {}, { query: {method:'GET', params:{plantId:'plants'}, isArray:true} }); }]); And Controller var WebKrControllers = angular.module('WebKrControllers', []); WebKrControllers.controller('PlantsCtrl', ['$scope', 'DataPlant', function($scope, DataPlant)...

Priority language in multi language website

asp.net,resources,default,multilanguage,hindi
I'm following this guide to create a multi language page : http://www.codeproject.com/Articles/334820/Using-Globalization-and-Localization-in-ASP-NET But a problem is : I want my website default language is Hindi. But the browser often set English is default language. That cause when I load my site, the language on it is English, not Hindi (I...

How to use Try-with-resources with if statement?

java,resources,java-7,try-with-resources
I have the simple code: try (FileReader file = new FileReader(messageFilePath); BufferedReader reader = new BufferedReader(file)) { String line; while ((line = reader.readLine()) != null) { //// } } I want to write something like that: FileReader file = null; ///..... try(file = (file == null ? new FileReader(messageFilePath) :...

read/write to a resource in .net

c#,.net,resources
In my c# program I need to read 1 string (the string is a file path). Occasionally I need to write over this file path with a different one. Creating a .txt file as a resource seemed like a good idea but as I found out it is not a...

MaxCDN - shared ssl - invalid certificate?

ssl,resources,certificate
one problem is really bugging me. I have a webshop with global customer scope, so I am using the known service "maxcdn.com" with a "pull-zone" to share my images, scripts and similar resources via maxcdn. Maxcdn gives me a subdomain with that I can access my resources and if I...

Richfaces custom skinning images

resources,richfaces,skinning
My web app got normal skinng working for (e)css files. I got 2 skins: Normal plainTxt=#006 plainBg=#FFF readonlyTxt=#003082 menuTxt=#0000A0 blackwhite plainTxt=#FFF plainBg=#000 readonlyTxt=#D0D0D0 menuTxt=#000 The colors work. But now i have the following issue: images For each skin i want different images. How do i get that? That i can't...

Java Restlet - How do I dynamically attach resources to the router?

java,resources,restlet,mashup
Here's the basics of what I'm trying to do. I'm working on a project where I'm creating a mashup page from various web APIs. The mashup page contains country information. I have a BLL layer where I create the mashup page (html page with country input using Chunk Library). This...

Posting data with angularjs v 1.3

angularjs,resources,http-post,asp.net-web-api2
I have a web api 2.0 application and I have to post data of a form.. Here my js code: (function (angular) { var public_area = angular.module("public-area", ['ngResource']); public_area.factory("MyService", function ($resource) { return { my_controller: $resource("/api/MyHttpControllerTest/") }; }); public_area.controller("MyController", function ($scope, MyService) { $scope.getPlans = function () { var pianiTariffari...

angularjs divide content to different paragraphs

angularjs,resources,paragraph
I got my data from a json file like $http.get('json/about.json').success(function($scope.about = data;} say in data I have: Hello world paragraph. How do you do paragraph. How are you paragraph. I want to display these in 3 different html p s. How do I do that? 1>I could divide data into...

Is JDK ClassLoader.getResourceAsStream broken? (unclosed resources)

java,resources,classloader,java-8,resource-leak
I will try to prove that ClassLoader.getResourceAsStream() is opening two InputStreams, closing none of it and returning only one to client. Is my logic correct? JDK sources are picked from jdk1.8.0_25 I've get into unclosed resources problem using Spring ClassPathResource in interval (original question), that is using ClassLoader.getResourceAsStream to get...

Virtual Private Server Hosting Price

ffmpeg,resources,video-streaming,web-hosting,vps
Can you tell me a VPS that has an unlimited bandwidt a low price but very powerful for streaming website? Any answers would be greatly appreciated....

Access to resource missing with an exported jar file

java,jar,resources
If I run the following code within eclipse my program compiles with no issue. If I try to export the program as a runnable jar file my resource cannot be found. public class Test { public static void main(String[] args) { File file = new File(Tester.class.getClassLoader().getResource("res/myFile.txt").getFile()); if(!file.exists()) { System.out.println("File not...

Gatling 2: concurrent request handling

asynchronous,concurrency,resources,exec,gatling
I have a question regarding the behavior of Gatling when using .exec in combination with .resources. The documentation describes the behavior very briefly: Allows to fetch resources in parallel in order to emulate the behaviour of a real web browser Let's consider the following, simple scenario: val scn = scenario("Test...

How to embed any *.jpg image inside win32 executable and use it at run time

c++,image,opengl,resources,soil
I am doing a project in pure OpenGL and FREEGLUT named Space Voyager. Problem is that during run time when programe calls a function to load all the images player has to wait around 2 minutes on loading screen!!!! Some of the images are like 16 MB files otherwise 1...

Make a Button resource and use it in multiple places

c#,wpf,button,resources
how can i define a global button and use it in multiple places in WPF. here is my button witch i want to use it in multiple places. <Button x:Key="Attach" Width="90" Margin="220,0,0,0" Content="Attach" Height="16" FontSize="11"/> however i tried to define it in App.xaml(Application.Resources) and also in MainWindow.xaml (inside Window.Resources) But...

How to extend AngularJS resource

angularjs,resources
To adjust json object property from String to Date to suppress an AngularJS warning, datefmt error for date input. The QUESTION is: the following code could implement, but somewhat ugly, is there more beautiful implementation? 'use strict'; var ahbHotelService = angular.module('ahbHotelService',['ngResource']); ahbHotelService.factory('Hotel',['$resource',function($resource){ var AHBHotel = $resource('/api/hotel/:id',{},{ query:{method:'GET',params:{id:''},isArray:true} }); var protoGet...

How to use a String as a resource ID [closed]

android,resources,drawable
*Update - solved** What I was looking for was how to get the Resource ID. It's difficult to formulate a question when you don't know what you don't know, but the two guys that answered it within a matter of minutes seemed to understand. Thanks, guys. Here is the code...

Determining which request can be granted as edge of hold,wait and illegal

graph,resources,operating-system,deadlock,cycle
Consider the resource allocation graph :- Assume the sequence of requests is given as: P4 → R3 P1 → R4 P3 → R1 P2 → R3 P4 → R2 P5 → R4 Which requests can be granted such that there should be no deadlock? I tried solving it but just...

Idiomatic Go for abstracting resource allocation/deallocation

error-handling,go,resources,idioms
Is there an idiomatic Go way for abstracting resource allocation/deallocation? My initial guess is to abstract the allocation/deallocation in a higher-order function: func withResource(f func(Resource)error) error { // allocate resource // defer free resource return f(resource) } However, this line of thinking is borrowed directly from the functional paradigm and...

How to load resources outside of classpath?

java,spring,resources
I'm using spring framework in webapplication and I would like to load resources (*.jpeg) stored outside of classpath. I'm calling GET method of some controller. It works when I call the photo from classpath. But when I call paths like: /ext/media/photos/photo.png, file:/ext/media/photos/photo.png, /home/user/ext/media/photos/photo.png, http://some-web-image, it doesn't work. @RequestMapping(value = "/loadPhoto",...

How to use Resources.resx in jQuery Validation Plugin

jquery,asp.net,resources,jquery-validate,unobtrusive-validation
I would like to validate some form with jQuery Validation Plugin. Everything wortks fine, until when I want to use messages from Resources files. It's my code: $('#myform').validate({ rules: { test1: { required: true, }, messages: { test1: { required: "simple string works", }, }); I've tried to put '@Html.Raw(Resources.testRes)'...

Rails - using link_to on application.html.erb for nested resource not getting id

ruby-on-rails,navigation,resources,nested,link-to
I have a sidebar on application.html.erb, and the links should go to /brands/[brand_id]/coupons I used brand_coupons_path(@brand) but I get an error saying 'No route matches {:action=>"index", :brand_id=>nil, :controller=>"coupons"} missing required keys: [:brand_id]' resources :brands do resources :coupons, :sales end class Brand < ActiveRecord::Base has_many :coupons has_many :sales accepts_nested_attributes_for :coupons accepts_nested_attributes_for...

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

java,sockets,resources,try-catch
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 = serverSocket.accept(); PrintWriter out = new PrintWriter(clientSocket.getOutputStream(), true); ) { out.println("This is the server! Hooray! :D"); } catch (IOException e) {...

SQL Server query timeout due to load in different DB on same server but different physical disk

.net,sql-server,ado.net,resources,connection-timeout
We have 2 separate DBs on the same physical server (one for big data, one for runtime data), they use separate set of physical disks, but same SQL Server instance. Recently we run heavy query in the 'big data' database (analysing gigabytes of data) and a very simple query (from...

Limit a set of processes' CPU and memory usage

linux,osx,process,resources,limit
Browsing the web has low priority for me, and so I would like all the processes that deal with it to be low priority, too. Is this approach a valid one? Open a console window with the nice command. Launch the browser from this console. Will the program launched from...

Laravel Route - Nested Resource Controllers without intermediate page

php,laravel,routes,resources
I have two controllers - ChController & FillController . ChController works fine. Route::resource('c', 'ChController'); | | GET|HEAD | c | c.index | App\Http\Controllers\[email protected] | | | | GET|HEAD | c/create | c.create | App\Http\Controllers\[email protected] | | | | POST | c | c.store | App\Http\Controllers\[email protected] | | | | GET|HEAD...

SAPUI5 Error resource URL

resources,sapui5
I'm programing in SAPUI5 for mobile application, and I'm using the SAPUI Tools developer. I create a default project with XML application view. I'm receiving the follow error: 2015-02-12 15:44:21 Device API logging initialized - DEVICE sap-ui-core.js:80 2015-02-12 15:44:21 registerResourcePath ('', 'https://openui5.hana.ondemand.com/resources/') - sap.ui.ModuleSystem sap-ui-core.js:80 2015-02-12 15:44:21 registerResourcePath ('com/maxinst', './')...

What is causing the Rendering Problems : Couldn't resolve resource error in Android Studio 1.1.0?

android,resources,rendering
I was looking into the Android Studio, and was trying out some basic app development. The learning material I was using is based on an older version of Android Studio which is still in beta stage, and I wanted to check out the latest version, 1.1.0. In version 1.1.0, I...

Re add image resource in Visual Studio 2012

c#,image,winforms,visual-studio-2012,resources
I have a winform project with all button with their icon, now I just "copy" the code and the "image" folder into new project, with folder structure SAME to the old project. But all the icon lost their "source", make the code have hundreds of error like this.pictureBox1.Image = global::QuanLyKho.Properties.Resources.box;...

Accessing a disposed object (form) in C#?

c#,forms,resources,objectdisposedexception
I have two forms, once I double click a row on a dataGridView of one form, the other form opens up with information about that particular row. But after I close the second form and double click on another row in my dataGridView to open the same form but with...

How to load properties files dynamically when using servlet with war file?

java,properties,jboss,resources,war
I'm using JBoss AS 7. How can I use properties files which I download everytime(with translations) from an external folder? I'm deploying the servlet as a .WAR file and I want to use these properties files from a random temp folder from the disk. How do I that ? The...

Run t4 script as custom tool for resx file

c#,.net,visual-studio,visual-studio-2012,resources
I have a resource file MyResource.resx, and I want to change how the MyResource.Designer.cs file gets generated. I have a t4 script that accepts a resx file as input and gives me the resulting transform, however, I must manually run this t4 in order for it to work. I see...

Redefine jQuery dependency search path

f#,resources,offline,websharper
I have found that a typical Websharper "hello world" application does not work offline due to the inaccessibility of jQuery resource "http://code.jquery.com/jquery-1.11.2.min.js". The question is: can I override this search path to the local folder of my web application?

java spring images in resources folder not available (404 error)

java,spring,spring-mvc,resources
I am working on a Web Application using the Spring Framework in version 4.1.5 I have a resources folder configured and set up correctly and am already loading css, js and image files out of that. <mvc:resources mapping="/images/**" location="/resources/" /> However, I am also using the resources folder for uploading...

How to create a resource (text file) from c# code? Or can we edit an existing resource file?

c#,.net,visual-studio-2012,resources
I have built a web application with vacations period planning (didactic purpose). I need to import a text file with bank holidays once a year (the file will be uploaded in UI). (ex: localPath/BankHolidays.txt - contains: 1.01.2015,31.12.2015,...). I thought it would be a good approach to save the given text...

setBackgroundColor with TypedArray Id Color

android,colors,resources,adapter
I have a problem when using the setBackgroundColor() method on an object of type View . The colors I want to use are declared in an array in my file strings.xml <array name="nav_news_colors"> <item>@color/nav_1</item> <item>@color/nav_2</item> <item>@color/nav_3</item> </array> And in colors.xml : <color name="nav_1">#919fa1</color> <color name="nav_2">#ffa2a6</color> <color name="nav_3">#a28bc3</color> Then, on my...

Show local images inside WebView windows phone 8.1

c#,html5,resources,windows-store-apps,windows-phone-8.1
I am trying to load a html file in Webview in WP8.1 app. I have the image stored inside my project. When I run the html file in browser it runs properly but when I load this html file in Webview it does not show image and same thing happens...

How to include CSS file in Hippo CMS?

css,resources,include,hippocms
I'm using HippoCMS 10. I did "Hello World" tutorial from official site. Now I want to include CSS file and style something. I did this: <html> <head> <link rel="stylesheet" href="<@hst.webfile path='/css/screen.css' />" type="text/css"/> </head> <body> <h1>Hello World </h1> </body> </html> But when I try to open the page (http://localhost:8080/site/) I'm...

Which channel type uses the least amount of memory in Go?

memory,go,resources,channel,internals
I find myself frequently using channels to get things to stop. In these cases the channel is being used solely as a means of signaling, and none of the data is actually used. For example: package main import ( "fmt" "time" ) func routine(stopChan chan bool) { fmt.Println("goroutine: I've started!")...

Angularjs: View not updating list after POST

javascript,angularjs,rest,resources
I am currently working on a small angularjs app which is basically a user profile management app. The problem i am having is with adding users dynamically. When i enter the user data, it successfully POST's to my local server i have setup, BUT i have to refresh the page...

Java get path of executing jar without .jar file

java,path,resources
I am trying to export my app into jar using intelij Idea artifacts. I export everything except for resources (14,5GB is in my opinion too much for .jar file) so I have put /res folder inside same folder as jar. Right now my structure looks like this: /SAR.jar /res/colors/ /res/icons/...

Xamarin Play Sound From From Embedded Resource

android,ios,xamarin,resources
I"m very new to Xamarin development. I want to play sound files from the Embedded Resources, to prevent having to copy and paste the same resource in iOS, Android and Windows project folder. I'm already able to play the resource on Android using the following method: public void PlaySound() {...

Angular $resource POSTS $promise and $resolved to server on $save

javascript,json,angularjs,resources,save
I am having trouble with $resource on one of my angular projects. All of a sudden it has started to mess up the objects that are sent to the server on $save. Calls to $save on $resource objects does not strip away $resolved and $promise from the JSON data that...

Creating styles-v21.xml

android,xml,resources,android-styles
In Android Studio, I imported a project which did not include styles.xml (v21). So I created a styles-v21.xml file in the values directory. Both styles.xml and styles-v21.xml are in the values directory now. styles.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="AppTheme" parent="AppTheme.Base"> <!-- Customize your theme here. --> </style> <style name="AppTheme.Base"...

Resource and properties file management issue

java,spring,resources,properties-file
I am trying to learn spring. I have some trouble to manage my resource and properties file. This is my mvc-dispatcher-servlet.xml file. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd...

How to make POST request in my app

javascript,angularjs,resources,xmlhttprequest
I am trying to use $resource to make post request. In my app, angular.module('myApp').factory('Product', ['$resource', function ($resource) { return $resource( '/api/product/:id', { id: '@id' }, { 'save': { method: 'POST', isArray: true, url: '/api/product/:id/addProduct' //different url for adding a product. ,} } ); } ]); In my controller Product.save({ name:'test...

Renaming file I got this error: !MESSAGE Variable references non-existent resource

python,eclipse,resources,liclipse
I'm making a game in Python (with Pygame) using LiClipse (based on Eclipse). My main file which executes everything is called "prueba.py". I've renamed it to "Main.py" and then trying to run the project I've got this error: !MESSAGE Variable references non-existent resource : ${workspace_loc:MyGame/prueba.py} Is there any file where...

VB.Net - Resources folder is found as a virus for others

vb.net,resources,antivirus
As an installer developer... There are a few thousand people who use my software, I have to try my best to get the people to keep using my installer. Everything was going well up until last month. I spoke to some people who have this problem / error this is...

How to test a function that copies a folder out of its own JAR file?

java,maven,jar,resources,embedded-resource
I have a function (see below) that copies all files of a specific folder from its own JAR. For this function (see below too), I want to write tests, but the tests will be executed before the JAR is builded (it's a maven project) . One important part of this...

Grails resource tag generating wrong link

javascript,css,grails,resources
I am working on a project in which different modules are divided in different custom created plugins. As for example- AccountingPlugin UiPlugin Etc.... So like now I have all the UI related stuff inside UiPlugin and I am working on Accounting plugin and I have controllers, services and views of...

Database vs Resources C#

c#,database,resources
just want to ask what would be a better practice, I have a project for EDI formats translation, this project uses a serie of templates. What would be better? Use a Database (we always have the connection open) or use the resources on the project to save all of those...

Change Background image in WPF using C# [duplicate]

c#,wpf,image,background,resources
This question already has an answer here: Change WPF window background image in C# code 3 answers I'd like to change the background image of my WPF application by a button. I know how to do it using WindowsForms, but in WPF I failed. I found a solution already,...

overriding findResource

java,resources,bytearray,classloader
I have a custom ClassLoader and I want getResource to look for resources at a custom location. Therefore, What I want to do is to override findResource, as I want it to return an array of bytes as the result. The return type of the findResource function is URL. So...

How to set a required reasource location as a variable?

vb.net,visual-studio-2010,variables,resources
I'm currently making a game for an Advanced Higher computing course. After having my previous question answered perfectly and helping me a great bunch. I was wondering if you could share you wisdom upon me once again... I've currently declared the variables, got the selection process narrowed down. All I'm...

Java: Accessing resources and the Law Of Demeter

java,android,resources,accessor,law-of-demeter
Overview In my (Android) Java game, I have a class called resources. As the name suggests, this class holds the resources for the game. All of my OpenGL objects (Sprites) are created here It's looks something like the following (obviously, this is a simplified version compared to that which appears...

ASP.NET MVC: Language Globalization - Required Error Message is Always in English

asp.net-mvc,razor,resources,globalization,multilanguage
I am learning how to do globalization, and everything is working well, except for one thing. I have some required fields, and their error message is always in English. Everything else will swap languages, and maintain the correct language after a post-back, but that dang error message is English no...

Websites use server or client hardware resources?

resources,cpu,hardware,cpu-usage,ram
When a user visits a website which runs an intensive script, does the web server handle it by using its own CPU and RAM, or does it use the users' resources?

How to update static resources in Spring MVC without rebuilding?

java,spring,spring-mvc,resources
I have a classic Spring MVC project where my resource files are put in the directory: webapp -- resources -- js webapp -- resources -- css I also use: <!--declare resources--> <mvc:resources mapping="/resources/**" location="/resources/" /> <mvc:annotation-driven /> My question what do I need to config so that every time I...

Language used in resource (.rc) files?

c++,winapi,resources
I'm learning win32 programming this days (c++),I'm wondering what programming language is used in resource(.rc) files? and where can I find a complete reference to this language?

MissingManifestException in mscorlib.dll on IMessageService.ShowXXXX

c#,wpf,.net-4.0,resources,catel
In my view model, I have a IMessageService, which is initialized in the constructor: private IMessageService messageService; public MyViewModel() { messageService = ServiceLocator.Default.ResolveType<IMessageService>(); } Its Show method works, but ShowError, ShowInformation and ShowWarning (anything in need of a resource, here the icons) crash with a MissingManifestException pointing towards Catel.Properties.Resources.resources manifest....

Can't access resources folder in Java

java,gradle,resources,classpath,classloader
I tried to access resources (marked as) folder in Java app but nothing works, returns wrong paths I've tried: ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); System.out.println(classLoader.getResource(".")); and ClassLoader classLoader = Config.class.getClassLoader(); System.out.println(classLoader.getResource(".")); but it shows me file:/D:/testProject/build/classes/main/, and of course there's no resource files :( How to access exactly resources folder? -TestProject...

$resource responses an empty array in AngularJS

javascript,json,angularjs,resources
I want to display a table with items from a json data. I've created a Service to return the json data. In my Ctrl I'm doing a query to the Service to receive the Array with the data. It is a bit confused. Because I put the response in a...