problems

Map table inheritance as a one-to-one relationship with NHibernate

Hi! I have a database that has a one-to-one relationship modeled between a Person and a Address (that uses person id). However, I cannot find a way to make the map using NHibernate. My table structure is the following: PersonTable PersonId PersonName PersonAge AddressTable PersonId CountryName StreetName StateName And I would l...

What is wrong with this function?

I got a problem today. It had a method and I need to find the problem in that function. The objective of the function is to append new line to the string that is passed. Following is the code char* appendNewLine(char* str){ int len = strlen(str); char buffer[1024]; strcpy(buffer, str); buffer[len] = '\n'; return buff...

Mysql DB Table Rows Disappearing

Hello, A really weird (for me) problem is occurring lately. In an application that accepts user submitted data the following occurs at random: Rows from the Database Table where the user submitted data is stored are disappearing. Please note that there is NO DELETE, DROP, TRUNCATE or other SQL statement issued on the database table ex...

Eclipse CDT: How to clear Problems window without invoking Clean Project or Build Project?

Is there a way to clear the Problems window (and any related source code error/warning annotations) without invoking "Build All/Project/..." or "Clean project" (or deleting the project and then re-creating/re-importing it)? ...

For Fun: Abstract Computer problem, is my solution a cheat?

This programming problem is #85 from this page of Microsoft interview questions (http://halcyon.usc.edu/~kiran/msqs.html). The complete problem description and my solution are posted below, but I wanted to ask my question first. The rules say that you can loop for a fixed number of times. That is, if 'x' is a variable, you can loop over...

Jquery Two functions to create row problem.

Hi all, I had only one function to Add another row to the table id="tblOtherParties" and i worked fine, but when I added the second function to do the same with the table id="tblHospitalAction" I get the error of unterminated string constant, but I dont see why as its the same as the first function. Any help would be very much appreci...

"Unable To Load Client Print Control" - SSRS Printing problems again

Please forgive me as my head is spinning. I have tried so many solutions to this issue, that I'm almost not sure where I am at this point. At this point in time I have these issues in my Production, Test, and Dev environments. For simplicity sake, I will just try to get it working in Dev first. Here is my setup: Database/Reporting S...

Why jquery have problem with onbeforeprint event?

Hi all, I have the following function. $(function() { $(".sectionHeader:gt(0)").click(function() { $(this).next(".fieldset").slideToggle("fast"); }); $("img[alt='minimize']").click(function(e) { $(this).closest("table").next(".fieldset").slideUp("fast"); e.stopPropagation(); return false; ...

wpf app do not resolve styles

Hello, I made some changes with chart (WPF toolkit) component at the MS Blend 3. A lot of stuff like this: <Style x:Key="BoardsLineDataPointStyle" TargetType="{x:Type chartingToolkit:LineDataPoint}"> <Setter Property="Background" Value="Orange"/> <Setter Property="Width" Value="{Binding Mode=OneWay, Path=Value}"/> <Setter Property="Te...

iPhone keeps going into dim/sleep mode even with the proper API calls.

I call: [[ UIApplication sharedApplication ] setIdleTimerDisabled: YES ] on the applicationDidFinishLaunching event.. I set a breakpoint on it, which fires so I know it's getting called.. I've also called this function in other places as well.. Basically, a 3G iPhone will still go into sleep mode, but my 3GS won't. Has anyone seen th...

I'v installed NetBeans 6.8 on my MacOS X MacBook and the logs say it cannot be run, any ideas?

I've installed NetBeans 6.8 on my MacBook, and the installation results indicated success. However, every single time I attempt to run the application is shuts down. I monitored the process and noticed the following entries in the console that imply the application cannot be found? 3/19/10 10:20:20 PM [0x0-0x22022].org.netbeans.ide.b...

iPhone xcode array losing state after load

Right i've had a search around and can't find anything. @synthesize list; // this is an NSArry -(void) viewDidLoad { NSArray *arr = [self getJSONFeed]; self.List = [arr retain]; // if i copy the access code into here it works fine. } -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath ...

Find Window At Location Using Carbon And Carbon Problems In 64-Bit Applications

As I said in some questions today I´m looking for the way to get window or windowPart references at a certain location. Although I know I could use Cocoa for this purpose (I don´t know how to do it yet) I prefer (and probably need) to do this using Carbon because the entire application that needs this functionality is written in C++ but ...

Load on page inside another onClick

Hello, I need to include the content, scripts, forms and dynamic abilities of one page in another onClick. Take a look at http://www.divethegap.com/scuba-diving-programmes-dive-the-gap/dahab-master-scuba-diver.html Then follow one of the links that says 'Beginner' 'Open Water Diver' etc.... You will find a PHP page with a series of o...

What is the Object Identity Problem in NHibernate?

What is the meaning of Object Identity Problem in NHibernate? ...

Real World Examples of read-write in concurrent software

I'm looking for real world examples of needing read and write access to the same value in concurrent systems. In my opinion, many semaphores or locks are present because there's no known alternative (to the implementer,) but do you know of any patterns where mutexes seem to be a requirement? In a way I'm asking for candidates for the s...

CSS text-decoration rule ignored

I have found similar questions to mine but none of the suggestions seems to apply to my situation, so here goes... I have a webpage with a buch of images on them. Each image has a title which in markup is between h2 tags. The title is a link, so the resulting markup is like this: <ul class="imagelist"> <li> <a href=""><h2>Title 1</h2><...

IE Joomla Problem with templatemonster template

Hi, i have got something strange: http://garten.ploetzeneder.eu on FF and chrome i see the complete website, on IE 8 i only see everything down to the flash, but bellow the flash i don not see anything,.. how can i debug this? ...

Can we change <input type="file"> style?

I tried to change the HTML form, input type file. Here is my code: HTML, form id = form <input class="upload_file" type="file" id="file" name="file" /> .CSS I tried both: .upload_button{ background: url('../images/upload_btn_bg.png') no-repeat; width: 200px; height: 40px; } #form input[type=file]{ background: url('../image...

Proxy problems when adding Service Reference in VS 2010

Hi everyone, I was able to add a Service Reference in VS2008 with no problems at all. However, on the same machine within the same network, I couldn't do that in VS2010. It got a (407) response, Proxy Authentication Required. Has anyone else encountered this problem before? Are there new settings in VS2010 that need tweaking? Thanks, ...