resources

Export Websphere 6.1 Profile with datasource configuration

Hello, I'm trying to export a profile from WAS 6.1 so that I can give it to other members of my team with all of the JNDI and Shared Library configurations in place. I've flowed a few IBM tutorials on this like http://www-01.ibm.com/support/docview.wss?uid=swg21322309 (technically that is more a bug fix, but there is a similar page). I'v...

Manually Add a Resource File (Visual Studio)

I have a solution in VB.NET (VS 2005) In this solution I have a custom control, that inherits from a abstract class. Now, as VS is VS, it doesn't want to display the control in designer, because its parent is abstract. Now, I want to add a picturebox with an image (bmp or ico) to this control. Normally I've done this opening the desi...

Eclipse getResourceAsStream returning null

I cannot get getResourceAsStream to find a file. I have put the file in the top level dir, target dir, etc, etc and have tried it with a "/" in front as well. Everytime it returns null. Any suggestions ? Thanks. public class T { public static final void main(String[] args) { InputStream propertiesIS = T.class.getClassLoader().get...

WPF XAML resources

Hello, I would like to place some WPF Data Templates in a loose file that I can reference where needed in my UserControl. I do not want the Data Templates to be application wide (use app.config), I only want it to be specific to my library. Is there a way to do this besides placing the Data Templates in UserControls and then loading the...

Resource editor not available in Visual Studio 2008

When I right-click on a resource file in Visual Studio 2008, I get the following message: There is no editor available for 'D:\MyPath\MyProject\Resources.de.resx'. Make sure the application for the file type (.resx) is installed. Any idea on how to solve this issue? By now, I am stuck with opening the resource files as XML te...

Need good resources that guide through the process of creating Perl Modules/Packages

I work as an ETL developer and I have been meaning to create a Perl module where I can put a lot of the subroutines. I would also like, if it is possible, to have the module handle all the logging & error reporting although the second one is more of a nice to have than an immediate need. I have never created a module or package in Perl...

WPF: Referencing app-wide resources in code-behind

I have made my own custom converter which given a string returns a Brush. Now I'm able to return constant brushes such as Brushes.Red etc., but I really want to use my own colors which I have defined in an application-wide resource. How do I reference application-wide resources from my own custom converter class? I'd use FindResource bu...

embedding swf file in resource (res) file

Hello In .RC file I can use images and waves as below: MYIMAGE GIF "images\square7.gif" MYWAVE WAVE "sounds\login.wav" And after compiling the .res and including in my dll I can access them with below URLs: res://D:\myres.dll/gif/MYIMAGE res://D:\myres.dll/wave/MYWAVE My question is how to do the same for .swf (flash) file? I want...

How to load resource bundle messages from DB

Can I load a resource bundle dynamically? Can I edit a resource bundle dynamically? It would be best if I can have such a logical resource bundle (i.e. located in context not as physical file). Related: How to load a resource bundle from a file resource? ...

Replacement for the site "Dll Help"

I just found out about the site DllHelp, and it turns out it was retired yesterday! :-( The site is: (according to Joel on software) a complete database of every DLL Microsoft has ever shipped, and which versions of which product it shipped with. Is anyone aware of a replacement / equivalent site, or is this information simply no ...

Loading all files in a directory in a Java applet

How would one go about programatically loading all the resource files in a given directory in a JAR file for an applet? The resources will probably change several times over the lifetime of the program so I don't want to hardcode names in. Normally I would just traverse the directory structure using File.list(), but I get permission iss...

WPF control hosted in Windows Forms: Is it possible to access resource files?

I have a WPF control hosted in Windows Forms and I would like to access it's resources, specifically images. What is the best way to do that? I was thinking of using a ResourceDictionary, but I'm not sure how I can access it from within a Windows Form. ...

Maven project variables for dependencies

I have an html file which loads an applet. The html needs to refer to the jar by name, and since maven names it based on the artifactid, version, etc, the html needs to be dynamically updated as the project evolves. It seems like resource filtering is the way to go, but I can't figure out what the variable to interpolate should look li...

Sharing PHP session (or similar) between deamon and page requests.

I need to keep a persistent connection open across multiple page requests. You cannot put PHP resources into the session. My solution is to trigger a deamon on the first request and keep the PHP resource there. I then need to get the deamon to talk to my different page requests. I could do this the long way by using a database or file b...

LDAP connection leak in this code

Could someone explain me why this piece of code randomly "leaks" LDAP connections? I can see the amount of established TCP/IP connections rising by time and at some stage this starts causing problems. I tried fiddling with the com.sun.jndi.ldap.connect environment properties (enabling pooling, disabling it and such) but it did not seem t...

Strings in Embedded resource - Failed to access

Hi, I am using Visual Studion 2008, Framework 3.5 SP1. I have an assembly in which I have Strings.resx file. This file contains serveral strings. All over this assembly, I just get my strings back using "Strings.MyString" as it generates a CLR class. It compiles fine and no issues. But when I try to use this assembly in other solution, ...

How to filter resource in Maven, replacing with a dependencies artifactId?

I'm trying to build a jar that has an xml file as a resource. I'd like to apply a filter to that xml to insert the name of a dependency into the xml. The filtering is working, because I was able to drop in ${project.build.finalName} and get it replaced. I found one hint that the property I'm looking for might be ${project.dependenci...

Eclipse CDT - Copy static resource file to bin_dir

So my problem: I have a C++ project in CDT 6.0 on Eclipse 3.5, and I now have a static resource file (a .properties for log4cxx) that needs to be copied to the build folder. This file is accessed at runtime to configure the log4cxx subsystem, and it needs to be available in the same directory as the executable. For example, the Debug/ fo...

Codeigniter Shared Resources - Opinions Wanted

I run multiple websites all running off of a single installation of CodeIgniter on my server (separate application directories and a single system directory). This has been working fabulously and I don't see any reason to change it at this point. I find myself writing library classes to extend/override CI all of the time and many times...

C# copy, paste a form in a Visual Studio project

I want to create a new form that is almost a duplicate of a dialog I already have in my project. I don't want to waste time recreate most of the form scratch if I don't have to. I copy, then paste it into my project, and rename it from Copy of Original.cs to NewItem.cs. When I goto rebuild my solution, I get an error. The item "obj\D...