bugs

user defined Copy ctor, and copy-ctors further down the chain - compiler bug ? programmers brainbug ?

Hi. i have a little problem, and I am not sure if it's a compiler bug, or stupidity on my side. I have this struct : struct BulletFXData { int time_next_fx_counter; int next_fx_steps; Particle particles[2];//this is the interesting one ParticleManager::ParticleId particle_id[2]; }; The member "Particle particles[2]" has a self-ma...

php strtotime problems, giving incorrect values?

I have this code: $date = '2010-03-08 8:10:20' $new_date = date('Y-m-d H:i:s', strtotime($date . " +1 month")); echo $new_date; Btw, I already set date_default_timezone_set('Europe/London'); And the result is: 5 April 2010, 3 days missing. Why is it happen? I heard they are some bugs in strtotime? If thats the case, how to get a c...

Web Application Error Reporting

Hello Friends, there was a web application, that you could configure so that over the api, your app could post the error logs into that application. it was a paid service and the free version allowed you to do like 1 report a minute. if any of you remember this service, please post it as an answer. thank you :) ...

Looking for workaround for IE8 opacity bug

One of my css styles has a black background color and a filter with an opacity. This is supposed to be translucent and almost always is. There is one exception to this. IE8 doesn't play nice with a lot of Microsoft's other products, and update panels in .NET seem to be one of them. If I have an updatepanel that sends a javascript aler...

Python instances and attributes: is this a bug or i got it totally wrong?

Suppose you have something like this: class intlist: def __init__(self,l = []): self.l = l def add(self,a): self.l.append(a) def appender(a): obj = intlist() obj.add(a) print obj.l if __name__ == "__main__": for i in range(5): appender(i) ...

IE7 CSS bug aligning <img> with text in a <ul>

I've been banging my ahead on this IE7 bug for the last few days and it's time to resort to the mind of the crowd. I have the following HTML and CSS: http://beerpla.net/for_www/ie7_test/test.html The goal is to have a <ul>, with each <li> containing a small icon and some text. Multiline text would be aligned to itself and not wrap unde...

List<T>.Sort sorting nulls incorrectly

I have a list of objects, some of which can be null. I want it sorted by some property, with nulls at the end of list. However, List<T>.Sort() method seems to put nulls in the beginning no matter what the comparer returns. This is a little program that I used to test this: class Program { class Foo { public int Bar; public Foo(...

Apache commons 2.4 FileUtils.writeStringToFile bug?

Hi, We're switching to commons for our file IO. But when i try to write a string to a file where the directory doesn't exist it gets a FNF exception. Pretty right you think. Javadoc says: public static void writeStringToFile(File file, String data, String encod...

Custom UITextField blurred text

When a UITextField with custom frame (200 54 px) loses focus, the text looks a little bit blurry. example screenshot Is this a common problem? Any workaround / solution or am I doing something wrong? ...

System.Dynamic bug?

While I playing with the C# 4.0 dynamic, I found strange things happening with the code like this: using System.Dynamic; sealed class Foo : DynamicObject { public override bool TryInvoke( InvokeBinder binder, object[] args, out object result) { result = new object(); return true; } static void M...

OrderBy and Distinct using LINQ-to-Entities

Here is my LINQ query: (from o in entities.MyTable orderby o.MyColumn select o.MyColumn).Distinct(); Here is the result: {"a", "c", "b", "d"} Here is the generated SQL: SELECT [Distinct1].[MyColumn] AS [MyColumn] FROM ( SELECT DISTINCT [Extent1].[MyColumn] AS [MyColumn] FROM [dbo].[MyTable] AS [Extent1] ) AS [Distinct1]...

Does PrinterSettings.GetHdevmode() have a bug?

I would like to be able to change the printer properties without bringing up the printer properties window... Using the DocumentProperties (imported from winspool.drv) function has so far failed, because while it is easy to suppress the dialog from showing up, it seems that the value returned by PrinterSettings.GetHdevmode() is not refl...

Is WinForms ListView in VirtualMode limited to 100,000,000 rows?

I have some grid scenario with > 500,000,000 rows I would like to display in ListView. If I artificially limit my ListView to display 100,000,000: _listView.VirtualListSize = _data.Count; if (_listView.VirtualListSize > 100000000) _listView.VirtualListSize = 100000000; Everything works fine (In VirtualMode naturally). When I cha...

Crazy VS Designer Errors

Here's a strange one. After renaming a class, one of my forms began giving me errors in the designer, refusing to open. Funny thing is, the form worked just fine when I ran the program. I began reverting my changes to deduce the problem. I have now reverted completely back to the last commit - in which I know the form was working in ...

Scriptom (groovy) leaves Excel process running - am I doing something wrong?

I am using the Scriptom extension to Groovy 1.7.0 to automate some processing using Excel 2007 under Windows XP. This always seems to leave an Excel process running despite my calling quit on the excel activeX object. (There is a passing reference to this phenomenon in the Scriptom example documentation too.) Code looks like: import ...

How do you define the severity (critical/high/low etc) of bugs?

Assuming you are involved in evaluation of bugs in your organization, how do you define the different levels of severity of these bugs? More specifically - What are the different values do you use for "Severtiy"? What are the criteria that you use to assign the values to the bugs? Clarification: I'm only talking about the symptoms here...

Mono & DeflateStream

I have a simple code byte[] buffer = Encoding.UTF8.GetBytes("abracadabra"); MemoryStream ms = new MemoryStream(); DeflateStream ds = new DeflateStream(ms, CompressionMode.Compress, false); ms.Write(buffer, 0, buffer.Length); DeflateStream ds2 = new DeflateStream(ms, CompressionMode.Decompress, false); byte[] buffer2 = new byte[ms.Leng...

PHP date() returns odd values

echo date("W",strtotime('2010-01-01')); This outputs 53. I would expect it to output 1. Can anyone else confirm this behavior, or maybe explain why? I couldn't find a bug report on it. ...

IE7 relative/absolute positioning bug with dynamically modified page content

Hi, I was wondering if there's anyone having an idea how to tackle with the following problem in IE7: <!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"&gt; <head> <title>IE7 absolute positioning bug</title> ...

Need Help With Simple Counting Bug in iPhone SDK

So I'm basically making an app that adds a count to a number and then displays it each time you tap the button. However, the first tap issued doesn't take any action but adds one (just as planned) on the second tap. I've searched to the ends of the earth looking for the solution with no luck, so I'll see what you guys can make of this. ...