resources

What is the "opposite" of request serialization called?

For example, if a request is made to a resource and another identical request is made before the first has returned a result, the server returns the result of the first request for the second request as well. This to avoid unnecessary processing on the resource. This is not the same thing as caching/memoization since it only concerns ide...

hook up resource manager in windows form

In Visual Studio 2008, develop legacy windows form (not wpf), I wrote customized resource manager which fetched data from sql server rather than assembly. In windows form, there is property related to language setting. Once I change language, I want to form being updated automatically. Is there any elegant way to hook up my resource ...

Visual C++ Express resource files

I want to add icon file to my Win32 project, how to do that in VC++ Express? I created *.res file with XN Resource Editor, but I don't know what to do with it. Guess I need resource script, *.rc? What to write in that script ( probably must link *.res file that I created ). So I have *.res file, need *.rc script (don't know what to write...

Visual Studio keeps changing resx files

Hello everyone ! I'm working on a VB.Net project and using SVN. I noticed that every time I open my main form, Visual studio slightly modifies my .resx file, which means that I keep having to re-commit it, which is quite annoying. Has anybody experienced such problems? A diff file demonstrating the problem can be seen at http://synchro...

MSTest project can't get localized string?

I ran into a strange problem. In my unit test, I want to check the localized strings. However, I can't seem to get it work. For example, I created two resources: Resource1.resx for English and Resource1.zh-CN.resx for Chinese. The unit test project can only get the (default?) English resource string. This is the code I'm using: Resource...

Why can't I use resources as ErrorMessage with DataAnnotations?

Why can't I do like this? [Required(ErrorMessage = "*")] [RegularExpression("^[a-zA-Z0-9_]*$", ErrorMessage = Resources.RegistrationModel.UsernameError)] public string Username { get; set; } What is the error message telling me? An attribute argument must be a constant expression , typeof expression or array creation express...

How to manage resources in an F# project?

Can I use .resx files in F# 2.0 projects? If so, how do I go about adding, and then using these resources. Thanks in advance. ...

JSF Resource sends 304 not modified afer redeployment

Hi! I use outputStylesheet and outputScript for some resources. But when I've made changes to the development project and want to redeploy in the production environment (upload the WAR to Glassfish admin console) the response code for the resources are 304 (not modified) which means that the browser wont pickup the changes before the c...

ResourceBundle/Propertie file to accept array of String in argument {0}

Is there a way to pass an array of String to a resource bundle to localize an unknown number of argument for a given key? I have: my.message=List of retired products: {0} getValue(bundle, "my.message", list.toArray()); With this, only the first item in the array is showed in the resulting message. ...

JIRA - Resource Availability and Utilization Tracking - Across multiple projects

Was wondering if anyone knows of a plugin for JIRA that would provide a consistent view on a daily / weekly / Monthly / etc. basis for People / Resource Tracking and forecasting of resource availability - especially if resource could be used on multiple "projects" potentially. Current Tasks assigned with duration and period of effort F...

Best practices for packaging resources (jpg's, sound, video) in an iPhone app?

I'm a newb iPhone developer writing an app that has several large JPGs and sound files. Everything works ok if I drag these non-code resources into my project. But I am wondering if this is the right way to package my app. In Windows development, I would create a "resource DLL" that keeps the .exe size small. What is the equivalent for...

What am i doing wrong with this in asp.net-mvc?

I gave this in my site.master <li><%= Html.ActionLink("Material", "Index", "Material")%></li> But my link doesnt seem to get my material controller Index method... I have this in my global asax file, public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); ...

Windows Phone 7 - good early learning source?

I'm coding some ealry windows Phone 7 apps, and running into some issues. What are some good resources for learning the platform? Books, online, etc. ...

How do you embed a resource so that it can be accessed for icons?

I have a C# project using VS2005. Basically I have two icons, one for the application, and one for files that are associated with the application. I have associated these files with the application, and I know how to set their icons in the Registry, but I can only set them to the application icon because it seems to be the only external...

iPhone dev: Recurse all project resoureces and collect paths

I have a bunch of HTML resources in my app organized in a hierarchy like so: dirA |---> index.html |---> a1.html |---> a2.html |---> dirB |---> b1.html |---> b2.html |---> dirC |---> c5.html |---> c19.html I'm trying to collect the absolute paths of all HTML resources however deep down, but can't seem to figure...

Creating a C++ static lib to use with Java on Android

I have some C++ code that I want to make into a static lib for use with Java on the Android platform. Can anyone point me to a resource that tells me how to do this? I am completely new to Java and Android. ...

The jsf2 h:outputText tag is not formating the h:outputText with the MessageFormat

The jsf2 h:outputText tag is not formating the h:outputText with the MessageFormat my faces config <application> <resource-bundle> <base-name>Messages_pt_BR</base-name> <var>bundle</var> </resource-bundle> </application> My resource bundle: ... EventPageTitle=Event: {0} ... My JSF2 XHTML: <h:outputText val...

Java try finally variations

This question nags me for a while but I did not found complete answer to it yet (e.g. this one is for C# http://stackoverflow.com/questions/463029/initializing-disposable-resources-outside-or-inside-try-finally). Consider two following Java code fragments: Closeable in = new FileInputStream("data.txt"); try { doSomething(in); } fina...

Setting the default value of a C# Optional Parameter

Whenever I attempt to set the default value of an optional parameter to something in a resource file, I get a compile-time error of Default parameter value for 'message' must be a compile-time constant. Is there any way that I can change how the resource files work to make this possible? public void ValidationError(string fieldName,...

wpf & validation application block > message localization > messageTemplateResource Name&Type

I'm trying to write validation rules for my data objects in a WPF application. I'm writing them in the configuration file, and so far they are working fine. I'm stumped on how to localize the messages using messageTemplateResourceName and messageTemplateResourceType. What I know is that the strings can be writen in a resource file, giv...