-edit2- 3hrs later and still have the same problem. I am using the noinstall archive package.
-edit- maybe someone can tell me a better way to check if a table exist?
I have a function in my lib to check if a table exist which i asked how to do in the past.
I deleted my database and created it again. My code didnt create the tables pro...
Anyone have any idea why NHibernate would do this? Seems rediculuous to me and it's (obviously) crashing my app as it's trying to update primary key column. Here's what it's doing.
First, it inserts a record:
INSERT INTO WidgetConfigurationPositions
(WidgetId,
TargetId)
VALUES (256 /* @p0 */,
'row...
I'm pretty new to Git (and version control in general) and am ashamed to say that this problem has been going on for a while now. Occasionally, after adding changes, git will delete everything from my repository upon the following commit.
Afterward I add and commit again, and it creates everything it just deleted.
It hasn't caused an...
Hi, my code is outputting some weird character at the very start of my XSLT output XML and neither Visual Studio 2008 or notepad show it up. But it's definitely there because VS lets me delete it and will then auto-format the XML properly. How do I stop this? Here's my code:
// create the readers for the xml and xsl
XmlReader re...
Hi all,
When I write the following code directly into my html page under a script tag, the string "test" gets appended to my page without replacing the rest of its content (1):
document.write("test");
However, if I place that same code into a separate javascript file like (2):
<script src="http://127.0.0.1/whatever.js" type="text/ja...
I fetch most of my data as models from my MVC app and just operate on them on the client side. When I'm done with whatever the user is doing I just post back the model/array of models to the server.
In a specific scenario, I'm posting an array with two models in it back to the app. I can see all the values of the model in the HTTP...bu...
I'm working on a subclass of threading.Thread which allows its methods to be called and run in the thread represented by the object that they are called on as opposed to the usual behavior. I do this by using decorators on the target method that place the call to the method in a collections.deque and using the run method to process the d...
Well, I finally decided to totally drop IE6. It's great. First big benefit which comes with this decision is child selectors. So I started to use them for my nested drop-down menus for the first time and expected it to be a breeze. But... here's the code:
<style>
body {
color:#000;
}
ul.top > li {
color:red;
}
<ul class="...
I just grappled with an annoying, extremely persistent bug that had me scratching my head for several hours. I'm using C# (.Net Framework 2.0) in conjunction with the built in Settings, which generates an XML file. The settings worked wonderfully... until today.
Today, whenever I ran the program from the IDE, it gave me this error:
Conf...
I have the following code:
NSInteger index1 = (stop.timeIndex - 1); //This will be -1
index1 = index1 % [stop.schedule count]; // [stop.schedule count] = 33
So I have the expression -1 % 33. This should give me 32, but is instead giving me 3... I've double checked the values in the debugger. Does anyone have any ideas?
...
Can someone tell me why the pictures are jumping at the end which i want to center?
http://vertic4l.com/prinzipalmarkt/mobile.php
Here is a mobile website i'm working on, if the first li element is entered,
a function will be triggered. But it doesn't works like it should...
I already did this on the normal website without a lot troub...
There's an InnoDB table for storing comments for blog posts used by a custom built web application.
Recently I noticed that the auto incremented primary key values for the comments are incrementing by 2 instead of just 1.
I also noticed that in another MySQL table which is used for remembering the last few commenter's footprint signatu...
I'm building grid component for my own needs with sortable columns, rows, etc. Existing ones either were not suiting my needs or were too heavy. I just started on resizable columns when realy unexpectedly WebKit has hit my with unexplainable anomaly. While table-layout:fixed; worked perfectly on all other browsers (even IE) Safari/Chrome...
I'm using Ubuntu 10.04 and Perl 5.10.1. The BioPerl package has some nice scripts, such as bp_genbank2gff3.pl which converts files from genbank format to GFF3 format.
The problem: I get unexpected results when using bp_genbank2gff3.pl: the gene features get "Name=" instead of "locus_tag=" in the last GFF3 column.
A dear BioPerl mailing...
I am developing a site and I noticed a strange gray thing appearing on my screen. It only comes up in Firefox 3.6 for Mac, and not in any other browser I tested (IE on Windows, Firefox on Windows, Safari on Mac, Chrome on both Mac and Windows). After some investigation, I discovered that it comes up if I have an element with the "overflo...
We are experiencing weird bug at production environment we cannot debug nor inject logging code. I am trying to figure this up but following stack trace confuse me.
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.ArrayList.Add(Object value)
at ...
According to the MSDN Add method...
UPDATE : I have this SSMS tools pack which wraps everything in this -
BEGIN TRAN
ROLLBACK
When I removed above lines and just ran the proc....everything works fine...I guess it was doing an rollback...as SQLMenace said...my bad i guess...never happened before so i was quite confused....anyways...thanks..hopefully it will help som...
The following code (not directly in an interpreter, but execute as file)
def top(deck):
pass
def b():
global deck
produces the error
SyntaxError: name 'deck' is local and global
on python2.6.4 and
SyntaxError: name 'deck' is parameter and global
on python 3.1
python2.4 seems to accept this code, so does the 2.6.4 inter...
why does this not work?
DateTime.TryParseExact(text, "H", CultureInfo.InvariantCulture, DateTimeStyles.AllowWhiteSpaces, out value);
I want to parse an Time value only providing the hour part, but it throws a FormatException.
On the other hand, this works:
DateTime.TryParseExact(text, "HH", CultureInfo.InvariantCulture, DateTimeStyl...
I hope you can help me on this one.
Here's a simplified version of my row object.
Nothing special: a button, a title, and a content that slides down when the button is pressed.
var row = function(title)
{
this.clear = $('<div/>').css({clear: 'both'});
this.$icon = $('<div/>').addClass('ui-icon ui-icon-carat-1-s');
this.$but...