resources

moving to App_GlobalResources

The shop that I work at basically has developers creating controls and a backend platform, and producers to skin and customize sites for each client. We are currently using resx files in App_LocalResources folder to expose copy in many of our controls. The problem is that the producers have a hard time finding the correct resx for a spe...

How to get the resource for NIB file on MAC OSX

Is there a tool to get all string for NIB file on MAC OSX? Right now, I have to copy it from the NIB editor. Thanks. ...

Including common resources in multiple projects on different nesting levels (visual C++)

Hey, I have an rc file uses relative paths to locate the resource files (pictures etc.), for example IDB_LINE BITMAP "..\Shared\Res\line.bmp" BUT - a few projects are including the rc file, and these projects are found on different directory nesting levels inside the solution. This results in the fact ...

How to sort ResourceSet in C#

Hi All, I have a resource file named filetypes.resx. Some how I figured out to bind the resource values to dropdownlist, but I don't know how to sort the values of ResourceSet. Here is what I did so far, FileTypes.resx Name,Value A,1 B,2 C,3 code to bind dropdownlist DropDownList1.DataSource = Resources.FileTypes.ResourceManager...

Visual Studio Error: An item with the same key has already been added

When I'm trying to change the default Image of a Control on Windows Forms in Form Designer (no matter where on which control) I get this error: Error message: An item with the same key has already been added I tried to delete and recreate the Resources.resx file.. I assured that only 1 resx file with these keys exist.. (in fact t...

C#: Is there an Advantage to Disposing Resources in Reverse Order of their Allocation?

Many years ago, I was admonished to, whenever possible, release resources in reverse order to how they were allocated. That is: block1 = malloc( ... ); block2 = malloc( ... ); ... do stuff ... free( block2 ); free( block1 ); I imagine on a 640K MS-DOS machine, this could minimize heap fragmentation. Is there any practical advantage ...

Receiving payments trough PayPal and Credit Card

Hi, I am developing a website and I need to receive payments from PayPal and Credit Card, the thing is that I know nothing about this, and my question is where I can find some great resources to help me, or if you have some example codes, everything that can help me. Thank's alot. ...

Get File Bytes from Resource file in C#

I used to store the resources in the actual project, but I've switched to using a resource file instead. Originally I could ready the bytes for a file, but I'm finding it difficult doing this with a resource file. Any suggestions would be greatly appreciated. ...

Convert files of any types to a file with c strings.

Please suggest a small command-line utility (for Windows) to convert files from particular directory to a valid c file. Maybe it can be done just with batch commands? The resulting file should look like this: static const unsigned char some_file[] = { /* some_file.html */ 0x2f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x7...

Introduction/tutorial to `pkg_resources`

I heard about Distribute's pkg_resources. I want it to organize resources such as images in my project. Is there a good tutorial on how to use it? ...

Determine RC dependencies

I have a fairly large project which uses make for its build infrastructure. When we perform a build, we take advantage of cl.exe's /showInclude option to find source dependencies. Is there a similar capability for rc.exe? The basic problem is this: A makefile specifies a resource to be compiled (say, resources.rc). The resource file...

Generating RC dependencies

I have a fairly large project which uses make for its build infrastructure. When we perform a build, we take advantage of cl.exe's /showInclude option to find source dependencies. Is there a similar capability for rc.exe? The basic problem is this: A makefile specifies a resource to be compiled (say, resources.rc). The resource file in...

WPF - where can I find some Resource files that will really make my datagrids stand out?

I'd like to make my WPF datagrids really "pop" in my application. Is there a repository of really good resources files out there that I can use to apply to my datagirds? I've already used some from the silverlight toolkit but I'm sure there must be more out there. ...

Algorithm and data structure learning resources for dynamic programming

Im learning dynamic programming now, and while I know the theory well, designing DP algorithms for new problems is still difficult. This is what i would really like now- A book or a website, which poses a problem which can be solved by dynamic programming. Also there is the solution with an explanation available, which i would like to ...

Managing a shared resource with functional programming style in JavaScript

How does the functional programming paradigm deal with shared resources that need to maintain state? I have a JavaScipt program that allows access from multiple callers to a shared resource, a authenticated HTTP session in this case. The resource has bunch of state information associated with it including things like credentials, cache...

Can I map resources to a different controller?

I have my resources already defined, but a client wants to change the names of the URLs to match their brand (e.g. something like "catalog" when the resource is currently "products"). Can I specify a different controller name with a resource so I can get all the built-in resources functionality without having to actually rename the cont...

C# Play MP3 from Resources with MCI or WMP control?

Hi, I have a MP3 file in my Resources of Visual C#. I'm trying to find out if there is a way I can play this MP3 in a Windows Media Player control or with MCI, I'm not particular. I'm fairly new to C#. Thanks! ...

Adding extra params to rails route resources

What I want to do seems simple, but might not be "proper" let's say I have an image resource, and I manipulate the image based on the url. In the url I want to specify it's size and whether it's grayed, colored, or dimmed or some other condition. currently I have a number of named routes that look like this. map.gray_product_image "im...

How can I make deployed resources editable with Maven 2?

I have a project where I create a JAR which contains a bunch of classes with main() plus a set of scripts which set the environment to invoke them. Most of those are long running processes which log a lot (~10-20GB). This means I have a pretty complex log4j.xml file which, being in src/main/resources/, goes into the JAR. When something ...

Problem with converting Delphi form to Lazarus

After I ported Delphi Windows service app to FPC Linux console app I tried to port program with GUI. I installed newest Lazarus on my Windows machine and converted simple "hello world" app. One unit has form (.dfm file in Delphi). This form was converted to .lfm and .lrs files by Lazarus. But there is problem with compiling this: windre...