resources

Adding multiple resources with the same name to Xcode for iPhone

Hi Everyone, Is it possible to use double names for images into the resource group? Thanks :) ...

about rails' routes, adding collection routes to restful resources won't generate named route helpers ?

namespace :admin do resources :posts do collection do get 'whatever' end end end I was expect that will generate 'whatever_admin_posts_path' helper method, but it didn't. It's there something wrong with my codes? Or a bug in rails? ...

how can i have a Resourse file , that i can change it at runtime?

hi. in C# 3.5 (VS 2008) , how can i have a Resourse file or something like that, to have some of my config strings like webservice URLs that i can change them at runtime? because of some reasons , i don't want it to be in app.config file. here is the sample code that i like to have: string s = Resource1.myURL; ...

List of XSS Resources

I'm trying to have a better knowledge about this topic. So far I've found these: Towards Automated Malicious Code Detection and Removal on the Web [PDF] Ruby On Rails Security Guide (It's RoR specific but it covers a lot of topics, including XSS) Cross-Site Scripting (XSS examples) Do you know some useful link? ...

What would be the easiest way to generate new localized resource files?

Hi, My windows forms application consists of one Visual Studio solution and several projects. The application is localized in English and French using resource files (each project has global resource files, e.g. fooResources.resx and fooResources.fr.resx, and each form/user control has its own resource files (e.g. fooForm.resx and fooF...

I'm looking for internationalization verification tool

Hello, In process of internationalizing our .NET applications we stumbled to the fact that there is a lot of room for human error. Most popular is that a string is present in neutral culture resource file, but is not in culture-specific resource file. So, at runtime a neutral string gets loaded (which has been written by a programmer, n...

Page-level localization resources in ASP.Net MVC2

How can I best use Resource files for each page when doing localization in asp.net mvc2? Is there a naming convention or approach where the framework will automatically detect the correct resources and pull in those values? Background: I have separate resources working for the entire site, but I would like to be able to split them by pa...

Best way to start learning HTML, CSS, and other web frontend technologies

Hello. One of my friends is wanting to learn HTML for the purpose of helping me to create websites. I figured the best place to start is working with the frontend of websites. What good online resources out there can I recommend to my friend? Most of the online HTML tutorials out there teach the deprecated way of writing HTML, such as ...

Android Pluralization not working, need help.

I've been attempting to utilize the plurals resource with Android but have not had any luck. Here is my resource file for my plurals: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <plurals name="meters"> <item quantity="one">1 meter</item> <ite...

How to use resources for globalization in asp.net mvc ?

Hi all, I have an application which will be used by multiple companies.So my views/pages are being accessed by all these companies and each company will have their respective content... for e.g. there are 5 titles so each company will have their own titles on each page. So , I am using different resource files for each company and changi...

Scope of R.id values

Hey Folks - I'm looking for ways to reduce what I would call "id pollution" in my apps. From what I can tell, R.id is global to the application, so in every Activity I usually create unique resource id values for elements, even if I have many of the same thing. For example, if I have three Activity classes, each with a save and cancel...

Where does a resource file go when you compile .NET website?

I have local resource files for my web application. I want to know the location of the .resource file once the compiler creates it from the resx file. The reason i wish to know this is so I can compile on the local server and copy the .resource files to live and avoid a complete redeploy for simple text change. Thanks, Shawn ...

loading relative files from loaded WPF application resources

I am loading a resource.xaml file from the hard drive when the app starts for theming. When I try to load a ImageBrush I cannot specify the Uri as a relative so we get IOExeption when that style is loaded. Am I missing something? Here is a segment of my loaded xaml file with the ImageBrush <Style x:Key="theBackground" TargetType="{x:Ty...

Add image files to VS2010 project

I need to load some image files in my application, and I want to just build them into the application instead of having the user point to their path. So I think I need a resource file. But I'm having a little trouble figuring out how to create a resource file and add it to my application. ...

Embedding resources (images, sound bits, etc) into a Java project then use those resources

Hello, I have searched for a method of embedding a resource in a java project (using Eclipse v3.6.0) then using that embedded resource within a control (e.g., JLabel). I have seen methods of referencing resources from the file system. Once the project has been developed I would like to publish the application as an executable. It sho...

How would I use a pack uri resource with media player?

I have some very simple code which just needs to play a sound with a specified volume, as follows : var mp = new MediaPlayer(); mp.Open(uri); mp.Volume = volume; mp.Play(); The problem arises because this is part of a Prism module. I don't know where the executing assembly is going to be so I can't use a relative Uri or siteoforigin a...

insert tab in string resources in Visual studio

I know I can insert new line with shift+enter but how can I insert tab? ...

Ruby on rails: singular resource and form_for

I want user to work with only one order connected to user's session. So I set singular resource for order routes.rb: resource :order views/orders/new.html.erb: <%= form_for @order do |f| %> ... <% end %> But when I open the new order page I get an error: undefined method `orders_path` I know, that I can set :url => order_pat...

Xcode - Is there a way to get the extension of a resource?

Hey all, this should be pretty simple to answer: Is there a property of a NSURL such as lastPathComponent and StringByDeletingPathExtension that actually gives you just the extension instead? If so, what is it? Thanks! ...

Cocoa Touch - Resources Question

Hey all, I have a selector that searches the mainBundle for all .aif files, and allows the user to select them. This works fine, but then I removed some of the files from the project and folder, yet they did not disappear. Is there any way to maybe recompile it or something because It's now plagued with sound files that I don't need. Th...