inconsistency

Why is my OLE data source data not querying consistently?

Howdy, I have a Microsoft Excel 2003 file that I am querying from C# 2.0 using an OleDbConnection. One of the cells in the Excel file is formated as a short date and displays in Excel as "1/1/2009". If I change the format to General the text displayed in that cell changes to "39814". If I query the Excel file while the file is op...

Does this make any sense (Apple-documentation)?

Here is a snippet of the official Apple Documentation of AudioBufferList (Core Audio Data Types Reference): AudioBufferList Holds a variable length array of AudioBuffer structures. struct AudioBufferList { UInt32 mNumberBuffers; AudioBuffer mBuffers[1]; }; typedef struct AudioBufferList AudioBufferList; Fields ...

Is it possible to have an inconsistent branch/tag with SVN due to concurrent commit action?

I'm trying to understand whether subversion has its own mechanisms for regulating concurrent user activities on the trunk (IE a branch/tag action and a commit action happening at the same time) or if it's up to the users to sync between themselves before acting on the trunk. I've been trying to find documentation about this on the net ...

Hibernate fetches incorrectly using @ManyToOne EAGER

I have two entities, let's call them X and Y. They have many-to-many relation but I never needed to use that relation, i.e x.getYs(), so I did not set it up to keep things simple. I have a table that holds the relationship and has only rows that are keys to X and Y. In other words that x_y table's rows are only x_id and y_id What I need...

Python scope problems only when _assigning_ to a variable

So I'm having a very strange error right now. I found where it happens, and here's the simplest code that can reproduce it. def cause_an_error(): some_var = False def some_nested_func(): print some_var #some_var = True some_nested_func() >>> cause_an_error() False If you run it as-is, it prints "False". Bu...

javascript really strange behaviour

I have the following code if (msg.position == 0) //removed for brevity else if (msg.position == txtArea.value.length) //removed for brevity else { //ERROR: should not reach here. errorDivTag.innerHTML += msg.position + " " + txtArea.value.length; } I'm having some really weird situations where I'm getting the error in ...

Peculiar Behaviour with PHP (5.3), static inheritance and references.

I'm writing a library in PHP 5.3, the bulk of which is a class with several static properties that is extended from by subclasses to allow zero-conf for child classes. Anyway, here's a sample to illustrate the peculiarity I have found: <?php class A { protected static $a; public static function out() { var_dump(static::$a); } ...

Reasons for inconsistent VB.NET syntax?

Does anyone know if there's any particular reason that VB.NET construct syntax isn't consistent? For example: If ... End If Select ... End Select You'd assume it would be for... end for, while... end while ... but instead we have: While ... Wend For ... Next This has mildly frustrated me for a while, and I just got to wondering w...

If x is list, why does x += "ha" work, while x = x + "ha" throw an exception?

From what little I know, + op for lists only requires the 2nd operand to be iterable, which "ha" clearly is. Thanks in advance. In Code: >>> x = [] >>> x += "ha" >>> x ['h', 'a'] >>> x = x + "ha" Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can only concatenate list (not "str") to list ...

Which problem do we face after switching from PHP 4.0 into PHP 5.3.3?

As we all know yesterday PHP released new version of 5.3.3. My question is following: What kind of possible problems could we have if we update PHP 4.0 into up to date 5.3.3.? I mean were their any functions or operators on PHP 4.0 that don't work on PHP 5.3.3. and kind of such a problems? That's it. Thank you. ...

Why does Math.round return a long but Math.floor return a double?

Why the inconsistency? ...

SSIS sometimes inserts fewer records with the same source data set

I have a table with 63,506 records. After running through a fairly complicated dataflow, the number shown flowing to the SQL Server Destination always matches my initial record count, yet SOMETIMES, not all records are inserted into my destination table. The flow always completes 'successfully', but it's only truly successful maybe half ...

scala 2.8 collections inconsistency?

why the methods transform (in-place mutation version of map) and retain (in-place mutation version of filter) are defined on only mutable.Map but not on mutable.Buffer and mutable.Set? shouldnt all mutable collections support these methods? ...

Javascript: Is there a benefit to using a return statement that returns nothing?

I'm refactoring a large javascript document that I picked up from an open source project. A number of functions use inconsistent return statements. Here's a simple example of what I mean: var func = function(param) { if (!param) { return; } // do stuff return true; } Sometimes the functions return boolean, so...

Java Awt Paint Method's Variable Inconsistency

I'm not sure what is wrong but there's some weird happening in my Paint() concerning some variables. this code works just fine: public void paint(Graphics g) { Point[] positions = {new Point(20,50),new Point(60,30),new Point(80,20),new Point(80,30)}; } but this one don't, i wanted this one, because im changing position formations...

website written in HTML using iWeb doesn't show up correctly in different browsers

I have a question regarding how to make the same website appear consistently in different browsers on different platforms. The following is a website that I made for my professor: http://youlab.wustl.edu/Home.html. The site itself was made using iWeb while the drop down menu was manually inserted using an external HTML code provider (So...