bugs

Resolving difficult to recreate bugs

In a js app I'm developing there are a few bugs that recur every now and then for some users who are testing it, but I've been unable to recreate them myself. What tools/approaches are there to debug bugs which are difficult to recreate, or which only seem to happen on a computer the developer doesn't have access to? ...

Why do these prepared statements not work?

I use NetBeans 6.8 and have MAMP with this config on my mac: Apache 2.0.63 MySQL 5.1.37 PHP 4.4.9 & 5.2.10 APC 3.0.19 & APC 3.1.2 eAccelerator 0.9.5.3 XCache 1.2.2 phpMyAdmin 2.11.9.5 & phpMyAdmin 3.2.0.1 Zend Optimizer 3.3.3 SQLiteManager 1.2.0 Freetype 2.3.9 t1lib 5.1.2 curl 7.19.5 jpeg 7 libpng-1.2.38 gd 2.0.34 libxml 2.7.3 libxslt 1...

Strange LINQ to SQL behaviour (BUG?)

We have this very strange issue on LINQ to SQL Code. Consider this code snippet : var wissen = db.Table.Where(f => f.Name == somevalue); db.Table.DeleteAllOnSubmit(wissen); db.SubmitChanges(); This works as expected on our dev servers, but when we are deploying this to our production server it doesn't give any errors but it doesn't ...

Flex: App sometimes never gets past preloader

Sometimes my Flex app, freezes on the preloader, and never reaches the main app. Refreshing the page usually fixes this. But I have no idea what would cause this. I am being told that this is happening in different browsers. Any ideas? I have noticed this on other Flex apps as well, so I don't really think its something specific with ...

Overlaying <span> doesn't work in IE6

<li> <span>overlay</span> content </li> li { position: relative; height:65px; overflow: hidden; } li span { background: url(../img/bullet_grey.png) no-repeat; width: 20px; height: 20px; position: absolute; top: 50px; left: 10px; } This works in all browsers except IE6, which just hides the SPAN so...

Is 'action' a keyword in jQuery?!

I was having this issue with jQuery not being able to find a <form> element in my HTML for the past day and a half. I ran my HTML through validators multiple times, validated my JS and CSS, and even removed unnecessary JS and CSS files, which is now reduced to this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/T...

Silverlight ChildWindow: HRESULT E_FAIL on ChildWindow.Show()

Hello, I have some problems with ChildWindow control, I have created an error window control that is shown after unhandled exception is caught in app.xaml.cs. The problem is when I try to show the error window, sometimes it works fine, but sometimes I get this nasty exception: Message: Error HRESULT E_FAIL has been returned from a cal...

WPF DataTemplate Binding BUG: AmbiguousMatchException

Hello! Here are the DataTemplates: <DataTemplate DataType="{x:Type data:Item}" x:Key="ItemTemplate"> <Border/> </DataTemplate> <DataTemplate DataType="{x:Type data:StyleItem}" x:Key="StyleItemTemplate"> <Border> <ContentControl Content="{Binding Item}" ContentTemplate="{StaticResource ItemTemplate}"/> ...

img with {display: table-cell} -- is it a bug?

I want to use the display: table-* css properties to format a list of photos. I believe that below is a "correct" implementation of it, in that there's nothing theoretically wrong with it, but it displays in Firefox and Safari with the table layout screwed up, as you can see by the borders. For a comparison, try wrapping both img tags be...

Did Perl 5.10 mess something up with prototypes?

I know this type of thing I want to do used to work in 5.8. Am I doing something wrong? Is there a way to get back there in Perl 5.10? Here's the module: package TableMod; use base qw<Exporter>; our @EXPORT_OK = qw<mod_table>; use Data::Dumper; sub mod_table (\%@) { print Dumper( @_ ); } 1; And here is the script: use strict; use ...

A workaround to fix an IE bug with respect to the clone() method in jquery 1.3.2

Hi everyone....!! I am using the Jquery pagination plugin http://plugins.jquery.com/project/pagination to paginate the rows in a table. I also use a little tip provided in another SO question here to correct a bug in the original example... The code is working fine in FireFox and Chrome but not in IE6+... Here is my javascript t...

Passing data between HTTPS and HTTP

I've recently faced a problem involving passing data (small amount), from a page to an iframe. It was simple when both pages were http - i've used query string to pass information to the iframe and javascript to signal the parent page of process completion. When iframe location was changed to https, there was a problem accessing the pa...

Flash CS4 combobox not showing when embedded

I have a Flash CS4 movie that uses a standard Flash combobox. This works fine, as long as I don't use the resulting SWF embedded on a HTML page. When I do embed it, the combobox doesn't show up, doesn't dispatch mouse events, it's just as if it doesn't exist. However, if I switch to fullscreen, the combobox appears and functions normally...

PHP & mySQL: Year 2038 Bug: What is it? How to solve it?

Hi all, I was thinking of using TIMESTAMP to store the date+time, but I read that there is a limitation of year 2038 on it. Instead of asking my question in bulk, I preferred to break it up into small parts so that it is easy for novice users to understand as well. So my question(s): What exactly is the Year 2038 problem? Why does it o...

Cannot include a javascript file from an external javascript file in IE6

My problem is that I need to dynamically include a javascript file from another external javascript file. I'm trying to do it by using this function: function addCustomScriptTag(url) { var scriptTag=document.createElement('script'); scriptTag.type = 'text/javascript'; scriptTag.src=url; var myElement = document....

Haskell -- problem with pretty-printing a list

I'm new to haskell, and i read through and digested Learn You A Haskell For Great Good, trying out a couple of things along the way. For my first project i wanted to try the classic: FizzBuzz. So i came up with the following code: import System.IO fizzBuzz :: (Integral a) => a -> String fizzBuzz num | fizz && buzz = "FizzBuzz" ...

ASP.NET Local Resource Generator tool duplicates controls

I use ASP.NET local resource generator tool and it works well adding the <meta:resourceKey> tags but the issue that it duplicates the contents of all my 3rd-party panel web control I use. Does anybody run in such scenario? Why this happens? I think it’s an issue in the resource generator tool … any clue folks? Are there any effective 3r...

Javascript IE bug - inserting domain name into variable value?

In the "Find a Therapist" box on my site: http://www.rscpp.co.uk/ I show/hide other fields based on whether the user selects Face to Face, Telephone, Email, or leaves this unselected. I used to do this with: function showHideF2fOptions() { contact_method = document.therapist_search.contact_method.options[document.therapist_search.c...

Date.getHours() in JavaScript looks broken to me.

This snippet displays 1. Why is it so? I use constructor as in new Date(milliseconds) //milliseconds since 1970/01/01. I expect it to be midnight, so 0 hours. But why does it return 1? var milliseconds = 0; var d = new Date(milliseconds); alert(d.getHours()); ...

free internet based defect/issue management for ASP.Net absed project

I am working on a ASP.Net project with a team of 3 members. Due to geographical reasons, I need to have a defect management system that should be free (the project is low cost) internet based should allow 5-10 people I was wondering if someone could suggest me a good solution or may be redirect me to some useful links ...