resources

Catch missing local resources in resx files.

Hi, I have many resource files, in many different languages. Lets suppose for example we are supporting 3 languages (en, de, fr), and have this file: common.resx common.de.resx common.fr.resx I would like to detect occurrences when for instance a resource is requested in de, but is missing and so reverts to the default language. Is t...

Visual Studio - Tool to replace hard coded strings with resources

Hi all, I have a big ASP.NET project full of hard coded strings, that now have to be extracted to resources. Such strings can be found almost anywhere (in .cs files, .aspx files, .ascx files, etc.) and the amount of files is huge. What I'm looking for is a tool (or any way) to find all these hard coded strings in one shot and put them al...

Blend not rendering images in User Control

Hi, I am developing a WPF application, and I have created a user control called ViewIconUC. This control lives in an assembly (MyControlAssemblyUI). I can instantiate the control in a ZAML page within this control, and I get no errors (I even attached the dugger to Blend to check), and I can see the button background I set in the control...

Mocking ResourceManager in .NET

We have a small wrapper class that uses ResourceManager to load string resources from assemblies. We also have some unit tests that check it loads the correct details from the correct assemblies for different cultures, assemblies etc. Our tests are therefore currently dependant upon resources we have constructed for the test. Is the...

Rebranding Application Resources in .NET 2.0

I'm about to start writing a tool in .NET 2.0 (C#), and the tool needs to be re-brandable to be sold for use by other companies. We'll compile the tool in house, with other company's resources, so they don't get the source, just the generated output. Since the re-branding will use the same default language, how do you manage multiple r...

Are .NET resource files only for localization?

I've used .resx files in the past to store text files and other things - queries for example. It works great because I can say Resources.Queries.BlahQuery. (Yes, I know we should probably used stored procedures, but that's another story...) I'll never be doing any localization on these resources. Is this a bad idea? Am I misusing .NET ...

C# - UpdateResource - To Remove A Resource

I am able to successfully add a resource to a file using UpdateResource and then remove it using: UpdateResource(HANDLE, "TYPE", "NUMER", 1033, IntPtr.Zero, 0); When I add a resource to the file it will add another even though there is an existing resource exactly the same, also I cannot remove any existing resources. When I try to remov...

Android: Any idea why cannot load drawable object?

Hi, There are several custom-made graphic objects (.png files) included in the project inside res/drawable map. All elements are normally loaded and displayed in the user interface except two icons and so far haven't figured out what causes the problem. The code which doesn't affect the user interface as it should is the following: i...

Clear/ Reset Resource Provider

How do you get access to the Resource Provider for the current context? I have a web page that allows a client to edit their Globalization values which are stored in SQL. However pages still utilize the cached values until the app domain is freed. How can I force clear/reset the provider and or get access to it to clear its cache. Th...

Open Id implementation in php?

I am considering implementing OpenID on my website and I am having a hard time finding good resources for OpenID implementation in php. So far I have only found RPX but I don't want to depend on third party vendors. I want something similar to SO , can anyone point me in the right direction and can you also tell approximately how much ti...

Do I need afxres.h, if I am not using MFC? How do I remove it from the .RC script?

I don't know RC scripts. I want to include Product version, File version, etc. metadata into a DLL I'm building. I'm using an .rc file to do that. The build is makefile driven. I'm following along with an example .rc scrpit I found. The template .rc file includes afxres.h , but I don't think I need that. But if I just remove it I ...

Resources To Build a Framework

Hello, I'm thinking in create a framework, a little project with my friends, just to loose some time trying to build something, but we don't know where and how to start, then we are needing to know two things: Which languages is possible to do this? Where we can found some resources to begin(tutorials, sources...)? All types of help...

Suggestions on addressing REST resources for API

Hello, I'm a new REST convert and I'm trying to design my first RESTful (hopefully) api and here is my question about addressing resources Some notes first: The data described here are 3d render jobs A user (graphics company) has multiple projects. A project has multiple render jobs. A render job has multiple frames. There is a hier...

Kohonen SOM Maps in R Tutorial

Hi Everyone, I am simply looking for a good tutorial that will walk me through how to create a SOM in R. I am reading Kohonen and Kaski's paper on using the maps to identify the structure of Welfare, and want to try the technique my self. I think many of the examples in R have a lot to be desired. I have looked on the web and didn't ...

How to make XCode put required resources in "build" folder?

I am trying out lua script with C++ in Mac OS X. I was finding a way to make the program returning the current working directory. That's no problem with getcwd, but then I came one thing: My foo.lua stays at its initial path only. When I compile program, it is not being copied over to the build/Debug directory. Sure, I can grab my scrip...

What are good resources/books/podcasts on Enterprise Portal Development ?

What are some of the very good online resources/books/pod casts/tutorials/blogs/articles etc for learning and understanding different areas of Enterprise Portal Development ? ...

best practices / tips for storing html tags in resource files

I have the following situation assume i have to display the data in the follwing format. I am 20 years old . i need the number 20 to be in bold. I'm fetching this string from resoucre file like this string.Format(HttpContext.GetGlobalResourceObject("ResourceFile","Key"),age); should i consider adding the tags <b> and </b> in the...

Create a wizard that works with multiple Resources

I'm writing an app that has a "wizard" type input section. Think MS Windows Installers. I'm having a hard time figuring out how the most RESTful way to do this with rails. I can make it happen in a non-restful way (already did for version 1 of the app), but I'm trying to be a little more idiomatic this time around. Here's the situati...

How can I obtain the message resources object in a servlet?

Hi everyone, I'm developing a project with Struts and I was wondering if it's possible to get the message resources object in a servlet, which is included in the same project. There's no possibility to get that object with the method getResources(HTTPServletRequest) because the servlet does not extends an Action class. Is there a way t...

Basing On a style defined inside a custom control library.

Hi, I'm extending the available WPF's TreeView control. I wish to add to it CheckBox behavior like Josh Smith has suggested. My goal is to encapsulate all checkbox behavior concerns from the end user (which is a different approach of what josh Smith has done). I would like to use a style for the TreeViewItem in order to add some prope...