Questions tagged [resourcemanager]

The resourcemanager is ambiguous. The main two subjects identified are the .net ResourceManager (related to resx), and the hadoop Resource Manager.

267 questions
6
votes
1 answer

ResourceManager not picking right language

Using Localization and Language Properties I have translated my Form1. Within Form1_Load event I want to set the text for labels, buttons and so on... private void Form1_Load(object sender, EventArgs e) { SetLanguage(); } SetLanguage…
BusyMcGee
  • 61
  • 1
  • 3
6
votes
3 answers

Create a non-owning shared_ptr?

I am pretty new to C++11 and am now working on improving my C++ skills by trying to avoid direct usage of pointers. I am trying to write a sprite manager that keeps track of previously loaded sprites and frees unused ones. I am trying to use…
Cubic
  • 14,902
  • 5
  • 47
  • 92
5
votes
3 answers

C++ shared_ptr vs. unique_ptr for resource management

I've been mulling over use of unique_ptr vs shared_ptr vs own_solution. I've discounted the latter as I'll almost certainly get it wrong, but I have a problem with both unique_ptr and shared_ptr in that neither captures precisely what I want. I…
Robinson
  • 9,666
  • 16
  • 71
  • 115
5
votes
3 answers

Is it possible to get a resource's comment using ResourceManager?

I realize that this is essentially this question, but it's accepted answer just points to a link that doesn't seem to do what the asker requested (it doesn't start from ResourceManager/ResourceSet). Is there any way to do this?
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
4
votes
1 answer

ResourceManager - how to find a required base name for an embedded resource file?

I have a library loading the resources from an external file as follows: ResourceManager rm = ResourceManager.CreateFileBasedResourceManager(stringsFileName, ResourcesDir, null) Now I'd like to change the loading from external file to an embedded…
SharpAffair
  • 5,558
  • 13
  • 78
  • 158
4
votes
1 answer

Asp.net localization - override which resx file the page will use

Trying to sort of combine themes and localization... what i am doing: Localizing A.aspx, creates: App_Localresources\a.aspx.resx App_Localresources\a.aspx.resx.fr ... However, i want to add more options. I want to…
Greg Bala
  • 3,563
  • 7
  • 33
  • 43
4
votes
1 answer

Specifying custom resource file for an ASP.NET page/usercontrol

If I have a page called Default.aspx, ASP.NET automatically uses the resource file named Default.aspx.resx in App_LocalResources for localizing server controls in the page. But for some reason, I need to choose another file, let's say…
r_honey
  • 883
  • 4
  • 15
  • 31
4
votes
1 answer

How retrieve neutral language resource when multiple resource files for different languages exist?

I have multiple resource files to support different languages. The user is presented with resources in his preferred language. Additional logging is being done to an application log, to which I would like to log using the neutral language (English)…
Elan
  • 6,084
  • 12
  • 64
  • 84
4
votes
1 answer

How to use ResourceManager REST API when ResourceManager is HA enabled?

We have been using the ResourceManager (RM) REST APIs (Apache Hadoop 2.7.x) to fetch different details like running application details, scheduler info, etc in our Java code. For example, the below request gives the scheduler details: GET…
4
votes
0 answers

Not loading localized string using ResourceManager in DNX 4.5.1

I'm trying to add localization to my DNX 4.5.1 project in Visual studio 2015. I have two resx files.. Culture.resx Culture.sv.resx Both as embedded by setting resource in project.json "resource": "**\\*.resx" I create the ResourceManager. var…
Magnus
  • 45,362
  • 8
  • 80
  • 118
4
votes
5 answers

How to set DEBUG log level for ResourceManager?

I am doing some change to Yarn source code. I have changed hadoop.root.logger=DEBUG,console to DEBUG in ${HADOOP_HOME}/etc/hadoop/log4j.properties. I can get DEBUG information for Application Master, but I can't find any DEBUG information outputted…
hakunami
  • 2,351
  • 4
  • 31
  • 50
4
votes
2 answers

HttpContext.GetGlobalResourceObject always returns null

I created two files in the App_GlobalResources folder: SiteResources.en-US.resx SiteResources.sp-SP.resx Both contain a value for "SiteTitleSeparator". Here is what I am trying to do (The following line always returns null): string sep =…
3
votes
1 answer

Spark Connection refused for BlockManager process

I have a 7 node cluster setup on CentOS VMs in on-prem fashion. Earlier the VMs were co-located and everything used to work fine, but since yesterday as the VMs have been spread across the data centre (But in same rack), I am facing Connection…
3
votes
0 answers

Execute hive query cause yarn resource manager to throw file does not exist exception

I'm configuring hive 3.1.0 to work with hadoop 3.0.0. This error throw almost immediately when I submit a simple query on beeline that cause map reduce 0: jdbc:hive2://> select count(*) from airlinedata; 18/10/11 10:24:45…
minhtus
  • 163
  • 1
  • 13
3
votes
2 answers

Access localized resource strings without creating an instance of 'ResourceManager'?

I have created some resource files to hold strings. I am displaying a MessageBox by pointing it directly at a resource file named TestLocalResource and a resource string named ThisIsMyTest by simply referencing the resource string like…
Martin
  • 23,844
  • 55
  • 201
  • 327
1 2
3
17 18