|
I've been struggling with this for 2 days now so i thought i would give it a shot here.
my scenario looks like this. i got a Customer and CustomerPhone. Now i save the Customer and CustomerPhone at the same time but the CustomerPhone doesn't get Id right...
Started by Dejan.S on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A call to session.Flush() will typically sort the "problem" out by persisting entities and obtaining... .
But I've encountered this before when NHibernate has some changes pending in its session .
Without seeing your mappings I can only give general advice .. .
|
|
They play St Louis in London where St Louis has no home field advantage...anyone else pissed about this!?!?!?
Started by Flymax on
, 20 posts
by 17 people.
Answer Snippets (Read the full thread at jetsinsider):
Plus every team on some level will eventually deal with .
I mean STL will probably get crushed anyway so no big loss there.
The Pats were.
Louis...who cares?
The Rams are going to get slaughtered wherever they play.
|
|
Hi, I want to get into web development but that fact of the matter is I don't really enjoy doing the design work and IMHO CSS and the like seem overly complicated and not something I'd really feel like investing my time in, it simply does not capture ...
Started by Mark Lubin on
, 15 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
Is that yes you can get away with it, and if you're not very good at design then you definately I get away with not being a designer?
My answer is a resonding yes!
In my former job, one to work directly with an artist in order....
|
Ask your Facebook Friends
|
On my busiest production installation, on occasion I get a single thread that seems to get stuck in an infinite loop. I've not managed to figure out who is the culprit, after much research and debugging, but it seems like it should be possible. Here are...
Started by Stu Thompson on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
From memory if you CTRL-BREAK on the console you will get a dump.
When we had a run-away was calling, and track down the loop.
Check for threads that are always in a state of RUNNING .
The run-away thread.
|
|
In C++ you can cast a couple ways, C-style casting or C++ casts. Bjarne Stroustrup and a host of other C++ experts say that a good design should have no casting.
Can you help me out here with redesigning the code below to get rid of the cast?
void CProgressBar...
Started by Jared on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
You should probably apply ceil....
Also, for casting in arithmetic like this you probably want to be more careful .
The type of casting that should really be avoided is up and down (or across) your own class hierarchy .
I think casting in arithmetic can be OK.
|
|
I have the following situation
bool user_set_flag; getFlagFromUser(&user_set_flag); while(1){ if(user_set_flag){ //do some computation and output } //do other computation }
The variable user_set_flag is only set once and only once in the code, at the ...
Started by gmatt on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Which means: at the moment you hit the "Build" item in your menu of your editor... .
In general, a compiler can only "optimize away" things it knows at compile time .
Which means, it cannot be optimized away (usually).
That can change at runtime.
|
|
So I've been trying to use the Net::SSH::Multi to login to multiple machines using the via SSH, and then executing shell commands on the remote machines with session.exec("some_command").
The Code:
#!/usr/bin/ruby require 'rubygems' require 'net/ssh' ...
Started by chutsu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It....
Example from the documentation:
session.exec("command") do |ch, stream, data| puts "[#{ch[:host]} : #{stream}] #{data}" end
Disclaimer: I didn't test this myself .
The exec method seems to yield it's result to the supplied block .
Take a look a here.
|
|
As a developer, can I safely upgrade to IE8 and use its IE7 compatibility mode to test how sites look in IE7? For IE6, I have a virtual machine and it is quite inconvenient. I don't want to upgrade to IE8 and then have another virtual machine now for ...
Started by alexeit on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Did ....
I use IE7 compatibility mode and it serves me all right .
Microsoft makes Virtual PC images available for testing this.
I would still test both.
The code changed.
IE7 compat mode should be pretty damn close to IE7, but.. .
The MSHTML code changed.
|
|
Hi everyone , So with our first Disney Cruise just 46 days away I am starting to feel like I am coming undone. With the end of summer, school starting, this trip and a certain little girl's b-day 2 days after we come home I figured what better time to...
Started by Linnynad on
, 15 posts
by 12 people.
Answer Snippets (Read the full thread at passporterboards):
I am now deep in the post-Dream blues you just shouldn't have to get off a cruise once you're.
|
|
How did McDonalds get away with this for so long? How did McDonalds get away with using Ammonium Hydroxide in their burgers for so long?
Started by Kimberley ♥ on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at yahoo):
We don't focus or get.
We sux pretty much.
You really need to get where Brad Pitt was born and most people could tell you.
Plus McDonalds wasn't the only one who did this.
Scitenst to figure it out.
|