resources

Many image files in res/drawable, How to access in Android?

I have to make a dedicated image viewer app for Android 2.x. There are too many jpeg image files: about 2000~ jpegs, over 100MB. I want access the image files with their file names, but I couldn't find such an example. By the way, is it okay to put many image files in /res/drawable folder? I heard that the android application cannot ...

Resources to learn sh scripting 'just like a normal programming language'

Hi, what is the best resource (book would be nice) to learn sh scripting (the "standard" shell on Unix systems) just like when i would learn a "normal" programming/scripting language ? There are lots of tutorials on certain aspects of shell scripting, they mostly deal with shells in general and unix commands and so on, but i would rat...

Builder C++ creating STRINGTABLE in resource

I cannot find anywhere how to create a stringtable in Builder C++ 2010. Do I have to use an external editor or is there another way? ...

Globalization in Masterpages

Hi to All, As i know, In ASP .net web forms, we can get text (or any other attributes of asp.net controls) value of the control directly from a resourse file in App_GlobalResources folder through expression attribute of the control without writting any code. ( selecting the control going to its expression property selecting the text s...

How to setup different Resources for different compile macros in Visual Studio?

I have a String resource that needs to have different value based on the conditional compile. How to setup different Resources for different compile macros in Visual Studio 2008 Professional? ...

Why is Android looking for QVGA resources in the wrong order mdpi > hdpi > ldpi?

Im trying to do some testing with a QVGA emulator and I find that it looks for an image resource in the mentioned order. drawable-mdpi 1st drawable-hdpi 2nd drawable-ldpi 3rd (it does get found only after i change the name of the image in the other two dirs for testing) I would expect it to be ldpi first. When running other emulators ...

Rails routing - custom routes for Resources

Hello guys, I'm building currently one Rails app and I'd like to stick to all those fancy things like REST and Resources, but I'd like to customise my routes a little. I want my GET route to be little more verbose - the app I'm creating is a simple blog, so instead of GET /posts/1 I'd prefer something like GET /posts/1-my-first-post. An...

Programmatic WPF FlowDocument generation and dynamic styles.

I'm generating a FlowDocument in code but I want it to apply dynamic styles defined in the resource dictionary. Even though I set the key using SetResourceReference, it seems like the resource lookup doesn't occur once I add the TextElements to the FlowDocument. My guess is that just adding the control to the document doesn't hook u...

Localization .NET; Fallback language when using ResourceManager

Recently I was delving into Localization with .NET. Essentially, I learnt how to customize a form (using the Language and Localizable property) and then change the culture accordingly. However, I found that when migrating my hard coded English strings into the auto-generated resource files, and use .GetString("Key") -- well, let's just ...

Maven and Eclipse problem - looking for resources

Hello! I have a problem, that maven is looking for resources inside of Eclipse installation folder. It is saying: This file was not found: file:/C:/eclipse/eclipse/src/main/resources/config/spring/applicationContext.xml While my workspace is in c:/Work/Core/ and inside src/main/resources. Is there any configuration for pom.xml to o...

How to resolve this "Resource name is not a valid identifier" compiler warning.

I've got a bunch of Warnings in a Visual Studio 2005 project, most of them are warning me that a resource name is not a valid identifier. example: The resource name 'MB_ArchiveRestore.cs_11' is not a valid identifier. MSDN online help indicates that the resource name needs to be strongly typed, and not contain spaces. What does stro...

How to compile resource files conditionally in Xcode?

Hi. I have many image/video files should be included as resource. Their size overs 30MB. So it takes to much time when I compile them. This slows down my development speed. So I'm finding a way to compile those some resource files conditionally. Like #ifdef directive in source code. It's good if it can be specified in source code file....

Converting from MFC dialog units to pixels

Using C#, how would I convert from dialog units (used in resource files to specify height/width) to pixels? ...

C++ figure out CPU/Memory usage

I have a C++ app called ./blah (to which I have the source code) when I run ./blah I can run "top" and see how much memory & cpu "./blah" is using. Now, is there anyway for "./blah" to access that information itself? I.e. when I run ./blah, I want it to every second dump out it's CPU & Memory usage. What library should I be using to d...

Getting a Spring resource

Hello, I'm trying to read a css file with the Resources provided by Spring. My application looks like this: src src/com herer my classes inside packages WebContent WebContent/resources/style/myCSS.css --> the css I want to read WebContent/WEB-INF --> here is my application-context.xml I can get the css and read it by doing some...

How to dispose managed resource in Dispose() method in C#?

Hi, I know Dispose() is intended for unmanaged resource, and the resource should be disposed when it is no longer needed without waiting for the garbage collector to finalize the object. However, when disposing the object, it suppress finalization of the garbage collector (GC.SuppressFinalize(this); in the code below). This means t...

What is the point of having string resources in C++?

I've never used string resources before so I would like to ask, when should I use them and why are they beneficial when I can just define a string? ...

iPhone Referring to Resources in Seperate Directories

This question tells how one can create directories in your resources path. Once created, how does one reference these directories? I have created an html directory with a structure for my internal pages, now I want to load the index.html file from the html directory. Thus, I'll need the file path to it. I can just use: NSString *filen...

Are there any online SQL interpreters with working databases for free?

I'm looking for a free online SQL interpreter that also has a database associated with it. I want to play around with SQL statements, but I don't want to setup my own database. I've looked around google for a bit, but I only found one web site that has interactive courses, an interpreter functionality and a small database: http://sqlco...

Is there any way to manage resources in WPF through Visual Studio IDE?

Is there any way I can manage resources through the GUI? Or the only way possible is through XAML code? Thanks ...