automatic

How to do C++ style destructors in C#?

I've got a C# class with a Dispose function via IDisposable. Its intended to be used inside a using block so the expensive resource it handles can be released right away. Problem is that a bug occurred when an exception was thrown before Dispose was called, and the programmer neglected to use using or finally. <rant> In C++, I never ha...

Is automatic upgrades a realistic feature to expect from enterprise Web applications?

Most of the work I do is with what could be considered enterprise Web applications. These projects have large budgets, longer timelines (from 3-12 months), and heavy customizations. Because as developers we have been touting the idea of the Web as the next desktop OS, customers are coming to expect the software running on this "new OS" t...

I want my C# Windows Service to automatically update itself.

Is there a framework that can be used to enable a C# Windows Service to automatically check for a newer version and upgrade itself? I can certainly write code to accomplish this, but I am looking for a framework that has already been implemented and (most importantly) tested. ...

automatic class templates?

Is there a way to have the compile deduce the template parameter automatically? template<class T> struct TestA { TestA(T v) {} }; template<class T> void TestB(T v) { } int main() { TestB (5); } Test B works fine, however when i change it to TestA it will not compile with the error " use of class template requires template a...

automatic error reporting - recommendations?

Can anyone recommend a library/SDK/etc. that is free or for purchase that I can integrate into my C++ application that enables the application to perform automatic error reporting? I have something now that I am using but it does not catch all exceptions. I'm looking for something more sophisticated and more robust than I have now. Any ...

Automatic Horizontal Scroller with Left/Right Controls

Has anyone worked on this before? An automatic horizontal scroller based on JavaScript (preferably using Jquery), that can produce a continuous scroll for a ul list, with pause on hover, and left right control. I can find either or... but not an automatic scroller with controls. ...

Automatically attach vs2005 debugger to a child processes

I have a main C++ app built in Visual Studio 2005, called A.exe. It spawns a child process, B.exe. I run process A in the debugger by hitting F5 -- the only way I know to hit breakpoints in process B is to wait for A to kick it off, then run Debug -> Attach to Process, and manually select B.exe. This doesn't work very well if I need t...

Is there any tool that does in C#2.0 Automatic winform UI generator from a xml

I have the following requirement: In C#2.0, Given a device configuration in xml format and a schema automatically create a UI displaying the xml. This ui could change the xml and needs to perform validation on the schema. I thought of a file defining for each xpath how to display it in UI (and a default behaviour for unspecified element...

Way to automatically see which functions can potentially return exception in c#

Hi, nothing more frustrating than to see your code crash in the debugger on a method which exceptionned and you didn't try/catch it. Is there an easy way to scan through your sources and tag all functions which can potentially throw exceptions? Does the build in visual assist have some hidden option to colour these functions in a spec...

How do I automatically update a subversion repository?

Does anybody know how I can run automatic update subversion? If anybody has a script or something like that, could you show me an example? ...

increment version in .rc files

How I can automatic increment file version in my project. Is there any script for that (batch...)? Tnx ...

Need a Recommendation for an Automatic Text Categorization Library.

Can anyone recommend any text categorization libraries that work well on short messages, like Tweets? Ideally the software would be able to look at a short message, and return a category like "sports", "entertainment", "computers", etc. I can define the categories, they don't need to be built into the software. ...

Dynamic Automatic Text Inserting

Does such a thing exist where you can set up automatic text insertion shortcuts, but they can be dynamic? A lot of work I'm doing involves a lot of changes to code, and I've found that I'm copy-pasting my MOD-string hundreds of times, and it can get lost in the other copy-paste objects. Basically, I want to know if there's something I ...

web design PSD to html -> more direct ways?

At work I see one colleague designing a site in Photoshop/Fireworks, I see another taking this data, slicing it up and using Dreamweaver to rebuild the same from scratch. It seems like too much mucking around! I know that Photoshop can output a tables based HTML, and Fireworks will create divs with absolute positioning; neither appear...

Create WPF GridView Columns Automatically

I need to create a table structure that will automatically create columns for a collection of objects (the structure of which is pretty flexible). The data in the table will only be read only so I've been looking into using a GridView but can't figure out how to automatically generate the columns - has anyone got an example or a URL expl...

Auto updated header comments in C++

Hi everyone! This is one of the headers I found in WxWidgets and I like it. I wonder if there is a way to insert in all my source files a header like this and maintain it automatically updated? It includes two properties of SVN which I am aware of. ///////////////////////////////////////////////////////////////////////////// // Name: ...

Uninitialized values being initialized?

In C, automatic variables, if uninitialized, hold a garbage value. However, consider the following program: int main(){ signed char term; (char)term--; printf("%d\n",term); } It prints a value of '7'. If I don't do a (char)term--, it prints a value of '8'. So, it definitely doesn't hold a garbage value. Isn't this contradictory? ...

unable to run postgres as windows service

I had this in my windows services: C:/Program Files/PostgreSQL/8.4/bin/pg_ctl.exe runservice -N "postgresql-8.4" -D "D:/PostgreSQL/8.4/data" -w It never finishes executing. But if i did this on the dos shell: C:/Program Files/PostgreSQL/8.4/bin/pg_ctl.exe start -N "postgresql-8.4" -D "D:/PostgreSQL/8.4/data" -w notice that i only cha...

How to login in LinkedIn automatically from asp.net application?

I have dummy username and pasword to enter in linkedin. From an asp.net application, when the button is clicked i need to login automatically used the username and password in linkedIn. How to do that? Thanks ...

Calculating automatic IFrame height in IE/Firefox/Safari - what is the correct way?

Hi, I've browsed through many websites and in here, and could not find a final answer as each one has its errors. I need to have an automatic IFrame height, meaning if the content changes, the Iframe must adapt its height to the content. For this I need to see how to get the correct content height? As I understand the most correct way i...