bugs

Weird cocoa bug?

Hey folks, beneath is a piece of code i used for a school assignment. Whenever I enter a word, with an O in it (which is a capital o), it fails! Whenever there is one or more capital O's in this program, it returns false and logs : sentence not a palindrome. A palindrome, for the people that dont know what a palindrome is, is a word tha...

possible bug in django models

models.py: class root(models.Model): uid_string = models.CharField(max_length=255, unique=True) class tree(models.Model): uid_string = models.ForeignKey(root, to_field='uid_string', db_column='uid_string') class shrub(models.Model): uid_string = models.ForeignKey(root, to_field='uid_string') obviously, the column ...

Understanding this erratic behavior in gdb

Consider the following code: #include <stdio.h> #include <ctype.h> char* Mstrupr(char* szCad); int main() { char szCadena[] = "This string should print well."; printf("%s\n", Mstrupr(szCadena)); printf("%s\n", Mstrupr("This string should fail.")); return 0; } char* Mstrupr(char* szCad) { int i; for (i=0; szC...

Preventing Projects from ever coming back with errors

I work for a web development company, and quite often, some of our projects come back from the client after being released, with small bugs. This frustrates my boss as it means we must carry out development work to fix the issue, for which we are not getting paid for. How can we prevent errors from ever occuring, or is this just someth...

Can anyone spot the bug in my Damerau-Levenshtein Distance implementation?

I've got a funky bug that's driving me nuts. Can anyone help me find it? Try calling the function with two words that differ only by a missing last character ("garble" vs "garbl"). The function is returning 0 instead of the expected 1. It's supposed to return 1, right? I've tried fiddling with the array bounds but that's only causin...

Weird layout problem. (please see the attached image)

The image above is the first page of my game. Normally the big blue 'button' background image should not show up there. I declare my custom background image for my buttons in layout file like this: <Button android:id="@+id/id_button_startgame" android:layout_width="wrap_content" ...

jQuery validate plugin won't hide error <div> after displaying it

I've searched and read (not just on SO) but can't seem to find a solution for this issue. Basically, what is happening is that the jQuery validate plugin is (according to documentation) supposed to hide the errorContainer that is set in its configuration. Unfortunately, it's not hiding it, it's just removing the contents. Please take a ...

What are the common mistakes to avoid when coding javascript for Internet Explorer?

I'm about to start coding a new, javascript-heavy website, but before I start I'd like to minimize my debugging time in Internet Explorer by knowing beforehand what the quirks are. I'm not planning to worry too much about IE6. What are the common mistakes/differences to avoid in javascript code that work fine in other browsers, but brea...

Is this a bug in the C# 4.0 compiler?

This code compiles successfully, but I think it should fail to compile. Also, when you run it you get a NullReferenceException. The missing code is the "new Bar" in the initialization of the Bar property. class Bar { public string Name { get; set; } } class Foo { public Bar Bar { get; set; } } class Program { static void ...

Visual C# 2010 express edition - can't add references or items to toolbox

I've been using Visual C# express through 2005, 2008 and 2010 editions. I'm irrationally irritated by its preference for putting Project files into different subfolders of the My Documents folder for each edition so I've recently moved the default location for Projects to a new single location My Documents\Visual Studio\Projects, this ap...

jQuery.change + inline onchange fn() causes fn to execute twice

Posting this even though I found the answer and a workaround, in the hopes that it helps someone else. Basically, when using IE8 and changing an element's value that has both jQuery.change hooked to it and an inline onchange defined, the code in onchange executes twice. We ran into this in an ASP.NET (3.5 or 4.0 does not matter) proje...

ASP.NET MVC Validationsummary with excludePropertyErrors = true renders empty if the model is invalid

Say you have a standard ValidationSummary: <%: Html.ValidationSummary(excludePropertyErrors: true) %> If the ModelState contains model errors for properties but not for the model itself the ValidationSummary renders the following HTML: <div class="validation-summary-errors"><ul><li style="display:none"></li></ul></div> Which is dis...

Netbeans deleting a built class?

I have a NetBeans project with quite a few classes in it. I've been working on this project for the past 3 weeks, and just started having this issue today. When clicking the "Run Main Project" button in NetBeans, I see the following error: Exception in thread "main" java.lang.NoClassDefFoundError: stockscreener/Stock Caused by: java.l...

Internet Explorer 7 css js table column display bug

Hey everybody, There is a strange bug which I can't solve. The bug is reproducable by this simplified example: css: table.class1 td.subclass1{ display : none } table.class2 td.subclass2{ display : none } html: <table class="class1"> <tr> <td class="subclass1"> Invisible </td> <td class="subclass2"> Visible </td> </tr> </tabl...

Is this an F# bug?

I have an type that is implementing IEnumerable<T> interface, all is ok: open System type Bar() = interface Collections.IEnumerable with member x.GetEnumerator () = null interface Collections.Generic.IEnumerable<int> with member x.GetEnumerator () = null But things goes wrong if type inherits IEnumerable...

Is this an F# compiler bug? #2

open System type Foo() = interface Collections.IEnumerable with member x.GetEnumerator () = null type Bar() = interface Collections.IEnumerable with member x.GetEnumerator () = null interface Collections.Generic.IEnumerable<int> with member x.GetEnumerator () = null let xs, ys = Foo(), Bar() ...

Readonly input box bug in Internet Explorer

Hi all! I've got a strange bug, well, MSIE does. Seems it is failing on all major MSIE versions: 6, 7, 8 and 9 (!) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" ><head><title>test</tit...

Possible Apple JVM bug: java.lang.OutOfMemoryError: Java heap space at apple.awt.CRobot.getRGBPixels(CRobot.java:204)

I'm having issues when I take screenshots. This is my test code. import java.awt.Robot; import java.awt.AWTException; import java.awt.image.BufferedImage; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.Dimension; public class Test { public static void main(String[] args) throws AWTException { Di...

Internet explorer 8 JScript regular expression bug

I'm testing in internet explorer 8 on windows XP and hitting into a tedious bug. I am trying to test strings with a regular expression that works fine in firefox and fine tested indepedantly in the ie8 console. But when it through my closure function the string acts strangly [Edit] more detailed code:- Not as nice or clean as the earli...

Looking for ideas on how to display data on Files and Changelists/Bugs associated with them.

Title says mainly the problem. On my spare time for our group at school, I've written something to parse our p4 submissions and the files associated with each changelist. I've then created a tree structure and each file has a list of all the changelists and ones that pertain to bugs associated with them. I'm looking for awesome ideas o...