code logs -> 2010 -> Thu, 04 Feb 2010< code.20100203.log - code.20100205.log >
--- Log opened Thu Feb 04 00:00:25 2010
--- Day changed Thu Feb 04 2010
00:00 You're now known as TheWatcher[T-2]
00:06 You're now known as TheWatcher[zZzZ]
01:02 Derakon[AFK] is now known as Derakon
02:01 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
02:43
<@Vornicus>
Hm. My code has gotten to "who wrote this shit"
02:46 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
02:51
< gnolam>
Even without a year's absence from it?
02:55
<@Vornicus>
Try "an hour and a half'
02:55
< gnolam>
And it's not Perl? :o
02:59
<@Vornicus>
Javascript, and the reason is I haven't been separating view from model at all.
03:18 * Vornicus approximately halves the number of lines of the function that builds a horrible table.
03:19
<@Derakon>
Is the table still horrible?
03:21
<@Vornicus>
Oh, the table is, but there's not much I can do about that.
03:21 Attilla [Attilla@FBC920.58502B.179BC9.8FDBD2] has quit [[NS] Quit: ]
03:22
<@Vornicus>
(currently, 7 rows, 12 columns, 7 spanning cells, and 36 radio buttons.)
03:23 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
03:40 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
03:43 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
04:27 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
04:35 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
04:45
<@Vornicus>
Okay, considerably more sane now!
04:48
<@Vornicus>
Now, reading from the dropdowns, calculating stuff, and writing to the table each happen in their own function.
05:05 EvilDarkLord [jjlehto3@26ECB6.66DC17.F9E1B3.29F641] has quit [Ping timeout: 121 seconds]
05:06 EvilDarkLord [jjlehto3@Nightstar-f1ccbb45.hut.fi] has joined #code
05:26 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
06:07 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has quit [Ping timeout: 121 seconds]
06:07 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has joined #code
06:09 * Derakon mutters at vim, which is balefully screwing up his indentations.
06:10
<@Derakon>
How does point-buy work in 4e, Vorn?
06:12
<@Vornicus>
YOu get 22 points to apply to the already existing stat grid 10 10 10 10 10 8 (the minimums). 8-18 are worth 0, 1, 2, 3, 4, 5, 7, 9, 11, 14, 18 points each; these prices are discounted by 2 for the ones starting at 10.
06:12
<@Vornicus>
(alternatively stated: you get 32 points on that scale, and at least five of your scores must be 10 or better.)
06:12
<@Derakon>
Ah.
06:14
<@Vornicus>
Wgucg renubds ne,
06:14 * Derakon snerks.
06:14
<@Vornicus>
http://derakon.dyndns.org/~chriswei/temp/4e-character-sheet.html
06:14
<@Vornicus>
Which reminds me.*
06:15
<@Vornicus>
People in here haven't seen that yet.
06:15
<@Derakon>
So given the starting grid, that means you've invested 10 points right at the start?
06:15
<@Vornicus>
Yes.
06:15
<@Vornicus>
You can find the logic I use in the generate_ability_loadouts() function at line 84.
06:16
<@Derakon>
Too busy writing code to read code~
06:16
<@Vornicus>
Heh, ok
06:19 Bob_home [Bobsentme@Nightstar-79f8b1cd.livnmi.sbcglobal.net] has joined #code
06:21 Bobsentme [Bobsentme@Nightstar-79f8b1cd.livnmi.sbcglobal.net] has quit [Ping timeout: 121 seconds]
06:24 Bob_home [Bobsentme@Nightstar-79f8b1cd.livnmi.sbcglobal.net] has quit [Client closed the connection]
06:26
<@Derakon>
...shit, I put an alert into code that's iterating over the DOM. >.<
06:26 * Derakon quits Firefox to get out.
06:26
<@Vornicus>
Whups
06:33
<@Derakon>
Oh, there's my problem. After setting a stat to 10, I'm left with -568 points.
06:38
<@Derakon>
Hmm...okay, this is a bit trickier than I expected.
06:38
<@Vornicus>
Heh
06:39
<@Derakon>
Mostly because I hardcoded the radio buttons and then didn't set them to be mutually-exclusive, so you can click multiple ones. But the disabling logic appears to be broken too.
06:39
<@Vornicus>
radio buttons that share a name will be mutually exclusive.
06:40
<@Derakon>
Well, you can get some idea of what I was going for here: http://derakon.dyndns.org/~chriswei/temp2/pointbuy.html
06:40
<@Derakon>
Charisma calculation is off and it will cheerfully disable controls that you've already set, but the concept is sound.
06:40
<@Vornicus>
Jesus christ, man, why are you iterating the whole DOM?
06:41
<@Derakon>
Because it's easy?
06:41
<@Vornicus>
....no, no it is not.
06:42
<@Derakon>
Alternately, because the form isn't generated programmatically.
06:43
<@Derakon>
So I don't have easy access to the elements otherwise.
06:43
<@Vornicus>
Do yourself a favor and give all the radio buttons ids.
06:44
<@Derakon>
They're hardcoded. That would be painful to write out.
06:44
<@Derakon>
I guess I could've whipped up a script to generate them once...ehh.
06:44
<@Derakon>
This was meant to be a 20-minute hack job.
06:45
<@Vornicus>
'k
06:51
<@Derakon>
You get the idea I was going for, though?
06:51
<@Derakon>
When a radio button is clicked, find the buttons that are now too expensive, and disable them.
06:52
<@Vornicus>
Yes.
06:53 Derakon is now known as Derakon[AFK]
08:05 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
08:47 You're now known as TheWatcher
09:00 AnnoDomini [annodomini@Nightstar-54a82367.adsl.tpnet.pl] has joined #code
09:00 mode/#code [+o AnnoDomini] by Reiver
09:33 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
10:13 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
11:08 Attilla [Attilla@FBC920.58502B.179BC9.8FDBD2] has joined #code
11:08 mode/#code [+o Attilla] by Reiver
11:16 Vornicus is now known as Vornicus-Latens
11:37 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:33 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
13:32 AbuDhabi [annodomini@Nightstar-0540d934.adsl.tpnet.pl] has joined #code
13:35 AnnoDomini [annodomini@Nightstar-54a82367.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
13:46 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
15:34 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
15:54
<@TheWatcher>
... goddamn fucking case insensitive filesystems
15:54<~Reiver> Funny, I always found my cursing in that respect to be lacking an i and an n~
15:56 ToxicFrog [ToxicFrog@Nightstar-a68aafef.dsl.teksavvy.com] has quit [Client closed the connection]
15:59
< celticminstrel>
Isn't there a shell command to send an HTTP request?
16:00
<@TheWatcher>
telnet <servername> 80 and then issue HTTP commands by hand ;)
16:01
< celticminstrel>
Uh... besides that.
16:20 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
16:58
< gnolam>
What Reiver said. :P
17:17 You're now known as TheWatcher[afk]
17:17
<@TheWatcher[afk]>
doing `make install` should not attempt to run the INSTALL file in the current bloody directory, damnit.
17:32 Attilla [Attilla@FBC920.58502B.179BC9.8FDBD2] has quit [Ping timeout: 121 seconds]
17:36 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has quit [Connection closed]
17:49
< Tarinaky>
Reiver: In generall it's easier to go from case insensitive to case sensitive than it is the other way >.>
17:49
< Tarinaky>
All you need is a very simple regexp.
17:51 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has joined #code
17:51 mode/#code [+o Attilla] by Reiver
18:04
< celticminstrel>
Why do I get a library not found error!? I added an -L to where the library is...
18:13
<@Vornicus-Latens>
celmin: what do you want the HTTP request to do? If you want to grab a file, wget and curl do this.
18:13
< celticminstrel>
Bash tells me that wget does cannot be found...
18:14
< celticminstrel>
But curl exists.
18:23
< celticminstrel>
^ strike that "does".
18:32 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
18:54 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
19:19 SmithKurosaki [Smith@Nightstar-a68aafef.dsl.teksavvy.com] has joined #code
19:24 ToxicFrog [ToxicFrog@Nightstar-a68aafef.dsl.teksavvy.com] has joined #code
19:24 mode/#code [+o ToxicFrog] by Reiver
20:21 Vornicus-Latens [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
20:23 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
20:23 mode/#code [+o Vornicus] by Reiver
21:12 You're now known as TheWatcher
22:01 * TheWatcher stress-tests his mingw install by compiling zlib, libpng, libjpeg, libtiff, and SDL_image from source on it
22:02
< gnolam>
The first two shouldn't actually be a problem, strangely enough.
22:03
< gnolam>
They were among very few libraries claiming to be cross platform that actually compiled under MinGW for me.
22:05
<@TheWatcher>
Actually, none have proved to be so far, just compiling SDL_image
22:08
<@TheWatcher>
Yep, and working.
22:17 crem [moo@Nightstar-8ca3eea7.adsl.mgts.by] has quit [Ping timeout: 121 seconds]
22:24 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has quit [Ping timeout: 121 seconds]
22:26 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has joined #code
22:26 mode/#code [+o Attilla] by Reiver
22:28 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has quit [Client closed the connection]
22:28 Attilla_ [Attilla@FBC920.642D35.2D2998.D06FAA] has joined #code
23:31 You're now known as TheWatcher[T-2]
23:34 You're now known as TheWatcher[zZzZ]
23:37
<@McMartin>
Man
23:37
<@McMartin>
NSIS vs. Applescript. Not sure which is worse to deal with
23:37
<@McMartin>
Leaning towards Applescript, though, as at least NSIS tends to have reliable documentation
23:42 Attilla_ is now known as Attilla
--- Log closed Fri Feb 05 00:00:32 2010
code logs -> 2010 -> Thu, 04 Feb 2010< code.20100203.log - code.20100205.log >