capturing

How do I prepend information to STDERR when a method generates stderr?

Is there some way I can catch when a method generates a write to STDERR? I'm trying to pre-pend some information with each STDERR write. let's say our method is: parser.thatGeneratesSTDERR(); it'll generate something like line 37:29 no viable alternative at character 'a' can I just wrap it with something that catches the stderr to...

vlc player screen capturing

Hi everybody! If I turn on the outputmode "directx video-output" in vlc video I'm not able to make a screenshot (without getting a black image). So 2 questions: 1.) Is there any solution to capture the image without changing the settings in vlc-player? 2.) If not, how can i get this effect for my application using c# (prevered) or c++?...

Java Regex, capturing groups with comma separated values.

InputString: A soldier may have bruises , wounds , marks , dislocations or other Injuries that hurt him . ExpectedOutput: bruises wounds marks dislocations Injuries Generalized Pattern Tried: ".[\s]?(\w+?)"+ // bruises. "(?:(\s)?,(\s)?(\w+?))*"+ // wounds marks dislocations "[\s]?(?:or|a...

Javascript Events

Please tell me difference b/w Capturing and Bubbling events. ...

Processing video frames

I am trying to find software that perform the following functions: when the compressed frames of a streamed video arrive to a destination server, make a copy of each frame as soon as it arrives at the destination server copy the digitized pixels from a frame to another memory location mix the digitized audio fields of several video fra...

Recursive Regex Capturing in C#

Hi, I have to read in a file that contains a number of coordinates. The file is structured in the following way: X1/Y1,X2/Y2,X3/Y3,X4/Y4 Where X and Y are positive integers. To solve this problem I want to use a regex (I think this is in general a good idea because of minimal refactoring when the pattern changes). Therefore I have d...