resources

Resources on Writing Compiler Backends for OO Languages ?

Greetings Overflowers, I am trying to deeply understand how one can develop an x86 (ia32/ia64) backend for OO languages (staticly/dynamically tryped), mainly to be run on Windows OS. I have a good understanding of the x86 architecture, Windows architecture and how to get a code to the tree level ready to be optimized and serialized int...

Packaging an exe to have one file, similar to on mac with .app

Hello, I am trying to create a standalone app with a resources folder that is writable. I would like to include this in the exe, similar as to how it is done on OSX with an .app. Is this possible? Thanks! ...

Adding localization to XSLT

I'm using an XSL file to do the rendering of an ASP.NET webpart that I made, but now I want to localize the strings inside that XSL file: <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:siteInfo="urn:siteInfo" version="1.0"> <xsl:output method="html" omit-xml-declaration="no"/> <xsl:template match="*|/"> <p...

Designate an arbitrary folder as Android assets?

It seems that the Android resource compiler does not take into account linked folders (in Eclipse sense) in the assets folder. Question - is there a way to forcibly designate a folder of my choice as Android project assets? Short of copying or hardlinking into project assets, I mean. ...

The right way to use Globals Constants

In almost every project, I can't decide on how to deal with certain global constant values. In the older days, when I wrote C++ programs which didn't used dll's, it was easy. Just create and .h file with a number of const that described certain constant values for my project. Then I had every file include it, and ta-da! It worked. Clean,...

Delphi ITE: when can resource IDs change?

I'm looking into Delphi ITE (Integrated Translation Environment) to add multi-language support in my app. I'm concerned about validity issues for resource DLLs, which is generated by ITE. In other words, when it is safe to deploy already compiled resource DLL, if main application was recompiled or (possibly) changed. Questions: If I j...

How can I make R take advantage of a high memory, high cpu server?

SO I've finally figured out how to get my R scripts to run on the Amazon EC2 cloud. I've been using an AMI with 26 ECUs, 8 Cores, and 69 gigs of RAM. I then divide up my code into multiple scripts, and run each one in an instance of R. With a server of this size, I can easily run 20-40 scripts simultaneously, each running several 1000 s...

WPF: Accessing resources in a control assembly

I have a control for which i want to declare resources in a xaml file. if this was a user control i could put the resources in an <UserControl.Resources> block and reference them in the code via this.Resources["myResourceKey"] how do i achieve the same functionality in a control. at the moment the only link to xaml i have is through the ...

Reference to control inside a ControlTemplate

How do I, form my contructor in the code-behind get a reference to the OuterBorder control in the XAML below? <Window Template="{DynamicResource WindowTemplate}"> <Window.Resources> <ControlTemplate x:Key="WindowTemplate" TargetType="{x:Type Window}"> <AdornerDecorator> <Border Name="OuterBo...

How do you use the GridView.GridViewStyleKey property to style a ListView?

The documention for the GridView.GridViewStyleKey says (emphasis by me): You can use this read-only static property in Extensible Application Markup Language (XAML) by assigning its static value to another property value. Specifically, this property's static value defines the resource key that is used to look up the default ListView ...

How to explicitly release GDI handles allocated by TForm derived class owned by the Application?

Hi. A single class derived from TForm appears to hold onto GDI handles until the application is closed. class TTestForm : public TForm { public: TTestForm(TComponent*); }; std::auto_ptr<TTestForm> test(new TTestForm(NULL)); test->ShowModal(); I'm quite new to VCL, so please bear with me. This test was done with a form that con...

Silverlight: Binding a property of a resource object

Hi all, I'm trying to bind a property of a resource object to a control (a combo...) - the thing seems to work in the designer, but it is not working at runtime. Just using a simple page with only a button and a combo - resource section: <UserControl.Resources> <LinearGradientBrush x:Key="myBrush" EndPoint="1,0.5" StartPoint="0,0.5...

The eclipse autobuilder often ignore the resource directory

I use eclipse and the maven plugin. I have a big multi-module project (~6 modules in the workspace). I often have the problem that when running my program (jetty:run) my application does not start because resource files are missing. Looking in the target folder, I noticed they haven't been copied. Only "project" "clean" helps in this cas...

How do I write combined selectors in CssResource?

Suppose I have a css style like this: .foo a, .foo a:visited .foo a:hover { /* some styles here */ } .bar table tr td{ /* other style here */ } How do I identify them them in CSS resource? Specifically, what style name should I refer to in my own CssResource interface? ...

How do I reference adk resource in a different Android project?

I am developing a study project using the mosembro (mobile semantic browser) project inside my Android project. I am using Eclipse and I created my project, downloaded / imported mosembro and included in my project's build path. So now my code needs to refer to a resource in the mosembro's project. I want to do something like this: S...

Best way to stay current on technology

Possible Duplicates: How can I continue to stay current on the latest and (maybe) greatest tools, techniques, and technologies? Whats your way to stay up to date and learn new technologies? The way lifehacker provides the ability to stay current on lots of general topics, including software and gadgets, is there a site out t...

Dynamically loading a resource and reading the correct value for the CurrentUICulture

I'm creating a method to convert an enum to a friendly string. The friendly names are stored in a resource file and are subject to globalization. So I created two resource file: Enums.resx and Enums.pt-BR.resx whose keys are the name of the enum followed ny it's value (i.e DeliveryStatus_WaitingForPayment). This is the got I'm using to ...

Does destructor of a C++ class that throws an exception gets called?

Suppose I have a class like this: #include <iostream> using namespace std; class Boda { private: char *ptr; public: Boda() { ptr = new char [20]; } ~Boda() { cout << "calling ~Boda\n"; delete [] ptr; } void ouch() { throw 99; ...

android HTML template as resource

is there any way to have an html file (i.e. an html template) be a resource in android? I'd like to reference it in a similar way that i store strings in the res/values/strings.xml. However, when i do this, it appears the HTML is not getting rendered correctly when i use myTextView.setText(Html.fromHtml(MessageFormat ...

How to force VS10 to include DLLs into main app folder when publishing?

Note: I suspect my problem is related to this one: Visual Studio 2010 Publish Web feature not including all DLLs. My app has some references that are wrappers for non-.NET libraries. These wrappers need the original DLL to be in the same directory as them and the executable. The problem comes when publishing. Following the advice I fou...