resources

Is it possible to prevent zend engine to free resources?

Is it possible to prevent zend engine to free resources allocated in PHP? For example, when a process is forked() and the resource is duplicated to the child process, when either child process or parent process exit, the resource is free thus other processes can't access them any more. ...

Why Storyboard value wouldn't get from a resource or binding?

I have construction below and it works: <Storyboard x:Key="GrowOnStart"> <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Left)" Storyboard.TargetName="window"> <EasingDoubleKeyFrame KeyTime="0" Value="1024"/> Why it doesn't work if I try something like this: <EasingDoubleKeyFrame KeyTime="0" Value=...

What is the relative path of a Resources.resx file with regards to the .exe?

I have a simple Console Application, and I have several configurable strings in the Resources.resx, but the binary is unable to find its Resources.resx when I do run it from Debug, or Release directory. When I do run it from VS 2010, everything works fine. Where should I locate that Resources.resx file? I tried putting the Resources....

Where would you send developers that want to learn .NET?

It can be extreme beginners or more experienced developers that used to code in a language like C, Perl, etc. and that wants to develop a desktop software in .NET (no ASP.NET then). I'm looking for online resources that will help them understand .NET Framework and learn how to code very simple applications. What I'm looking is content ...

Android: How to reference library drawable in app manifest

I have a free android app that I want to now distribute as free (with ads) and paid (without ads), so the only difference would be in a few of the layout files, where I just remove the ads in the paid version. I tried moving all of my code from my existing free app to a new project which I set up as a library project, and I'm referencin...

Getting iPhone mainBundle Files

I dont know the exact code i need to retrieve all of the filenames of the resources in my iphone apps mainBundle. if i could have some kind of code like: NSArray *array = [[NSBundle mainBundle] getAllResourceFilenames]; it would be helpful. thanks inadvanced for any help! ...

Best way to implement localization in asp.net mvc 2

Hi. I am converting a webforms app to mvc. I implemented localization in webforms this way: The user selects the language, which BTW can be an rtl language, and the selection goes into the user profile in order for it to persist the next time the user visits the site. I used anonymous profiles. also, I used resource files. The db table...

c# : How To use a Text File Which added to My project From 'add new items\general'

Hi I am recently using Visual Studio 2008. My problem is I already added a text file into my project [''add new items\general\Text File''].[Is not it a embedded data like icon file or background image file ?] I want to store some data into it. But dont know how to open this file. Please any opinion will be very helpful. Thanks. ...

Getting an Xcode project's resources in c++

I'm coding a simple game using SFML in Xcode. I have a .png of a block I want to use in a sprite. At the moment, I have to type the full path to the image in the code snippet below: sf::Image blockImage; if (!blockImage.LoadFromFile("/Users/me/Development/Tetris/images/block.png")) { cerr << "Could not load block image." << endl; ...

Are there any decent PHP forums where I can submit program designs and code for critique?

I don't feel that stackoverflow is the best website for getting critiqued on my code, as it caters to single answers. I have always read and practiced alone (aside from some forums) as I did not go to school for programming or computer science, and thus do not have any peers that I can go to for advice, critique, or direction. Are there...

WPF - Setting different ToggleButton image for each TreeViewItem root node with styles

I am new to using styles, resources and templates in WPF. What I need to do is override the ToggleButton +/- in the TreeView to be an image, with a different image for each TreeViewItem root Node. For Instance, I would want an image of a car for the "Car" node, and an image of an airplane for the "Plane" node. I have a colorful and a ...

get File from JAR

Hi, I'm using Spring's Resource abstraction to work with resources (files) in the filesystem. One of the resources is a file inside a JAR file. According to the following code, it appears the reference is valid ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver(); // The path to the resource from the ro...

c# embed resources problem on windows xp (NullReferenceException)

Hi, I'm using an embed resources in my c# application string sPath = System.IO.Path.GetTempFileName(); System.IO.File.WriteAllBytes(sPath, Properties.Resources.test) workbook = app.Workbooks.Open(sPath,missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing); It wo...

Getting the extension of a resource in Android

Is it possible to get the extension of a raw resource in Android? How? ...

android, using downloaded png's

I have an app which places an icon in the status bar. I would like to let the user select from a list of icons stored online and use the downloaded icon as the one in the status bar. I think I'm ok with the downloading the icon part, but I am not sure how to set that downloaded png as the icon in the status bar. I assume you have to a...

ASP.NET MVC 2 default resource file not needed

I use resource files throughout App_GlobalResources. Why do I need to have the default resource file? If I have MyResFile.resx (default file) and MyResFile.en-us.resx it's all fine. If I remove the default file, stuff like <%: Resources.MyResFile.Key%> from view or Resources.MyResFile.Key; from controller does not work, telling me Re...

Windows portable executable resources - looking for embedded manifests structure description

Hello all, i'm looking for a description of the manifest embedded in PE files. I know it's an XML file, what i'm looking for is a description of its structure and/or fields. ...

display icon from my sd card

I would like my app to grab an image from the phones sd card to use as the notification icon in the status bar, but android needs a resource id to build the notification with an icon. if I load an image from my sd card, does it have an resource id and how can I get it? or is there another way to get this to work? ...

How can I convert the name of a strongly typed resource to an Uri

In my programs I prefer using strongly typed resources instead of strings. For instance I have an image resource called: Properties.Resources.Resize. I'm using a library that only allows an Uri of this resource to add an image to a button, like this: LargeImage = new Uri( @"/Resources/Resize.png", UriKind.Relative); To archieve this u...

maven resources not placed in jar file

I want to add to a jar file some resources. I "profiled" it and added them in the build section. But the resources aren't in the final jar file. Here it goes the profile section of my pom.xml: <profile> <id>myProfile</id> <build> <finalName>name</finalName> <resources> <resource> <targetPath>.</targetPath> ...