bugs

Avoid global variables/methods name clashes when using C headers in C++

I recently spent some time chasing an annoying little bug and I'm looking for suggestions for those of you who have either encountered the same problem or know the best way to avoid it. I have a situation where I am developing in C++ and using strerror and as a result I am using something similar to extern "C" { #include <string.h> } ...

Random failures using CMISQL queries on Alfresco 3.3.0 [solved]

[Solved, it seems that there was some bug affecting Alfresco 3.3.0, which is no longer present on Alfresco 3.3.0g] Hi, I'm using OpenCMIS to retrieve data from Alfresco 3.3, but it's having a very weird behaviour on CMISQL queries. I've googled somebody else with the same problems, but it seems I'm the first one all over the world :), ...

debian cron bug or missing something?

I'm configuring a server in N.Virginia to have the same cron schedule as our 'old' server with America/Chicago timezone. I've edited /etc/timezone to have the value America/Chicago. I have the environment variable TZ=/usr/share/zoneinfo/US/Central . I've basically matched the old server, and both are on the NTP network. The cron schedul...

FLVPlayback skin modification problem in Adobe Flash CS5 with AS3

Hi, I have been working on modifying an existing FLVPlayback skin. Ideally I would like to have one that uses a counter. The problem is, all the fla's provided for the skins with counters fail to publish/compile correctly. Fla's are here: C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\FLVPlayback Skins\FLA\ActionScript 3....

WPF fake/ghost design time error

I have a strange behavior in VS2008 a few times: After some changes in a xaml file, removing a control with a compile time error, VS2008 keeps saying the error is still there, even when the control itself is not there anymore. I could only fix it by creating a new xaml file, copying the content and deleting the original file. I cleaned t...

Selection bug when replacing items of a WPF ListView bound with ObservableCollection property

Hi, I wrote a very simple WPF application which has a listview and 2 buttons. The listview is initiated with 3 items. The button 'Add' when clicked will add new item to the list. The button 'Change' when clicked will change the selected item content. The bug raises when we click this 2nd button. I upload the solution codes here. In the...

Httplib2 - AttributeError: 'NoneType' object has no attribute 'makefile'

How do I fix this? PS: On googling, I found that this is some httplib2 bug but I didn't understand how to use the patches people have provided. Traceback (most recent call last): File "alt_func.py", line 18, in <module> func(code) File "alt_func.py", line 9, in func resp, content = h.request(url_string, "GET", headers={'...

Bug in xcode? Problem with using PNG's in UIImageView

Hi all Just a small warning for the ones of you who work with a lot of images. Today I was copying (drag n drop) a lot of PNG images into my xcode project (I'm using 3.2.3). Half way through the copying xcode stopped because there was already a file with the same name. No problem. Deselected that file and copied the rest. All seemed f...

VS2010 WPF debugging: TextBox typing is very slow, just me?

I am creating a new application in .NET 4 and the TextBoxes are way too slow, I haven't applied any Styles, Bindings etc. just plain TextBox. I tried to create a new project with a TextBox in Visual Studio 2008 and the TextBox works good. Note: The problem only occurs in debug, when I run without debugging (^F5) it works good in VS2010...

Visual Studio 2010 bug? Wrong namespace in designer files.

My Visual Studio 2010 Professional has started to produce incorrect designer files when editing aspx or ascx files. Visual Studio decides to use the System.Web.UI.DataVisualization.Charting namespace for all controls in the aspx/ascx files. Example: <asp:DropDownList ID="test" runat="server" /> ends up being this in the designer file:...

$n = 2; 10-$n = 87...

hi there, well this is what i am doing: $total = (array_sum($odds))+$evens; $total = str_split($total); echo 'total[1]: '.$total[1].'<br />'; echo '10-$total[1]: ' . (10-($total[1])); and the output is: total[1]: 2 10-$total[1]: 87 my guess is it is being treated as a string, but how do i fix it? so, what i want to know is wh doe...

Why did NetBeans show incorrect auto-completion?

I had an exam yesterday for Programming I at the end of my first semester. It was pretty basic, except I made a really, really obscure mistake that I wanted to ask the more experienced people here about: I basically had a class Library that contained a vector that contains elements of Loan* which contains a Customer and Book class. Kind...

VS2010 Not Always Building Before Debugging

I have had a problem where VS2010 will not build my projects before debugging. Even when they have never been built before (i.e. on a fresh checkout from source control). I will either find I am stepping through on the wrong lines of code (because the symbols are out of date), or an error message if there is no build output (bin\debug ...

Bug in Chrome, or Stupidity in User? Sanitising inputs on forms?

I've written a more detailed post about this on my blog at: http://idisposable.co.uk/2010/07/chrome-are-you-sanitising-my-inputs-without-my-permission/ but basically, I have a string which is: ||abcdefg hijklmn opqrstu vwxyz || the pipes I've added to give an indiciation of where the string starts and ends, in particular note the fin...

The scrollbar of a ListBox disappears in WPF in certain configurations

I have managed to reproduce a weird behavior in the auto scrollviewer functionality of a listbox when it is placed in a 2*2 grid. If you try to use the following xaml as it is you will see that the vertical scrollviewer is there but not visible (it just exceeds the width of the first column) <Window x:Class="WpfApplication1.Window1" ...

Firefox applying styling to script block

I have simplified a problem I faced in Firefox (the original code is generated by server side controls). Open the following snippet in IE and in Firefox: <html> <style> .AllInline, .AllInline * { display: inline; } </style> <span class="AllInline"> Test <script type="text/javascript"> <!-- var obj = {}; //--> </s...

Help me fix this bug in Suds

There is a bug in the Python SOAP module Suds which is preventing me from making progress on a project. It seems as though the internal definitions for complex data types don't include inherited properties. The data type is defined in the WSDL and extends the standard xsd:string data type. Take a look at the bug's open ticket. Update: ...

Building for Bugs

How do you handle a bug in a specific SDK version in a released application? Say for example I've reported and received notification that a bug is known in a specific version of an SDK. Say the SDK engineers fix the problem in the next release. Do I then need to check if the user is running the buggy release and display an error message ...

is this a php bug: subclasses must declare private methods with the same signature as in parent class

I am using php 5.3, and yes, there is a bug open for that, but some think this is not a bug, and this makes me wonder. abstract class A{ private function bobo(array $in){ //do something } } class B extends A{ private function bobo($shmoo,$shmaa){ //do something } } This throws an error. Shouldn't inheritance ...

intellij 9 auto scroll to source

Has anyone noticed that intellij 9 broke the auto scroll to source feature? it doesnt work 50% of the time. Does anyone have a fix? ...