resources

GETing different Active Resource models in a single request

Hi! Is it possible to receive objects of different Active Resource models in a single request? For example the request "GET /user/joe/articles/1.xml HTTP/1.1" returns an object from User ("joe") and another object from Article (id "1") from the server. I know it is possible to send these objects inside an array to the client, but ARes ...

What is the best source for a clear explanation of how to use the Python help?

A couple of days ago Bendin was kind enough to answer a question I had on how to handle some files that were uuencoded. When I described my response to his solution he went even further and showed me how to use a special function from the codecs module to better meet my needs. import codecs uudecode=codecs.getdecoder("uu") decoded_Gr...

Can you use JavaScript as embedded resources with Asp.Net MVC?

In Asp.Net with Ajax I can include my Javascript files as embedded resources in my assembly and create references to the embedded scripts using the ScriptManager. Is there a way to do the same with Asp.Net MVC? ...

WPF - Dynamic vs Static Resources

I am experiencing an enormous memory leak in my WPF project and am trying to figure out what I can do to minimize it. To access resources I use StaticResource 100% of the time. Should I use DynamicResource where I can? Are there advantages as far as memory management between StaticResource and DynamicResource? FYI: I have a listbox show...

Use external file or resource?

I am writing a C# application that uses a long "hard-coded" string. For maintainability reasons I have decided to put this string in an external text file and load it. Is this a good idea? The extra I/O does not seem big in this case. I realize that I also have an option to embed this file as a .resx resource. Is this a better idea? Th...

Standard non-code resource location for python packages

This should be a common scenario, but could not find any relevant post yet.. I plan to deploy a Python library (I guess the same applies to regular applications) which makes use of some images and other resource files. What is the standard location for such items? I imagine, for project Foo, the choices would be Have resources directo...

Global resources can't be resolved after publishing Website in VS2008

Hi there I have a web-project running in VS 2008. We have some global resource files (*.resx) in the App_GlobalResources folder for internationalisation. All this works like a charm on my local IIS installation out of VS. But when I publish my web-project to the local filesystem and/or another server, all the resources can no longer be...

Load an XML from Resources

Hi, I have an embedded XML as Resource. When trying to load it like: XDocument quoteDocument = XDocument.Load(Properties.Resources.Quotes); I get an error (UriFormatException). How to properly load an XML from resources? Thanks ...

What's the best idea to manage resources in Silverlight?

I need to create my silverlight framework that has all following features about resources. Partial loading. So, I can't use sample resource file(*.resx). Strongly-typed resource file. Because It's very easy to debug. Easy to edit with sample text editor. Because you can't use some complex editor like visual studio in web server. Easy t...

RESTful service operations for querying data

When defining a resource orientated RESTful service do you think it's a good idea to define an explicit operation (verb) for querying data? It seems obvious and easy to map CRUD operations on a resource orientated RESTful service using HTTP to operations such as PUT, GET, POST & DELETE but how should operations that query for multiple r...

Version resource in DLL not visible with right-click

I'm trying to do something which is very easy to do in the regular MSVC, but not supported easily in VC++ Express. There is no resource editor in VC++ Express. So I added a file named version.rc into my DLL project. The file has the below content, which is compiled by the resource compiler and added to the final DLL. This resource is vi...

Where can I find video lectures on software engineering?

I am eager to learn stuff about code, product ,efficiency ,etc. "Software engineering" course actually, not the course that related to software. Thanks for any information. ...

Are there any sources for getting affordable graphics and sounds for software products and games?

When making software, specially games, those resources like graphics and sounds are something "freaky" that's out of range of the developers brain and feasibility. I mean...sound effects like cool beeps: Who in the world can make them? Almost nobody of us, I guess ;) So: Is there any good legal ressource for this kind of content, which ...

WPF - access to resources in design time when App.xaml's Build Action = Page

I changed the build action of my App.xaml to "Page" so I could handle a splash screen and make sure my application run as a single instance only (having my own entry point). It works fine in run-time but in design-time the application cannot see the my resources anymore. Resources are in separate xaml files located in the same project. H...

Best practices for developing refactor friendly code

Being a Java developer in an agile development cycle, I have learnt that it is essential to make sure I design my classes in a manner that I can refactor them easily without much of a pain. I want to know, what are the best practices that you follow in your daily design/development cycle that helps you to perform refactoring easily. For ...

How do you put an entire asp.net website into one dll?

I am building a web application framework in C# for Asp.Net. The framework consists of mix of dll files, aspx files with codebehind files, code files in App_Code, css files and images. I've looked at the "Web Application" project in Visual Studio 2008. This helps to remove all code files and put them into one dll in the bin folder. But,...

What is a good resource for learning Flex as a .NET developer?

What is a good resource for learning Flex as a .NET developer? ...

WPF: How to import a resource from a child item

I would like to define two similar-looking views on some graphical data. One view is an editor and the other is a viewer that shows the data being transformed. I am not sure what the best way is to share code and resources between the two views, but I have tentatively decided to make a UserControl to represent the part of the visual pres...

How to catch (and hopefully fix) a GDI resource leak

My application logs an exception after running for 6 hours: OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3 (5.1.2600.196608) .NET Version: 2.0.50727.3082 SQL Server Version: 9.00.4035.00 SQL Server Level: SP3 SQL Server Edition: Standard Edition Error Message: Parameter is not valid. Exception type: System.ArgumentExc...

What are good sites that provide free media resources for hobby game development?

Please redirect me if this is a duplicate. I haven't been able to find a suitable question. I really suck at graphics / music / 3D modeling / animation and it's a must-have when you have a hundred hobby game development projects you're working on. I'm looking for different quality sources on the web that provide free resources. [EDIT] ...