|
I am on OSX, and my system is becoming unresponsive for a few seconds roughly every 10 minutes. (It gives me the spinning beach ball of death). I was wondering if there was any way I could isolate the problem (I have plenty of RAM, and there are no pageouts...
Started by mt3 on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Chances are....
I'd run a mixture of 'top' as well as tail -f /var/log/messages (or wherever your main log file is) .
As a first line of attack, I'd suggest keeping top running in a Terminal window where you can see it, and watching for runaway jobs there .
|
|
I'm using the python OpenCV bindings and at the moment I try to isolate a colorrange. That means I want to filter out everything that is not reddish.
I tried to take only the red color channel but this includes the white spaces in the Image too.
What ...
Started by Janusz on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Select pixels that have an H value in the range that you consider to contain "red," and an S value large ... .
Use a different color space: http://en.wikipedia.org/wiki/HSL_color_space How about using a formular like r' = r-(g+b)?
Use the HSV colorspace .
|
|
I have a nice clean standards-compliant codebase that I can compile with GCC's " -ansi -pedantic-errors -Wextra ", etc.
But now I need to use a source library with associated headers that is decidedly NOT clean code.
What's the best way to isolate this...
Started by jparker on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You could isolate the use of the library to just.
A lot more work.
Own, that was just a pass-through.
|
Ask your Facebook Friends
|
With PHP, how can I isolate the contents of the src attribute from $foo? The end result I'm looking for would give me just "http://example.com/img/image.jpg"
$foo = '<img class="foo bar test" title="test image" src="http://example.com/img/image.jpg...
Started by Deca on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this pattern:
'/< \s* img [^\>]* src \s* = \s* [\""\']? ( [^\""\'\s>]* )/'
Code <?php $foo = '<img class="foo bar test" title="test image" src="http://example.com/img/image.jpg" alt="test image" width="100" height="100" />'; $array... .
|
|
I have the following output from a view:
xfer_id client_plt_id xfer_doc_no 2255 80016616 KANORANJE1 2270 80016616 ORANJECFC1 2285 80016616 CFCFPT1 2285 80016623 CFCFPT1 2270 80016623 ORANCFC1 2255 80016623 KANORANJE1 2255 80016630 KANORANJE1 2270 8001...
Started by links77 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
These queries both isolate the row with the highest xfer_id for each distinct client_plt_id
select xfer_id.
|
|
I am working on a UI that makes heavy use of the Tweener class, and which also loads an external .swf that I believe also uses the Tweener class.
After tracking down all kinds of buggy behavior, I'm thinking that the problem is that the loaded .swf is...
Started by Daniel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
When loading external SWF you can have ....
You can try to use a LoaderContext with a different ApplicationDomain .
There is a decent article here on it.
It's like a seperate memory space to load external SWFs into .
Yes, it's called an Application Domain.
|
|
One part of domain-driven design that there doesn't seem to be a lot of detail on, is how and why you should isolate your domain model from your interface. I'm trying to convince my colleagues that this is a good practice, but I don't seem to be making...
Started by Mark Rogers on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
I do use them to isolate my domain layer from a boundary.
DTO's to isolate my domain layer from my UI.
|
|
I need to isolate user-written code snippets from each other in javascript. For now the funniest thing i can think of is closures:
function executor() { window.alert('Hello!'); size0 = document.getElementById("load").innerHTML; window.alert('zero:' + ...
Started by Kuroki Kaze on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It's designed for running scripts from third parties safely and securely. .
You could look at Caja from Google.
Here is a blog post that might help.
As far as I know the easiest, and best, way to sandbox javascript is via iframes .
|
|
I have a Java SOAP data service which sits on top of a Sybase database which, for reasons out of my control, has unreliable performance. The database is part of a vendor package which has been modified by an internal team and most of the issues are caused...
Started by John Channing on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Then put a message queue (either MSMQ or a JMS implementation ... .
If this is on Windows, you could create a Windows service as an intermediary between the SOAP service and the database .
I have seen this issue a few times, normally with a vendor database .
|
|
This is the first time I've played with IIS and FTP. We have around 2000 users in AD. Each of these users has a share on the network, all under a root folder, labeled with their username.
Ex:
\\network\john.doe
\\network\jane.doe
I'm trying to setup an...
Started by Beavis on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Isolated FTP usually requires the DOMAIN as the first part of the "user share" - ref: http://learn....
Have you set appropriate permissions on the root and user directories? Appropriate permissions + isolated mode is generally the way to do it.
|