resources

Resources for Learning about Non-C Compilers?

When it comes to learning about C compilers LCC seems like the compiler of choice for many. Also, there is another StackOverflow article here on learning compilers in general. However, I've previously studied C compilers and am looking for something a bit deeper in terms of programming paradigms. To be clear, what I am looking for are...

My client is new to the software biz, what should they read to understand development projects and process?

They're hiring me as their "lead programmer" as they call it, but it's really a project manager position. I will be doing little or no programming, they want to outsource the programming to an Indian shop. (their call, not mine) "The Mythical Man Month" comes to mind, given their interest in outsourcing, but I'm sure there's quite a few...

How would you store tabular constant Data in your C# project?

I am currently writing a plugin to a CAD style software. The plugin does calculations based on data read from the CAD model and a lot of table lookups (think printed tables in a calculation guide). I inherited this plugin and the current solution defines a class Constant which has a bunch of static struct members and two-dimensional arra...

C#: How to implement a smart cache

I have some places where implementing some sort of cache might be useful. For example in cases of doing resource lookups based on custom strings, finding names of properties using reflection, or to have only one PropertyChangedEventArgs per property name. A simple example of the last one: public static class Cache { private static ...

Is there a way to preserve the BITMAPFILEHEADER when loading a Bitmap as a Windows resource?

I've been working on testing a few things out using SFML 1.4 (Simple and Fast Multimedia Library) with C++ and Visual C++ 2008 Express Edition. To avoid having external images with my graphical programs, I was testing out the sf::Image::LoadFromMemory(const char * Data, std::size_t SizeInBytes) function with Bitmap resources loaded usin...

Aliasing Resources (WPF)

I am trying to alias a resource in XAML, as follows: <UserControl.Resources> <StaticResourceExtension x:Key="newName" ResourceKey="oldName"/> </UserControl.Resources> oldName simply refers to a resource of type Image, defined in App.xaml. As far as I understand, this is the correct way to do this, and should work fine. However,...

Compiling text resources int SWF and reading them

Hi. What I want to do is to display the buildnumber in a Flex appliation. My build system (Maven) will supply the buildnumber. But how do I compile it into the SWF and display it in the UI? A possible option might be to create a text file and compile it somehow into the swf, then read the resource in the actionscript code and display i...

An elegant way to implement shared classes that load heavy resources (in Java)

Hello, I have several classes which work as wrappers over some heavy libs, such as parsers, taggers, and other resources. All these libs have one thing in common: they have a load/init method which takes a serialized model (a large file) as input, and return a class that can be used to do concrete things such as parsing text. To illus...

Delphi = Pascal? Resources for Learning?

Well, I am new to Delphi and really offline programming in general (other than the standard C++) and recently acquired a copy of Delphi and was kind of interested in starting with it. I read somewhere that it uses Pascal but I was confused on if it used Pascal, as in it was programmed with it, or if it used Pascal as in the language you ...

C# attribute text from resource file?

Hi, I have an attribute and i want to load text to the attribute from a resource file. [IntegerValidation(1, 70, ErrorMessage = Data.Messages.Speed)] private int i_Speed; But i keep getting "An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type" It works pe...

How do I make a PNG resource?

I've got a form with a large TImage on it as a background. Problem is, this is stored directly in the DFM as a bitmap, which takes up about 3 MB. The original PNG file is ~250K. I'd like to try to reduce bloat by embedding the PNG in a resource, and then having the form load it during OnCreate. I can do that now that Delphi 2009 incl...

loading managed resources from c# and passing it to Native CPP code as a stream handle

I have a file that I have embedded as a resource in a managed C# assembly. I would like to pass the pointer to that resource and its size to some native code so it can extract it for me if needed. Are there C# api's that give me the intptr of that embedded resource? ...

JavaScript Performance Evaluation

background: I've searched around for a reference, or possibly a tool, that helps you theoretically evaluate the efficiency (resource cost) of your JavaScript. This search has turned up a lot of excellent debugging software, but I can't really find something that helps me optimize the code, by utilizing less resource-intensive methods. ...

Does assigning to Nothing cause Dispose to be invoked?

I recently saw some VB .NET code as follows: Dim service = ... Try ... service.Close() Finally service = Nothing End Try Does assigning Nothing to service do anything? If it is a garbage collection issue, I am assuming that when "service" went out of scope the referenced object would be garbage collected and the dispose metho...

Is there a way to dynamically populate a drop down list with values from a resource file?

So I have this .resx file and I want its values shown in a drop down list in ASP.NET MVC (C#). Is this possible? Google couldn't help me, so I hope SO can :-) ...

Web Application Project, and App_GlobalResources

Hi All, I currently have a C# Web Application Project with a multitude of pages as well as their corresponding codebehind files (aspx, cs, designer.cs). When I open the dll created during the build process and open it in the visual studio object explorer, I can clearly see all of the codebehind. Within the same project I have a number ...

Looking for a tool to auto-enlarge all of our dialog resources

So far my Gooling and searching around here haven't come up with anything of the sort. There are translation tools aplenty - we even have a license for Alchemy Catalyst 5.0. But what I want is a tool that will take an .rc file and grow all of the dialogs by a certain percentage - say 20%. That way the English will be a little more spa...

Does anyone have any rules of thumb for esimtation of UAT effort - like what's a rule of thumb for number of scripts as compared to the number of business requirements?

I'm attempting to estimate the number or testers required to test out a project. One method is to determine the number of scripts that will be required and was wondering if there was a rule of thumb for number of scripts as compare to number of requirements. I'm estimating 2 - 3. 1 for a sunny day type test 1 for a negative test 1 for...

How to handle localization/string values in an ASP.NET Web MVC project?

I am trying to put all of my strings into the resource file, something I do for all my Windows and Web Forms applications. Works great when it comes to changes string values for labels and/or localizing the application. I tried adding the string values to my Web MVC project, but cannot seem to access the Resource file from the inline c...

Where can I find math topics and resources for programmers?

There are a few questions around that circle around this question but I feel this is different enough. I've decided I want to improve the breadth and depth of my maths skills specifically in areas that are useful and/or interesting to programmers. What topics should I study? What resources do you recommend (blogs/books/online lectures...