code logs -> 2011 -> Mon, 30 May 2011< code.20110529.log - code.20110531.log >
--- Log opened Mon May 30 00:00:17 2011
00:06 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
00:24 * TheWatcher eyes code, swears, sighs vaguely as he comes to the conclusion this mess isn't work salvaging, starts over.
00:38 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Client closed the connection]
00:38 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
00:38
< McMartin>
"Beet-Harvesting Combine" sounds like a Half-Life 2 crackfic.
00:44
< McMartin>
gnolam: That thing reads like a phrasebook for extremely confused spies.
00:44 You're now known as TheWatcher[T-2]
00:54 Vornicus is now known as Vornicus-Latens
00:59 You're now known as TheWatcher[zZzZ]
01:14
< gnolam>
Yeah, the "radar installations" part is a bit odd. :)
01:14
< gnolam>
Well
01:14
< gnolam>
Odder than the rest.
01:18
< gnolam>
But as for odd questions... the last question on http://www.lysator.liu.se/~gnolam/temp/ERPB0091_640.jpg is hard to beat.
01:18
< gnolam>
(translation note: "supersonics" is actually "ultrasound")
--- Log closed Mon May 30 01:24:24 2011
--- Log opened Mon May 30 01:24:37 2011
01:24 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
01:24 Irssi: #code: Total of 22 nicks [0 ops, 0 halfops, 0 voices, 22 normal]
01:25 Irssi: Join to #code was synced in 43 secs
01:38 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
02:04 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
02:33 Attilla [Some.Dude@Nightstar-febccc15.cable.virginmedia.com] has quit [Ping timeout: 121 seconds]
02:35 Kindamoody is now known as Kindamoody[zZz]
02:38 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
03:17 gnolam [lenin@9D46A2.F4E9D7.E4B4CF.2072AD] has quit [[NS] Quit: Z?]
03:28
< Alek>
pft.
06:07 Derakon [Derakon@Nightstar-cfae48c3.ca.comcast.net] has joined #code
06:08 * Derakon pokes at the Angband source, sorely misses Python's explicit "this function comes from this module" style.
06:10
< Derakon>
It really doesn't help that whoever wrote the file parser system forgot to add any comments...
06:15
< Derakon>
Anyone know a grep pattern that will get me the file that contains the definition for a function, given that I have its name but not necessarily its return type?
06:16
< ToxicFrog>
What brace style?
06:16
< Derakon>
Curlies on their own lines.
06:16
< ToxicFrog>
Hrm.
06:16
< Reiver>
brace style?
06:16
< Derakon>
How the curly braces are placed in the code.
06:18
< Reiver>
Huh.
06:18
< Reiver>
OK.
06:23 kwsn [kwsn@Nightstar-70d795cc.dyn.centurytel.net] has quit [[NS] Quit: moo]
07:05 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Client closed the connection]
07:05 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
07:09
< Derakon>
Man, you shouldn't be allowed to write code like this without adding comments. http://paste.ubuntu.com/614826/
07:11 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code
07:13 Derakon is now known as Derakon[AFK]
08:02 AnnoDomini [annodomini@D553D1.75652E.6927C0.6A1FD1] has joined #code
08:12 Vash is now known as Vash[Sleeping]
08:36 Kindamoody[zZz] is now known as Kindamoody
08:45 Shield is now known as EvilDarkLord
08:58 Kindamoody is now known as Kindamoody|out
09:52 AbuDhabi [annodomini@D553D1.D82A92.77DC14.1F62D5] has joined #code
09:54 AnnoDomini [annodomini@D553D1.75652E.6927C0.6A1FD1] has quit [Ping timeout: 121 seconds]
09:55 AnnoDomini [annodomini@D553D1.41311B.698BCE.94AE09] has joined #code
09:56 Vornicus-Latens is now known as Vornicus
09:57 AbuDhabi [annodomini@D553D1.D82A92.77DC14.1F62D5] has quit [Ping timeout: 121 seconds]
09:57 Attilla [Some.Dude@Nightstar-febccc15.cable.virginmedia.com] has joined #code
10:08 You're now known as TheWatcher
10:17 Vash [Vash@Nightstar-f03c5637.sd.cox.net] has joined #code
10:19 Vash[Sleeping] [Vash@Nightstar-f03c5637.sd.cox.net] has quit [Ping timeout: 121 seconds]
10:43 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
10:54 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has joined #code
12:03 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has quit [Client exited]
12:08 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
12:32
< Reiver>
So um
12:32
< Reiver>
I have a schema
12:33
< Reiver>
Is there any way to say "Assume everything is an /int/ unless I say otherwise"?
12:33
< Vornicus>
um, guess we could pull that off, probably.
12:33
< Vornicus>
But let's see what you've got anyway.
12:33
< Reiver>
I currently have, uh
12:34
< Reiver>
baseSchema = {"BAB": int, "STR": int, "DEX": int, "CON": int, "WIS": int, "CHA": int, "fort": int, "ref": int, "will": int, "stealth": int, "acrobatics": int, "perception": int, "surval": int, "NA": int, "armor": int, "specialDC": int, "attackPenalty": int }
12:34
< Reiver>
Which is in fact everything in the entire file except the first column.
12:34
< Reiver>
This struck me as somewhat clunky and I am going through making sure I didn't get the cases wrong etc
12:34
< Reiver>
(I figured that was mostly the problem to date, etc~)
12:35
< Vornicus>
As in your entire code.
12:36
< Reiver>
Oh, haha
12:37
< AnnoDomini>
Where's Intelligence?
12:38
< Reiver>
... clearly, I left it out after typing 'int' seventeen times, cheers!
12:38 * Reiver adds that in before pasting.
12:40
< Reiver>
http://pastebin.starforge.co.uk/471
12:46 * Reiver will set to work on Critters any second now, honest. Yesiree
12:47
< Vornicus>
Okay here's what we're going to do.
12:47
< Vornicus>
This work is all on csv_database_reader
12:48
< Reiver>
right
12:49
< Vornicus>
First we're going to add another parameter, default_schema, to it. "default_schema = str" gets put into the parameters.
12:50
< Reiver>
... aha. This could be clever.
12:51
< Vornicus>
so then we can toss in something else like int, later.
12:52
< Vornicus>
Anyway then we have to change how it does row processing.
12:53
< Reiver>
Away from the happy shiny simple bunnies?
12:54
< Vornicus>
No, it'll still be pretty simple.
12:55
< Reiver>
OK
12:56
< Vornicus>
So down where it says for k, f in schema.iteritems() we're going to do our changes; first off we want to iterate over only the keys, and in row, not in schema.
12:57
< Reiver>
O...K
12:58
< Vornicus>
so it'd be for k in row.iterkeys():
13:01
< Vornicus>
THen in there we want to check whether that key is in the schema.
13:04
< Reiver>
OK
13:05
< Vornicus>
And if it is we'll call the schema's function on it, and if it's not we'll call defualt_schema -- which actually we should rename to something like default_type -- on it.
13:11
< Reiver>
right
13:12
< Vornicus>
so: if k in schema:
13:17
< Vornicus>
row[k] = schema[k](row[k])
13:18
< Vornicus>
else:
13:18
< Vornicus>
row[k] = default_type(row[k])
13:19 * Reiver frowns
13:19
< Reiver>
Oh, it's playing with dicts here yes?
13:19 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:19
< Vornicus>
Yes.
13:32
< Vornicus>
ANd that's really all the changes we're doing here.
13:32
< Reiver>
hrm
13:33
< Reiver>
I am concerned about my indentation.
13:33 * Reiver posts
13:33
< Reiver>
http://pastebin.starforge.co.uk/472
13:34
< Vornicus>
get rid of the row[k] = f(row[k]) and your code will be right.
13:36
< Reiver>
Right, that's what it was
14:05 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Ping timeout: 121 seconds]
14:15
< gnolam>
Ah, physicist coordinate system.
14:15
< Vornicus>
what
14:15
< gnolam>
I pondered coordinate systems the other day.
14:17
< gnolam>
I was unsure whether I should use XZ as the ground plane and Y as the "up" axis or XY as the ground plane and Z as the up axis.
14:17
< gnolam>
Apparently, they prefer the latter.
14:19
< Tarinaky>
I'm pretty certain it depends on the problem.
14:45 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
14:46 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.]
15:08 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has quit [Client closed the connection]
15:10 ToxicFrog [ToxicFrog@Nightstar-58fa4b17.cable.teksavvy.com] has joined #code
15:28
< McMartin>
And now, a full three weeks after getting my smartphone, and a full two weeks after I deployed my first personally written custom-built application to it, I have figured out how to configure its ring tones. -_-
15:32
< Reiver>
Ahahahaha
15:32
< Namegduf>
Android?
15:33
< gnolam>
Heh
15:33
< McMartin>
Yeah
15:34 * McMartin is using Portal 2's "Science is Fun" ringtone, which is basically the Robot Co-Op theme, because it is both catchy and does not violate his Rules of Ringtones.
15:34
< McMartin>
Which is to say, by being hella techno it in fact is basically a ringing sound. =P
15:35
< McMartin>
http://media.steampowered.com/apps/portal2/soundtrack/01/m4a/01_Science_is_Fun.m 4a
15:35
< Reiver>
That's a ringing sound?
15:36
< McMartin>
It's within electronic range of one - the B5 comm chirps also count.
15:37 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
15:37
< Reiver>
Point.
15:37 * Vornicus still needs to figure out how to load his chosen ringtone onto his phone.
15:38
< Vornicus>
http://www.youtube.com/watch?v=F-ShoLALwK0&feature=related which is this.
15:40
< McMartin>
o_O
15:40
< McMartin>
YouTube identified the cursor as being at NaN:NaN
15:40
< Vornicus>
nice.
15:40
< McMartin>
What kind of phone? Androids eat arbitrary MP3s, so listentoyoutube.com should handle it fine
15:41
< McMartin>
That game is also on my Wii Stack still.
15:41
< Vornicus>
An LG Octane. Not a smartphone.
15:41
< McMartin>
Wait, wait. There's a Newer Super Mario Bros Wii?
15:42
< McMartin>
Oh, no, it's a romhack.
15:42
< McMartin>
Bah.
15:43
< McMartin>
For some reason I was under the impression my old LG could eat MP3s too.
15:45
< McMartin>
It also occurs to me that the Android should be named "Flourine."
15:46 * TheWatcher eyes this, wonders whether he should be wrapping it in a mutex, realises that by simply wondering about this he probably should be
15:46
< Vornicus>
I'm pretty sure it can, yes.
15:47
< McMartin>
If I didn't have the 'needs to sound like a chime of some kind' restriction, I would totally use http://www.youtube.com/watch?v=Y3MCMGel3MI for my ringtone.
15:48
< Vornicus>
That said the little original intro thing, the five notes, that would be an awesome text sound.
15:50
< McMartin>
That is, sadly, the "notification" sound, which Androids will give you a lot of.
15:50
< McMartin>
The most appropriate sound for it is therefore HEY LISTEN
15:50
< McMartin>
But the only acceptable one is silence.
15:51
< McMartin>
(Demeter is seriously the perkiest theme I've ever heard in a seriously intended shmup)
15:52
< McMartin>
Hm. 1:01 to 1:15 fits my criteria.
15:52
< McMartin>
I *could* use that.
15:56
< Reiver>
Tweedlepip!
16:30 * gnolam is again amazed at the ERG argument.
16:30
< gnolam>
The program uses CGS units. Lengths in centimeters, masses in grams, densities in g/cm^3, etc.
16:31
< gnolam>
When specifying sources, there's an argument for energy: ERG.
16:32
< gnolam>
The unit of which is... MeV.
16:32
< McMartin>
-_-
16:35
< gnolam>
Sure, MeV is actually a better unit to use here, but it still feels like there's probably a comment section somewhere in the source code saying
16:35
< gnolam>
! Energy in ergs
16:35
< gnolam>
!
16:35
< gnolam>
! JUST KIDDING IT'S MeV HAHAHAHAHA
16:36 cpux [chatzilla@510B1D.8D602E.9FE2BE.9FAE21] has quit [Ping timeout: 121 seconds]
16:37 Vash is now known as Vash[Out]
16:42 Derakon[AFK] is now known as Derakon
16:52 * Vornicus returns from out.
16:54 * McMartin wonders if anything's open today.
17:01
< Vornicus>
SUbway was.
17:03
< gnolam>
Public holiday?
17:04
< Derakon>
This seems...inelegant. :%s/static enum parser_error parse_\(.\)_\(.\)/\/\/ Parse \2: lines from the \1
17:04
< Derakon>
file\rstatic enum parser_error parse_\1_\2
17:04
< Vash[Out]>
Memorial Day D=
17:04
< Derakon>
On the other hand, it automatically created 79 lines of badly, badly needed comments.
17:16
< Derakon>
Counting context, this diff is 733 lines...and all it does is add comments.
17:16
< Derakon>
93 comment lines, one for each of a series of functions named like parse_x_y
--- Log closed Mon May 30 18:04:07 2011
--- Log opened Mon May 30 18:04:15 2011
18:04 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
18:04 Irssi: #code: Total of 22 nicks [0 ops, 0 halfops, 0 voices, 22 normal]
18:04 Irssi: Join to #code was synced in 44 secs
18:26 Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has quit [Connection reset by peer]
18:26 Reiver [orthianz@9C034E.E649EA.3194C7.8381A3] has joined #code
18:27 Vash[Out] is now known as Vash
20:20 Vash is now known as Vash[Out]
--- Log closed Mon May 30 20:32:34 2011
--- Log opened Mon May 30 20:32:41 2011
20:32 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
20:32 Irssi: #code: Total of 22 nicks [0 ops, 0 halfops, 0 voices, 22 normal]
20:33 Irssi: Join to #code was synced in 44 secs
20:42 Vash[Out] is now known as Vash
20:48 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code
21:37 Kindamoody|out is now known as Kindamoody
22:51 symbol [symbol@Nightstar-58fa4b17.cable.teksavvy.com] has joined #code
23:51 SmithKurosaki [smith@Nightstar-26c90235.dsl.teksavvy.com] has joined #code
23:52 SmithKurosaki [smith@Nightstar-26c90235.dsl.teksavvy.com] has left #code ["Leaving"]
23:57 AnnoDomini [annodomini@D553D1.41311B.698BCE.94AE09] has quit [[NS] Quit: leaving]
--- Log closed Tue May 31 00:00:32 2011
code logs -> 2011 -> Mon, 30 May 2011< code.20110529.log - code.20110531.log >

[ Latest log file ]