code logs -> 2011 -> Fri, 27 May 2011< code.20110526.log - code.20110528.log >
--- Log opened Fri May 27 00:00:32 2011
00:35 * TheWatcher hahs, sucessfully manages to get SDL_RWops support for his resource file format working flawlessly, ticks another vital chunk of code off the list
00:40 You're now known as TheWatcher[T-2]
00:49 You're now known as TheWatcher[zZzZ]
00:55 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
--- Log closed Fri May 27 01:17:27 2011
--- Log opened Fri May 27 01:17:41 2011
01:17 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
01:17 Irssi: #code: Total of 23 nicks [0 ops, 0 halfops, 0 voices, 23 normal]
01:18 Irssi: Join to #code was synced in 44 secs
01:27 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
01:32 Kindamoody is now known as Kindamoody[zZz]
01:32 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:11 cpux_ [chatzilla@510B1D.8D602E.9FE2BE.9FAE21] has joined #code
02:12 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
02:12 cpux_ is now known as cpux
02:14 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
02:15 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
02:16 Syloqs_AFH is now known as Syloqs-AFH
02:24 Attilla [Some.Dude@Nightstar-febccc15.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
--- Log closed Fri May 27 03:59:12 2011
--- Log opened Fri May 27 03:59:19 2011
03:59 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
03:59 Irssi: #code: Total of 22 nicks [0 ops, 0 halfops, 0 voices, 22 normal]
03:59 Irssi: Join to #code was synced in 43 secs
04:39 * McMartin converts his gigantic game review HTML page into an XML document, so that he can auto-transform it into various more friendly forms.
04:40
< Vornicus-Latens>
Including adding a ToC, I hope.
04:41 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
04:42
< McMartin>
Yeah, though that's step 2.
04:42
< McMartin>
Step 1 is to regenerate what I have
04:42
< McMartin>
Step 2 is to add anchors and probably a frame-based navigation system so you can change the index
04:43
< McMartin>
Step 3 is to learn enough Javascript to make it reorder based on the indexing.
04:45
< McMartin>
https://hkn.eecs.berkeley.edu/~mcmartin/stack.xml
04:46
< Vornicus-Latens>
TEXTPLOSION
04:51
< McMartin>
MiniDOM, you are my only friend
04:54 cpux [chatzilla@510B1D.8D602E.9FE2BE.9FAE21] has quit [Client closed the connection]
04:55 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code
05:14
< McMartin>
[mcmartin@iodine backlog]$ python stackParser.py stack.xml
05:14
< McMartin>
Warning: Super Meat Boy lacks a platform
05:14
< McMartin>
Warning: Amnesia: The Dark Descent lacks a review
05:14
< McMartin>
Warning: Amnesia: The Dark Descent lacks a completion date
05:14
< McMartin>
Warning: Strong Bad's Cool Game For Attractive People lacks a review
05:14
< McMartin>
Warning: Strong Bad's Cool Game For Attractive People lacks a completion date
05:14
< McMartin>
56 games parsed.
05:15 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
05:18
< ToxicFrog>
Nice.
05:18
< ToxicFrog>
Meanwhile, I'm wondering if I really want to stick with XFCE.
05:20 * McMartin ponders this abomination of Python he has written
05:20
< ToxicFrog>
(and playing Soul Reaver)
05:21
< McMartin>
tagged = ["".join([z.toxml() for z in c.childNodes])).strip() for c in elt.childNodes if c.nodeType == c.ELEMENT_NODE and c.tagName == tag]
05:21 * McMartin splits that first expression out to a flatten(c) function.
05:22
< McMartin>
Python: it is totally Haskell, but newlines are not allowed.
05:22
< Vornicus-Latens>
Heh
05:24
< McMartin>
(That is, roughly, "give me a list of strings, where each string is the contents of the immediate children of elt that are <tag>...</tag>)
05:25
< McMartin>
(With toxml() handling rendering the children of <tag> if any, mostly useful for the stuff that is really XHTML.)
05:41
< McMartin>
Oops.
05:41
< McMartin>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 546: ordinal not in range(128)
05:41
< McMartin>
This is part of a print>>f, blah command
05:41
< McMartin>
How do I say "use UTF-8 codecs here plz"?
05:44
< McMartin>
Aha, with .encode. OK then~
05:44
< Vornicus-Latens>
I've never used print to file before
05:45 * McMartin adds an .encode("utf-8") after the .strip().
05:48
< McMartin>
Aaand, it almost validates!
05:50
< McMartin>
"This document was successfully checked as XHTML 1.0 Strict!"
05:56
< McMartin>
I keep forgetting <s> isn't actually standard.
06:03
< McMartin>
OK. No harm: Done.
06:03
< McMartin>
Now to fiddle with other stuff and maybe get a working ToC
06:06 Netsplit *.net <-> *.split quits: jerith, Omega
06:06 Alek [omegaboot@Nightstar-f3ecebe7.emhril.sbcglobal.net] has joined #code
06:09 Netsplit over, joins: jerith
06:14 cpux is now known as shade_of_cpux
06:18 Netsplit *.net <-> *.split quits: jerith
06:33 jerith [jerith@510B1D.77FBDC.BAA20B.2BB773] has joined #code
07:16 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
07:20 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has quit [Operation timed out]
07:27 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has joined #code
07:31
< McMartin>
AHAHA
07:31
< McMartin>
WEB 1.5 SKILLZ: DEPLOYED
07:31
< McMartin>
https://hkn.eecs.berkeley.edu/~mcmartin/stack.html
07:34
< Vornicus-Latens>
I see a big blank left margin, and your standard stuff.
07:35
< McMartin>
What browser are you using?
07:35
< McMartin>
There should be a toc over there. =P
07:35
< Vornicus-Latens>
Chrome
07:35
< McMartin>
Bizarre.
07:36
< Vornicus-Latens>
Firefox also has nothing.
07:36
< McMartin>
Can you in fact load https://hkn.eecs.berkeley.edu/~mcmartin/stack_index.html at all?
07:37
< Vornicus-Latens>
Oh, error found.
07:37
< Vornicus-Latens>
The close-title tag doesn't have a >
07:37
< McMartin>
Oy
07:37
< McMartin>
One moment
07:38
< Vash[Working]>
funny
07:38
< Vash[Working]>
the first link worked for me
07:38
< Vash[Working]>
the second was just showing the left side stuff
07:38
< McMartin>
Well, yes, that was the point
07:38
< Vash[Working]>
... it was?
07:38
< McMartin>
FF3 handles this, apparently. FF4 does not. =P
07:38 * Vash[Working] asn't paying attention
07:38
< McMartin>
I wanted to see if he couldn't handle the index itself, as opposed to the frameset that is the top.
07:39
< McMartin>
Fixed now on FF4.
07:42 Vash[Working] [Vash@Nightstar-35489bab.sndg02.sbcglobal.net] has quit [Connection closed]
07:42
< McMartin>
And now, zomgbed.
07:42 * McMartin zomgbed.
07:45 Vash [Vash@DCDEB4.EE4823.9B6B77.C91DBA] has joined #code
07:48 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has quit [Operation timed out]
07:49 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has joined #code
07:56 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has quit [Operation timed out]
08:00 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has joined #code
--- Log closed Fri May 27 08:52:01 2011
--- Log opened Fri May 27 08:52:14 2011
08:52 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
08:52 Irssi: #code: Total of 21 nicks [0 ops, 0 halfops, 0 voices, 21 normal]
08:52 Irssi: Join to #code was synced in 43 secs
08:55 Kindamoody[zZz] is now known as Kindamoody
09:27 Attilla [Some.Dude@Nightstar-febccc15.cable.virginmedia.com] has joined #code
09:39 AnnoDomini [annodomini@D553D1.9D4909.6C0472.6644B7] has joined #code
09:55 Vash [Vash@DCDEB4.EE4823.9B6B77.C91DBA] has quit [[NS] Quit: ... and then Cthulhu WOKE! And scatered the dead bodies of humans all over the world! ...]
11:09 AnnoDomini [annodomini@D553D1.9D4909.6C0472.6644B7] has quit [Ping timeout: 121 seconds]
11:11 AnnoDomini [annodomini@D553D1.9D4909.DF5AF4.BAC558] has joined #code
11:25 You're now known as TheWatcher
12:09 gnolam [lenin@9D46A2.F4E9D7.E4B4CF.2072AD] has joined #code
12:26 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
12:30 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
13:39 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
14:03 Kindamoody is now known as Kindamoody|out
14:29 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited]
15:43
< gnolam>
"max. distance in hops, where 1 hop = 1 switch-stage oder 1 interprocessor connection"
15:43
< gnolam>
Aww, it's so cute when German lecturers forget which language they're using. :)
15:46
< jerith>
:-)
15:47 * jerith tries to explain how this filter/replacement mechanism works.
15:47
< jerith>
I keep refactroing the explanation in circles. :-/
16:05 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
16:12
< gnolam>
Start by writing "gnomes" and expand from there.
17:07 Vash [Vash@Nightstar-35489bab.sndg02.sbcglobal.net] has joined #code
17:07 Vashicus [Vash@Nightstar-35489bab.sndg02.sbcglobal.net] has joined #code
17:08 Vashicus [Vash@Nightstar-35489bab.sndg02.sbcglobal.net] has quit [[NS] Quit: ... and then Cthulhu WOKE! And scatered the dead bodies of humans all over the world! ...]
17:42 Tarinaky is now known as Caeldir
18:00 AnnoDomini is now known as Zon
18:07
< gnolam>
http://i.imgur.com/Wo9hS.png
18:08
< Tamber>
o.O
18:10
< Namegduf>
I agree with this.
19:48 Kindamoody|out is now known as Kindamoody
20:27 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code
20:28 shade_of_cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
20:28 cpux is now known as shade_of_cpux
22:10 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
22:11
< McMartin>
Hm, bizarre. FF4 doesn't respect the encoding attribute of XHTML.
22:11 * McMartin modifies his generator script to accept UTF-8 text but emit XML entities instead.
22:16 * ToxicFrog bungs a PS3 motherboard in the oven
22:16
< TheWatcher>
...
22:16
< Namegduf>
McMartin: I think the only encoding they're required to take is UTF-8
22:16
< TheWatcher>
I doubt that'll be very tasty
22:17
< ToxicFrog>
TheWatcher: solder reflow.
22:18
< McMartin>
Namegduf: Which is precisely what it *was*, and yet it instead interpreted it as Latin-1.
22:18
< Namegduf>
Bizarre.
22:20
< McMartin>
Anyway, as I can fix this by literally adding two tokens to my generator script, I may as well just do that.
22:20
< McMartin>
Oh, and changing a third token.
22:24
< gnolam>
Oh, that reminds me.
22:25 * gnolam starts putting escaped unicode literals into his Python.
22:25
< gnolam>
Hee
22:26
< gnolam>
Sounds like I'm guarding said unicode literals with a vicious snake.
22:26
< Namegduf>
You should probably go round them up.
22:26
< McMartin>
That is so u'clich\xe9'
22:56 Zon is now known as AnnoDomini
23:11 Vash is now known as Vash[Out]
23:12 Vash[Out] is now known as Vash
23:12 Vash [Vash@Nightstar-35489bab.sndg02.sbcglobal.net] has quit [[NS] Quit: ... and then Cthulhu WOKE! And scattered the dead bodies of humans all over the world! ...]
23:21 Caeldir is now known as Tarinaky
23:43 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
23:47
< ToxicFrog>
It's aliiiiive!
23:51 shade_of_cpux is now known as cpux
23:53 * gnolam eyes FORTRAN.
23:54
< gnolam>
1-indexing and column major ordering? Why not just put up a sign saying C PROGRAMMERS NOT WELCOME?
23:57 AnnoDomini [annodomini@D553D1.9D4909.DF5AF4.BAC558] has quit [[NS] Quit: Ze sleeps.]
23:58
< jerith>
gnolam: That's pretty much what they did...
--- Log closed Sat May 28 00:00:47 2011
code logs -> 2011 -> Fri, 27 May 2011< code.20110526.log - code.20110528.log >