code logs -> 2009 -> Thu, 14 May 2009< code.20090513.log - code.20090515.log >
--- Log opened Thu May 14 00:00:41 2009
00:09 AnnoDomini [~farkoff@Nightstar-29092.neoplus.adsl.tpnet.pl] has quit [Quit: By the surly beard of Mrifk, Grignr bows to no man!]
00:15 Reiv [~82d94c4d@Nightstar-29731.dsl.in-addr.zen.co.uk] has quit [Quit: CGI:IRC (EOF)]
00:52 Vornicus-Latens is now known as Vornicus
00:55
<@Vornicus>
Okay. 1. Race/Class. Need to... load any existing character file. I don't have any checks that need to be done at this point though - it's step 1, so I don't have any previous steps that must be complete.
00:55
<@Vornicus>
Oh. Duh, race/class has to check for a name.
00:56
<@Vornicus>
Otherwise it can't exactly persist the data.
01:56 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has quit [Operation timed out]
02:14 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
02:44 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
02:45 Syloqs_AFH is now known as Syloqs-AFH
02:48 Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has quit [Operation timed out]
02:50 Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has joined #code
02:50 mode/#code [+o Derakon] by ChanServ
02:59 * Vornicus tries to undistract, after hockey.
03:02 MyCatVerbs [~mycatverb@Nightstar-13709.lurkingfox.co.uk] has joined #code
03:02 mode/#code [+o MyCatVerbs] by ChanServ
03:04 Reiv [~82d94c4d@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #Code
03:04 * Vornicus examines. Need to validate the name, even, because that is sort of a potential security hole there if I don't.
03:32
<@Derakon>
Vorn: howso?
03:33
<@Vornicus>
"../../foo.txt" is not a very good character name.
03:33
<@Derakon>
But you won't be interpreting character names as paths, will you?
03:34
<@Derakon>
(Hint: don't interpret character names as paths)
03:34
<@Vornicus>
Der: the character name is used as the name of the file.
03:34 Namegduf [namegduf@86.6.85.ns-27218] has quit [Quit: Lost terminal]
03:34
<@Vornicus>
I can't think of any other way here.
03:34
<@Derakon>
yyyyeah, I suggest instead mapping the name to a unique ID that is the filename.
03:34
<@Vornicus>
And how do I map the name and persist the ID?
03:34
<@Derakon>
...oh, right, you aren't using a database here. Hm.
03:34
<@Derakon>
Hash it.
03:35
<@Derakon>
But since you aren't using a DB, yeah, you'll need to do some validation, if only to ensure that the filename you get is within OS restrictions.
03:35
<@Derakon>
...restrictions on length, that is.
03:36
<@Vornicus>
if ($character_name != pathinfo($char_filename, PATHINFO_FILENAME)) { # <--- my current validation.
03:36
<@Vornicus>
$char_filename is ../dat/<?= $character_name ?>.txt
03:37
<@Derakon>
The issue I see there is that you have to try to write the filename before you can do that check.
03:37
<@Vornicus>
pathinfo is a text-only move.
03:38
<@Vornicus>
I know because I tried it on "." to see if it gave me the right path.
03:38
<@Vornicus>
it, um. Didn't.
03:38
<@Derakon>
Right, but calling pathinfo('../dat/SomeGuyThatDoesntExistYet.txt') will fail, right?
03:38
<@Vornicus>
Nope.
03:39
<@Derakon>
Also, from the docs, pathinfo returns an associative array. Does it still do this when you ask for only one of its possible return values?
03:39
<@Vornicus>
No.
03:40
<@Vornicus>
When you pass a second parameter it returns a string.
03:40
<@Derakon>
Go docs. :\
03:42
<@Derakon>
So what does calling pathinfo() on a nonexistent file do?
03:42
<@Vornicus>
It parses the string.
03:43
<@Vornicus>
pathinfo() does not interact with the filesystem at all.
03:43
<@Derakon>
...ah.
03:44
<@Vornicus>
the stuff up to the last path separator is dirname, the stuff after that is basename, the stuff in basename before the last . is filename, the stuff after that . is the extension.
03:44
<@Vornicus>
It handles for instance . specially.
03:45
<@Derakon>
I see.
03:45
<@Derakon>
So basically it's a wrapper around a regex.
03:45
<@Derakon>
Plus some OS-specific stuff, I imagine.
03:47
<@Vornicus>
The equivalent stuff in Python is os.path, which also works with pwd on occasion, and in a very few calls will go through the filesystem to see what it can see.
03:55 Reiv [~82d94c4d@Nightstar-29731.dsl.in-addr.zen.co.uk] has quit [Quit: Off to see the wizard, the wonderful wizard of... um... compsci departments...]
04:41 * Vornicus fiddles with it. Thinks he's written all he needs for race-class.php
04:46
<@Vornicus>
Should I make the file /now/, or wait till I get to the abilities page?
04:47
<@Vornicus>
...oh, duh. If I get to race-class.php I need to load up the file anyway.
04:48 * Vornicus gets to work coding that.
04:50
<@Vornicus>
(with an existng thing, that is)
04:59 * Vornicus examines. This means, mainly, loading up the character sheet, reading $character_sheet["race"] and $character_sheet["class"], and using those to decide what thing should be already selected in the two selection boxes.
04:59
<@Vornicus>
I can't think of anything else I need to do; abilities.php is the only thing that will set race and class, and I validate on write.
05:01
<@Vornicus>
Which means pushing the race and class selectors into data and loops again.
05:24
<@Vornicus>
okay what the shit is it doing now.
05:30
<@Vornicus>
Notes: 1. Javascript treats associative arrays and objects as one and the same and allows access either way. 2. PHP does /not/. 3. PHP's json_decode function by default gives objects, not associative arrays. 4. Fortunately there's a flag on there.
05:30 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has quit [Quit: Leaving]
05:32 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has joined #code
05:32 mode/#code [+o Consul] by ChanServ
05:34 * Vornicus declares victory, and then bed.
05:43 Vornicus is now known as Vornicus-Latens
06:01 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer]
06:02 Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has quit [Ping Timeout]
06:03 Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has joined #code
06:03 mode/#code [+o Derakon] by ChanServ
07:34 gnolam [lenin@79.136.60.ns-4387] has joined #Code
07:34 mode/#code [+o gnolam] by ChanServ
07:45 Derakon is now known as Derakon[AFK]
08:22 C_tiger [~cheng@Nightstar-5625.hsd1.ca.comcast.net] has joined #code
08:22 mode/#code [+o C_tiger] by ChanServ
09:16 AnnoDomini [AnnoDomini@Nightstar-29129.neoplus.adsl.tpnet.pl] has joined #Code
09:16 mode/#code [+o AnnoDomini] by ChanServ
09:47 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has quit [Quit: Leaving]
10:06 You're now known as TheWatcher
10:59 AnnoDomini [AnnoDomini@Nightstar-29129.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
11:06 AnnoDomini [AnnoDomini@Nightstar-29247.neoplus.adsl.tpnet.pl] has joined #Code
11:06 mode/#code [+o AnnoDomini] by ChanServ
11:56 EvilDarkLord [~jjlehto3@Nightstar-9591.cs.hut.fi] has quit [Ping Timeout]
12:00 EvilDarkLord [~jjlehto3@Nightstar-9591.cs.hut.fi] has joined #code
12:01 EvilDarkLord is now known as NSGuest-460
12:05 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
12:05 mode/#code [+o Attilla] by ChanServ
12:43 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
15:21 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has joined #code
15:21 mode/#code [+o Consul] by ChanServ
15:21 amanda [~ajaj@82.74.137.ns-4191] has joined #Code
15:21
< amanda>
http://pizzam1.mybrute.com check this link !!
15:22 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:23 mode/#code [+o Attilla] by ChanServ
15:24 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:24 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:24 mode/#code [+o Attilla] by ChanServ
15:26 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:26
< amanda>
http://pizzam1.mybrute.com
15:27 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:27 mode/#code [+o Attilla] by ChanServ
15:28 amanda [~ajaj@82.74.137.ns-4191] has quit [Quit: ]
15:28
<@gnolam>
Time to +U the channel again?
15:28 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: SOF!]
15:28 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
15:28 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:29 mode/#code [+o Attilla] by ChanServ
15:38 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
15:45 Namegduf [namegduf@86.6.85.ns-27218] has joined #code
15:53 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
15:53 mode/#code [+o Attilla] by ChanServ
16:04 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:06 Syloqs_AFH is now known as Syloqs-AFH
16:09 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
16:10 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
16:10 mode/#code [+o Attilla] by ChanServ
16:18 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
16:19 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
16:19 mode/#code [+o Attilla] by ChanServ
16:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
16:24 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
16:24 mode/#code [+o Attilla] by ChanServ
16:27 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
16:27 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
16:27 mode/#code [+o Attilla] by ChanServ
16:41 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has quit [Connection reset by peer]
16:42 Consul [~consul@Nightstar-3249.dsl.sfldmi.ameritech.net] has joined #code
16:42 mode/#code [+o Consul] by ChanServ
16:43
<@Consul>
Okay, system was running stably, including Flash video, for quite a long time. Then I shut down (lightning storm), boot it back up, suddenly, it locks up again.
16:43
<@Consul>
Query: Are IRQs dynamically assigned at boot-up, and can this assignment change from boot to boot?
16:46
<@Consul>
I guess query #2 would be: is it possible to have a bad IRQ assignment?
16:46
<@Consul>
It's been too long since I've had to know anything at this level.
16:52
<@Consul>
Okay, I think this is barking up the wrong tree. Sound works just fine otherwise (my only PCI card is a sound card).
16:52
<@Consul>
The only time the lock-ups ever happen is playing video online with the Flash plugin.
16:52
<@Consul>
Sound otherwise works, I can view local video (including locally-saved FLVs) all I want...
16:55
<@Consul>
But, as I said, it was perfectly stable before I shut down last night. I was watching loads of Flash video online before then.
16:55
<@Consul>
So, could it still be connected to IRQ assignments somehow?
16:56
<@Consul>
I might have to go with two computers in the future. One for music production, one for everything else,
16:59
<@Consul>
http://www.pcper.com/article.php?aid=708 -- Thinking about one of these for the "everything else" machine. It would certainly be good enough.
16:59
<@Consul>
Cheap enough, too.
17:09 Derakon[AFK] is now known as Derakon
17:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
17:23 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
17:23 mode/#code [+o Attilla] by ChanServ
18:06 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
18:07 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
18:07 mode/#code [+o Attilla] by ChanServ
18:18 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
18:18 Attilla_ [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
18:48 Attilla_ [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
18:48 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
18:48 mode/#code [+o Attilla] by ChanServ
19:31 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
19:31 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
19:31 mode/#code [+o Attilla] by ChanServ
19:39 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
19:42 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
19:42 mode/#code [+o Attilla] by ChanServ
19:43 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
20:01 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
20:01 mode/#code [+o Attilla] by ChanServ
20:05 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
20:06 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
20:06 mode/#code [+o Attilla] by ChanServ
20:31 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
20:35 Netsplit Troika.TX.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: @MyCatVerbs, @Tarinaky, @C_tiger
20:35 Netsplit over, joins: Tarinaky, MyCatVerbs, C_tiger
20:35 mode/#code [+o MyCatVerbs] by ChanServ
20:36 C_tiger is now known as NSGuest-463
20:40 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
20:44 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
20:44 mode/#code [+o Attilla] by ChanServ
20:45 Derakon is now known as Derakon[DDR]
21:53 Derakon[DDR] is now known as Derakon
22:22 AnnoDomini [AnnoDomini@Nightstar-29247.neoplus.adsl.tpnet.pl] has quit [Quit: Some people find sanity a little confining.]
23:45 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout]
23:52 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
23:52 mode/#code [+o Attilla] by ChanServ
--- Log closed Fri May 15 00:00:55 2009
code logs -> 2009 -> Thu, 14 May 2009< code.20090513.log - code.20090515.log >