resources

iPhone - Retrieving Resources for logical unit tests

I've been following Apple's documentation on writing unit tests for the iPhone, and out of the box, the routine doesn't seem to work. I'm not sure I understand where the unit test is going to get the reference to the application delegate. My Dependencies are like the following: My_Program_target -> UnitTesting_target -> UnitTests_bundl...

Visual Studio resource editor

I am trying to view a .resx file in the resource editor in Visual Studio, but Visual Studio is unable to open it with this program. I right clicked on the .resx file and then chose Open With. It gave me a list of different programs I could choose to open my .resx file with, including XML Editor, HTML Editor, Binary Editor and Resource Ed...

server resources in live video broadcast

I am starting a project that will include live video broadcasts from all over the world and it is expected to have at least 1000 users viewing those videos in real time. After looking around a bit i have decided to use RED5 to handle all the video streaming/recording, based on the fact that it is free and open source, but i am still ope...

Bringing a team together - what are programmers looking for?

I come from an IT/business background, but I'm not a programmer. Recently, I've been aproached to head up projects that require software development. On the same token, this has led me to spend more time developing business ideas that revolve around a developed software or web development. Because I'm not a programmer, but am technica...

Add image to JAR Java

Hi, I'm using some imgages in JFrame, I have given a path to load image into panel of the frame, but when i made jar of the application its not dispalying images. Where should I place the image? How should I specify the path? setIconImage(Toolkit.getDefaultToolkit().getImage( "D:\RFT\src\dailogBox\dump.jpg")); like this i have do...

Is it possible for creating separate resouce files for Asp.net MVC?

I create my solution by using Asp.net MVC pattern which has at least 4 projects. App.Models App.Globalization App.Controllers References : App.Model and App.Globalization App.Views References : App.Model, App.Globalization and App.Controller I need to create .net resources file for using by both App.Controller project and App.Vie...

Read a string stored in a resource file (resx) with dynamic file name

In my C# application I need to create a resx file of strings customized for every customer. What I want to do is avoid to recompile the entire project every time I have to provide my application to my customer, so I need to dynamic access to this string. So, how can I access (during the app execution) to a resx file if I kwow the file na...

How do you handle resources in MATLAB in an exception safe manner?

Since there is no finally clause to the try-catch block in MATLAB, I find myself writing lots of code like the following: fid = fopen(filename); if fid==-1 error('Couldn''t open file'); end try line = getl(fid); catch ME fclose(fid); rethrow ME; end fclose(fid); I find having the fclose function in two places ugly and err...

How can I specify resources in an MVVM view model?

Suppose I want to show list of objects where each object should have a name and a suitable image (for example MenuItems with Icons, or buttons with text and image). All examples and programs exposed the image in the viewmodel as a path to a PNG file and then bound the Source of an Image to that. But what if I want to use vector images (...

.resx file the page is currently using

How do you get the .resx file the page is currently using? For example, if I set culture to fr-FR on Default.aspx, it should give me Default.aspx.fr.resx or Default.aspx.fr-FR.resx or Default.aspx.resx depends on which one exists. Do they have something like that in ASP.NET or I have to write it myself? ...

Practicing regex

I'd like to learn regex better so that it becomes a more natural option for me. Often problems that could be solved easily by regex I don't even consider using it. Can someone direct me to a resource that gives challenging regex problems like the one in the python challenge that goes something like this but in more of a riddle like fash...

adding additional resources to a maven pom

I have a super pom defined in which I specify a "resources" directory for resources. In one of my projects, my pom extends that super pom, and I would like to add an additional resource. I tried: <resources> <resource> <targetPath>/</targetPath> <directory>additionalDir</directory> </resource> </resources> But that res...

How do I access GetGlobalResourceObject function from a class that is not a page?

Hi, I have a class in my asp.net proj, I would like to get access GetGlobalResourceObject (that page exposes), from anywhere in the site, possible? In other words I wanna access the global resources from a class that is not a page I don't care how. ...

Programmically embed resources in a .NET assembly.

I have a compiled .NET assembly with a specific resource file embedded (named 'Script.xml'). I need to programmically change it out for another. Is this possible to do without recompiling from source? Currently, I do a search for text I know is in the file and it works well. But I need to do it for another project where I don't know an...

Where to put external resources referenced by a .net DLL/App_Code?

I've developed a series of classes that are called from an asp.net website to create HTML from templates. A pair of the main methods create a pre-styled HTML box. Like so: <%=ContentBox.DrawTop( title, textColour, backgroundColour )%> <p>This is the content inside the box</p> <%=ContentBox.DrawBottom()%> This code works fine. Howeve...

Good place to start learning data warehousing?

I am interested in learning more about data warehousing. I see terms like "dimension", "snowflake schema" and "star schema" thrown about. Where would one start in learning about this stuff? Are there good books or Internet resources? ETL is in this space too right? ...

CSS Problem in FireFox 3.5

Hi every one! I am developing an ASP.NET project with C#, and I wrote a page named gs.aspx which just writes resources like JS and CSS to the response according to the request and i's query strings. I have the header like this: <head runat="server"> <title></title> <asp:Literal runat="server" ID="litHead" EnableViewState="false...

(Rails) How do I reference resources from non-restful views...?

Hi All, How do you ensure that your javascript includes get included properly for all files everywhere using a particular layout? Basically I have some non-restful actions that I've added. I haven't added any ROUTES for them, however, using normal text rendering works fine. It's when I start requiring different "swf" and "js" files (...

What are the Silverlight 3 alternatives to DynamicResource and Element-based Brushes?

I need to have a custom UI element that can be changed, such as the colour and text used in the application but as a resource - in WPF I can use a DynamicResource to assign brushes, strings etc, however I need to implement this in Silverlight 3 - how can I do this as a StaticResource will not do, and as another question I have a resource...

Xcode Project Resource Organization and Structure

Hey guys I'm relatively new to Xcode and one thing that has bothered me is that when I add a resource it gets added to the top level directory of my project directory. So for example, at the moment, all of my images are at the top level directory and it makes things look messy. I rather would've liked, for example, to have an images/ fol...