resources

What's the difference between StaticResource and DynamicResource in WPF?

When using resources such as brushes, templates and styles in WPF, they can be specified either as StaticResources <Rectangle Fill="{StaticResource MyBrush}" /> or as a DynamicResource <ItemsControl ItemTemplate="{DynamicResource MyItemTemplate}" /> Most of the times (always?), only one works and the other will throw exception du...

How can I share a folder of content between multiple ASP.Net projects in studio?

I would like to share 2 folders of content ('stylesheets' and 'graphics') between multiple asp.net projects in a solution. Is there a way to do this and have studio display the graphics and such appropriately at design time? ...

Join ACM, join IEEE, or read programming books?

I read blogs and listen to podcasts, and I own many of the "classic" programming books. For the money, what kind of printed material would you say is the most valuable to keep current in software engineering -- books, or magazines from professional organizations such as ACM and IEEE? Which organization has the best periodicals? ...

Globalizing runtime generated assemblies

Background A project installs some files that contain all the elements to define a UserControl - some user source, a CodeCompileUnit for designer code, and a resx file. At runtime, these files are compiled into an assembly and the classes are consumed by our main application (the assembly is only updated when necessary). Question The ...

RAII in Ruby (Or, How to Manage Resources in Ruby)

I know it's by design that you can't control what happens when an object is destroyed. I am also aware of defining some class method as a finalizer. However is the ruby idiom for C++'s RAII (Resources are initialized in constructor, closed in destructor)? How do people manage resources used inside objects even when errors or exception...

What are some recommended programming resources for pre-teens?

What are the best places for getting my daughters interested in programming without actually knowing that's what I'm doing? :-) For example, I presented Alice.org to the older one as a storytelling program. I showed her Logo once, and she drew squares for an afternoon and forgot about it. ...

Determining the reason for a stalled process on Linux

I'm trying to determine the reason for a stalled process on Linux. It's a telecom application, running under fairly heavy load. There is a separate process for each of 8 T1 spans. Every so often, one of the processes will get very unresponsive - up to maybe 50 seconds before an event is noted in the normally very busy process's log. ...

want different icons with different builds in C#

We have a product but we are doing some rebranding so we need to be able to build and maintain two versions. I used resource files combined with some #if stuff to solve the strings, images, and whatever else, but the program icon is giving me trouble. I couldn't figure it out from msdn or a google search. Thanks! ...

Where can I find information about business logic patterns?

What I am looking for is some overview of "design patterns", but not on the coding level (factory, singleton, mvc, ...) but on the business logic level. In other words: The layer between coding logic and domain logic. I don't know if that is understandable, so here are some typical business logic pattern questions for an ERP applicati...

RCDATA terminator

Hello, I have a .rc file which is used to include some text data in my executable, like this: 1234 RCDATA myfile.txt This works fine: the content of the 'myfile.txt' is included in my executable. The problem is that no 0-terminator is added to the string, and I cannot add it to the file. Is there any way of adding a 0-terminator from...

Weird case sensitivity bug in Class.getResource?

I was loading an image resource with the following code and it works fine from my dev environment (netbeans) but threw an exception as soon as it ran from the desktop. new ImageIcon(Images.class.getResource("images/highlighter24.gif")); I traced it down to my file having different case than in the code. Fine, my bad, but why the inco...

jQuery & ASP.Net Resources & Gotchas

What are some good jQuery Resources along with some gotchas when using it with ASP.Net? ...

Strongly Typed Resources Causing Problems?

In the middle of some refactoring and I've moved a resources file from one project to another. I think I clicked a warning telling me to Strongly type the resource file at one point and now I'm getting: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyProject.Common.Resour...

WordPress Plugin Development

Besides the CODEX what resources do you recommend to help a person new to creating plugins help create a WordPress plugin. I have an idea, but need a bit better explanation than what is in the CODEX to get started. UPDATE: Is there a book that I could buy to help me out with this? ...

How to use image resource in asp.net website?

I have a c# site which makes use of a lot of images with embedded english text. How can I use a standard resource file to swap out images depending on the language? I have a resx file in my App_GlobalResources directory, but I can't seem to get it plugged into an asp:image control for the imageurl correctly. Ideas? UPDATE: For so...

Find Unused Resources in a .NET Solution

How do you go about finding unused icons, images, strings in .resx files that may have become 'orphaned' and are no longer required? ...

Asp.net multilingual web application - localization

What's your opinion for the best possible way to build asp.net multilingual localized web application (only UI localization of string resources). Especially this two things: How to store resources? Xml files, resx files or something else? How to handle URL's? I don't want to keep language parameter in query string all the time so I nee...

What are some good resources for learning C beyond K&R

Hi, I'm currently reaching the end of working through the K&R book "The C Programming Language", and I'm looking for things to read next. Any recommendations of: blogs more detailed / advanced books (I've already stuck Advanced Programming in a Unix Environment on my Safari bookshelf) open source code (beginner-friendly and with goo...

How do I copy a WPF resource in xaml?

I want to assign a resource I already have a second name, similar to using the BasedOn property of Styles. Specifically I have a brush that I use for a group of elements called ForegroundColor and I would like to use it in a control template (a ComboBox) calling it MouseOverBackgroundBrush. I would like to do something like this: <Resou...

Where can I find resources on VectorScript programming language?

Where one can learn more about VectorScript (the Pascal-like programming languaged built into NNA VectorWorks CAD application) to create custom "plug-in" objects and tools ? ...