|
Hi raddevus!
Impressive!
At the end though... I've installed a dyndns-like service into the server, now it's only a matter of configuring the router and then it should be easy to send the WOL packet through internet.
In my case the shut down will be performed by the remote worker so it won't be needed to control it auto-magically.
Thanks!
|
|
|
|
|
You could setup the router with DynDns so that you then have an address e.g. joansoffice.dyndns.info that will always point to the correct IP.
You can then do whatever port forwarding or WOL stuff you need on the router to push the magic packet in the correct direction.
|
|
|
|
|
Thank you DaveAuld,
As you suggested, I've installed a dyndns-like service into the server, now it's only a matter of configuring the router and then it should be easy to send the WOL packet through internet.
Thanks!
|
|
|
|
|
Why on Earth would you make a computer sleep in the first place?
Just use the "Hollywood computer kill" method (switch off the monitor), and leave the silly thing awake.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Thank you Mark,
It's not only the amount of electricity/money involved... I can see the situation: "it's Saturday morning and I do need to finish that before Monday and #$%& I've just shut the computer down without reason and now I can't work anymore..."
I've installed a dyndns-like service into the server, now it's only a matter of configuring the router and then it should be easy to send the WOL packet through internet.
Thanks!
|
|
|
|
|
|
Here's a handicap; get this test case right:
float[] data = { 1E30f, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
With a window of, say, 5. Doesn't really matter, just add more 1's if you want a bigger window.
What's the running average when the 1E30f leaves the window? Hopefully 1, but most implementations get this wrong.
|
|
|
|
|
Bugger! I hadn't spotted the "sliding window" requirement.
I've updated my solution, and it does pass your test.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Should this post be sticky/stay on top, if not, at the end of the day, it will be pushed to the bottom and some people might miss it.
Bryian Tan
|
|
|
|
|
|
I'm done with Wired - I want my science sciencey, not political. Stick to the facts, that's all I want - I neither need, want nor appreciate your personal opinions - I leave that to the media and a higher power - my wife.
|
|
|
|
|
If you want facts, then stop reading any website and stick to CSV files.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Do you think you might want to write the editors at Wired about this ?
I stopped reading it a long time ago after, imho, it became a nest of narcissistic techno-savants too busy with flaunting their own grandiosity to write articles whose content interested me. I saw the word "meme" in it so many times, I developed a rash.
cheers, Bill
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
I believe there is a "rash" meme somewhere out there...
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
"... I leave that to the media and a higher power ..."
How is that Wired is NOT the media? What else would they be?
|
|
|
|
|
Rick York wrote: How is that Wired is NOT the media?
Ah, you spotted that...
|
|
|
|
|
It was the article on cats and schizophrenia, wasn't it?
TTFN - Kent
|
|
|
|
|
You're confused. Or you're not. Maybe you are. Where's my kitten? You're confused.
|
|
|
|
|
(Early today, because yesterday was late. Or something.)
Do foxes watch Ewe Tube?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
Yes, but only when there's mutton else to watch on cable.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Dunno, but I am sure ewe do!
... such stuff as dreams are made on
|
|
|
|
|
Do Lambs watch Fox ?
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
|
|
|
|
|
You really rammed that pun down our throats.
|
|
|
|