4
votes
7answers
81 views

Getting a stack overflow exception when declaring a large array

The following code is generating a stack overflow error for me int main(int argc, char* argv[]) { int sieve[2000000]; return 0; } How do I get around this? I am using Tu …
1
vote
2answers
31 views

HTML Forms: How do I add multiple buttons that pass different values?

I have a script that allows the posting of news. I want to be able to create a 'save as draft' button next to the 'publish' button. How can I allow the 'save as draft' button to pa …
5
votes
2answers
54 views

How should I price my software for volume/site licenses?

I have written a small laptop battery meter utility for Windows that I have been selling for a low price ($7.50). I recently was contacted by a company that wants to purchase a ve …
0
votes
0answers
12 views

Passing ViewData to ViewPage in ASP.NET MVC

Hello, I'm trying to build a custom control in ASP.NET MVC. The thing that I want to avoid is mixing the view (html) and the code (C#) in these controls. After hours of googling …
1
vote
4answers
70 views

SVN merge doubt

Hi, I have a directory under subversion control.. I created a branch out of it just to test merging stuff... I took a file, modified line X in the trunk as "abc" and modified the …
9
votes
9answers
211 views

Why don’t large programs (such as games) use loads of different threads?

I don't know how commercial games work inside very much, but the open source games I have come across don't seem to be massively into threading. Same goes for most other desktop ap …
0
votes
4answers
60 views

Bash: How do I check if certain files exist?

In a bash script, I have to check for the existence of several files. I know an awkward way to do it, which is as follows, but that would mean that my main program has to be withi …
0
votes
0answers
7 views

windows authentication

using a jsp page i getting username n password, but how to check it in active directory server.can give example wid some code snippets.
1
vote
5answers
40 views

Prettifying ASP.NET Markup

So, my personal site is running on a custom blog engine that I wrote, and I'm really happy with it. However, it uses a master page, which means that ASP.NET prepends (for no good r …
0
votes
0answers
10 views

Handle keyboard operations

I am doing some Client & sever programs in that I will bring the client screen to my server application... it's same like VNC.. here i have done all move moving as well as mous …
0
votes
5answers
46 views

How to remove System.out.println’s from codebase

We have a huge (old legacy java) code-base, where many files (around 5k) have System.out.println's. We are planning to remove them for cleanup/performance reasons. How can we write …
0
votes
0answers
9 views

which one to use “OnthreadedException” or “ApplicationRecovery”

I need to restart and gracefully close my application in case of errors. Now i have two options one is using OnThreadedException handler and other is to use Application Recovery an …
0
votes
2answers
35 views

converting from prototype to jquery

I'm trying to do a simple ajax update of a div from a php file that gets data from a mysql database. One function populates the div, the other adds messages to the database and is …
1
vote
2answers
32 views

Convert seconds to days, minutes, and hours in Obj-c

In objective-c, how can I convert an integer (representing seconds) to days, minutes, an hours? Thanks!
17
votes
15answers
753 views

boost considered harmful?

Lots of the answers to C++ questions here contain the response: "You should be using boost::(insert your favourite smart pointer here) or even better boost::(insert your …

15 30 50 per page
prev 1 2 3 4 5 6462 next