bugs

Are bugs easier to produce in one language than in another?

Are some programming languages, by their nature, easier to write programs with less bugs in than others? For a fair comparison, assume that the programmer is considered "skilled" in that particular language, however long that may have taken him. I'm mainly wondering about the influence of conceptual differences, like: manual memory ma...

How to work around the [1] IE bug while saving an excel file from a Web server ?

I've noticed that Internet Explorer adds a number in square brackets to files downloaded from the internet (usually [1]). This creates a big problem with downloading Excel spreadsheets as square brackets are not a valid filename character inside Excel worksheet name. That problem is IE specific, others browsers are keeping same file name...

Do you use special comments on bug fixes in your code?

Some of my colleagues use special comments on their bug fixes, for example: // 2008-09-23 John Doe - bug 12345 // <short description> Does this make sense? Do you comment bug fixes in a special way? Please let me know. ...

Install PHP on XP / IIS 5.1?

I am trying to install PHP onto my development box (XP SP3 / IIS 5.1) I've got PHP 5.2.6 stable downloaded (the MSI installer package) and I am getting an error "Cannot find httpd.conf". After that the install seems to breeze by quickly (more quickly than I would have expected) and when I try to execute a simple PHP script from my loca...

Survey: How do you define the term "bug"?

We've probably all heard the programming cliché "That's not a bug; that's a feature." I know my question may seem off-topic, but I think it's an interesting question nonetheless. I'm just getting caught up on the Stackoverflow podcast, and in Episode 21 (at around 27:20, (transcript here) Jeff talks about the developer who wrote the sco...

How do I set the Content-type in Joomla?

I am developing a Joomla component and one of the views needs to render itself as PDF. In the view, I have tried setting the content-type with the following line, but when I see the response, it is text/html anyways. header('Content-type: application/pdf'); If I do this in a regular php page, everything works as expected. It seems tha...

Bug Fixing Time Allocation

We've been asked by a client to give us a time estimate on each and every bug we have. Though we do have a set schedule for bug fixing and have allocated time for it, we don't have a time allocation on each of the bugs we have. Simply, we have prioritized our bugs and have ensured that Highest priority bugs will be fixed in the time all...

In Access 2003, problem with a memo field if and only if there is a filter on the PK and a sub query is joined.

I have a problem in a query in Acess 2003 (SP3). I have a query that includes some tables and a sub query. The sub query and tables are all joined to a main table. The query uses some aggregate functions and there is a HAVING clause that filters the result on the primary key (PK). Under these conditions, a memo field of the main table ...

Visual Studio 2008 Properties Window SLOW

Even after all the hotfixes and updates that are supposed to fix this, my properties window in Visual Studio 2008 is still SLOW! What happens is a click on a table cell or something similar in the web editor, and regardless of the size of the page I'm working on, it takes a second or two for the properties window to show the properties ...

Sending the same but modifed object over ObjectOutputStream

I have the following code that shows either a bug or a misunderstanding on my part. I sent the same list, but modified over an ObjectOutputStream. Once as [0] and other as [1]. But when I read it, I get [0] twice. I think this is caused by the fact that I am sending over the same object and ObjectOutputStream must be caching them som...

Delphi OTA and RTTI bug

I'm writing a Delphi expert. I need to be able to write a value to a property on a property which is an object. E.g. I have a GroupBox on the form and I want to edit the Margins.Left property. I'm using the following procedure to do it but if gives an AV on the marked line. The procedure takes a component from the (property editor) the ...

Where do you check to if a hotfix from Microsoft have been applied to any service packs?

I have a interest in a reported bug which Microsoft have made available a hotfix for. When looking on the site, I'm not able to figure out if this fix is included in a service pack or not. Do anyone know where I can find this out? ...

What do you do if you cannot resolve a bug?

Did you ever had a bug in your code, you could not resolve? I hope I'm not the only one out there, who made this experience ... There exist some classes of bugs, that are very hard to track down: timing-related bugs (that occur during inter-process-communication for example) memory-related bugs (most of you know appropriate examples, ...

Problem joining on the highest value in mysql table

I have a products table... and a revisions table, which is supposed to track changes to product info I try to query the database for all products, with their most recent revision... select * from `products` as `p` left join `revisions` as `r` on `r`.`product_id` = `p`.`product_id` group by `p`.`product_id` order by `r`.`modified` ...

Daily Build vs. Zero Defect

How do you go about doing a daily build and striving for a zero-defect environment? Does it mean I never get to go home until I've killed all the bugs in my new code? Or does it mean I just don't check my code back in until I've fully tested it, which leaves the code effectively branched for a much longer time? I'm working with a handfu...

Perl - Common gotchas?

The question on Hidden features of Perl yielded at least one response that could be regarded as either a feature or a mis-feature. It seemed logical to follow up with this question: what are common non-obvious mistakes in Perl? Things that seem like they ought to work, but don't. I won't give guidelines as to how to structure answers,...

What's the toughest bug you ever found and fixed?

What made it hard to find? How did you track it down? Not close enough to close but see also http://stackoverflow.com/questions/175854/what-is-the-funniest-bug-youve-ever-experienced ...

Java - Common Gotchas

In the same spirit of other platforms, it seemed logical to follow up with this question: What are common non-obvious mistakes in Java? Things that seem like they ought to work, but don't. I won't give guidelines as to how to structure answers, or what's "too easy" to be considered a gotcha, since that's what the voting is for. See als...

How do I submit a bug to microsoft?

This is definitely a lazy web question (the answer wasn't apparently clear in the first 3 google hits I got). How do I submit a bug report to Microsoft (product is SQL Server 2005, if that matters)? ...

What is the funniest bug you've ever experienced?

I remember testing a geographical data normalizer written in Java that had concurrency problems. So, when you tried to normalize a city (say "Rome") and another guy did that too (say "New york"), you would get the other guy's data normalized ("NEW YORK") instead of your query. What's the bug that mostly made you smile in your career? ...