resources

How should I use .ico files in a Winforms Application ?

I'm developing a WinForms c# 3.0 application. Our designer created quite a lot of .ico files containing all the needed art. The choice of .ico was made because quite often, the same image is needed in several places in different dimensions. Now, it seems .ico files are really annoying to use in visual studio. The only way to use those i...

How do you add bitmaps to a .RC2 file?

I would like to include common resources into two of my applications. Rather than using a DLL, I figured I could include common resources at compile/link time by making use of a .RC2 file. I've added a load of BITMAP entries as follows to my .RC2 file IDB_CHECK BITMAP DISCARDABLE "\NewGUILib\res\bmpCheck.bmp" My .EX...

Common resources in Silverlight and .NET

Hello. Is any way to use common resource file in Silverlight and .Net project? I try to make link to Silverlight resources but different namespaces not allows ResourceManager to get resources from assembly. Do you have any ideas? ...

How secure are Resources in .NET?

How hard would it be to retrieve embedded resources from a .NET application, from outside the application itself? Even if the resources are compressed and trivially encrypted, how difficult is it to retrieve them using a tool? (I am not concerned with the protection of the data per se, just the methods of retrieval of the resource itself...

Is there any facility to protect the contents of an APK from user modification?

I was thinking about this earlier and figured I'd ask. If I made an application that has lots of resources, what would stop someone from extracting and adding/modifying the resources I ship with it? Does an application that doesn't want its data manipulated have any sort of option to protect itself? ...

VS2008 designer automatically update control's property from resource file

I have a situation where some of the control's string property values are automatically replaced with a variable from a resource (.resx) file in the designer file during design time. For example, I have a form that contains a combobox. A snapshot of the code in the designer file may look something like this: this.comboDocument.Name = "...

Using Windows LockResource to access binary resource data

First, my concrete question: In my attempt to access cursor raw data, my call to LockResource succeeds, but the SizeOfResource call tells me that the data is only 20 bytes, which is just too small... What I'm really trying to do: I am exploring possibilities for remoting cursors from mixed code server application to a CLR client applica...

Visual studio Resource editing problem

So, I'm busy making a model viewer, I'm trying to get my dialog properly setup, and get my openGL view ports squared ( I'm using picture box controls for it ), one big problem. Visual studio doesn't allow me to set the the size manually, I can't see the actual pixel size. I can only see it in the bottom right corner of the screen but tha...

ASP.NET Local Resources Localizacion

We use resx files to localize my web applications. We have created a bunch of resource files under different APP_LocalResource folders and we are accessing that resources from pages and user controls through meta:resourcekey. We want to move all the resource files into one folder, without changing meta:resourcekey Is that possible? ...

GWT UiBinder doesn't load the stylesheet

I wanted to make a GWT widget using UiBinder. So I made: UserPanel.ui.xml like this: <?xml version="1.0" encoding="UTF-8"?> <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <ui:with field="res" type="com.example.resources.UserPanelResources" /> <g:VerticalPanel st...

The best open sources scripts for city-guide sites

I am looking for the best open source scripts for city-guide sites. Any suggestions? ...

Add Resource from designer vs Setting Build Action

I've read all I can stand about .NET resources and haven't found an answer to my question. I am trying to create a resource for a text file in my Test project. The file is in the solution in a folder called "Test Resources". My question is, what is the difference between using the Resource designer to add the resource as opposed to sett...

List of resources to learn cassandra

Hi all, Lately I have been reading a lot of blog topics about big sites(facebook, twitter, digg, reddit to name a few) using cassandra as their datastore instead of MysqL. I would like to gather a list of resources to learn using cassandra. Hopefully some videos or podcasts explaining how to use cassandra. My list Twissandra - Twiss...

What are the books about Open-Source that everyone interested in should read?

Currently I am working and running my first Open-Source project and though I am quite happy how things are working so far, I have the feeling that a lot of things could be done better. So, what books about Open-Source would you recommend me in order to help filling this gap and making things better every day? What are the books that in...

Java resource management: please help to understand Findbugs results.

Hello, everyone! Findbugs bugs me about a method which opens two Closeable instances, but I can't understand why. Source public static void sourceXmlToBeautifiedXml(File input, File output) throws TransformerException, IOException, JAXBException { FileReader fileReader = new FileReader(input); FileWriter fileWriter = ...

Embed resource in a .NET assembly without an assembly prefix?

When you embed a resource into a .NET assembly using Visual Studio, it is prefixed with the assembly name. However, assemblies can have embedded resources that are not assembly-name-prefixed. The only way I can see to do this is to disassemble the assembly using ILDASM, then re-assemble it, adding the new resource -- which works, but... ...

Resources access problem from JAR

I have the following directory structure of a project: Folder "project" in Eclipse: --folder "src" --folder "resources" ----trayicon2.png --folder "db" ----test.db --folder "bin" I'm accessing the image with: Image image = Toolkit.getDefaultToolkit().getImage("resources/trayicon2.png"); and from Eclipse that is not a problem. Th...

Suggest resources for learning Scheme.

I'll be starting a new job soon where Scheme is heavily used. I currently do not know Scheme, but my employer assures me that is not a problem. Regardless I'd like to hit the ground running and have a working knowledge of the language before my start date. So I'm looking for good resources from which to learn Scheme. I have had minim...

how to atomically claim a row or resource using UPDATE in mysql

i have a table of resources (lets say cars) which i want to claim atomically. I then want information about which resource I just claimed. If there's a limit of one resource per one user, i can do the following trick: UPDATE cars SET user = 'bob' WHERE user IS NULL LIMIT 1 SELECT * FROM cars WHERE user = 'bob' This way, I claim the ...

Why can't I set the Image Source in WPF app?

I'm just learning WPF. I'm using VS 2008. I've added an Image control to my XAML, and I added a GIF file to the project. If I use the XAML Designer's property panel to set the image's Source property, the drop-down list for the Source property contains the following: C:\Sample Project;component/pinHorizontal.gif There are several prob...