resources

Question about using an access database as a resource file in Visual Studio.

Hi I am trying to embed a Microsoft Access database file into my Class assembly DLL. I want my code to reference the resource file and use it with a ADODB.Connection object. Any body know a simpler way, or an easier way? Or what is wrong with my code, when i added the resource file it added me dataset definitions, but i have no idea what...

specify parent window in Windows Resource Script file(*.rc)

Hi, I'm looking for a method to specify parent window in *.rc file. In *.rc file, it contains the layout and controls of a dialog. Any new control added into it, will automatically become a child window of Dialog itself. But I want to add a custom draw window into dialog, and some other controls which has that "custom draw window" as ...

Jersey / ServletContext and resource loading on startup.

Hello, I'm kind of new in web development with Java. I am developing a web service and I've chosen REST / Jersey for it. I want to init some stuff on startup of the service and to keep them all along the life of the service. First question : Is the constructor of the Jersey Servlet a good place to do that ? Basically, what I want t...

updating plist file on launch of application

Hi. I have an app that reads in a plist file from the resources folder. I have looked for about 5 hours for a solution to hosting my plist file on my freewebs acount and have the application update the plist file on launch. Can anyone help me please. I will post my code if you ask. I am just not sure what you need to see now. ...

exclude resources from android:generate-sources

Could someone give me an idea about how to exclude using maven, some resources. I have a lot of languages in my project and I want to make build only for 3 languages for example. I have create the pom file and when I make the apk, all resources are copy by default(resources:resources,"Copying 122 resources"). Can I make in any way to cre...

Validation controls error message from Resource file and parameterized

Hi, I would like to get validation messages for validation controls from resource files. I know I can do that easily by following code snippet. <%$ Resources:[filename prefix,]resource-key %> or <asp:Label ID="Label1" runat="server" meta:resourcekey="resource-key-prefix" /> But I would also like to parameterized it. e.g. Above R...

Prevent(manually entered) Code Removal in Resources.Designer

I've added a small function in the Resources.Designer.cs and it working great, the problem is that when I add or remove something from the Resources.resx this function always get removed, is there any indicator I could put or anyway to bypass this? Thank you! It is a really simple method used as an indexer. internal static string K...

Different ways to use browser and system media resources

Examples: <img src="system://media/icons/logo.png" alt="OS"> <style> img.browserIcon {background-image: url(browser://media/icons/logo.png); width: 16px; height: 16px;} </style> On Firefox you can access to some resources like this: <style> .button {background: transparent url(chrome://global/skin/button/startcap.png) no-repeat s...

Where to store common application settings

I want to move my application settings out of XAML and into a config file. For example, ToolTips and Content strings for Buttons/CheckBoxes and Labels. Is this the job of a ResourceDictionary, or should I use the App.Config or Settings.settings file? The ToolTips and Content strings are not really per user, they are more Application w...

Sharing css/javascript/images between different projects in Visual Studio

I can't seem to figure out the most efficient way to do this. For example, I have some js files that are needed in both projects(within the same solution), how do I include them without duplicating the actual physical files, which I would rather not do? Same goes for images and css files. I would also like to know what's the best way t...

Storing Sessions in a DB in PHP - keep getting mysql error

Hi guys, I want to store all my sessions in a DB and have read up on this and implemented the following class: <?php /** * This class handles users sessions and stores the session in the DB rather than in a file. This way stops any * shared host security problems that could potentially happen. */ class sessionHandler { /** ...

TFrame component : Resource not found

Tool: Delphi 6 Pro I created a new component in my main components package that is a descendant of TFrame using the Component -> New Component option. When I try to draw the component on a form during design time I get a "Resource {component class name} not found" error. I tried adding the line {$R *.dfm} to the component unit just af...

Store xml files in resources folder (WAR), read from code

Hi, I have different XML-files in my 'src/main/recources' folder, and I'd like to read them from my webapplication. File f = new File("file1.xml"); f.getAbsolutePath(); The code gets invoked inside a WebService, and this prints out 'C:\Users\Administrator' when I look inside the Tomcat-server-output. My current solution is to put the...

C# String Resource Values as Enum String Part values?

Using VS2010 and .net V4.0 I would like to achieve the following: I already have 2 resource files in my project for 2 languages - English and Czech. I must say Resource Management in .net is excellent, I am suprised even to get code completion when implementing a String for example: string desc = Strings.ResourceManagerDesc This ge...

Resources To Start a Web Server

I want to start the development of a web server using the Scheme language, but I need to have the basics knowledge of the web server, using the sockets and a little about the optimizations. ...

Visual Studio Editor, MEF in-Depth

I have been having difficulty simply writing a Visual Studio Editor Extension with MEF (Managed Extensiblity Framework). I thank those who answered my previous question, as they helped me know that I need to work with MEF. I've been trying to learn MEF for the Visual Studio Editor from MSDN's page, Extending the Editor, but it appears t...

Should all resources in a java web application be uniquely named?

Trying to understand resources in java-land. I believe the following is true: Resources loaded via the classpath have no namespace, they only have a file name. It's wisest to always load resources via the classpath, never via the file system, even in unit tests. Therefore, resources must always have unique file names, or collisions w...

Good online HTML5 tutorials

Are there any good tutorials or resources online for learning HTML5? I already know HTML I am just looking to learn about the other things in HTML5. Thanks in advance! ...

FASM using custom resource files

How do I include my custom resource files and be able to access them with the windows api? ...

Are string resource ID values guaranteed to be consistent over different projects?

I have some messages being passed back from my server through php. The problem is that the messages are in English and if the user is using another language they will still get the message in English. So I had an idea that maybe instead of passing back the message I would instead pass the String resource Id from the android app, that w...