resources

Porting a GUI from a pc to a wince device - issue is with the size of the screen

I have to port a GUI that is currently running on a pc, to a wince device. I have already compiled the code on a win CE platform, the problem is now with the size of the screen of the device which is smaller than some of the dialog boxes of the GUI. I could resize some them in resource view of visual studio 2005. I am unable to proceed f...

Xcode won't let go a resource file

Hello everybody, My question today is about how Xcode deals with resource files in the app bundle which it creates. I know that it may be trivial, but I can't find an easy way out. Basically my problem is that Xcode seems to keep on including a resource file (eg a text file) in the app bundle even if the file has been removed from the pr...

Useful Android system resources

Android comes with lots of system resources (android.R) that can be used to save you time and make your application lighter. For example, I recently discovered that Android provides localized strings for Yes (android.R.strings.yes), No (android.R.strings.no), Cancel (android.R.strings.cancel) and Ok (android.R.strings.ok), among other s...

clarification on 'private' drawables in android.R.drawable

I am making a menu for an app and was pointed to this useful resource which lists all the drawables that are part of the android 2.0 jar. the usage example given is myMenuItem.setIcon(android.R.drawable.ic_menu_save); Unfortunately, the one I want (and most of the list) are not available by default. I get android.R.drawable.ic_menu_...

Accessing JAR resources

I have a jar file with resources (mainly configuration for caches, logging, etc) that I want to distribute. I'm having a problem with the relative paths for those resources, so I did what I've found in another stackoverflow question, which said that this was a valid way: ClassInTheSamePackageOfTheResource.class.getResourceAsStream('res...

Loading Content images from Blend from separate project

Hello, I have a VS2010 solution with 5 projects. Two of these projects are called: MyResources Application The Application project contains all of the views and viewmodels for the application to run, and the Resources project contains all the images, resource dictionaries, etc for theming and skinning. The way I have images set up in...

understanding silverlight resource file format

I'm trying to understand the format of silverlight resource files. There are 4 bytes of the data comes after PAD. I'd like to know what these values are, and how they are generated. here is the hex dump of a .g.resources file. Here is what I know: there is 0xbeefcace at the beginning, then there is dependancies, then padding. after t...

How can I get the correct DisplayMetrics from an AppWidget in Android?

I need to determine the screen density at runtime in an Android AppWidget. I've set up an HDPI emulator device (avd). If set up a regular executable project, and insert this code into the onCreate method: DisplayMetrics dm = getResources().getDisplayMetrics(); Log.d("MyTag", "screen density " + dm.densityDpi); This outputs "screen d...

Changing locale: Force activity to reload resources?

So I have a language setting in my application. When the language is switched, I would like all the textviews etc to change language immediately. Currently I just change the locale in the configuration, so the language has changed when the user restarts the activity. An ugly solution to my problem would be to make each textview load the...

Using icons in Android preferences

I would like some of my preferences to have icons, like the Settings app. I guess one way of doing this would be to copy all the relevant code and resources from the Settings app, but it seems like overkill for a couple of icons. Also I don't like the idea of having to duplicate the code and resources in each project that requires set...

Resource strings

I have an .ascx file. This file has an associated .ascx.resx in multiple languages. I want to get a resource string for a specific CultureInfo. Ordinarily I'd use this.GetLocalResourceObject in the codebehind, but I don't want a local resource string, I want one for a specific language. ...

How do I set a resource file to non-embedded

In Visual studio 2008 is it possible to have a resource file that is included as a separate file after compilation rather than as an embedded resource. This is to enable small changes to be rolled out more easily. I have tried build options of Resource, None, Compile and also copy local on and off for most of these. However when ever ...

Where can I get standard OCR character images online?

I need bitmap images for 0-9,a-z,A-Z. Is there such resources online? ...

Reading from an embedded resource stream

I've been trying to access an image resource named "IndexPointer.jpg" in an embedded RESX file called "Images.resx". GetManifestResourceNames() returns a single value - SCtor.Images.resources". Assembly::GetExecutingAssembly()->GetManifestResourceStream("SCtor.Images.resources.IndexPointer.jpg") only returns a nullptr. Obviously, I've...

sqlite3 on iPhone emulator versus device permissions?

Ok, now I finished developing on the emulator and when I installed on my test device, I got the error attempt to write a readonly database What are the settings to control the DB access? Is this going to be difficult to manage when deployed? More information ... I think I know what is going on ... When I look for my DB it is not...

Performance impact using culture invariant resources

I would like to know the performance impact of using the culture invariant resources instead of culture specific ones. For example, we plan to deploy a website and not have any en-US resources. This is because our culture invariant resources are always identical to the en-US resources. Is this a good idea ? What are the cons? ...

Replacing Resource files on new BlackBerry app version

Hello, I am maintaining an existing BlackBerry application (implemented as a MIDlet). The application contains a number of data files that get bundled with the app as resources. Some of these data files need to be updated for a new version of the app. When the user goes to install a new version of the application (via URL of Jad file), i...

Setting Icon for wpf application (VS 08)

Hi everyone, Before going much further i'll mention I have tried solutions in following: http://stackoverflow.com/questions/320677/how-do-i-set-the-icon-for-my-application-in-visual-studio-2008 http://stackoverflow.com/questions/198848/set-application-icon-from-resources-in-vs-05 I am trying to set an icon for my application. AFAIK,...

Find resource for CultureInfo

Hi, I need to determine whether there is a resource file for the given CultureInfo or not. Is there an easy way? Regards ...

Free Large datasets to experiment with Hadoop

Do you know any large datasets to experiment with Hadoop which is free/low cost? Any pointers/links related is appreciated. Prefernce: Atleast one GB of data. Production log data of webserver. Few of them which I found so far: http://dumps.wikimedia.org/enwiki/20100130/ http://wiki.freebase.com/wiki/Data_dumps http://aws.amazon.co...