re: How do I wait until all processes in a job have exited?
I use job objects to ensure that my child processes terminate in the worst case if for some reason the parent process terminates.
View Articlere: Where did the research project RedShark get its name?
"we can't just keep calling it 'the other server'. We need a name""How about the 'data collector'?" "No, 'data collator'" "..."<15 minutes later> "THAT'S IT! I'M DONE WITH THIS DISCUSSION! WE'RE...
View Articlere: The managed way to retrieve text under the cursor (mouse pointer)
Huh, didn't realize this stuff existed. I assumed .NET apps were entirely locked into their own little world unless you used P/Invoke.I guess programs like AutoIt wrap the native version of this...
View Articlere: Another meaning of the word leptoceratops
Silly Raymond. It's real name is A002275 (http://oeis.org/A002275)
View Articlere: Another meaning of the word leptoceratops
Interesting fact 1: For all X, if X is the Nth leptaceratops and n >= 2, X is the base 2 representation of a Mersenne number (i.e. 2^n-1).Interesting fact 2: for N >= 2, the Nth leptaceratops is...
View Articlere: Another meaning of the word leptoceratops
And when the squid takes this number without permission, it is called a "kleptoceratops".
View Articlere: Another meaning of the word leptoceratops
For n>=4, it goes up to eleven multiple times!
View Articlere: How do I wait until all processes in a job have exited?
I am genuinely surprised there is no easy way to make sure that your children processes won't outlive you, neither on Windows or Linux. When I ran into this problem the first time, I thought there had...
View Articlere: The managed way to retrieve text under the cursor (mouse pointer)
(Sorry if this is double post, I didn't get a confirm from the blog software)We use this heavily in our "Automation Framework" and wrap it in a driver that allows us to easily create mappings and...
View Articlere: How do I wait until all processes in a job have exited?
[This article shows how you close the window: You start the child process suspended. -Raymond]Sorry, I forgot to mention that. My implementation does use CREATE_SUSPENDED. The problem, though, is...
View Articlere: Another meaning of the word leptoceratops
I need explanation.Why squid? Will octopus do?
View Articlere: The managed way to retrieve text under the cursor (mouse pointer)
John, you can use Dynamic Annotation API to set automation ids (msdn.microsoft.com/.../dd318060.aspx).Check also Michael Bernstein's blog post "Using Dynamic Annotation with Child IDs"...
View Articlere: Another meaning of the word leptoceratops
Doh! Yep. Should have been f(1) = 1, not f(0) = 1.
View Articlere: On giving a name at the register to be called when your order is ready
Yup, we have one of those locations down the street. It's odd considering it's a good location. Right on a main road. The building was just too large and too expensive to rent for a single restaurant I...
View Articlere: On giving a name at the register to be called when your order is ready
This is well before my time in Redmond, but I'd like to think this was on the corner of 148th and 124th, where there have been probably 6 restaurants in as many years. I'm quite happy with the current...
View Articlere: Another meaning of the word leptoceratops
These numbers are actually called repunits.
View Articlere: On giving a name at the register to be called when your order is ready
Now the guy who's actually named Dave has to give a false name so that he can get his order. I had a coworker who would always give "Tonto" as his name just in case there happened to be another Todd...
View Articlere: On giving a name at the register to be called when your order is ready
I knew a guy who used to play the Dave game, but with the name Spartacus. Name gets called, someone stands up and says "I am Spartacus".
View Articlere: On giving a name at the register to be called when your order is ready
When one of the societies at my university reserves a table at the pub, it's reserved under "Dave". A person called Dave doesn't always go, and there's nothing particularly special about Dave (as far...
View Articlere: The managed way to retrieve text under the cursor (mouse pointer)
I tried out Inspect, and left it running minimized for a few days. I must say that it caused several applications to exhibit really strange behavior. It must trigger something that causes programs to...
View Article