The Wayback Machine - https://web.archive.org/web/20100609171803/http://stackoverflow.com:80/questions

All Questions

9
votes
9answers
163 views

How To Go About Updating Old C Code

Hello: I have been working on some 10 year old C code at my job this week, and after implementing a few changes, I went to the boss and asked if he needed anything else done. Thats when he …
2
votes
3answers
65 views

Is file empty check

how do i check if a file is empty in C#? need something like: if (file is empty) { //do stuff } else { //do other stuff }
2
votes
8answers
130 views

which is better: a lying copy constructor or a non-standard one?

I have a C++ class that contains a non-copyable handle. The class, however, must have a copy constructor. So, I've implemented one that transfers ownership of the handle to the new object (as below) …
9
votes
5answers
179 views

Torrents: Can I protect my software by sending wrong bytes?

Hi, It's a topic that everyone interests. How can I protect my software against stealing, hacking, reverse engineering? I was thinking: Do my best to protect the program for reverse engineering. …
16
votes
8answers
237 views

When may I ask a question to fellow developers? (Rules before asking questions).

I assigned a quite simple task to one junior developer today, and he kept pinging me EVERY 5 minutes for HOURS, asking STEP BY STEP, what to do. Whenever something went wrong, he simply …
1
vote
6answers
76 views

Why does the right-shift operator produce a zero instead of a one?

Hi, i am teaching myself java and i work through the exercises in Thinking in Java. On page 116, exercise 11, you should right-shift an integer through all its binary positions and display each …
9
votes
9answers
205 views

How to explain to a developer that adding extra if - else if conditions is not a good way to “improve” readability?

Recently I've bumped into the following C++ code: if (a) { f(); } else if (b) { f(); } else if (c) { f(); } Where a, b and c are all different conditions, and they are not very short. I …
5
votes
12answers
179 views

Justification for a basic business application in C++?

Aside from "I've already implemented it in C++", and "You must develop it in C++ for it to run on X", what are some good reasons for developing a basic business application in pure C++?
1
vote
4answers
50 views

Need formula to calculate value [closed]

Possible Duplicate: Math - mapping numbers I have value "x" that can be from 0 to 127 and a value "y" that can be from -1000 to 0. I need to make that if x = 0 than y = -1000 and if x = 127 …
0
votes
6answers
100 views

boolean expressions, why just two terms?

Given that it's valid to write a = b = c = 2; It would also be nice, rather than bool allTwo = a == 2 && b == 2 && c == 2; to instead write bool allTwo = a == b == c == 2; …
0
votes
8answers
67 views

Resuming execution of code after exception is thrown and caught

Hi, How is it possible to resume code execution after an exception is thrown? For exampel, take the following code: namespace ConsoleApplication1 { class Test { public void s() …
1
vote
4answers
41 views

Is there a Pac-Man-like character in ASCII or Unicode?

Simple question: is there a character that looks either like Pac-Man, or like the ghost in Pac-Man? With Google's recent Pac-Man logo, everyone should know what these look like, but in case you don't …
2
votes
2answers
36 views

ASP.NET MVC download image rather than display in browser

Rather than displaying a PNG in the browser window, I'd like the action result to trigger the file download dialogue box (you know the open, save as, etc). I can get this to work with the code below …
3
votes
1answer
28 views

jQuery: is there a way to make a recursive child selector?

instead of checking only the immediate children of an element, i would like to recursively check all children of the element. specifically, something like …
1
vote
4answers
21 views

Php referrer works or not?

I need to know the referring server for a page on my site. Is there any safe method to check where the user "came" to the page FROM? I tried uploading this to my server, but this wont output …

15 30 50 per page
1 2 3 4 5 47618