code logs -> 2011 -> Fri, 23 Sep 2011< code.20110922.log - code.20110924.log >
--- Log opened Fri Sep 23 00:00:25 2011
00:01 You're now known as TheWatcher[zZzZ]
00:04 Derakon [chriswei@Nightstar-f68d7eb4.ca.comcast.net] has quit [[NS] Quit: Lost terminal]
00:07 Vornicus_Latens is now known as Vornicus
00:23 Derakon[AFK] is now known as Derakon
01:02 Vash [NSwebIRC@Nightstar-f03c5637.sd.cox.net] has joined #code
01:27 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
01:27 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
02:06 cpux [NSwebIRC@Nightstar-c5874a39.dyn.optonline.net] has joined #code
02:10 cpux_ [NSwebIRC@Nightstar-c5874a39.dyn.optonline.net] has joined #code
02:12 cpux [NSwebIRC@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
02:17 thalass|parenting [thalass@Nightstar-02e77c64.bigpond.net.au] has joined #code
02:17
< thalass|parenting>
http://pastebin.com/KXp7Gs0u
02:18
< thalass|parenting>
tharrr.
02:18
< gnolam>
?
02:22
<@Derakon>
It's supposed to be a program to turn off the TV when his kid gets too close to it.
02:23
<@Derakon>
Put into a microcontroller attached to a sonar sensor and some means of controlling the TV, presumably.
02:24
<@Derakon>
The concept seems reasonably sound, though why are you sending the same signals on infraout for both cases?
02:26
< thalass|parenting>
that's the code for 'pause', which also unpauses
02:27
<@Derakon>
Ah.
02:27
< thalass|parenting>
brb. screaming baby
02:27
<@Derakon>
So it's not "disable power to TV", it's "pause playback".
02:31 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:32
< thalass|parenting>
At the moment. The tv takes ages to boot so that seemed like a good way to do it. I might also send the mute command, too.
02:33
< thalass|parenting>
But does it seem like it'll go smoothly? i pretty much fumbled my way through the picaxe pdf files and wrote that. It must be easy if i can do it :P
02:34
<@Derakon>
Well, I don't know the language, but the structure seems sound, assuming everything does what I'm guessing it does.
02:40
< thalass|parenting>
neat hehe
02:46 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
03:11 Kindamoody[zZz] is now known as Kindamoody
03:11 thalass|parenting is now known as Thalass
03:24
<@McMartin>
That said
03:24
<@McMartin>
Your one comment?
03:24
<@McMartin>
Don't comment like that.
03:24
<@McMartin>
That part we knew
03:24
<@McMartin>
Because it says so *right there*
03:25
<@McMartin>
The comment should be something like "ADC1: sonar sensor, result in cm" or w/e
03:26
<@McMartin>
Also, your program goes donkey-between-two-stacks-of-hay if the kidlet parts herself exactly 1m from the screen.
03:26
<@McMartin>
*parks
03:26
<@Tamber>
Which, because Murphy, will happen all the time? =p
03:27
<@McMartin>
Also, I just noticed that this language is, basically, QBASIC.
03:28
<@Derakon>
Mm, yes, better would be "if TV is currently paused and distance > 60" and "if TV is currently playing and distance < 50", or something like that.
03:28
<@McMartin>
(The other thing that's worth noting is that it appears to be tight-spinning in the normal case. You might want to have main begin with a 100ms sleep so that it only samples the world at 10 FPS. This will probably drop the power usage some.)
03:28
<@Derakon>
So that the trigger point for unpausing is further away than the trigger point for pausing.
03:29
<@McMartin>
The last robotty thing I built was from a mind-storms kit
03:29
<@McMartin>
Which mixed a motion sensor with a speech synthesizer and some cogs
03:29
<@Derakon>
What, to turn, face visitors, and greet them?
03:29
<@McMartin>
So it would cheerfully shout HELLO! at you when you walked by and then start pegging you with ping-pong balls.
03:30
<@Tamber>
haha
03:30
<@Derakon>
Awesome.
03:31
<@McMartin>
Sadly, the packed-in voice synth did not include an "Are you still there?" voice sample~
03:50
<@Simon_Shine>
haha
03:51
<@Simon_Shine>
it never occurred to me to make Portal-like droids in mindstorm.
03:57 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has joined #code
04:11
<@Alek>
dude, that is win.
04:20 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has quit [Connection closed]
04:20 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has joined #code
04:22 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
04:31 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
04:52 Thalass [thalass@Nightstar-02e77c64.bigpond.net.au] has quit [Ping timeout: 121 seconds]
05:06 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has quit [Ping timeout: 121 seconds]
05:07 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has joined #code
05:19 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has quit [Ping timeout: 121 seconds]
05:40 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
06:06
< Rhamphoryncus>
Given that rapid power cycling is generally bad for electronics, I'd go as far as an exponential backoff
06:06
< Rhamphoryncus>
with a preferences for off of course
06:07 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
06:16
<@Derakon>
Rhamph: he's pausing the TV, not power-cycling it
06:16
< Rhamphoryncus>
oh okay
06:29 kwsn [kwsn@Nightstar-635d16fc.org] has quit [Ping timeout: 121 seconds]
06:31
<@Simon_Shine>
oh no
06:33
<@Simon_Shine>
my university lab computer doesn't have HUnit installed
06:33
<@Simon_Shine>
can I borrow an account on someone's computer who has GHC and HUnit installed?
06:38 Derakon is now known as Derakon[AFK]
06:38 kwsn [kwsn@Nightstar-635d16fc.org] has joined #code
07:21 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
07:43 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has joined #code
08:10 Reivles [orthia@Nightstar-577d8499.lightwire.co.nz] has quit [Ping timeout: 121 seconds]
08:49 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
09:08 You're now known as TheWatcher
09:18 * McMartin purchases the Game Maker: HTML5 Edition thing with his beta discount
09:18 * McMartin then proceeds to file three bugs - would have been four, but one was already reported.
09:24 * gnolam stabs pydicom.
09:27
< gnolam>
One can either reference stuff by tag number (hexadecimal tuple) or directly by name. I.e. plan["0010", "0020"] or plan.PatientID. The former also returns some cruft I don't want.
09:29
< gnolam>
The latter is /supposed/ to be the standardized tag name.
09:29
< gnolam>
Guess if it's "almost, but not quite" so?
09:30
<@Tamber>
*chuckles*
09:32
< gnolam>
PatientID and BeamNumber are fine, but e.g. "ReferencedRTPlanSequence" is "RefdRTPlans".
09:32
< gnolam>
Rargh.
09:41 Vornotron [vorn@ServerAdministrator.Nightstar.Net] has joined #code
09:42 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
09:55
< gnolam>
And you might be tempted to think that the abbreviations are consistent. I.e. "Referenced" is always shortened to "Refd".
09:55
< gnolam>
Not so.
09:57 Vash [NSwebIRC@Nightstar-f03c5637.sd.cox.net] has quit [[NS] Quit: Page closed]
10:04
<@Tamber>
Oh, of course not. That would be too easy.
10:05 cpux_ [NSwebIRC@Nightstar-c5874a39.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
10:08 AnnoDomini [annodomini@FFB3F3.4C5BE8.2014E2.DC0864] has joined #code
10:31
<@McMartin>
OK, this looks like it's mostly working.
10:31
<@McMartin>
Now I just need to warp the interface a little more so that it looks right.
10:31
<@McMartin>
But that will not happen tonight.
10:32
<@McMartin>
And it doesn't seem to be able to run Hex Inverter yet.
10:40 Kindamoody is now known as Kindamoody|out
11:49 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
11:55 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: War! Never been so much fun!]
12:08 Thalass [thalass@Nightstar-02e77c64.bigpond.net.au] has joined #code
12:31 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has quit [Client closed the connection]
12:39 Attilla [Some.Dude@Nightstar-f29f718d.cable.virginmedia.com] has joined #code
13:03 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
13:54 AnnoDomini [annodomini@FFB3F3.4C5BE8.2014E2.DC0864] has quit [[NS] Quit: leaving]
16:57 Vornotron [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
17:00 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
17:27 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
17:30 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
17:56 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
17:59 * kwsn blarghs
17:59
< kwsn>
guess who has to write a serial driver by hand
18:03 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
18:21
< Vornicus>
Clearly, PinkFreud does.
18:32 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
18:32 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
18:37
< kwsn>
heh
19:10 Kindamoody|out is now known as Kindamoody
19:48 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
19:55 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
20:12
< Rhamphoryncus>
kwsn: the trick is to put in more jokes and references than actual code ;)
20:13
< kwsn>
hehe
20:18
<@TheWatcher>
Hey, it could be worse
20:19
<@TheWatcher>
you could be having to write a serial driver by toggling the frontpanel switches
20:28 Kindamoody is now known as Kindamoody[zZz]
20:31 Rhamphoryncus [rhamph@Nightstar-14eb6405.abhsia.telus.net] has quit [Client exited]
20:51
<@Namegduf>
// THE LINE USED TO BE HERE
20:51
<@Namegduf>
~ Today's line of the day from work
20:51
<@Tamber>
...haha
20:51
<@Namegduf>
It is spaced apart from anything else
20:51
<@Namegduf>
And does not make sense in context, nor to the person who must have written it at some point
20:52
<@Namegduf>
Not my favourite line from the project, that is "// TODO: Deal with the consequences of commenting this out."
20:52
<@Tamber>
...ooh, consequences. :x
20:53
<@Namegduf>
Above a harmless-looking commented out assignment of a field of a structure I was entirely unfamiliar with that may or may not do anything anymore
20:54
<@Tamber>
Is there also "//TODO: Comment this properly" in there somewhere?
20:55
<@Namegduf>
I dunno, probably not.
21:02 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
22:01 Stalker [Z@2C3C9C.B2A300.F245DE.859909] has joined #code
--- Log closed Sat Sep 24 00:00:41 2011
code logs -> 2011 -> Fri, 23 Sep 2011< code.20110922.log - code.20110924.log >

[ Latest log file ]