bugs

Bug in Mathematica: regular expression applied to very long string

In the following code, if the string s is appended to be something like 10 or 20 thousand characters, the Mathematica kernel seg faults. s = "This is the first line. MAGIC_STRING Everything after this line should get removed. 12345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901...

A random number generator statement in a loop is giving me the same number every time. Javascript

So I am writing this loop, and I have a random number generator in it. How come it only picks one random number for all the iterations of the loop instead of a new random number? here's my code: for ( i = 0; i < 25; i++ ) { var randNum = 0; var randNum = Math.floor(Math.random() * 5); } this is in the chrome browser. Is there someth...

How to fix IE7 float-clear combination

I have a field_wrapper class div which contains the 3 sub divs field_label, field_input and field_error I need to put the field_label, field_input side by side and field_error below the first two. Please see below css code to know how i achieved this, My problem is Its is not working in IE7. clear both applied to the field_error is not...

Fix DB duplicate entries (MySQL bug)

I'm using MySQL 4.1. Some tables have duplicates entries that go against the constraints. When I try to group rows, MySQL doesn't recognise the rows as being similar. Example: Table A has a column "Name" with the Unique proprety. The table contains one row with the name 'Hach?' and one row with the same name but a square at the end in...

Bugs gone with firmware updates - issue or not?

Here is a programming issue you may have faced in your past. If a platform you are developing against has multiple firmware updates, and your software has a serious yet hard-to-reproduce issue in one of the older firmware, do you consider that as your bug? Should you work more on that or not? For instance, Nokia does not issue an offi...

WPF Memory Leak - Bug In Framework?

Ok, to give a quick rundown of the context of my situation. We have a windows forms tab control, and inside the tab is a element host that contains a wpf usercontrol. When the tab opens, I have a grid that overlays the whole usercontrol to indicate loading. Below is the xaml. I removed some bindings and xaml that aren't relevant. <Grid...

Are this is a bug in PHP language or what ?

I really wondering about this code <? session_start() $_SESSION['me'] = 654; $me = $_GET['me']; echo $_SESSION['me']; ?> it will print the $me value not the $_SESSION['me'] value. Are this is a bug or they do it for security reasons ? any Explanations ? ...

Java assert nasty side-effect - compiler bug?

This public class test { public static void main(String[] args) { Object o = null; assert o != null; if(o != null) System.out.println("o != null"); } } prints out "o != null"; both 1.5_22 and 1.6_18. Compiler bug? Commenting out the assert fixes it. The byte code appears to jump directly...

Why are my message be processed out of order over a single WCF TCP channel (with ConcurrencyMode.Reentrant)?

The client sends a lot of messages to the server from a single thread, over a single WCF channel. The client sends the message with BeginMyMethod(x, b) as it does not wish to block while they get processed. We have reliable messaging turned on, as we don’t wish to lose any messages, or have them get out of order. However the messag...

Why Java Jbutton is not calling JFileChooser correctly?

The following code was generated automatically by Netbeans 6.8 Mac version public class fileBrowser extends javax.swing.JPanel { /** Creates new form fileBrowser */ public fileBrowser() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The co...

rails / erb bug or feature

just transfered an old rails application (1.1.6) to a new host providing a passenger/enterprise ruby environment. one of the programmers used ruby tags to comment html content and this seems to cause some trouble on the new host. an example: <div> <% collection.do_domething %> ... <% end %> <% # finished showing content %> </div> <div>...

TinyXML can't read its own file

Hello there! I'm currently working on a C++ MFC project on visual studio 2003. The aim of this project is to be able to take an XML file containing language data, convert it to a simple CSV file and back to XML. To do this, I'm using the TinyXML library, which is simple and good enough for my needs. The problem is that, once I try to c...

What's your bug management process?

Hi All, What is the lifecycle / process of a bug? Speaking generally, Are there any tips, suggestion process wise that bug fixing should go though? ...

Webkit render bug

I'm working on a site where these bugs randomly appear in Safari and Chrome: i.e. tags appear not to have been closed off completely. The problem is when I view the source I discover it's completely valid. Edit Here's the offending HTML which I saved: http://www.pastebin.com/f1e0edd24 ...

Fluent NHibernate Solution Structure - How to reference DLL's once in back end of Web App / Console App

I'm organizing a VisualStudio 2008 solution using Fluent NHibernate and I would like to keep all the NHibernate dll dependencies buried in a "Back End" class library and let the front end Web app or Console app be ignorant of NHibernate. My Solution structure is as follows: BackEnd -- Class Library -- Business logic and Data Reposito...

Is something wrong with the dynamic keyword in C# 4.0 ?

There is some strange behavior with the C# 4.0 dynamic usage: using System; class Program { public void Baz() { Console.WriteLine("Baz1"); } static void CallBaz(dynamic x) { x.Baz(); } static void Main(string[] args) { dynamic a = new Program(); dynamic b = new { Baz = new Action(() => Console.WriteLine("Baz2")) }; ...

Co- and Contravariance bugs in .NET 4.0

Some strange behavior with the C# 4.0 co- and contravariance support: using System; class Program { static void Foo(object x) { } static void Main() { Action<string> action = _ => { }; // C# 3.5 supports static co- and contravariant method groups // conversions to delegates types, so this is perfectly legal: action...

"==" Operator Doesn't Behave Like Compiler-generated Equals() override for anonymous type

According to the MSDN: Because the Equals and GetHashCode methods on anonymous types are defined in terms of the Equals and GetHashcode of the properties, two instances of the same anonymous type are equal only if all their properties are equal. However, the following code demonstrates the compiler generated implementatio...

Workaround for the Mono PrivateFontCollection.AddFontFile bug

When I call the PrivateFontCollection.AddFontFile method in Mono.net It always returns a standard font-family. This bug has already been reported on several websites, but as far as I know without a way to solve it. The bug itself isn't fixed in the Mono-libraries yet. Is there any workaround for it? EDIT: As a reaction on henchman's ans...

math.h ceil not working as expected in C

How come ceil() rounds up an even floating with no fractional parts? When I try to do this: double x = 2.22; x *= 100; //which becomes 222.00... printf("%lf", ceil(x)); //prints 223.00... (?) But when I change the value of 2.22 to 2.21 x *= 100; //which becomes 221.00... printf("%lf", ceil(x)); //prints 221.00... as expec...