resources

Enumerating the contents of a .NET embedded resource at runtime

I have a .resx file which contains some string resources for my project. At runtime, I'd like to read all of the resources defined in this file and store them in a container. The reason isn't important. I've read about the ResourceReader class, which operates on binary .resource files. My impression is that the .resx is converted ...

how do you make getResourceAsStream work while debugging Java in Eclipse?

This is mind-boggling... I can make getResource() and getResourceAsStream() work properly when I run Java on my packaged JAR file that includes a text file. (for reference see the Sun docs on accessing resources) I can't seem to make the same program work properly when I am running it within Eclipse, even though I've placed my text file ...

Get resource name from URL when using a custom controller in Rails

Hi, I have a set of routes that are generated dynamically at runtime, but that all point to the same controller i.e. map.resources :authors, :controller => 'main' map.resources :books, :controller => 'main' These all work fine, producing routes like /authors/1, /books, /books/55, etc and then all end up being processed by the 'main' ...

How can I add, delete, and update resources in CLR assemblies?

I've taken a long look around and can't find any information on altering managed resources in assemblies (note that I'm already familar with Win32 resources and the APIs for altering those). My application has resources that need to be updated by the end user and the application will be distributed as a single executable (so I can't jus...

C# resources for front end developer

I am primarily a front end developer and I need to get familiar with C# development for a project I am working on. What are some good resources/links to learn C# as I have no prior experience in C#. Thanks in advance. ...

WPF code-behind for resources?

Hi all, I'm working on a wpf application, and up until recently, I had a ResourceDictionary inside my main window's resources part of the xaml. The resource dictionary contained an DataTemplate that was used to style several listboxes in the window. The xaml for this datatemplate contained pointers to event handlers, eg: <Button n:Na...

Naming convention for Embed Resource DLL?

I have never used an embedded resource DLL before. I would like to start right so that I'd not have to rename DLL later on. Suppose that, I have a Main Exe file named "Demo.exe", how would you name embedded resource associated with it? Demo.Resource.dll? Resource.Demo.dll? etc? ...

What / where are the required libraries for JSF (specifically javax.faces stuff)

I've spent the last several hours searching the web, and I can't figure this one out. I want to include some javax.faces classes in a java package I'm working on. Specifically: import javax.faces.application.Application; import javax.faces.context.FacesContext; import javax.faces.el.VariableResolver; I'm using eclipse 3.4 I know how ...

Recommended articles/papers on the craft of programming

My intention here is to have a single thread of will-make-you-a-better-programmer-just-for-reading sort of articles or papers or really standup blog posts that the writer has put in a lot of effort to distill (anything that will take you less than a day to read). I don't have the time to dig through the giant information crypts of the in...

Single most important information resource to keep informed of Microsoft technologies?

I'm looking for an information resource (RSS preferred) to keep on top of Microsoft's doings. For me, that would include software releases, service packs, MS research projects, APIs, business news, and probably quite a few things I don't even know exists. Is there anything like that, or do I have to collect the stuff from first principl...

Compiling an XML file into a binary

I want to parse and XML file in an iPhone app without going to disk for it. Can I do this? How? I have included a TXT helpfile in an app using MSVC. I put the XML file in a Folder/Group named Resources in the project. I have the XML file in the proj directory. I right clicked on Resources folder and selected add -> Existing File. I righ...

Penalties of a script constantly looping in the background

I know this topic has been discussed in the past, but I am a tiny bit paranoid about resource usage. I am looking into writing a daemon for queing jobs to archive files into zip files for a web app i am working on. It would behave something like this: while True: while morejobs(): zipfile() sleep(15seconds) What sort ...

Editing resource files without recompiling ASP.NET application

I'd like to enable the resource files to be editable after deployment. I read this post which suggests that this is possible, but I can't seem to figure out what settings I need to change to enable this. I have added the App_GlobalResources folder to my ASP.NET 3.5 "Web Application" and added a resource file to this folder. I assume tha...

How to add resource to existing signed assembly

Hello. Given: - an assembly (e.g. "SomeLib.dll") - a text file (e.g. "myconfig.xml") I need to embed the file myconfig.xml into the existing assembly SomeLib.dll Please consider before pressing "Answer": I know about resources embeding during compile (csc.exe .. /embedresource:file ... ). The thing is that I need to embed a resource ...

WPF: Changing Resources (colors) from the App.xaml during runtime

I am trying to make my application more customizable by allowing users to pick a color from a Color Picker dialog, and then changing the style of the application in real time (with DynamicResource) How do I go about in changing specific resources that reside in the app.xaml ? I have tried something like this but no luck (just a test)...

Adding an item to Internet Explorer's right-click context menu

I'm trying to add a new entry into Internet Explorer's right-click context menu. I understand that this can be achieved by creating an HTML file containing JavaScript, and then linking to this from a location in the registry. I have also read that you can also add the HTML to a resource file and compile it into a DLL (see the Microsoft...

Apache resource usage vs Mongoose or other lightweight web server

How much memory and/or other resources does Apache web server use? How much more are lightweight servers efficient? Say appache vs. Mongoose Web Server Neil Butterworth you out there? Thanks. ...

C++ for Python Programmers: Slides and Resources

I have been teaching some bright high school kids Python for 3 months now (for most of them this was their first experience with programming). I've decided to take the best of the group of give them a quick (120 minute) introduction to C++. They're hard-working enough to take what we give them and learn things further on their own. Are ...

Applet loads jars from different domains; has problem loading resouces (e.g. images) from jars.

Hi, I have a sandboxed Applet, but that should not make a difference. The Applet consists of 2 jars. If I host both files on the same domain1 all is fine. Due to certain special circumstances I need to host jar2 on a different domain2. In the applet tag I list both files archive="jar1.jar, http://domain2.com/jar2.jar". First it seem...

How to synchronize SVN revision and version ressources of EXE/DLL files?

Say I have some C++ project which builds an exe or dll file. The project is checked into a SVN repository. I want to automatically synchronize the revision from SVN with the version resource embedded in my exe/dll file, i.e. the version should be something like $major.$minor.$svn_revision. Any ideas on how to achieve this? Are there any ...