resources

android preloading stuff

Hi, I use webviews and html/css/js to make some of my app's UI. (easy to do in iPhone and easy to port from there) as a structure i have a native view that takes me to a tabbar and each tab is an activity with its own webview that load a rather complex local (from assets) html. the first load of such a tab takes about 1 sec on the emu...

Finding implementation details for C# builtins

Is there a goto resource for finding the implementation details of various C# classes and methods? Please don't say Google/Yahoo/your favorite search engine. I am looking for one consistent resource. Red Gate's .Net Reflector is usually pretty good, but I can't seem to find the implementation for any of System.Object's methods. (I was...

Avoiding duplicate resources in android project

I have some images in my drawable folder and they have landscape versions in drawable-land. However I want some of the landscape images to be shared, as it seems a waste to duplicate the file with a different name. Is it possible to make a sym link (shortcut) or something for one of the duplicated files to prevent wasting space Folder e...

WPF, read data from XmlDataProvider in C#

I want a TreeView with checkboxes and I'm trying to follow this tutorial. However, in it, he creates all his content for the TreeView at runtime. I have an XML file that I have accessible as an XmlDataProvider in my XAML: <XmlDataProvider Source="XmlData/Versions.xml" XPath="//*[count(*)=0]" x:Key="versionsXml" /> I...

Are There Agile Processes For Agency Type Work? Scheduling Question.

I have just moved to a company where the production team is 15 strong, and consists of a mixture of back end and front end developers, testers & creatives. The team are working on multiple projects at the same time. Its agency work, so projects are fairly small, a CMS corporate website, a basic e-commerce site, that sort of thing. At th...

Proper syntax for asp.net embedded Resource tags

I'm trying to localize an asp.net web application. Consider the following asp.net code. I'm running with CurrentCulture and CurrentUICulture set to German ("DE-DE"). <%= ReportTitles.EndOfDay %> <asp:Literal ID="litLabel" runat="server" Text="<%$ Resources:ReportTitles, EndOfDay %>"/> I expect these two lines to yield the same resul...

Finding runtime details for C# builtins

As a follow up question to this one I asked yesterday, are there any good resources for finding the expected, worst case, or best case runtimes of the various c# builtin methods? Again, I am not looking for a search engine. When developing software, an API is useful, but it seems that that API should also include a runtime promise. ...

Release Direct3D resources left behind by forcefully terminated application

I'm working on a Direct3D application and I sometimes need to terminate the application forcefully via the debugger. After the application has been terminated in this way a couple of times, Direct3D reports an "Out of video memory" error when attempting to create a new device. Presently I am working around this by switching my display re...

Why are most computer games no more than 16v16?

From a programming/network point of view, what are the reasons why there are very few/no larger scale games than 16v16? There are some 32v32 games but these are seeming exceptions to the rule. ...

Including files in Silverlight app and retrieving in code as raw byte stream

If I include files in my Silverlight app and need to load them as raw byte arrays programatically, which Build Action should I set them as, and how do I refer to them? If they are included as Content, can I load them by path as a regular file? If I include them as Resource is there a collection of embedded resources where I can grab a ...

Resource file shared as external file between solutions

I have two solutions, a solution named Server and a solution named Client. The Server contains a resources file named Server.Properties.Resources. That file is added to the Client solution as an external file. When I debug inside Visual Studio, everything runs great. When I run the deployed version, I get the error System.Resources...

how to save text in app_resource. asp net mvc c# metatags

Hello all, I have all my text inside view coding. I preffer to save it in app_resources, because i would to add other languages in future, and its look quite cleaner. I just know that I need to use metatags in my view for text to connect it with file app_resource. How to it correctly, could you show me some examples how it looks like ...

How do I get the Windows Forms Designer to use resources from external assembly?

I have some resources (images in this case) in a resource file that I use on controls in my Windows Forms project. The Visual Studio Resource Selection dialog doesn't have very good support for choosing images from resource files unless they're in specific locations, but you can edit the designer file directly, and this works just fine; ...

PHP allocate color without image resource

Can you allocate a color in PHP GD without an image resource? It should be possible because really an allocated color is a number, right? $im = imagecreatetruecolor(100, 100); $col = imagecolorallocate($im, 255, 0, 0); print $col."<br/>"; $col2 = imagecolorallocate($im, 255, 0, 0); print $col2."<br/>"; $im2 = imagecreatetruecolor(600, ...

RESTful resources and orthogonal resource concerns

If I'm using a 3-tier app with a RESTful resource orientated service in the middle tier accessed via HTTP, what is the best way to provide orthogonal resources to the UI tier? An example of this would be a 'User' resource which has a field/property for a Country, now in the UI tier when editing the User I want to be able to pick from a ...

Loading a file relative to the executing jar file

The question says it all. The specialty in my case is that the current working directory is not the location of the jar file but c:\Windows\system32 (My jar file is started by windows using the right-click-menu, i want to pass a folder's path as a parameter to the jar). Now I want to load a configuration file called config.xml that is ...

XPath Query starting guides

Do you know any good XPath Query resources/starting guides for beginners ? Books / websites .. No php manual/google answers pls. ...

How to find file associated with resource (C#)

I need to edit a toolbar image, but the Image Collection Editor doesn't give a clue WHERE it resides. No file name or resource ID. How can I find this image? ...

Resource files in VB.NET

I'm currently in the process of merging multiple VB.NET projects into a single Class Library project. In the new Merged project, I've kept a different folder for each of the project that I'm merging. Each of the original project had it's own Resource file. Is it possible that I could keep the different Resource files in different folders...

C# WPF Switch Resource Programmatically

Hi, i`m trying to design a dialog window which will display different messages depending on what case will be true. so for example when i have a <CustomDialog Content="{Binding Path=Name}"/> is there a possibility to change the Binding Path=Name to Path=Whatever or how do you implement something like that ? When the Control should us...