code logs -> 2006 -> Thu, 16 Nov 2006< code.20061115.log - code.20061117.log >
--- Log opened Thu Nov 16 00:00:04 2006
--- Day changed Thu Nov 16 2006
00:00
<@ToxicFrog>
...why restrict it to 3?
00:00
<@Chalcedon>
that was my question
00:00
<@ToxicFrog>
It seems nonsensical to do so.
00:00
<@Chalcedon>
well, you've answered my question at anyrate.
00:00
<@ToxicFrog>
And what was the other one?
00:01
<@Chalcedon>
that was it
00:01
<@Vornicus>
...okay, how do I get ssha hashes?
00:01 * Chalcedon hug TF
00:01
<@Chalcedon>
did you get the email ok?
00:01
<@ToxicFrog>
No clue, Vorn.
00:01
<@ToxicFrog>
Actually, wait, clue.
00:01
<@ToxicFrog>
ssh-agent?
00:02 mode/#code [+o MyCatOwnz] by Chalcedon
00:02 * Chalcedon thwap brain
00:02
<@ToxicFrog>
Chalcedon: yes. And it does error. Examining it now.
00:03 * Chalcedon nods
00:04 ReivZzz is now known as Reiver
00:04
<@Vornicus>
...I think I have it. Maybe.
00:04
<@Vornicus>
Oh it hurts.
00:04 * Chalcedon supply cookies?
00:05
<@ToxicFrog>
Found the problem.
00:05
<@Vornicus>
...Oh, yes, it hurts indeed.
00:05
<@Vornicus>
so there's this utility called slappasswd
00:06
<@Vornicus>
It produces a password of the form \{SSHA\}[a-zA-Z0-9]{32}
00:06
<@Vornicus>
That's 38 characters
00:06
<@Vornicus>
Which happens to be, when taken and base64'd (because otherwise it has 'special' characters in it), 50 2/3 characters long.
00:07
<@ToxicFrog>
Chalcedon: new versions of the scripts uploaded.
00:07 * Chalcedon nods
00:07
<@ToxicFrog>
The new bash script fixes the issue you were seeing, and the new postscript script fixes a problem with Y-axis labels.
00:11
<@Chalcedon>
yay it works
00:11
<@Chalcedon>
although it doesn't like my colours
00:11
<@ToxicFrog>
Oh?
00:12
<@Chalcedon>
it came up with green yellow and red, and white instead of grey
00:12
<@Chalcedon>
it was supposed to have dark green, medium green, light green, yellow, orange, red, dark red
00:12
<@Chalcedon>
(grey)
00:13 * Vornicus eyes
00:13
<@Vornicus>
...oh, ha, ha.
00:13
<@ToxicFrog>
Oh, I think I know why.
00:13
<@ToxicFrog>
It's generating png256, which is 256-color. Oops.
00:13
<@Chalcedon>
also, there's a line between each row and column, but not between 40/41 and Sept/Oct 76
00:13
<@ToxicFrog>
One moment while I experiment.
00:14
<@ToxicFrog>
...the missing lines are an artefact of whatever you're viewing them with, I think, they're present on mine.
00:14
<@Chalcedon>
ah yes, they disappear when I zoom in
00:14
<@MyCatOwnz>
Out of curiosity, what program are you two discussing?
00:15
<@Vornicus>
That's why it doesn't have the base64 code letters representing 62 and 63, it doesn't have any bytes that would /do/ that.
00:15
<@MyCatOwnz>
Printing some form of statistical table into PostScript or something? Viewing with gv/ggv?
00:16
<@ToxicFrog>
The table is in csv format.
00:16
<@ToxicFrog>
I have written a hybrid bash/postscript script that renders it into PNG.
00:16
<@Vornicus>
Nothing in the upper half of extended ASCII, no ?, no ~, no \x7f
00:17
<@Chalcedon>
I don't have an issue with 256 colours TF, I just need to know which ones I can use, currently I can only find hexadecimal
00:18
<@ToxicFrog>
Yeah, thing is, I don't know which ones you can use.
00:20
<@Chalcedon>
websafe colours?
00:21
<@ToxicFrog>
Maybe, but I really don't know!
00:21
<@ToxicFrog>
Whatever colors the "png256" output driver of Ghostscript supports.
00:21
<@ToxicFrog>
But I have no idea what colors those are.
00:22 You're now known as TheWatcher[T-2]
00:22
<@Chalcedon>
:s
00:22
<@Chalcedon>
night TW
00:22 * Chalcedon hug TF
00:22
<@Chalcedon>
you've really been a ginormous help
00:23
<@ToxicFrog>
Hmm. Even when generating JPEGs, it doesn't seem to be using the full color range...
00:24 * Chalcedon eyes it
00:24
<@ToxicFrog>
...and, for that matter, when using X11 output.
00:24
<@ToxicFrog>
Ok, maybe it's not the output driver o.O
00:24
<@Chalcedon>
it only seems to be using green, red and white (and presumably blue and black too)
00:25
<@ToxicFrog>
You /are/ editing the colors in the .ps and not the .bash, yes?
00:25 You're now known as TheWatcher[zZzZ]
00:25
<@Chalcedon>
yes
00:25 * ToxicFrog gets it to generate a kind of nauseating purple
00:30
<@ToxicFrog>
Hmm.
00:30
<@ToxicFrog>
Ok, it seems that all color values from [ 1 0 0 ] to [ 255 0 0 ] generate bright red.
00:30
<@ToxicFrog>
That shouldn't be happening.
00:30 * Chalcedon eyes
00:30
<@Chalcedon>
no
00:30
<@ToxicFrog>
That's not happening to you?
00:31
<@ToxicFrog>
...oh, hey, sudden idea.
00:32
<@ToxicFrog>
I'm an idiot.
00:32
<@Chalcedon>
yes it is happening to me, but as you say [1 0 0] and [255 0 0] are different.
00:32
<@Chalcedon>
no, you're human
00:32
<@ToxicFrog>
Colors aren't { n | 0 <= n <= 255 ^ n e Z }
00:32
<@ToxicFrog>
It's { n | 0 <= n <= 1 ^ n e R }
00:32
<@ToxicFrog>
Neutral grey is [ 0.5 0.5 0.5 ]
00:33
<@Chalcedon>
colours are between 0 and 1? instead of 0 and 255?
00:33
<@ToxicFrog>
Yes.
00:33
<@Chalcedon>
I have not met this before
00:33
<@ToxicFrog>
Although I could write it so that it translates values >1 into the corresponding 0..1 range.
00:34 MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has quit [Ping Timeout]
00:34
<@Chalcedon>
meh
00:34
<@Chalcedon>
I'll figure it out
00:35
<@ToxicFrog>
No, I think I have it. And it'll work automatically for either scheme, too!
00:36
<@Chalcedon>
yay that works
00:36 * Chalcedon thwap self
00:36
<@Chalcedon>
I just realised I was running my data the wrong way around
00:38
<@Chalcedon>
will it cope with spaces in the file name?
00:39
<@ToxicFrog>
Should do.
00:39
<@Chalcedon>
oops
00:39
<@ToxicFrog>
You'll need to quote it when invoking it, though:
00:40 * Chalcedon nods
00:40
<@ToxicFrog>
$ ./stoatburgers.bash "file with spaces.csv"
00:40
<@Chalcedon>
it doesn't like dates on the x axis
00:40
<@Chalcedon>
it prints numbers
00:40
<@ToxicFrog>
I did say that the X-axis stuff was presently hardcoded.
00:40
<@Chalcedon>
ah
00:40
<@ToxicFrog>
I didn't know that it needed to support labels as well.
00:41
<@ToxicFrog>
(since support for such is marginally more complex than Y-axis)
00:41
<@Chalcedon>
how so?
00:41
<@ToxicFrog>
With Y, it just reads the label when it starts reading the line and displays it.
00:41 * Stephenie coughs "order"
00:42
<@ToxicFrog>
When X, it needs to read all the labels in one go and then remember them.
00:42 * Chalcedon nods
00:42
<@ToxicFrog>
Anyways! Will sort this out when I return from procuring food.
00:42
<@Chalcedon>
I remember having this issue with distributions.py
00:42 * Chalcedon hug TF
00:43
<@Chalcedon>
you know with the addition of x axis date labels and a key this is better than what I've currently got
00:43 Thaqui [~Thaqui@Nightstar-23226.jetbuster.co.nz] has joined #code
00:50 * Chalcedon hmmm
00:50
<@Chalcedon>
and axis labels
00:53 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
00:55 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:55 mode/#code [+o Chalcedon] by ChanServ
00:56 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
00:57 mode/#code [+o Chalcy] by ChanServ
00:57 * Chalcy argh, beats her net
00:57 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Killed (NickServ (GHOST command used by Chalcy))]
00:57 Chalcy is now known as Chalcedon
00:57 mode/#code [+o Thaqui] by Chalcedon
01:27
<@ToxicFrog>
Chalcedon: ok, so the X-axis labels will be in the first line?
01:27
<@ToxicFrog>
And what should the axes themselves be called?
01:27 * Chalcedon checks
01:28
<@Chalcedon>
yes
01:28
<@Chalcedon>
and x: date, y: trap site
01:28
<@Chalcedon>
or hmm
01:29
<@ToxicFrog>
...so the X axis is now the date and the Y axis the trap site?
01:29
<@Chalcedon>
x: time y: trap number
01:29
<@Chalcedon>
yes.
01:29
<@ToxicFrog>
You know, if you just want to flip the axes, that's much easier than changing the program to read labels from the first line.
01:29
<@Chalcedon>
It was all along, but I probably didn't express it correctly
01:30
<@Chalcedon>
so, read as is but put in the other way around?
01:30
<@ToxicFrog>
Yeah. It would read the files as they are currently formatted, except it would take rows to be X and cols to be Y rather than vice versa.
01:31
<@ToxicFrog>
This means we can stick with hard-coded trap numbers, meaning no need to parse the first line of the CSV, and the dates will show up on the X axis and the trap numbers on the Y axis.
01:31
<@Chalcedon>
that sounds like a much better idea in that case
01:32 * ToxicFrog takes a moment to think about how this affects his variable names
01:35 * ToxicFrog also takes a moment to replace {}loop with the more readable and efficient {}for
01:37
<@ToxicFrog>
<ToxicFrog> Time to deploy gdb?
01:37
<@ToxicFrog>
<cs30xab> No need, I handled it myself without the need for that suit of power armor.
01:37
<@ToxicFrog>
<ToxicFrog> ...I like the vision of GDB as power armour, especially since we can apply the phrase "bug hunt"
01:37 * Chalcedon cackle
01:38
<@Vornicus>
hee
01:39 * McMartin shoulders a few nukes
01:40
<@ToxicFrog>
I'm a 30-second bomb!
01:41 * Chalcedon hides under the bed
01:44
<@Reiver>
30-second bomb?
01:45
<@McMartin>
TF and I both refer to the opening of the book "Starship Troopers"
01:46
<@Vornicus>
quitting time
01:46 Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has quit [Quit: ]
02:00 timelady [~romana@Nightstar-13706.lns3.adl2.internode.on.net] has joined #Code
02:03
<@ToxicFrog>
Chalcedon: what orientation do you want the X axis labels to be in?
02:03
<@Chalcedon>
uh
02:03
<@ToxicFrog>
That is to say, should the viewer have to rotate the page clockwise or counterclockwise to bring them upright?
02:03
<@Chalcedon>
currently it is clock, isn't it? counterclockwise would be better. Either way the opposite to now.
02:04
<@Chalcedon>
I don't know why I like them that way...
02:04
<@ToxicFrog>
Because it means you read it from the top down rather than the bottom up once it's turned.
02:05
<@Chalcedon>
...yes]
02:05
<@Chalcedon>
thank you
02:07
<@ToxicFrog>
Ok, now I just need to add per-axis labels and it's done.
02:07
<@ToxicFrog>
Oh, and as a side effect of these changes it's now much, much faster.
02:07
<@Chalcedon>
ooh shiny
02:08 * Chalcedon hugs TF
02:08 * ToxicFrog purrs
02:11
<@ToxicFrog>
Will it need to support more than 99 trap sites?
02:12
<@Chalcedon>
no, max is I think 52
02:12
<@ToxicFrog>
Sweet.
02:13
<@ToxicFrog>
"Trap Number", "Trap #" or "Trap"?
02:13
<@Chalcedon>
the first one
02:16
<@ToxicFrog>
http://www.funkyhorror.net/toxicfrog/StoatsSFE.png
02:16
<@ToxicFrog>
What think you?
02:17
<@Chalcedon>
not found...probably because it's classified
02:17
<@ToxicFrog>
http://www.funkyhorror.net/toxicfrog/projects/StoatsSFE.png
02:18
<@ToxicFrog>
Refresh for a new version with different colors.
02:18
<@McMartin>
What is this a map of?
02:18
<@ToxicFrog>
Rodent captures, location vs time
02:18
<@Chalcedon>
captures of stoats in a beech forest in Fiordland (NZ)
02:19
<@ToxicFrog>
It's a three-dimensional graph mapping Z into a color table rather than a physical axis.
02:19
<@ToxicFrog>
Chalcedon: what do you think?
02:20
<@Chalcedon>
is good, one query though. Why do the axis labels have big lines next to them?
02:20
<@ToxicFrog>
Because I felt like it. Are they not good?
02:20
<@ToxicFrog>
I thought they'd more clearly draw the eye from the label to the corresponding axis.
02:22 * McMartin builds a 6 MB Jar File Of Doooooom
02:22 * Chalcedon nods
02:22
<@ToxicFrog>
Is that a "they aren't good, please remove them" nod, or a "they're good, leave them in" nod?
02:23
<@ToxicFrog>
("We tossed Mahoney out the window like you gestured, sir!" "Oops.")
02:23
<@Chalcedon>
its an I see what you were thinking nod
02:23
<@Chalcedon>
I'm just trying to think in the context of traditional graph labeling
02:23
<@Chalcedon>
I take it putting the labels in the middle of anything is difficult?
02:23
<@Chalcedon>
What about the other end of the axis?
02:24
<@ToxicFrog>
Hmm. For trap number it's easily doable. For time I'll have to make the graph a bit higher or it interferes with the actual labels. Easily done.
02:24
<@ToxicFrog>
(as far as putting them in the middle goes)
02:25
<@Chalcedon>
that and the title as well would be the ideal
02:25 * ToxicFrog changes "100 100 translate" to "100 132 translate" and updates one line in the bash script and bam, I have another 32px of vertical space.
02:25
<@Chalcedon>
I don't know why we do it like that, we just do...
02:25
<@ToxicFrog>
And it all just works.
02:25
<@ToxicFrog>
<3 translate and rotate.
02:25
<@Chalcedon>
:)
02:26
<@Chalcedon>
it's like the figure labels when you insert them into a report, figure always goes below and table always goes on top
02:26 * Chalcedon has no idea why
02:28 timelady [~romana@Nightstar-13706.lns3.adl2.internode.on.net] has quit [Ping Timeout]
02:30 cs30xab [~cs30xab@Nightstar-25408.ucsd.edu] has joined #code
02:30
<@ToxicFrog>
Alright, refresh and tell me what you think.
02:31 mode/#code [+o cs30xab] by ToxicFrog
02:31
<@Chalcedon>
shiny
02:31
<@Chalcedon>
can the title move to the middle too?
02:31
<@ToxicFrog>
Whoops, forgot that.
02:32
<@cs30xab>
Hi. Whatcha looking at?
02:34
<@ToxicFrog>
Postscript.
02:34
<@Chalcedon>
TF is drawing a graph for me :)
02:34 * ToxicFrog is writing a bash/postscript hybrid to generate graphs of rodent capture statistics.
02:34
<@cs30xab>
Not bad. I'm just finishing up some commenting and readmes in the next... five hours and twenty minutes until an assignment worth 10 percent of my grade is due.
02:34
<@ToxicFrog>
...oh, hey. Stringwidth.
02:34 * Chalcedon supplies cookies
02:34
<@cs30xab>
It's one of those assignments that was out for three weeks, and I started it this morning.
02:35
<@ToxicFrog>
Y helo that left- and center-justified text.
02:35
<@ToxicFrog>
Wish I'd known about this function four years ago!
02:36
<@Chalcedon>
....thats getting to be quite a common statement
02:36 * McMartin eyes his analysis system
02:36
<@McMartin>
Well, well
02:36
<@McMartin>
I think I'll have to email the maintainer of this and ask him what revision is the last stable one.
02:36
<@McMartin>
Since I"m getting different answers.
02:37
<@ToxicFrog>
...
02:37
<@McMartin>
Depending on whether not I use the native libraries or not.
02:37
<@McMartin>
Entertainingly, the native libraries actually give answers, and the other ones just don't~
02:37
<@McMartin>
Not counting the fact that when I ran SVN latest unmodified, I crashed for this reason:
02:38
<@McMartin>
boolean ZDD = true;
02:38
<@McMartin>
(10,000 lines of code, none of which modify ZDD)
02:38
<@McMartin>
_assert (!ZDD);
02:38
<@Chalcedon>
o.O
02:39
<@McMartin>
However!
02:39
<@McMartin>
If we ignore that unfortunate little situation...
02:39
<@McMartin>
I have a mostly-working version of the static-analysis section of my research prototype.
02:39
<@ToxicFrog>
McMartin: umm.
02:39
<@McMartin>
I'm just missing the compelling brief example.
02:40
<@ToxicFrog>
/shouldn't/ that crash?
02:40
<@ToxicFrog>
I mean, you're calling _assert(!true)
02:40
<@McMartin>
Yes
02:40
<@McMartin>
The code, as committed, will always assert false when run.
02:40
<@McMartin>
This is unpleasant seeing as how it's the core library for the whole system
02:40
<@ToxicFrog>
Oh. That's his code, not yours?
02:40
<@McMartin>
Yes.
02:40
<@McMartin>
Both of them.
02:40
<@ToxicFrog>
Ooooops.
02:41
<@McMartin>
I suspect he is doing this becuase, when run by flipping ZDD to false, it produces wrong answers.
02:43
<@McMartin>
Aha!
02:44
<@Chalcedon>
biab
02:44 Chalcedon is now known as ChalcyAFK
02:44 * ToxicFrog gets right-justified text working
02:44 * McMartin finds the revision number he probably wants.
02:45
<@cs30xab>
I hate assignment-required comments. After a while, they all tend to blur together. I just spent the last 15 minutes commenting printLottoScores with comments appropriate for updateLottoScores.
02:45
<@ToxicFrog>
This is why, in principle, it's better to comment as you write.
02:45
<@ToxicFrog>
(in practice I always forget this three functions in)
02:46
<@cs30xab>
(in practice I'm looking at my watch, which is even now counting down from 5:11:32, and figuring I'll have time to comment later, which I always do.)
02:47
<@Janus>
(in practice I always make sure my comments look pretty with plenty of ANCII decorations before I finish them.)
02:48
<@ToxicFrog>
(ASCII)
02:48
<@ToxicFrog>
(ANSI is something different.)
02:48
<@cs30xab>
(I've always heard ASCII. ANCII new?)
02:48
<@Janus>
It sounds better at anyrate.
02:48
<@cs30xab>
(Or I could just show myself to be a total idiot)
02:49
<@Janus>
(Things that are urgent are marked with four inches of exclamation points, so their easier to avoid.)
02:50
<@ToxicFrog>
ChalcyAFK: when you get back, new versions of everything uploaded.
02:50
<@ToxicFrog>
cs30xab: this is what I'm generating: http://www.funkyhorror.net/toxicfrog/projects/StoatsSFE.png
02:51
<@ToxicFrog>
The code that generates it is in the same directory as stoatburgers.bash (configuration, analysis & preprocessing) and stoatburgers.ps (rendering)
02:51
<@cs30xab>
Sweet.
02:53
<@ToxicFrog>
I do like to think so~
02:55
<@cs30xab>
Ackpth!
02:57
<@cs30xab>
Sorry. Just a drink-related convulsion.
02:58 * Janus relates, goes to warsh in retaliation.
02:59 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: Warsh, inhabited by Warshians whom scrub your back until you DIE.]
03:01
<@ToxicFrog>
"I still don't know why you moved [out of the city]." "The fans, Royce. They held me down in Bank Street once and tried to steal my gizzard."
03:01 * ChalcyAFK is back
03:01 ChalcyAFK is now known as Chalcedon
03:04 * McMartin reverts a bunch of stuff to mid-June.
03:04
<@Chalcedon>
thats excellent TF
03:04
<@McMartin>
I did some face-stabbing at SVN two days ago, but now I love it forever.
03:04 GeoTube [~Someone@Nightstar-2556.cable.ubr01.dund.blueyonder.co.uk] has quit [Killed (NickServ (GHOST command used by COL_GeoTube))]
03:04
<@McMartin>
"Please revert to revision #2,468." "Sure thing!"
03:05 GeoTube [~Someone@Nightstar-2556.cable.ubr01.dund.blueyonder.co.uk] has joined #code
03:05
<@ToxicFrog>
...there are version control systems where such an action is not trivial?
03:05
<@McMartin>
CVS.
03:05
<@ToxicFrog>
Aah.
03:05 * ToxicFrog has only used Subversion and Perforce.
03:05
<@McMartin>
As far as CVS is concerned, every file is essentially its own repository.
03:06
<@McMartin>
You can revert a file to a specific version easily
03:06
<@McMartin>
But if you want to revert the whole repository, you'd better know exactly when, realtime.
03:06
<@McMartin>
There's no way to, say, get the revision history of "trunk." and look for the commit that broke the leeg out of everything.
03:06
<@McMartin>
And then check out the revision before that.
03:08 * Chalcedon pondersate how to set TF and Vorn up with a lifetime supply of cookies
03:08
<@ToxicFrog>
Aah.
03:17 Vornicus-Latens is now known as Vornicus
03:17 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
03:18 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
03:18 mode/#code [+o Chalcedon] by ChanServ
03:18 * Vornicus wonders what he did to deserve infinite cookie.
03:18
<@Chalcedon>
programming
03:18
<@Chalcedon>
it's a while ago now
03:18
<@Vornicus>
ah, well
03:19 * Vornicus steals TF's gizzard.
03:20
<@Chalcedon>
...
03:20 * Stephenie blinks
03:21
<@Stephenie>
Vorn no stealing lol give it back or i'll take your bling again :P
03:21 * cs30xab steals Vorn's gizzard, gives it to TF
03:26
<@ToxicFrog>
My gizzard!
03:26
<@ToxicFrog>
Chalcedon: so. This version is good?
03:27
<@Chalcedon>
yes
03:27
<@Chalcedon>
this is excellent TF
03:45
<@Reiver>
Who is cs30xab?
03:45 * Reiver pokes curiously.
03:46
<@cs30xab>
Someone who can't be arsed to change his nick from his lab logon?
03:46
<@cs30xab>
OR CAN I?
03:46
<@cs30xab>
... okay, fine. I just censored the first letter.
03:46
<@Reiver>
No excuses!
03:46 * Reiver has cs30xab shot.
03:49 * cs30xab is executed via firing squad.
03:49 * cs30xab 's younger brothers join an insurgency. One of them sets off an IED next to Reiver
03:50
<@Reiver>
Damn!
03:50 * Reiver has the younger brothers shot for treason.
03:51 * cs30xab notes that this is turnink into one of doze plans, Gorb.
03:58
<@ToxicFrog>
And any plan in which you lose your hat is?
03:59
<@cs30xab>
A bad plan?
04:01
<@ToxicFrog>
Right again!
04:01 * ToxicFrog slwwps
04:01
<@Chalcedon>
night TF
04:02 * Chalcedon pondersate how to add a key to the graph
04:02
<@cs30xab>
Night.
04:04
<@ToxicFrog>
Chalcedon: the commands you need are mostly - I think - newpath, lineto, rlineto, moveto, fillrect, text/rtext/ctext, possibly some others.
04:04
<@ToxicFrog>
Can't give you details, must sleep, will add it tomorrow if you haven't already.
04:06 cs30xab [~cs30xab@Nightstar-25408.ucsd.edu] has quit [Quit: Leaving]
04:06 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
04:06 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
04:06 mode/#code [+o Chalcy] by ChanServ
04:06 Chalcy is now known as Chalcedon
04:06 Chalcedon is now known as ChalcyCatToy
04:15 ChalcyCatToy is now known as Chalcedon
04:33 Chalcedon is now known as ChalcyOut
04:53 Reiver is now known as ReivOut
06:32 You're now known as TheWatcher
06:50 Vornicus is now known as Vornicus-Latens
08:16 You're now known as TheWatcher[afk]
09:01 ReivOut is now known as Reiver
09:09 ChalcyOut is now known as Chalcedon
09:21 Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
09:21 mode/#code [+o Chalcy] by ChanServ
09:22 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
09:28 Chalcy is now known as ChalcyZzz
09:47 You're now known as TheWatcher[wr0k]
09:54 EvilDarkLord is now known as Jo}{n
10:32 You're now known as TheWatcher[d00m]
10:45 Thaqui is now known as ThaquiSleep
10:51 ThaquiSleep [~Thaqui@Nightstar-23226.jetbuster.co.nz] has quit [Client exited]
12:20 You're now known as TheWatcher[wr0k]
12:31 MyCatOwnz [~rb6822@Nightstar-23807.cs.bris.ac.uk] has joined #code
13:49 ChalcyZzz [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout]
14:10 mode/#code [+v MyCatOwnz] by Stephenie
14:11 * MyCatOwnz hugs Stephenie.
14:11 * Stephenie hugs and tickles MCO
14:11
<+MyCatOwnz>
Eeeeek!
14:11 * MyCatOwnz rolls around the room, giggling
14:14
<@Stephenie>
Be careful you might just roll into something and hurt yourself lol
14:17
<+MyCatOwnz>
Meh, there's only walls and landmines in here.
14:29 KBot [~fark.off@Nightstar-29739.neoplus.adsl.tpnet.pl] has joined #Code
14:31 KarmaBot [~fark.off@Nightstar-29550.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
14:31 mode/#code [+v KBot] by Stephenie
14:31 KBot is now known as KarmaBot
14:38
<@Stephenie>
How do I use voice here?
14:39
<+MyCatOwnz>
You just did.
14:39 * Stephenie blinks
14:40
<@Stephenie>
I thought you were referring to like a microphone
14:43
<+MyCatOwnz>
No. I can see why that could cause confusion.
14:43
<+MyCatOwnz>
Oopsie.
14:44
<@Stephenie>
lol
--- Log closed Thu Nov 16 14:54:12 2006
--- Log opened Thu Nov 16 14:54:17 2006
14:54 TheWatcher[wr0k] [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
14:54 Irssi: #code: Total of 15 nicks [11 ops, 0 halfops, 2 voices, 2 normal]
14:54 mode/#code [+o TheWatcher[wr0k]] by ChanServ
14:54 Irssi: Join to #code was synced in 26 secs
14:59 MyCatOwnz [~rb6822@Nightstar-23807.cs.bris.ac.uk] has quit [Quit: Oh hey look, I have class now. Uhoh.]
15:40 You're now known as TheWatcher[afk]
16:08 Jo}{n [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout]
16:10 Jo}{n [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code
17:11 You're now known as TheWatcher
17:26 Reiver is now known as ReivZzz
17:27 Jo}{n [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout]
17:47 Jo}{n [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code
17:52 Vornicus [~vorn@Nightstar-18307.slkc.qwest.net] has joined #code
17:52 mode/#code [+o Vornicus] by ChanServ
17:54 You're now known as TheWatcher[afk]
19:21 AnnoDomini [~fark.off@Nightstar-29739.neoplus.adsl.tpnet.pl] has joined #Code
19:42
<+KarmaBot>
AnnoDomini has a question. Would say it normally, but lacks Voice. :/ Is it possible to draw things in Dialog-based applications, much like in Document-based applications, in Visual Studio 2003?
19:43 mode/#code [+v AnnoDomini] by Stephenie
19:43
<+AnnoDomini>
Thank you.
19:43
<@Stephenie>
Your welcome :)
19:43 mode/#code [+v GeoTube] by Stephenie
19:43 mode/#code [-m] by Vornicus
19:44 mode/#code [+o-v AnnoDomini GeoTube] by Vornicus
19:44
<@AnnoDomini>
Thanks more, Vornicus. :)
19:45
<@AnnoDomini>
Anybody know the answer to the question? I'd ask Pi directly, as his MSMinionity has reached me via word of mouth, but he seems to be absent.
19:46
<@Vornicus>
I don't even know what the question means
19:47
<@AnnoDomini>
I wanna draw things using CDC or something with similiar way of handling things.
19:47
<@AnnoDomini>
I know I can do that in a document-based application.
19:47
<@AnnoDomini>
It just uses the document area as a drawing field.
19:47
<@AnnoDomini>
There is no document field in dialog-based applications.
19:48
<@AnnoDomini>
As there are no buttons and text fields in document-based applications.
19:48
<@AnnoDomini>
I need both.
19:48
<@AnnoDomini>
That is, to draw and use the Editbox/Button stuff.
19:56 Jo}{n [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout]
19:56 Jo}{n [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code
19:58 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
19:59
<@Stephenie>
o_O
19:59 Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code
19:59 mode/#code [+o Chalcedon] by ChanServ
20:00
<@AnnoDomini>
I'm being forced to use VS2003. I would rather use Borland. :(
20:01
< GeoTube>
:[
20:03 Jo}{n is now known as EvilDarkLord
20:17
<@AnnoDomini>
Argh. Why won't you accept my class as a class, you bloody thing?
20:20 aoanla [~sam@Nightstar-17616.range81-157.btcentralplus.com] has joined #code
20:28 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #code
20:30 Thaqui [~Thaqui@Nightstar-23226.jetbuster.co.nz] has joined #code
20:52 * Vornicus tries to learn Javascript enough to make a timer...
20:52 * Vornicus mehs, gives up
20:53 * AnnoDomini makes half of the program the for the programming class project.
20:54
<@AnnoDomini>
Now, I "only" have to figure out how to make the dice roller draw actual representations of die sides.
20:54
<@AnnoDomini>
And I still need to know what the side of a d18 is.
20:54
<@Vornicus>
a d18 is a gyrobipyramid
20:54
<@Vornicus>
so its face looks sorta like a d10's
20:55
<@AnnoDomini>
So... a kind of kite thingy?
20:55
<@Vornicus>
yep
20:55
<@Vornicus>
If you feel like doing the math, a d18 is the dual of a 9-antiprism
20:56
<@AnnoDomini>
Define 9-antiprism, please.
20:56
<@AnnoDomini>
The dual of something, too.
20:57
<@Vornicus>
http://mathworld.wolfram.com/Antiprism.html
20:59
<@Vornicus>
The dual of a polyhedron A is another polyhedron A' such that each face of A corresponds to a vertex of A', and each face of A' corresponds to a vertex of A, and each edge of A correspondes to an edge of A'.
20:59
<@AnnoDomini>
Vertex?
20:59
<@Vornicus>
A cube and an octahedron are duals of each other, a dodecahedron and an icosahedron are duals of each other.
20:59
<@Vornicus>
...corner.
21:00
<@AnnoDomini>
This is all way too complex for me. My geometry learning stopped at high school. :(
21:00
<@Vornicus>
Heh
21:02 * AnnoDomini thinks he will fare far better at his second project for this semester.
21:02
<@Vornicus>
http://mathworld.wolfram.com/Trapezohedron.html
21:02
<@AnnoDomini>
It's basically to make a Zorklike.
21:02
<@Vornicus>
Do you get to pick the language? :)
21:03
<@AnnoDomini>
Yes, provided it's Visual C++.
21:03
<@AnnoDomini>
<_
21:03
<@AnnoDomini>
<
21:03 * AnnoDomini screwed up that smiley.
21:04
<@Vornicus>
I pity you.
21:04
<@AnnoDomini>
Apparently, the higher-ups suddenly decided that Visual Studio 2006 is the only correct environment for learning.
21:04
< EvilDarkLord>
Build a Perl interpreter in VC++ and use that >.>
21:04
<@AnnoDomini>
*2003
21:05 * AnnoDomini is way too tired to be up right now.
21:05
<@Vornicus>
Build an Inform 7 interpreter and use that.
21:05 * AnnoDomini is NOT a programmer.
21:06
<@Vornicus>
Yeah
21:06
<@AnnoDomini>
So what you're telling me to do is black magic.
21:06
<@Vornicus>
Inform 7, as far as I can tell? The interpreter /must/ be black magic.
21:10 * AnnoDomini still figures he'll manage with that Zorklike. He will only need to figure out how to make a 2D array, the map, assign objects to it that will do what the user wants to do, and stuff.
21:12
<@AnnoDomini>
There's also the user input. Which will have to checked against available actions in each node, in conjunction with items that the player might have.
21:13
<@Vornicus>
If you're doing IF, I think McM is your best bet; he, uh. Does this stuff.
21:13
<@AnnoDomini>
Er... what?
21:13
<@AnnoDomini>
McM?
21:14
<@Vornicus>
IF: Interactive Fiction. THe name applied to text adventures and similar
21:14
<@Vornicus>
McM: McMartin.
21:15
<@AnnoDomini>
Ah. But what is McMartin?
21:15
<@AnnoDomini>
A language?
21:15
<@Vornicus>
um
21:16
<@Vornicus>
The most important thing to consider when deciding what an action does in IF? /what objects are at hand/
21:17
<@AnnoDomini>
Okay...
21:18 * Vornicus points at the nicklist
21:18
<@Vornicus>
there are some objects at hand.
21:18
<@AnnoDomini>
Okay.
21:18
<@Vornicus>
So, tell me. What is McMartin?
21:18
<@AnnoDomini>
A nick? A user?
21:18
<@Vornicus>
yes.
21:22
< aoanla>
A very talented human being.
21:22
< aoanla>
Who dabbles in IF writing, and reviews much IF.
21:23 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
21:23 mode/#code [+o ToxicFrog] by ChanServ
21:25
<@Vornicus>
And who also looks dashing in trenchcoat and hat.
21:25 * ToxicFrog eyebrows
21:25
<@ToxicFrog>
McM?
21:25
< aoanla>
Quite so.
21:26
< aoanla>
We're singing his praises to AnnoDomini
21:26
< aoanla>
Specifically in the arena of IF.
21:26
<@ToxicFrog>
Aah.
21:26 * AnnoDomini will need to write a Zorklike, probably before Christmas.
21:27
<@ToxicFrog>
...need as in "required to", or need as in "I must do this or my soul will explode"?
21:27
<@ToxicFrog>
If the former, in what language?
21:27
<@AnnoDomini>
Former. C++.
21:27
<@ToxicFrog>
Hmm.
21:28
<@ToxicFrog>
So this is actually an exercise in interactive lexer and parser design and implementation.
21:28
<@ToxicFrog>
And not an exercise in interactive fiction design.
21:28
<@Vornicus>
make a .z5 interpreter!
21:28
<@ToxicFrog>
Are you allowed yo use lex/yacc?
21:28
<@ToxicFrog>
...heeeee.
21:28
<@Vornicus>
(then the IF bit just falls out)
21:28
<@AnnoDomini>
I doubt the lecturer will like total rubbish for the fluff.
21:28
<@ToxicFrog>
Would that be within the spirit of the rules?
21:28
<@AnnoDomini>
ToxicFrog: The what now?
21:28
<@ToxicFrog>
Writing a Z-machine and then doing the actual assignment in Inform?
21:29
<@ToxicFrog>
Wait, what are you asking about?
21:29
<@Vornicus>
...actually, that sounds like a great idea, I think I'll do that one of these days.
21:29
<@ToxicFrog>
Ok, from the top:
21:29
<@ToxicFrog>
- Inform is a language for writing interactive fiction
21:29
<@ToxicFrog>
- it compiles to Infocom Z-code, bytecode for the notional Z-machine
21:30
<@ToxicFrog>
- one possible approach to this assignment would be to write a Z-machine implementation in C++, then just write the IF part of it in Inform, which comes with the hard parts (parsing, world model) built in
21:30
<@AnnoDomini>
We're allowed C++. Period. It's implied that we should be doing this with VS2003.
21:30
<@ToxicFrog>
Oh. Ick.
21:30
<@ToxicFrog>
So probably no lex/yacc either, then?
21:30
< aoanla>
...ick.
21:30
<@Vornicus>
...and how much programming experience do you have, exactly?
21:31
<@ToxicFrog>
(if it uses makefiles and standard GNU & POSIX utilities, will they accept it? Or does it have to build under VS?)
21:31
< aoanla>
I suspect lex/yacc would be pushing it, TF.
21:31
<@AnnoDomini>
Now, let's be clear on what my competences are - I can write a program that adds up two variables. Most of the time.
21:31
<@Vornicus>
Because I've got five years and this is beyond my ability.
21:31
< aoanla>
It depends.
21:31
<@ToxicFrog>
I have over a decade and I can do it, but I'd have to refer to the Dragon Book a lot. And I'd much rather either use lex/yacc or something other than C++.
21:32
< aoanla>
Writing a very short, hard-coded adventure is easier than writing a generic lexical parser.
21:32
<@ToxicFrog>
(this is, going by UG's path, fourth-year material)
21:32
<@ToxicFrog>
aoanla: you may have a point there.
21:32
<@ToxicFrog>
So, what is the actual problem description?
21:33 * AnnoDomini has so far passed year 1. Year one was making stuff that adds up numbers in console. This is year two. Now we're supposed to make flashy, visual applications using OOP.
21:33
<@ToxicFrog>
I mean, this may actually be an exercise in IO, string comparison and basic world model stuff.
21:33
<@ToxicFrog>
...
21:34
< aoanla>
I suspect this is to be a very /simple/ Zorklike.
21:35
<@AnnoDomini>
I've got maybe a month, and that's with about 2-4 hours weekly of my time at max, due to other Uni stuff.
21:35
<@AnnoDomini>
Like Complex Functions math.
21:35
<@AnnoDomini>
Like Numerical Methods.
21:36
<@Vornicus>
okay, this is called "pull the other one, it's got bells on"
21:36
<@AnnoDomini>
Like bloody Semiconductor Tools and Circuits.
21:37
<@ToxicFrog>
Vornicus: either that or this is much simpler than it sounds.
21:37 * AnnoDomini is SO gonna fail this semester.
21:37
<@Vornicus>
yes.
21:37
<@ToxicFrog>
But, still, 2-4h/week? Dingo kidneys.
21:37
<@AnnoDomini>
Maybe if I eschewed more sleep...
21:38 EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout]
21:39
<@ToxicFrog>
Anyways, do you have a problem spec kicking around?
21:40
<@ToxicFrog>
Oh, and now I remember.
21:40 * ToxicFrog pokes Chalcedon
21:40
<@AnnoDomini>
I would like it very much if the guy who's supposed to be teaching us stuff to actually explain things to us, instead of just approaching teaching from the 'here's a problem, figure it out' approach.
21:40
<@AnnoDomini>
ToxicFrog: Hmm?
21:42
<@ToxicFrog>
Problem spec. Do you have one?
21:43
<@AnnoDomini>
You mean, the text where it's said what I have to do?
21:44
<@Vornicus>
yes
21:45
<@AnnoDomini>
Lessee... I assume you don't know Polish, so I'll find some translation site and check it over. Gimme a minute or two.
21:49 EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code
21:53
<@AnnoDomini>
Player should become a character exploring an imaginary area, divided into smaller subareas. Player should obtain descriptions of these areas in the form of text. Should have capability to move through it and do actions ( e.g. battle with monsters, conversation with NPCs, turning on the computer etc.) issuing proper commands ( e.g. north (causes the character to travel north, if it exists), take k
21:53
<@AnnoDomini>
ey, read book, etc.) player ought to have some goal or riddle to accomplish (like escaping from a labyrinth), that will give the game some meaning. Descriptions of areas, forms, should be recorded in text file in such form as to enable easy editing and expanding, such as using the syntax - description rooms reaction. After issuing the "help" command, the game should display all available actions i
21:53
<@AnnoDomini>
n the subarea.
21:53 * Chalcedon pokes back
21:54
<@ToxicFrog>
Hmm.
21:54
<@ToxicFrog>
Chalcedon: you wanted a key on the graph?
21:54
<@Chalcedon>
yes please
21:54
<@Chalcedon>
I was going to have a poke myself, see if I could figure it out
21:54
<@ToxicFrog>
Ok, just [color in a box] number?
21:54
<@Chalcedon>
yup with 'No data' for the grey
21:55
<@ToxicFrog>
Alright, that should be fairly simple.
21:55 * aoanla notes that it looks like AD's game is a 7DRL with text descriptions~
21:57 * AnnoDomini raises an eyebrow.
21:57
<@Vornicus>
"7drl"?
21:58
< aoanla>
"7 Day Roguelike"
21:58
< aoanla>
A game with Rogue's degree of functionality written in less than a week (often with additional interesting wrinkles, but always playable.)
22:00
<@AnnoDomini>
Whatever it takes to get a positive grade. :)
22:01
< aoanla>
All you need is a simple maze, and being able to parse a couple of actions.
22:01
< aoanla>
(the cardinal directions, "get X", "drop Y", "inventory" and "use X on Y" are a minimal set)
22:02 * Vornicus ponders that in the end, what's been described fits /perfectly/ with a Z-machine parser, except that you need Inform to compile the text thing.
22:12
<@Vornicus>
(also you'll want quit, or people will hit you.)
22:13
<@AnnoDomini>
((Only if they for some reason won't use the little X button on the window.))
22:14
<@ToxicFrog>
(trust us on this one)
22:14
<@ToxicFrog>
(especially since some people will be running it from the command line)
22:14
<@AnnoDomini>
((People still use that? O_o))
22:14
<@ToxicFrog>
(So if it doesn't accept > QUIT, it has to at least accept EOF.)
22:15
<@ToxicFrog>
(...some of us practically live in it, AD. I have bash installed on all of my machines and keyboard shortcuts to access it at will. I have a /quake-style dropdown bash shell/ on my laptop.)
22:15
<@AnnoDomini>
((Migod.))
22:16
<@AnnoDomini>
((Closest I come to that is, uh, IRG.))
22:16
<@AnnoDomini>
((*IRC))
22:16
<@ToxicFrog>
(Indeed, it has been many years since I used a system without bash installed, and I no longer remember how such things are possible.)
22:16 hihiok [FA_-Lithiu@Nightstar-9804.fm.shawcable.net] has joined #Code
22:17
< hihiok>
*** http://youtube.com/watch?v=UyTxWvp8upM - The Kevin Federline / Britney Spears Sex Tape ***
22:17 hihiok was kicked from #code by ToxicFrog [You are not welcome here, insect]
22:17
<@ToxicFrog>
Anyways.
22:18 * Vornicus wonders why anyone would want to see that anyway
22:18
<@ToxicFrog>
Yes. Command line. No longer capable of living without it. Vital tool for day to day usage.
22:18 * AnnoDomini just presumes it's a virus of some sort.
22:19
<@ToxicFrog>
Any program that will reasonably be run from the command line and does not spawn a seperate window of its own must accept at least one of quit, exit, SIGINT, or EOF as an exit command, and should ideally accept all of them unless there is some compelling reason not to.
22:19
<@Vornicus>
where SIGINT is ^D and EOF is ^Z
22:19
<@ToxicFrog>
No, SIGINT is ^C.
22:19
<@Vornicus>
I think that's what htey are though
22:20
<@Vornicus>
what's ^D then?
22:20
<@ToxicFrog>
EOF is ^D on UNIX and Linux systems and probably OSX as well.
22:20
<@Vornicus>
ah
22:20
<@AnnoDomini>
Those're control codes, aye?
22:20
<@ToxicFrog>
It's ^Z^M on Windows and DOS.
22:20
<@ToxicFrog>
Yes.
22:20 EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has quit [Ping Timeout]
22:20
<@Vornicus>
ms's console debugger doesn't accept EOF. i got stomped on my that madness once.
22:21
<@ToxicFrog>
AD: in particular, regular players of IF will expect QUIT to work, and regular users of POSIXoid systems will expect EOF to.
22:21
<@ToxicFrog>
You will however at least get SIGINT for free unless you specifically set a signal handler for it.
22:23 EvilDarkLord [althalas@Nightstar-17046.a80-186-184-83.elisa-laajakaista.fi] has joined #code
22:50 Janus is now known as Jan[JouantDieu]
22:56 AnnoDomini [~fark.off@Nightstar-29739.neoplus.adsl.tpnet.pl] has quit [Quit: Some people find sanity a little confining.]
23:19 MyCatOwnz [~mycatownz@Nightstar-379.dsl.in-addr.zen.co.uk] has joined #code
23:29 aoanla is now known as caps[t-2]
23:31 caps[t-2] [~sam@Nightstar-17616.range81-157.btcentralplus.com] has quit [Quit: Leaving]
23:48 You're now known as TheWatcher
23:59
<@Vornicus>
He's a quick draw with a lighter, he's a pseudo movie star
23:59
< MyCatOwnz>
Who's who?
--- Log closed Fri Nov 17 00:00:12 2006
code logs -> 2006 -> Thu, 16 Nov 2006< code.20061115.log - code.20061117.log >