resources

Setting messages.properties in a Spring Webflow unit test

I'm using Spring Web Flow 2.0.7, and just started setting up my unit tests. I've got my flows directory, containing the flow xml files and my messages.properties files on my classpath. It's loading fine, but it doesn't seem to be automatically picking up the messages.properties file for the flow, and thus my validation unit tests are...

XAML: How to define Data Templates & Styles to be used over several Projects

I'm starting to develop a Desktop application using WPF (.net 3.5 sp1, with VS only, not blend as yet). I'm at the point were I have some generic reusable components in several libraries. Where can I define my Styles & Data Templates so that they are reusable across several projects, so I can have a consistent look and feel? I've look...

Valid resource keys in ASP.NET .resx resource files

I am using a CMS tool to generate .resx resource files. Is there any danger in creating resource names with spaces or punctuation characters in them? If I use this syntax to get resources, it works fine: GetGlobalResourceObject("myresources", "audio,visual"); However, this causes an error with declarative resource syntax, e.g.: <as...

Good beginner resources to get started on Oracle Stored Procedure

I am looking for good resources on Oracle Stored Procedure geared towards beginners. I tried the Dev Shed Article and one from Oracle Documentation site but they did not meet my needs. The one form Oracle Documentation site had the overhead of Java example. I tried the Dev Shed one but I keep getting invalid SQL error when I try their ex...

How can I get a change in resources to propagate throughout the application, including in ValueConverters?

I have an application that allows the user to change color schemes based on an external xaml file. When the user clicks on a MenuItem that contains the name of a theme, the following code executes: MenuItem mi = sender as MenuItem; string executingDirectory = Assembly.GetExecutingAssembly().Location.Substring(0, Assembly.GetExecutingAs...

What free site(s) and resources do you use to advance your ASP.NET knowledge?

What free site(s) and resources do you use to advance your ASP.NET knowledge? Other than this one, of course. I mean, we always google for answers to daily problems with work or our personal projects, but do you have any specific "one-stop shops" to where you have advanced your skills? I guess specifically I'm looking for middle level d...

How to compile RES file from commandline (Delphi 7)

I never worked with Delphi before, so maybe the question looks a simple minded, But I need to change FileVersion in RES resource file parameter from command line... Many thanks. ...

Good resources to learn business intelligence?

What resources (books, videos, tutorials, etc) would you recommend to learn about business intelligence? ...

How to retrieve all key-value pairs in a resource file located in App_GlobalResources

In my ASP.NET MVC application, I manage localized texts in .resx files located in App_GlobalResources folder. I am able to retrieve any text value in any file knowing its key. Now, I want to retrieve all key/value pairs in a particular resource file in order to write the result to some JavaScript. A search revealed that I might be a...

C# How to add placement variable into a resource string.

Hi, This should be easy, but can't find anything to explain it. Say I am writing something out on console.writeln like: console.writeln("Jim is a {0} ", xmlscript); Say I wanted to convert string `"Jim is.." to a resource string in a global resource.resx. It would be: jimstring jim is a {0} and I would refer to it in code as con...

Finding embedded DLL resources

I'm using a decompiler to look at a DLL I built a while ago because I don't have the original source anymore. I want to see what a specfic value for a resource string is, but I can't seem to find them. I embedded the resource file, so I figured I could just decompile the DLL and see the string, but it isn't anywhere to be found. Any p...

White papers and books on programming for performance in Java

I'm looking for a white paper or online book/tutorial about coding efficiently in Java. I've read the white paper from Sun on Performance Tuning (which was mostly about JVM settings) and the one about Garbage Collection management. I'm looking for a paper that focuses more at the code level - which types of constructs are more efficient ...

XCode Different Resources For Different Targets

Hi. I am developing an iPhone app and there will be a Full as well as a Lite version of that app. In order get both bundles from the same source code and xcode project I added another target to the xcode project. Now, I want to have the Lite target copy only a subset of the resource files to the bundle. But, xcode won't simply let me d...

Circular resource references causing issues?

I've got a WPF application that consists of Pages in a NavigationWindow. Within App.Xaml I create all my pages so that I can reference them when using navigation commands. It goes a little something like this: <Application ...> <Application.Resources> <FirstPage x:Key="first"/> <SecondPage x:Key="second"/> </Application.Resource...

Is there any online resource for mapping for province/states to cities?

anyone have any idea? Basically i need to have e.g. when i select a province / state. A list of cities will be shown. Is there any resources i can find for this? Thanks ...

C# Storing Binary Stream (or byte Array) in Resources

I am guessing, as Images and Icons are stored in a resx file, I am guessing that it should be relatively easy to store a byte array (or similar stream) in an embedded Resource file. How might this be done, should I pretend the binary stream is a Bitmap, or if the Resource file is the wrong place to be embedding binary data, what other t...

In Java, where in the package/source hierarchy should resources be placed?

Say I have developed a game, and placed it in the package structure: com.dxmio.games.breakout Where then is the 'best practice' place to put resources like audio and images that the game uses? ...

Dynamically create native resource (.res)

I have written a WinForms application (C# 2.0, VS2008) that registers several file types during the setup. Each file type has its own icon, but I don't want to have the .ico files in the program directory. So I added a native resource file (.res) to my project and embedded the icons in there. This works fine, but the values in the resou...

ImageSourceConverter throws a NullReferenceException ... why?

I've been tearing my hair out over this issue for the last hour or so. I have some code that goes like this: videoTile.Icon = new ImageSourceConverter().ConvertFrom(coDrivr4.Properties.Resources.Music.GetHbitmap()) as ImageSource; When I run my code, it says a NullReferenceException occurred. Neither 'Music' nor the return of GetHbit...

Recommendations for places where I can get good css designs/ web 2.0ish buttons, tables, etc...

Im designing a website, and often I need to present information in a nice table, or need a nice button, etc... I need recommendations for any websites which have a large collection of these elements which I could just use, instead of designing my own. Thanks!! ...