code logs -> 2009 -> Mon, 16 Feb 2009< code.20090215.log - code.20090217.log >
--- Log opened Mon Feb 16 00:00:59 2009
00:08
<@gnolam>
... the hell?
00:09
<@gnolam>
If it crashes or not apparently depends on the filename I send in.
00:10
<@gnolam>
This is where I normally start berating myself for misusing dynamic memory in some way... except I'm not - at least not in any of the code I control. I'm not even using bloody /arrays/, FFS.
00:25
<@Derakon>
Okay, that looks like it worked.
00:35
<@Derakon>
Six items in beta 5 so far.
00:36
<@Derakon>
Changed the registration nagging system. Fixed the ordering of courses. Fixed the broken "Course" button (I hope). Fixed a fatal bug in <accel> tags. Fixed a fatal bug involving bullets from a previous pattern trying to use invalidated references. Made the help page display before you start your first game.
00:36
<@Derakon>
Also two new patterns -- Rainfall and Wanderer.
00:41 You're now known as TheWatcher[T-2]
00:41
<@Derakon>
...wow. Feedback from one of the forums I posted about Fusillade on: "What I can say though, is that I'm put off by the fact that the game screen doesn't fit in my 800x600 resolution. I don't like having to change resolutions to play anything."
00:46
<@TheWatcher[T-2]>
...
00:47
<@TheWatcher[T-2]>
someone still uses 800x600
00:47
<@Derakon>
Yeah, that's what I was thinking.
00:47 * TheWatcher[T-2] goes to check something
00:48
<@TheWatcher[T-2]>
http://store.steampowered.com/hwsurvey shows 0.88% using 800x600 on their primary display
00:48 Bob_Work [c6b3e33a@Nightstar-14595.mibbit.com] has joined #Code
00:49
<@TheWatcher[T-2]>
(and falling)
00:49
<@Derakon>
Heh.
00:49
<@Finerty>
which is 1 in 113.
00:49
<@Derakon>
More than I would have thought.
00:49
<@Derakon>
Fullscreen should still work for these people...the problem is getting to the config page and setting it.
00:50
<@TheWatcher[T-2]>
Steam hardware survey is kinda useful for all sorts of things like that >.>
00:50 You're now known as TheWatcher[zZzZ]
00:50
<@Finerty>
Yes it is.
00:59
<@Derakon>
My word, though -- 1024x768 still has 23% of users.
01:00
<@Derakon>
I guess the 900x650 I'm using for Fusillade is about the upper limit of what I can do in a window.
01:01
<@Finerty>
1024x768 is a reasonably common thing, yes.
01:02
<@Finerty>
All the computers at school are set for that, despite having 1280x1024 flatscreens.
01:02
<@gnolam>
>_<
01:02
<@Finerty>
Quite. Fortunately I can change it.
01:10 * McMartin commits UQM 0.6.5
01:11 * Bob_Work commits McMartin
01:23
<@Derakon>
What's new in 0.6.5?
01:30 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
01:36
<@McMartin>
Derakon: Several fewer internal file formats.
01:36
<@McMartin>
Also, the voice pack and the 3do video pack now are handled like any other addon pack instead of with special-case code everywhere.
01:41
< Bob_Work>
Korne Shell question: Assignment says to use only internal math routines (ie, no using bc to calculate things). Is sqrt (square root) an internal math routine to KSH, or does it call an external arimathic program?
01:42
< Bob_Work>
I've already posed the question to the teacher, and gotten a vauge response that is unhelpful
01:42
<@McMartin>
It's internal to ksh, I believe. ksh has floating point support in it.
01:42
<@McMartin>
To see if something is an external program, type "which {name}" at the command prompt
01:42
<@McMartin>
If it gives you a path to the program, it's a program.
01:42
<@McMartin>
(Such as, say, "which which", which will probably reply with /usr/bin/which)
01:43
< Bob_Work>
ah...that's helpful! Thank you
01:52
< Bob_Work>
XHTML assignment: Use the W3C style sheet validator, and explain the process to which you've used to correct errors with your style sheet.
01:52
< Bob_Work>
The only problem is: There ARE no errors with my style sheet. =\
01:55 Finerty is now known as Vornicus
01:56
<@Vornicus>
Bob: well done.
01:56
<@Vornicus>
Put "What errors?"
01:56
<@Vornicus>
Or "Well, first thing, I had to put some errors in."
01:57
< Bob_Work>
hehehe
02:00
<@Vornicus>
"Then I said, 'wait, these errors weren't here before!' and asked git to get me the old version that didn't have any errors in it."
02:04 * Derakon snerks.
02:04
<@Derakon>
Whee writing BulletML documentation~
02:08
< Bob_Work>
BulletML ?
02:08
<@Derakon>
A markup language used to describe the paths of bullets.
02:09
<@Derakon>
Go download Fusillade and see it in action: http://www.aegis-soft.com/games/fusillade
02:12 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Quit: ]
02:12
< Bob_Work>
Ah, i wasn't under the impression that your game was ready to play yet.
02:13 * Bob_Work hurries off to play
02:13
<@Derakon>
I assume you mean "wasn't". :)
02:13
<@Derakon>
And it's been in open beta for a week and a half or so.
02:13
< Bob_Work>
Gotcha.
02:17 Vornicus [~vorn@Admin.Nightstar.Net] has joined #code
02:17 mode/#code [+o Vornicus] by ChanServ
02:19
< Bob_Work>
Oh, this is eas..OMG PINWHEELS...bang.
02:19 * Bob_Work shakes fist at the pinwheels
02:20
<@Derakon>
Hee.
02:20
<@Consul>
Derakon: Will that run okay on a 1024x600 screen?
02:20
<@Derakon>
Um. The playscreen is 900x650 pixels.
02:21
<@Derakon>
If you can manage to get into fullscreen mode, though, you'll be fine.
02:21
<@Consul>
Eh, my only Windows machine is a little laptop.
02:32
< Bob_Work>
whoops. Got the grade back on my C++ assignment. Tons of nested IF statements to simply transfer money from one account to another...and I made mine only work if you were transferring over $100K into an account.
02:32
<@Derakon>
What's the proper way to make a no-op function in Python?
02:33
<@Derakon>
Since after a def statement the interpreter expects an indented level.
02:33
<@Derakon>
I'm just doing 1+1 at the moment.
02:33
<@McMartin>
"pass"
02:33 * Bob_Work passes as well
02:33
<@Derakon>
Danke.
02:53 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
02:54 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Ping Timeout]
02:54 Syloqs_AFH is now known as Syloqs-AFH
03:20 Derakon is now known as Derakon[fud]
03:53 Derakon[fud] is now known as Derakon
05:58 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Ping Timeout]
06:03 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer]
06:03 * Bob_Work tries to figure out how the hell he's supposed to use setprecision(2) in his C++ code
06:04
< Bob_Work>
Yes, I've tried Printf, but it slides things over in a bad way, throwing all of my output off.
06:04 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has joined #code
06:04 mode/#code [+o MyCatVerbs] by ChanServ
06:14 Searh [~Z@Nightstar-5401.atm2-0-1041217.0xc329e232.boanxx12.customer.tele.dk] has quit [Ping Timeout]
06:33 Derakon is now known as Derakon[AFK]
06:38 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
06:38 mode/#code [+o gnolam] by ChanServ
06:53 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
06:54 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
06:55 Vornotron is now known as Vornicus
07:18 Searh [~Z@87.72.35.ns-26506] has joined #code
07:32
<@ToxicFrog>
Bob_Work: you know about field widths in printf, right?
07:45
< Bob_Work>
It's been a while.
07:46
< Bob_Work>
I turned it in as is, with the best possible formatting I could muster. The code works, and that's the important thing.
07:49
<@ToxicFrog>
Nod.
07:49
<@ToxicFrog>
For future reference, though:
07:49
<@ToxicFrog>
$ man 3 prinf
07:49
<@ToxicFrog>
man 3 printf, even - will get you the manual page
07:49
<@ToxicFrog>
And what you were probably looking for was something like, say: %6.2f
07:50 * Vornicus has hatred for C++'s iostream silliness.
07:50
<@ToxicFrog>
Which is: six characters wide, two decimal places, right aligned double.
07:50
<@ToxicFrog>
(%-6.2f would be left aligned)
07:50
<@ToxicFrog>
(and %06.2f would be zero padded)
07:50
<@McMartin>
iostreams, despite explicitly flying in the face of their own coding guidelines, are nothing compared to the horrors that hide elsewhere in the STL.
07:52
<@ToxicFrog>
printf is your tiny output-formatting god, though.
07:52
<@McMartin>
Yeah, pretty much.
07:53
< Bob_Work>
heh
07:54
< Bob_Work>
So, if I wanted to print multiple variables, would it be printf("%6.2f | %6.2f | %6.2f", myvar1, myvar2, myvar3) ?
07:58
< Vornicus>
Printf is indeed wonderful.
07:59
<@ToxicFrog>
Bob_Work: yep.
08:00
<@ToxicFrog>
(just make sure those are all in fact doubles; gcc will warn you most of the time, but printf is by its nature not typechecked)
08:00
< Bob_Work>
ok
08:02 Alek|gone [~omegaboot@Nightstar-27127.dsl.emhril.sbcglobal.net] has quit [Ping Timeout]
08:09 Alek [~omegaboot@Nightstar-27127.dsl.emhril.sbcglobal.net] has joined #code
08:16 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout]
08:37 * Bob_Work face palms
08:38
< Bob_Work>
So, i just spent some time cleaning up the output, and I must say it looks NICE.
08:38
< Bob_Work>
Only to try turning it in, and finding out my C++ teacher has already graded the one I turned in at 2am...and gave me 100%.
08:45
< Vornicus>
heh
08:47
< Bob_Work>
It's an odd thing to see my programming teachers keeping the same hours as me.
08:56 You're now known as TheWatcher
09:32 Vornicus [~vorn@ServicesOp.Nightstar.Net] has quit [Quit: ]
09:36
<@McMartin>
Heh. I had a prof like that back in my undergrad days.
09:36
<@McMartin>
He worked the shit out of his students, but he was well-respected because he kept the hours he forced on us.
09:36
<@McMartin>
And he had the skills, and made sure we got them.
09:43 * TheWatcher ponders perl, wonders if there's a faster way to do $totitle =~ s/\b(.*?)\b/ucfirst($1)/goes;
09:45 * TheWatcher suspects $totitle =~ s/\b(.)/uc($1)/goe; would be, hms. Tests it!
09:48
<@TheWatcher>
0.83 seconds for 10000 applications of the latter, 1.96 for the former... yeah, indeed.
10:01
<@McMartin>
?s are bad news.
10:03 UndeadAnno [~farkoff@Nightstar-28988.neoplus.adsl.tpnet.pl] has joined #Code
10:03 mode/#code [+o UndeadAnno] by ChanServ
10:04
<@TheWatcher>
Yeah
10:18
< Bob_Work>
Isn't that the equivilent to searching a rather large database with * as your search string?
10:23
<@TheWatcher>
\b(.*)\b will find a word boundary anchor for the left \b, and then capture as much as zero or more of anything as it can while ensuring that there's a \b after the capture. So applying it to "this is a test" would actually capture the whole string
10:24
<@TheWatcher>
\b(.*?)\b however does a minimal capture
10:25
<@TheWatcher>
so applying it to the same string will just capture "this"
10:27
<@TheWatcher>
the problem is that the minimal capture actually involves a lot of work to do, as the regexp engine has to work out where the minimal capture point that satisfies the expression is, and this can involve more work than you'd expect
10:49 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
10:49 mode/#code [+o ToxicFrog] by ChanServ
11:04
< Bob_Work>
Nice.
11:04
< Bob_Work>
Both in that you figured it out, and that I actually understand what you mean. ;)
11:20
<@TheWatcher>
I knew it already, just that my brain wasn't working when I started - I'd only had one mug of tea, after all!
11:23
< Bob_Work>
fair enough
11:23 * Bob_Work is beating his brain for an answer to a logic problem of his own.
11:24
< Bob_Work>
C++: I've got 5 structs, each with a Back Account # in it. I have to ask the user to enter an Account Number, and display the information. This is easy, I ran a for loop
11:25
< Bob_Work>
Runs through the accounts, finds matching struct[x].AcctNum.
11:25
< Bob_Work>
My problem is, what to do if there are no matching account numbers.
11:26
< Bob_Work>
I can't write outside functions, as it all has to be in int main().
11:26 * Bob_Work bah's.
11:26
< Bob_Work>
brain is going in circles.
11:31
<@gnolam>
"I can't write outside functions, as it all has to be in int main()" <- that's a pretty awful requirement.
11:31
<@TheWatcher>
you mean something like int found = -1; for(int i = 0; i < count; ++i) { if(struct[i].AcctNum == number) { found = i; break; } } if(found >= 0) { cout << "Found at " << found << endl; } else { cout << "Not found" << endl; }
11:32
< Bob_Work>
yes.
11:33
<@TheWatcher>
Ah, I see.
11:34
< Bob_Work>
Maybe I'm reading this wrong, but my problem is that if I go if / else, it's gonna go "Oh, you're looking for # 5", start the for loop, hit #1, say "Nope, not that one", go to the else statement and break out of the loop
11:35
< Bob_Work>
waaaaiiiit. Nevermind.
11:35 * Bob_Work deletes the unncessary "else" from his logic.
11:51
< Bob_Work>
got it.
11:54
< Bob_Work>
And that puts me 3 weeks ahead in C++. YAY!
11:54 * Bob_Work packs up his stuff and heads home
11:54 Bob_Work [c6b3e33a@Nightstar-14595.mibbit.com] has quit [Quit: http://www.mibbit.com ajax IRC Client]
12:20 * TheWatcher eyes this student, headdesks
12:20
<@TheWatcher>
How, how do they come up with some of these misconceptions
12:20
<@TheWatcher>
He's doing things like
12:20
<@TheWatcher>
Node *current;
12:20
<@TheWatcher>
current = (Node *)malloc(sizeof(Node));
12:21
<@TheWatcher>
current = somestruct -> listhead;
12:21
<@TheWatcher>
while(current != NULL) { ... etc... }
12:22 * TheWatcher can only assume this is some kind of fundamental misunderstanding of pointers, sets about trying to explain it all over again
12:28
<@gnolam>
Joy.
13:03 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
13:03 mode/#code [+o Attilla] by ChanServ
14:09 Searh [~Z@87.72.35.ns-26506] has quit [Quit: ]
15:08 KBot [AnnoDomini@Nightstar-29553.neoplus.adsl.tpnet.pl] has joined #Code
15:10 KarmaBot [AnnoDomini@Nightstar-28988.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:10 UndeadAnno [~farkoff@Nightstar-28988.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:11 KBot is now known as KarmaBot
15:17 UndeadAnno [~farkoff@Nightstar-29553.neoplus.adsl.tpnet.pl] has joined #Code
15:17 mode/#code [+o UndeadAnno] by ChanServ
15:41 Searh [~Z@130.227.16.ns-12529] has joined #code
15:49
<@ToxicFrog>
TheWatcher: it may be that I just woke up, but that code looks fine to me
15:49
<@ToxicFrog>
Oh wait
15:49
<@ToxicFrog>
I see what he did there
15:49
<@TheWatcher>
yeah
16:03 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
16:04 Syloq is now known as Syloqs-AFH
16:05
<@MyCatVerbs>
Iterating on the list's *head* and not its tail. You sure that's a fundamental misunderstanding, not just a brainfart?
16:05
<@MyCatVerbs>
malloc()ing a node and then throwing the value away like that is worrying, though.
16:07
<@ToxicFrog>
Iterating from the head is perfectly normal.
16:08
<@ToxicFrog>
It's the malloc and throwaway that's the problem.
16:27 crem_ [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
16:27 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
16:30 You're now known as TheWatcher[afk]
16:32 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
16:32 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
16:36 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
16:40 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
16:43 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
16:44 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
16:48 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
16:50 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
16:56 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
16:56 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
17:01 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
17:01 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
17:06 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
17:07 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
17:11 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
17:13 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
17:21
<@gnolam>
Stable connection you've got there, crem.
17:22 * gnolam notes that Steam's download servers are faster than Microsoft's.
17:23
<@gnolam>
5 MB/s sustained, bursts up to 7.5 MB/s.
17:23 Derakon[AFK] is now known as Derakon
17:32 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
17:34 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
17:34 mode/#code [+o ToxicFrog] by ChanServ
17:59
< crem>
sorry, that was whole country's connection
18:05
<@MyCatVerbs>
Oh huh. Belarus, right?
18:16 You're now known as TheWatcher
18:21 * Derakon ponders adding a changeLocation tag.
18:22
<@Derakon>
Requires at least one of <x> or <y> tags, which would be pixel locations on the screen. Would require adding $px, $py, $ex, and $ey variables for player and emitter location as well.
18:23
<@Derakon>
The question is, do I do this by changing the velocity of the bullet, or its position?
18:24
<@Derakon>
If velocity, then the tag could simply calculate the required velocity for the bullet to arrive at its destination in the desired number of frames. If position, then it would need to calculate the distance to the destination and the number of frames to travel, each frame, and move the bullet as needed.
18:24
<@Derakon>
The latter would guarantee that the bullet be at the target destination on the desired frame...which is actually inconsistent with the changeSpeed and changeDirection tags.
18:28
<@Derakon>
On the flipside, the other two change* tags both take an incremental action each frame.
18:49 * gnolam ponders Gaussian blur on the GPU.
18:53 Vornicus [~vorn@Admin.Nightstar.Net] has joined #code
18:53 mode/#code [+o Vornicus] by ChanServ
18:59
<@Derakon>
Well, that works.
19:04 UndeadAnno [~farkoff@Nightstar-29553.neoplus.adsl.tpnet.pl] has quit [Quit: When the end is near, pants on the west rune, and step on the east.]
19:06
<@Derakon>
Right. This pattern forces you to use the inflector.
19:06
<@Derakon>
Unless you like the idea of dodging its bullets while the next pattern runs~
19:06
<@TheWatcher>
heh
19:06
<@Derakon>
The emitter flies in a circle, firing bullets that seek its vertical and the player's horizontal location. Once they arrive, they stop.
19:07
<@Derakon>
And then they wait for 400 frames (16 seconds) before vanishing.
19:07
<@TheWatcher>
I've kinda got into the habit of using the inflector to accelerate bullets off screen anyway
19:07
<@Derakon>
Good! :)
19:13
<@Attilla>
Grar, accursed C. Why are you not giving me any output?
19:13
<@TheWatcher>
Maybe it is, you just can't c it?
19:14 * TheWatcher ducks
19:14
<@Derakon>
That was terrible, TW.
19:14
<@Attilla>
:P
19:14
<@TheWatcher>
Sorry, it's an instinctive thing
19:15
<@Attilla>
I'm trying to find a probability of number that I have the frequency f of after x iterations, so shouldn't that simply be f/x?
19:16
<@Derakon>
Wow, this pattern is so awesome and so utterly unfair.
19:17 UndeadAnno [~farkoff@Nightstar-29553.neoplus.adsl.tpnet.pl] has joined #Code
19:17 mode/#code [+o UndeadAnno] by ChanServ
19:18
<@Attilla>
I mean it was working earlier when the frequency was crap, but now it's not giving me the right output when the frequency is right:(
19:18
<@UndeadAnno>
Ask Kenneth.
19:42
<@MyCatVerbs>
Derakon: give both options. Velocity would be much more fun, usually, but sometimes you actually need to have teleporting bullets that don't spontaneously change their velocity, right?
19:43
<@Derakon>
MCV: if you need a bullet to be right there, right now, make the changeLocation tag take effect in one frame, then set its speed to 0 on the following frame.
19:43
<@Derakon>
But I'd discourage teleporting bullets as not being particularly fair to the player. Telefragging is bad news.
19:45
<@Derakon>
Allow me to present my current pattern (as-yet unfinished): http://derakon.dyndns.org/~chriswei/temp/bulletmlanim4.gif
19:45
<@Derakon>
I may want to move the emitter to the center of the screen...
19:47
<@Derakon>
Hrm. Now it looks like a swastika. >.<
19:56
<@MyCatVerbs>
Derakon: teleporting bullets would be *funny*.
19:57
<@MyCatVerbs>
Derakon: like have a pattern which spams an even number of streams towards the centre of the screen, then halfway across half the streams spontaneously teleport to the top of the screen and half to the bottom. :)
19:57
<@Derakon>
Tell ya what -- get the game, make the pattern, and we'll see if it's any good. :)
19:57
<@MyCatVerbs>
Derakon: bullets that fly slo~~~wly along for 40px, then teleport back by 30px, then fly... =)
20:00 * gnolam WTHs.
20:00
<@gnolam>
The 1D kernel, it does nothing!
20:03
<@Derakon>
Okay, I think this version's workable. Now to make it scale!
20:05
<@gnolam>
Ah.
20:06 Gruber [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
20:06 KBot [AnnoDomini@Nightstar-29553.neoplus.adsl.tpnet.pl] has joined #Code
20:07 Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: simontwo, crem, @UndeadAnno, KarmaBot, Tarinaky, @gnolam, @Doctor_Nick, Roonaky, @Attilla, @GeekSoldier, (+3 more, use /NETSPLIT to show all of them)
20:07 * Derakon laughs maniacally, is satisfied with Boxfire.
20:07
<@Derakon>
...?
20:07
<@Derakon>
You all left! ;.;
20:07 * TheWatcher patpats Dera
20:09 KBot is now known as KarmaBot
20:10
<@Derakon>
Right, now there's two complete courses that aren't available until you register.
20:10 UndeadAnno [~farkoff@Nightstar-29553.neoplus.adsl.tpnet.pl] has joined #Code
20:10 mode/#code [+o UndeadAnno] by ChanServ
20:10 Tarinaky [~Tarinaky@88.83.110.ns-10776] has joined #code
20:11
<@Derakon>
Mania, which has Wavecannon, Mobilespiral, Sieve, Twinspiral, and Whirligig, and Extra, which has Rainfall, Tracker, Undecider, Wanderer, and Boxfire.
20:15 Searh [~Z@130.227.16.ns-12529] has joined #code
20:15 Reiver [~reaverta@Nightstar-11487.xdsl.xnet.co.nz] has joined #Code
20:15 mode/#code [+o Reiver] by ChanServ
20:19 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
20:19 mode/#code [+o Attilla] by ChanServ
20:19 Gruber is now known as gnolam
20:22 * TheWatcher eyes the phpBB mod database
20:24 simontwo [~simon@Nightstar-28088.diogenes.hacklab.dk] has joined #code
20:24 RooWeazel [Roogle@Nightstar-25590.hsd1.co.comcast.net] has joined #code
20:26 * TheWatcher idly stabs with a thousand hyperkinetic titanium rods
20:27
<@Derakon>
Orbital crowbars!
20:27
<@TheWatcher>
When I ask for 3.x mods, I do not want fucking 2.x mods, you useless piece of putrescence, argh
20:28
<@MyCatVerbs>
You're using phpBB. By definition, you are *already* doomed.
20:30
<@Derakon>
http://www.xkcdb.com/?5088
20:32 Doctor_Nick [~nick@Nightstar-12626.tampfl.fios.verizon.net] has joined #code
20:32 mode/#code [+o Doctor_Nick] by ChanServ
20:33
<@TheWatcher>
MCV: Seriously, if i had the time, I'd dredge up Project Ionia (which was my old forum software), but I have other things I need to do, and at least phpBB3 is getting regular security audits these days
20:45 mode/#code [+o gnolam] by ChanServ
20:45
<@gnolam>
http://img.moonbuggy.org/this-fan-is-keeping-the-output-matrices-cool/
20:56
<@McMartin>
Derakon: Not *quite* on point, unless this is upgrading a pre-existing forum instead of building a new one.
20:56
<@UndeadAnno>
gnolam: Cool.
20:56
<@Derakon>
It is, as it happens.
21:03 * gnolam ponders depth components.
22:12 * Derakon mutters at his HTML/CGI.
22:13
<@Derakon>
Why don't you see the 'game' parameter?!
22:16
<@TheWatcher>
Dera: have you tried dumping $ENV{QUERY_STRING} to make sure it's coming in how you expect?
22:17
<@Derakon>
It must not be, since I'm not getting any parameters.
22:17
<@TheWatcher>
...hm.
22:18
<@Derakon>
Ah hah.
22:18
<@Derakon>
'.cgi_error' => '413 Request entity too large',
22:18
<@Derakon>
Got that by dumping the the query given by CGI->new().
22:19
<@Derakon>
Sure enough, my test file is over the 10MB limit I'm imposing. >.>
22:26
<@Derakon>
Does it sound reasonable to require that mod uploads be in .zip or .tgz format?
22:26
<@TheWatcher>
I think so
22:27
<@TheWatcher>
Although, you might get people complaining about .rar and tar.bz2
22:28
<@Derakon>
I think consistency is important here.
22:28
<@TheWatcher>
Yeah
22:29
<@TheWatcher>
(on a similar point, are you going to programatically verify their contents?)
22:29
<@Derakon>
Manually.
22:29
<@TheWatcher>
'kay
22:29
<@Derakon>
This is necessary in any case to make certain that the mods actually, y'know, run.
22:30
<@Derakon>
If you upload a mod and the first thing it does is try to create 101 bullets in one frame...that's not getting published.
22:30
<@TheWatcher>
Blast, there goes that idea, then...
22:32 * gnolam stabs GLSL.
22:33
<@McMartin>
Screw rar. Seriously.
22:42 * gnolam concurs.
22:42
<@gnolam>
And whee, go go Gaussian superpowers.
22:43
<@TheWatcher>
I'm trying to work out how that differs from normal
23:19
<@Attilla>
Curses, I can't believe I didn't see why until now.
23:19
<@Attilla>
I put punctuation next to the %f in the fprintf
23:19
<@Attilla>
And so it thought %f. and so was a 0 length %f
23:20
<@Attilla>
Oh wait no actually
23:20
<@Attilla>
This is uh, okay nevermind
23:24
<@Attilla>
Yeah, still nothing :(
23:24
<@gnolam>
What's the problem?
23:26
<@Derakon>
Blagh, the MySQL docs don't say how long the different 'text' types are.
23:27
<@Attilla>
Well I have this frequency of a chosen value on a randomly generated range of numbers, and i'm trying to show the probability of that value occuring based on iterations that generate the value (so probability is f/x, where f is the freq of value, and x is the iterations of generation of data) i've got the output to show the frequency but it doesn't show the value that I declared to be the probabil
23:27
<@Attilla>
ity
23:27
<@Attilla>
I had p = fe/m (fe being the freq and m being the iterations) in this instance but all it shows is 0.000etc.
23:27
<@gnolam>
And what types are they?
23:27
<@gnolam>
Show code.
23:27
<@Attilla>
The code is rather large for me to just show you since it's just the bit at the end that's the problem
23:27
<@Attilla>
And they're floats
23:28
<@Attilla>
It's a Random Walk simulation method
23:28
<@Derakon>
Check the pastebin.
23:28
<@Derakon>
http://paste.ubuntu.com.
23:28
<@Attilla>
Hmm, how do you select all in PuTTY?
23:29
<@Derakon>
How's this look for a table structure for holding metadata on game mods? http://paste.ubuntu.com/118960/
23:29
<@TheWatcher>
Derakon: http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html "Storeage Requirements for String Types" ?
23:30
<@TheWatcher>
*Storage
23:30
<@Derakon>
TW: okay, yeah, and what does "L+1" mean?
23:30
<@TheWatcher>
Length
23:30
<@Attilla>
(PuTTY is the terminal i'm using to access this cluster i'm running this on)
23:30
<@TheWatcher>
"L represents the actual length in bytes of a given string value"
23:30
<@Derakon>
...oh, I guess the length is 2^16 for text. "L + 2 bytes, where L < 2^16"
23:32
<@TheWatcher>
You need to watch out for character encoding, but assming single-byte characters, yeah
23:32
<@Derakon>
Even if it's only 2^15, it should be plenty. ¬.¬
23:32
<@TheWatcher>
I'd hope so!
23:32
<@Derakon>
Anyway, table structure look plausible?
23:33
<@TheWatcher>
also, there's apparently no filename in that table?
23:33 * Derakon smacks his forehead.
23:33
<@Derakon>
Thank you!
23:33
<@TheWatcher>
You might also want the uploader forum id in there, too
23:33
<@TheWatcher>
(or their username)
23:33
<@Derakon>
This is the dead-stupid not-tied-to-forum version.
23:34
<@TheWatcher>
okay
23:34
<@Derakon>
Since honestly I'm getting sick of doing webdev. >.<
23:34
<@TheWatcher>
Hm. upload date?
23:34
<@Derakon>
Good idea.
23:35 * TheWatcher fingertappity
23:35
<@TheWatcher>
I can't think of anything else you'd /need/, but hmm.. screenshots?
23:35 Searh [~Z@130.227.16.ns-12529] has quit [Ping Timeout]
23:36
<@Derakon>
That definitely sounds like a v2 type of feature.
23:36 * TheWatcher nod
23:36 Reiver [~reaverta@Nightstar-11487.xdsl.xnet.co.nz] has quit [Quit: Changing servers]
23:37
<@Attilla>
I guess more specifically, Select-All in Nano
23:37
<@TheWatcher>
I'd offer to assist with web dev stuff, save for the whole, y'know, having two other sites to do and only a month before I go over to the US for a holiday >.>
23:38
<@Derakon>
The sentiment is appreciated. But I'd better do this all myself anyway.
23:38 Reiver [~reaverta@Nightstar-11487.xdsl.xnet.co.nz] has joined #Code
23:38 mode/#code [+o Reiver] by ChanServ
23:39 Searh [~Z@130.227.16.ns-12529] has joined #code
23:40 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
23:41 * Derakon swears at MySQL. "What is wrong with my syntax?"
23:42
<@Derakon>
http://paste.ubuntu.com/118962/
23:42
<@Derakon>
It's complaining about the first line.
23:42
<@Derakon>
God knows why.
23:43
<@TheWatcher>
mod is a reserved word
23:44
<@Derakon>
See, that's the kind of useful error that MySQL never gives me.
23:44
<@TheWatcher>
"create table modification (.... etc....)"
23:44 * Derakon just pluralizes the damn thing, since "orders" is also pluralized.
23:44
<@Derakon>
Thanks, TW.
23:44
<@TheWatcher>
yeah, you could /probably/ force it with "create table `mod` ( ... )" but, egh
23:45
<@Derakon>
That sounds like it would be unpleasant to query.
23:45
<@TheWatcher>
you'd need to remember each time, yeah.
23:58 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
23:58 mode/#code [+o ToxicFrog] by ChanServ
23:58
<@Reiver>
Okay, I could do with a spot of linux-fu.
23:58 Searh is now known as Serah
23:58
<@TheWatcher>
hmm?
23:58
<@Reiver>
What is wrong with the command "kill - HUP `cat ircd.pid`" ?
23:59
<@TheWatcher>
remove the space twixt - and HUP
23:59
<@Derakon>
Yeah, '-' on its own usually means "accept input from STDIN".
23:59
<@Attilla>
man how do you select-all in nano or PuTTY I don't mind which one
23:59
<@Reiver>
Ah! Thank you.
23:59
<@Derakon>
So maybe "kill - -HUP < `cat ircd.pid`" would work.
23:59
<@Reiver>
I figured it was something Really Stupid.
23:59
<@Derakon>
Attilla: no idea.
23:59
<@ToxicFrog>
Attilla: band-select the entire terminal with the mouse?
--- Log closed Tue Feb 17 00:00:08 2009
code logs -> 2009 -> Mon, 16 Feb 2009< code.20090215.log - code.20090217.log >